/* Hallow website - the calm Hallow look (Hub's Theme.xaml colours), dark by default, light by system or toggle. */
:root {
  --bg: #16121C; --bg-deep: #120F17; --panel: #211B2A; --panel-hi: #2E2639; --line: #3A3248; --field: #1C1724;
  --card: #1D1825; --card-hi: #251F2F; --edge: rgba(255, 255, 255, .07); --edge-hi: rgba(255, 255, 255, .13);
  --text: #ECE8F4; --muted: #A39CB4; --faint: #8A829C; --accent: #F07820; --on-accent: #1A0E04; --accent-text: #F59A52;
  --accent-soft: rgba(240, 120, 32, .14); --ok: #6ED28C;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 80px -20px rgba(0, 0, 0, .75);
  --win-shadow: 0 0 0 1px var(--edge-hi), 0 40px 100px -30px rgba(0, 0, 0, .8), 0 30px 120px -40px rgba(240, 120, 32, .45);
  --glow-a: rgba(240, 120, 32, .22); --glow-b: rgba(150, 110, 240, .14);
  --radius: 14px; --max: 1200px;
  --head: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --sect: clamp(72px, 9vw, 120px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F6F4F9; --bg-deep: #EFECF4; --panel: #FFFFFF; --panel-hi: #ECE8F2; --line: #DDD7E6; --field: #FFFFFF;
  --card: #FFFFFF; --card-hi: #FFFFFF; --edge: rgba(40, 25, 70, .09); --edge-hi: rgba(40, 25, 70, .16);
  --text: #1E1A26; --muted: #5E5770; --faint: #6E6780; --accent: #F07820; --on-accent: #1A0E04; --accent-text: #A34C0C;
  --accent-soft: rgba(240, 120, 32, .12); --ok: #1E7F45;
  --shadow: 0 10px 40px rgba(40, 30, 60, .14);
  --shadow-lg: 0 1px 3px rgba(40, 30, 60, .08), 0 30px 70px -24px rgba(50, 30, 80, .30);
  --win-shadow: 0 0 0 1px var(--edge), 0 40px 90px -30px rgba(50, 30, 80, .35), 0 30px 120px -40px rgba(240, 120, 32, .35);
  --glow-a: rgba(240, 120, 32, .16); --glow-b: rgba(150, 110, 240, .12);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F6F4F9; --bg-deep: #EFECF4; --panel: #FFFFFF; --panel-hi: #ECE8F2; --line: #DDD7E6; --field: #FFFFFF;
    --card: #FFFFFF; --card-hi: #FFFFFF; --edge: rgba(40, 25, 70, .09); --edge-hi: rgba(40, 25, 70, .16);
    --text: #1E1A26; --muted: #5E5770; --faint: #6E6780; --accent: #F07820; --on-accent: #1A0E04; --accent-text: #A34C0C;
    --accent-soft: rgba(240, 120, 32, .12); --ok: #1E7F45;
    --shadow: 0 10px 40px rgba(40, 30, 60, .14);
    --shadow-lg: 0 1px 3px rgba(40, 30, 60, .08), 0 30px 70px -24px rgba(50, 30, 80, .30);
    --win-shadow: 0 0 0 1px var(--edge), 0 40px 90px -30px rgba(50, 30, 80, .35), 0 30px 120px -40px rgba(240, 120, 32, .35);
    --glow-a: rgba(240, 120, 32, .16); --glow-b: rgba(150, 110, 240, .12);
    color-scheme: light;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: clip;
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 12px; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 10px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: 0; white-space: nowrap;
  transition: background-color .15s ease, filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 20px -6px rgba(240, 120, 32, .55); }
.btn-accent:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--panel-hi); }
.btn-quiet { background: var(--card-hi); color: var(--text); box-shadow: 0 0 0 1px var(--edge-hi) inset; }
.btn-quiet:hover { background: var(--panel-hi); }
.btn-quiet svg { transition: transform .15s ease; }
.btn-quiet:hover svg { transform: translateX(2px); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 16px; border-radius: 12px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--edge); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 17px; letter-spacing: .04em; white-space: nowrap; }
.brand img { width: 28px; height: 28px; }
.brand b { color: var(--accent); font-weight: 700; }
.top nav { display: flex; gap: 2px; margin-left: 12px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px; transition: color .15s ease, background-color .15s ease; }
.top nav a:hover { color: var(--text); background: var(--panel-hi); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top-cta { margin-left: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: transparent; border: 0; color: var(--muted); cursor: pointer; transition: color .15s ease, background-color .15s ease; }
.icon-btn:hover { background: var(--panel-hi); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 0; isolation: isolate; }
.hero::before { /* the glow: an orange bloom behind the window, quiet violet ones to the sides */
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 1100px; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 38% at 50% 62%, var(--glow-a), transparent 70%),
    radial-gradient(ellipse 34% 30% at 82% 20%, var(--glow-b), transparent 70%),
    radial-gradient(ellipse 30% 26% at 12% 30%, var(--glow-b), transparent 70%);
}
.hero-copy { text-align: center; max-width: 820px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--card) 70%, transparent); box-shadow: 0 0 0 1px var(--edge-hi) inset;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.04; margin: 0 0 22px; font-weight: 700; letter-spacing: -.03em; }
.hero h1 span { background: linear-gradient(100deg, #F59A52, #F07820 55%, #E2602A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); margin: 0 auto 32px; max-width: 40em; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 22px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 14px; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts svg, .ticks svg, .feat-list svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

.showcase { max-width: 1080px; margin: clamp(48px, 6vw, 72px) auto 0; }
.win { border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--win-shadow); }
.win-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 0 0 12px; font-size: 12.5px; color: var(--muted); background: var(--bg-deep); box-shadow: 0 1px 0 var(--edge); }
.win-icon { width: 16px; height: 16px; }
.win-ctl { margin-left: auto; display: flex; height: 100%; }
.win-ctl svg { width: 46px; height: 100%; padding: 12px 18px; stroke-width: 1; color: var(--faint); }
.win-screen { display: grid; aspect-ratio: 1180 / 780; background: var(--bg); }
.win-screen .slide { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.win-screen .slide.on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.picks { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pick {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; border-radius: 999px;
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 0 0 1px var(--edge) inset; transition: color .15s ease, background-color .15s ease;
}
.pick img { width: 20px; height: 20px; }
.pick:hover { color: var(--text); background: var(--card); }
.pick[aria-pressed="true"] { color: var(--text); background: var(--card-hi); box-shadow: 0 0 0 1px var(--edge-hi) inset; }
.pick::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.pick[aria-pressed="true"]::after { transform: scaleX(1); }
.playing .pick[aria-pressed="true"]::after { animation: fill var(--slide-ms, 6000ms) linear; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- sections ---------- */
section { padding: var(--sect) 0 0; }
main > section:last-child { padding-bottom: var(--sect); }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 12px; }
.section-head { margin-bottom: clamp(32px, 4vw, 48px); max-width: 720px; }
.section-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 17px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* why Hallow */
.why { padding-top: clamp(64px, 8vw, 104px); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.why-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 16px; box-shadow: 0 0 0 1px rgba(240, 120, 32, .18) inset; }
.why-ic svg { width: 22px; height: 22px; }
.why h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -.005em; }
.why p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* featured */
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feat {
  --tone: rgba(240, 120, 32, .16);
  position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 70% at 100% 100%, var(--tone), transparent 60%), var(--card);
  box-shadow: 0 0 0 1px var(--edge) inset; transition: box-shadow .2s ease, transform .2s ease;
}
.feat[data-tone="keys"] { --tone: rgba(240, 160, 40, .15); }
.feat[data-tone="mixer"] { --tone: rgba(150, 110, 240, .18); }
.feat[data-tone="clips"] { --tone: rgba(230, 80, 70, .15); }
.feat:hover { box-shadow: 0 0 0 1px var(--edge-hi) inset, var(--shadow-lg); transform: translateY(-3px); }
.feat-text { padding: 32px 32px 24px; }
.feat h3 { display: flex; align-items: center; gap: 12px; font-size: 24px; margin: 0 0 6px; letter-spacing: -.015em; }
.feat h3 img { width: 32px; height: 32px; }
.feat h3 a { color: var(--text); text-decoration: none; }
.feat h3 a:hover { color: var(--accent-text); }
.feat .eyebrow { margin-bottom: 10px; font-size: 11.5px; }
.feat-tag { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.feat-list, .ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.feat-list li, .ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.feat-list svg, .ticks svg { margin-top: 3px; }
.feat-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-shot { display: block; margin: auto 0 0 32px; height: 300px; overflow: hidden; border-radius: 12px 0 0 0; box-shadow: 0 0 0 1px var(--edge-hi), 0 -10px 40px -10px rgba(0, 0, 0, .35); }
.feat-shot img { width: max(100%, 700px); max-width: none; height: auto; transition: transform .4s ease; transform-origin: top left; } /* larger than the card: the top-left of the app, readable */
.feat:hover .feat-shot img { transform: scale(1.025); }

/* all apps: tabs + search + grid */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--edge) inset; }
.tab {
  background: transparent; border: 0; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  padding: 7px 14px; border-radius: 9px; transition: color .15s ease, background-color .15s ease; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); background: var(--panel-hi); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.tab .n { font-weight: 500; color: var(--faint); margin-left: 6px; font-size: 12.5px; }
.tab[aria-selected="true"] .n { color: var(--accent-text); }
.search { position: relative; flex: 0 1 320px; }
.search input {
  width: 100%; height: 44px; padding: 0 40px 0 40px; border-radius: 12px; border: 0; box-shadow: 0 0 0 1px var(--edge-hi) inset;
  background: var(--field); color: var(--text); font: inherit; font-size: 14.5px; transition: box-shadow .15s ease;
}
.search input:focus { outline: none; box-shadow: 0 0 0 1px var(--accent) inset, 0 0 0 4px var(--accent-soft); }
.search input::placeholder { color: var(--faint); }
.search > svg { position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.search kbd { position: absolute; right: 10px; top: 11px; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 22px; min-width: 22px; text-align: center; padding: 0 6px; border-radius: 6px; color: var(--faint); box-shadow: 0 0 0 1px var(--edge-hi) inset; pointer-events: none; }
.search input:focus + kbd, .search input:not(:placeholder-shown) + kbd { display: none; }
.count { margin: 0 0 18px; font-size: 13.5px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }
.card {
  position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px var(--edge) inset; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, var(--edge-hi)) inset, var(--shadow-lg); }
.card .thumb {
  display: block; aspect-ratio: 16 / 10; overflow: hidden; padding: 18px 0 0 18px;
  background: radial-gradient(90% 90% at 100% 0%, var(--accent-soft), transparent 70%), var(--bg-deep);
}
.card .thumb img { width: max(100%, 440px); max-width: none; height: auto; min-height: 100%; object-fit: cover; object-position: top left; border-radius: 8px 0 0 0; box-shadow: 0 0 0 1px var(--edge-hi), 0 8px 24px -8px rgba(0, 0, 0, .45); transition: transform .35s ease; transform-origin: top left; }
.card:hover .thumb img { transform: scale(1.03); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .head { display: flex; align-items: center; gap: 12px; }
.card .head img { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.card h3 { margin: 0; font-size: 16.5px; line-height: 1.25; letter-spacing: -.005em; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::before { content: ""; position: absolute; inset: 0; } /* whole card opens the details */
.card .ver { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.card .actions { display: flex; gap: 6px; align-items: center; position: relative; z-index: 1; }
.card .cat { margin-left: auto; font-size: 11.5px; color: var(--faint); }
.empty { padding: 48px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--edge) inset; }

/* phone */
.phone {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 28px; position: relative; overflow: hidden;
  background: radial-gradient(60% 80% at 85% 50%, var(--glow-a), transparent 70%), var(--card); box-shadow: 0 0 0 1px var(--edge) inset;
}
.phone h2 { margin-bottom: 14px; }
.phone .lead { color: var(--muted); font-size: 17px; margin: 0 0 22px; }
.phone-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 24px; font-size: 14px; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--panel-hi); color: var(--text); }
.pill.soon { color: var(--accent-text); background: var(--accent-soft); box-shadow: 0 0 0 1px rgba(240, 120, 32, .25) inset; }
.also { display: grid; gap: 10px; }
.also a { display: flex; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 12px; background: var(--bg-deep); text-decoration: none; color: var(--text); box-shadow: 0 0 0 1px var(--edge) inset; transition: box-shadow .15s ease, transform .15s ease; }
.also a:hover { box-shadow: 0 0 0 1px var(--edge-hi) inset; transform: translateX(2px); }
.also img { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.also span { flex: 1; min-width: 0; }
.also small { display: block; color: var(--muted); font-size: 13px; }
.also > a > svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
.devices { position: relative; display: flex; justify-content: center; align-items: center; padding: 24px 0; }
.device {
  margin: 0; width: 34%; max-width: 210px; padding: 7px; border-radius: 30px; background: #0B090E; flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 0 0 1px rgba(0, 0, 0, .5), 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.device img { border-radius: 23px; width: 100%; }
.device.d0 { transform: translateX(18%) rotate(-6deg) scale(.88); }
.device.d1 { position: relative; z-index: 1; width: 38%; max-width: 236px; }
.device.d2 { transform: translateX(-18%) rotate(6deg) scale(.88); }

/* install */
.install .steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1040px; position: relative; }
.install .steps::before { content: ""; position: absolute; top: 24px; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, transparent, var(--edge-hi) 15%, var(--edge-hi) 85%, transparent); }
.steps li { text-align: center; position: relative; padding: 0 8px; }
.steps .num {
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 50%; position: relative;
  font: 700 18px/1 var(--head); color: var(--accent-text); background: var(--bg); box-shadow: 0 0 0 1px rgba(240, 120, 32, .35) inset, 0 0 0 6px var(--bg), 0 0 24px rgba(240, 120, 32, .25);
}
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0 auto; color: var(--muted); font-size: 14.5px; max-width: 30ch; }
.install-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.install .fine { text-align: center; color: var(--faint); font-size: 13.5px; margin: 14px 0 0; }

/* ---------- footer ---------- */
.foot { background: var(--bg-deep); box-shadow: 0 -1px 0 var(--edge); padding: 64px 0 0; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.foot-brand p { margin: 14px 0 18px; max-width: 30ch; line-height: 1.55; }
.foot h2 { font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text); margin: 6px 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.foot nav a, .foot-bar a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.foot nav a:hover, .foot-bar a:hover { color: var(--text); }
.foot .tag { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--panel-hi); color: var(--muted); }
.foot .tag.soon { background: var(--accent-soft); color: var(--accent-text); }
.theme-text { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; box-shadow: 0 0 0 1px var(--edge-hi) inset; transition: color .15s ease, background-color .15s ease; }
.theme-text:hover { color: var(--text); background: var(--card); }
.theme-text svg { width: 15px; height: 15px; }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px 0 32px; box-shadow: 0 -1px 0 var(--edge); font-size: 13.5px; }
.foot-bar p { margin: 0; }
.totop { display: inline-flex; align-items: center; gap: 6px; }
.totop svg { width: 14px; height: 14px; }

/* ---------- details dialog ---------- */
dialog.app {
  width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px;
  background: var(--bg); color: var(--text); box-shadow: 0 0 0 1px var(--edge-hi), var(--shadow-lg); overflow: hidden;
}
dialog.app::backdrop { background: rgba(10, 8, 14, .62); backdrop-filter: blur(4px); }
dialog.app .scroll { max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain; }
.d-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px 18px 24px; position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); z-index: 2; box-shadow: 0 1px 0 var(--edge); }
.d-head img { width: 44px; height: 44px; border-radius: 10px; }
.d-head h2 { font-size: 22px; margin: 0; }
.d-head .sub { color: var(--muted); font-size: 13.5px; }
.d-head .close { margin-left: auto; flex: none; }
.d-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; padding: 24px; }
.gallery .main { border-radius: 12px; overflow: hidden; background: var(--card); display: grid; place-items: center; max-height: 560px; box-shadow: 0 0 0 1px var(--edge) inset; }
.gallery .main img { max-height: 560px; width: auto; max-width: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery .thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--card); cursor: pointer; width: 96px; height: 64px; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.d-side .tag { font-size: 17px; margin: 0 0 14px; }
.d-side ul.ticks li::before { content: ""; flex: none; width: 9px; height: 5px; margin: 7px 3px 0 2px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.d-side .dl { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.d-side .fine { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.d-side .new { background: var(--card); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 14px; box-shadow: 0 0 0 1px var(--edge) inset; }
.d-side .note { background: var(--panel-hi); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-top: 12px; }

/* ---------- narrower screens ---------- */
@media (max-width: 1080px) {
  .top nav a { padding: 8px 9px; }
  .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .top nav { display: none; }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .phone, .d-body { grid-template-columns: minmax(0, 1fr); }
  .install .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 440px; }
  .install .steps::before { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .top .wrap { gap: 8px; }
  .top-cta { display: none; }
  .hero h1 { letter-spacing: -.025em; }
  .badge { font-size: 12px; padding: 5px 12px; gap: 8px; }
  .cta .btn { flex: 1 1 100%; }
  .why-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .why-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
  .why-ic { grid-row: span 2; margin: 0; }
  .feat-text { padding: 24px 22px 20px; }
  .feat h3 { font-size: 21px; }
  .feat-shot { margin-left: 22px; height: 220px; }
  .feat-shot img { width: max(100%, 520px); }
  .win { border-radius: 10px; }
  .win-bar { height: 28px; font-size: 11.5px; }
  .win-ctl svg { width: 34px; padding: 9px 12px; }
  .search { flex: 1 1 100%; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .phone { padding: 28px 20px; border-radius: 20px; }
  .device { padding: 5px; border-radius: 22px; width: 36%; }
  .device.d1 { width: 42%; }
  .device img { border-radius: 18px; }
  .install-cta .btn { flex: 1 1 100%; }
  .foot { padding-top: 48px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  dialog.app { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  dialog.app .scroll { max-height: 100vh; }
  .d-body { padding: 16px; }
  .gallery .thumbs button { width: 72px; height: 48px; }
}

/* the hidden attribute always wins (category tabs, search, empty message) */
[hidden] { display: none !important; }
