/* ARCH marketing site. Brand tokens: ARCH brand kit v1.0. Ion is the one accent; it glows. */
@font-face { font-family: "Geist"; src: url("../fonts/geist-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --black: #07080A; --obsidian: #0B0C0F; --canvas: #111216; --onyx: #17191E; --onyx-2: #1F2228; --onyx-3: #2A2D35;
  --line: rgba(236, 236, 234, .09); --line-2: rgba(236, 236, 234, .16);
  --chalk: #ECECEA; --chalk-2: #C9CACD; --muted: #8E929C;
  --ion: #3DD9F5; --ion-2: #7CE7FA; --ion-ink: #031B21; --ion-a: rgba(61, 217, 245, .14); --ion-glow: rgba(61, 217, 245, .55);
  --amber: #F5B83D; --red: #F26B5B; --green: #4ADE9B;
  --r-s: 8px; --r-m: 14px; --r-l: 22px; --r-xl: 30px;
  --wrap: 1240px; --gutter: clamp(16px, 4vw, 40px);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --t-hero: clamp(2.6rem, 1.4rem + 5.6vw, 6.4rem);
  --t-1: clamp(2rem, 1.3rem + 2.8vw, 3.6rem);
  --t-2: clamp(1.45rem, 1.15rem + 1.2vw, 2.1rem);
  --t-3: 1.2rem;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; overflow-x: clip; }
body { margin: 0; background: var(--obsidian); color: var(--chalk); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 620; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: var(--t-1); }
h3 { font-size: var(--t-3); letter-spacing: -.01em; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--ion); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--chalk); color: var(--obsidian); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.ion { color: var(--ion); }
.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .2s ease, background .2s, box-shadow .3s; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.02rem; }
.btn-ion { background: var(--ion); color: var(--ion-ink); box-shadow: 0 0 0 0 var(--ion-glow), 0 10px 40px -10px var(--ion-glow); animation: btnPulse 3.2s ease-in-out infinite; }
.btn-ion:hover { background: var(--ion-2); transform: translateY(-1px); }
.btn-ghost { color: var(--chalk); border-color: var(--line-2); background: rgba(255,255,255,.03); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(61,217,245,.5); }
@keyframes btnPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61,217,245,.0), 0 10px 40px -12px var(--ion-glow); } 50% { box-shadow: 0 0 0 6px rgba(61,217,245,.12), 0 14px 60px -10px var(--ion-glow); } }
.play { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--chalk); color: var(--obsidian); font-size: 9px; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.scrolled, .top.solid { background: rgba(11, 12, 15, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--chalk); }
.brand svg { width: 86px; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { position: relative; padding: 8px 12px; border-radius: 999px; color: var(--chalk-2); text-decoration: none; font-size: .93rem; transition: color .2s, background .2s; }
.nav a:hover { color: var(--chalk); background: rgba(255,255,255,.05); }
.nav a[aria-current="page"] { color: var(--chalk); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--ion); box-shadow: 0 0 12px var(--ion); }
.top-actions { display: flex; align-items: center; gap: 14px; }
.signin { color: var(--chalk-2); text-decoration: none; font-size: .93rem; }
.signin:hover { color: var(--chalk); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--chalk); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; transition: transform .25s; }
@media (max-width: 1020px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; padding: 12px var(--gutter) 24px; background: rgba(11,12,15,.97); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s ease; }
  .nav.open { transform: none; }
  .nav a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .top-actions .signin { display: none; }
}
@media (max-width: 480px) { .top-actions .btn { padding: 0 16px; min-height: 42px; font-size: .88rem; } .brand svg { width: 74px; } }

/* ---------- glow system ---------- */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(60px); background: radial-gradient(circle, rgba(61,217,245,.55), rgba(61,217,245,0) 65%); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .45; transform: scale(.92); } 50% { opacity: .9; transform: scale(1.08); } }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ion); box-shadow: 0 0 0 0 var(--ion-glow); animation: dot 2s infinite; display: inline-block; }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(61,217,245,.7); } 70% { box-shadow: 0 0 0 10px rgba(61,217,245,0); } 100% { box-shadow: 0 0 0 0 rgba(61,217,245,0); } }
.grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(236,236,234,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(236,236,234,.04) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; transform: scale(calc(1 + var(--hp, 0) * .12)); transform-origin: 50% 40%; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,8,10,.55) 0%, rgba(7,8,10,.15) 35%, rgba(7,8,10,.65) 72%, var(--obsidian) 100%),
              radial-gradient(ellipse at 20% 80%, rgba(7,8,10,.7), transparent 60%); }
.hero-fallback { background: radial-gradient(ellipse at 70% 30%, #16303a, #0b0c0f 60%); }
.hero-inner { position: relative; padding-block: 140px clamp(56px, 9vh, 110px); width: 100%; opacity: calc(1 - var(--hp, 0) * 1.4); transform: translateY(calc(var(--hp, 0) * -60px)); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(61,217,245,.08); border: 1px solid rgba(61,217,245,.28);
  color: var(--ion-2); font-size: .85rem; font-weight: 550; letter-spacing: .01em; backdrop-filter: blur(6px); }
.hero h1 { font-size: var(--t-hero); line-height: .95; letter-spacing: -.045em; margin-top: 22px; max-width: 12ch; }
.hero h1 .shine { background: linear-gradient(100deg, var(--chalk) 30%, var(--ion-2) 48%, var(--chalk) 66%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.hero .lede { margin-top: 24px; max-width: 40rem; font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); color: var(--chalk-2); line-height: 1.55; }
.acronym { margin-top: 18px; font: 500 .9rem var(--mono); color: var(--muted); letter-spacing: .02em; }
.acronym b { color: var(--ion); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-chips { position: absolute; right: var(--gutter); bottom: clamp(56px, 9vh, 110px); display: grid; gap: 12px; width: min(320px, 30vw); }
.chip-card { padding: 14px 16px; border-radius: 16px; background: rgba(17,18,22,.62); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); animation: floaty 7s ease-in-out infinite; }
.chip-card:nth-child(2) { animation-delay: -2.3s; margin-left: 28px; }
.chip-card:nth-child(3) { animation-delay: -4.6s; }
.chip-card small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; }
.chip-card strong { display: block; font-size: .98rem; margin-top: 4px; font-weight: 580; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 980px) { .hero-chips { display: none; } }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 22px; height: 36px; border: 1.5px solid var(--line-2); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: var(--ion); transform: translateX(-50%); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* page hero (inner pages) */
.phero { position: relative; overflow: hidden; isolation: isolate; padding: 150px 0 90px; }
.phero .bgimg { position: absolute; inset: 0; z-index: -2; }
.phero .bgimg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; transform: scale(calc(1.05 + var(--hp, 0) * .1)); }
.phero .bgimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,15,.6), var(--obsidian) 92%); }
.phero h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); line-height: .98; letter-spacing: -.04em; max-width: 14ch; margin-top: 20px; }
.phero .lede { margin-top: 22px; max-width: 42rem; font-size: 1.2rem; color: var(--chalk-2); }

/* ---------- marquee ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--black); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font-size: 1.05rem; color: var(--chalk-2); white-space: nowrap; }
.marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ion); box-shadow: 0 0 10px var(--ion); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section.tight { padding: clamp(60px, 8vw, 100px) 0; }
.section.alt { background: var(--black); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { margin-top: 18px; font-size: 1.15rem; color: var(--chalk-2); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--ion); font: 600 .88rem var(--sans); margin-bottom: 16px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--ion); box-shadow: 0 0 10px var(--ion); border-radius: 2px; }
.lead-big { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 3rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 560; max-width: 24ch; }
.lead-big em { font-style: normal; color: var(--ion); text-shadow: 0 0 24px rgba(61,217,245,.5); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), filter .9s; transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(.94); }
.no-js [data-reveal] { opacity: 1; transform: none; filter: none; }

/* ---------- glow cards / bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.card { position: relative; border-radius: var(--r-l); background: linear-gradient(180deg, var(--onyx), var(--canvas)); border: 1px solid var(--line); padding: 28px; overflow: hidden; isolation: isolate; text-decoration: none; color: inherit; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(61,217,245,.14), transparent 45%); }
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(61,217,245,.3); }
.card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--chalk-2); }
.card .more { display: inline-flex; margin-top: 18px; color: var(--ion); font-weight: 600; font-size: .95rem; text-decoration: none; }
.b-2 { grid-column: span 2; } .b-3 { grid-column: span 3; } .b-4 { grid-column: span 4; } .b-6 { grid-column: span 6; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .b-2, .b-3, .b-4 { grid-column: span 1; } .b-6, .b-wide { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .b-2, .b-3, .b-4, .b-6, .b-wide { grid-column: span 1; } }
.card-photo { padding: 0; min-height: 360px; display: flex; align-items: flex-end; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.card-photo:hover img { transform: scale(1.05); }
.card-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(7,8,10,.92)); }
.card-photo .cap { padding: 28px; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: rgba(61,217,245,.08); border: 1px solid rgba(61,217,245,.25); color: var(--ion); box-shadow: 0 0 30px -6px rgba(61,217,245,.5) inset; }
.icon svg { width: 22px; height: 22px; }

/* ---------- stat band (facts) ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--canvas); }
.fact { padding: 30px 28px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: none; }
.fact .num { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--chalk); }
.fact .num .u { color: var(--ion); }
.fact p { margin-top: 10px; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(2) { border-right: none; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- story (sticky scroll) ---------- */
.story { display: grid; grid-template-columns: 1fr minmax(300px, 400px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-steps { display: grid; gap: 0; }
.story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s; }
.story-step.active { opacity: 1; }
.story-step .n { font: 600 .9rem var(--mono); color: var(--ion); margin-bottom: 14px; }
.story-step h3 { font-size: var(--t-2); line-height: 1.1; letter-spacing: -.025em; }
.story-step p { margin-top: 16px; font-size: 1.12rem; color: var(--chalk-2); max-width: 32rem; }
.story-stick { position: sticky; top: 110px; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } .story-stick { position: relative; top: 0; order: -1; } .story-step { min-height: auto; padding: 28px 0; opacity: 1; } }

/* ---------- phone ---------- */
.phone { position: relative; width: 100%; max-width: 380px; margin-inline: auto; aspect-ratio: 9 / 18.6; border-radius: 48px; padding: 12px; background: linear-gradient(145deg, #2c2f37, #121318);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 90px -30px rgba(0,0,0,.9), 0 0 80px -20px rgba(61,217,245,.45); }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; border-radius: 20px; background: #000; transform: translateX(-50%); z-index: 3; }
.phone-glow { position: absolute; inset: -60px; z-index: -1; }
.screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--canvas); font-size: 13px; line-height: 1.4; }
.screen-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px 6px; font: 600 12px var(--sans); color: var(--chalk); }
.app-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.app-bar strong { font-size: 15px; }
.app-bar small { color: var(--muted); font-size: 11px; display: block; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; padding: 4px 9px; border-radius: 999px; background: rgba(74,222,155,.1); color: var(--green); border: 1px solid rgba(74,222,155,.25); }
.status-pill.off { background: rgba(245,184,61,.1); color: var(--amber); border-color: rgba(245,184,61,.3); }
.app-tabs { display: flex; gap: 6px; padding: 10px 12px; }
.app-tabs button { flex: 1; padding: 8px 6px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--chalk-2); font: 600 12px var(--sans); cursor: pointer; }
.app-tabs button[aria-selected="true"] { background: rgba(61,217,245,.12); color: var(--ion); border-color: rgba(61,217,245,.4); }
.app-body { position: absolute; inset: 132px 0 0 0; overflow-y: auto; padding: 4px 12px 16px; scrollbar-width: none; }
.app-body::-webkit-scrollbar { display: none; }
.story-screen { position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s, transform .5s; padding: 70px 14px 16px; }
.story-screen.on { opacity: 1; transform: none; }

/* phone demo bits */
.d-input { width: 100%; min-height: 64px; resize: none; border-radius: 12px; border: 1px solid var(--line-2); background: var(--black); color: var(--chalk); padding: 10px 12px; font: 13px/1.4 var(--sans); }
.d-input:focus { outline: none; border-color: var(--ion); box-shadow: 0 0 0 3px rgba(61,217,245,.15); }
.d-row { display: flex; gap: 8px; margin-top: 8px; }
.d-btn { flex: 1; min-height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--onyx-2); color: var(--chalk); font: 600 12.5px var(--sans); cursor: pointer; }
.d-btn.ion { background: var(--ion); color: var(--ion-ink); border-color: var(--ion); }
.d-btn.listening { background: rgba(242,107,91,.15); color: var(--red); border-color: rgba(242,107,91,.5); animation: listen 1.2s infinite; }
@keyframes listen { 50% { box-shadow: 0 0 0 5px rgba(242,107,91,.15); } }
.d-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.d-sugg button { border: 1px dashed rgba(61,217,245,.35); background: rgba(61,217,245,.05); color: var(--ion-2); border-radius: 999px; padding: 5px 10px; font: 500 11px var(--sans); cursor: pointer; text-align: left; }
.d-note { margin-top: 8px; padding: 9px 11px; border-radius: 10px; background: var(--onyx); border-left: 3px solid var(--ion); animation: noteIn .45s cubic-bezier(.2,.8,.2,1); }
.d-note.defect { border-left-color: var(--red); } .d-note.dimension { border-left-color: var(--green); } .d-note.general { border-left-color: var(--muted); }
.d-note b { display: block; font-size: 11.5px; } .d-note span { color: var(--chalk-2); font-size: 12px; }
@keyframes noteIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.d-label { font-size: 11px; color: var(--muted); margin: 14px 2px 6px; display: flex; justify-content: space-between; }
.d-report { margin-top: 6px; border-radius: 12px; background: #fff; color: #15161a; padding: 10px; font-size: 11px; }
.d-report table { width: 100%; border-collapse: collapse; }
.d-report td, .d-report th { border: 1px solid #c9ccd2; padding: 4px 5px; text-align: left; vertical-align: top; }
.d-report th { background: #fff1b3; font-weight: 700; }
.d-report .fill { animation: fill 1s ease; background: #e6fafe; }
@keyframes fill { from { background: #3dd9f5; } }
.snd-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.snd-tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: 10.5px; padding: 4px; }
.snd-tbl td { padding: 3px 4px; border-top: 1px solid var(--line); }
.snd-tbl input { width: 64px; background: var(--black); border: 1px solid var(--line-2); border-radius: 7px; color: var(--chalk); padding: 5px 6px; font: 12px var(--mono); }
.snd-tbl input:focus { outline: none; border-color: var(--ion); }
.chg { font: 600 11.5px var(--mono); }
.chg.scour { color: var(--red); } .chg.acc { color: var(--amber); } .chg.ok { color: var(--muted); }
.chart-box { margin-top: 10px; border-radius: 12px; background: var(--black); border: 1px solid var(--line); padding: 8px; }

/* try-it section */
.tryit { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 900px) { .tryit { grid-template-columns: 1fr; } }
.try-points { display: grid; gap: 18px; margin-top: 30px; }
.try-points li { list-style: none; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.try-points ul { padding: 0; margin: 0; }
.try-points .k { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(61,217,245,.1); color: var(--ion); font: 600 .85rem var(--mono); border: 1px solid rgba(61,217,245,.25); }
.try-points b { display: block; margin-bottom: 2px; }
.try-points span { color: var(--chalk-2); }

/* ---------- dashboard ---------- */
.dash { position: relative; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: linear-gradient(180deg, #14161b, #0e0f12); padding: clamp(16px, 2.4vw, 26px);
  box-shadow: 0 60px 120px -50px rgba(0,0,0,.9), 0 0 120px -40px rgba(61,217,245,.35); }
.dash-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-title { display: flex; align-items: center; gap: 12px; }
.dash-title strong { font-size: 1.05rem; }
.sample { font: 600 .7rem var(--sans); letter-spacing: .03em; padding: 4px 9px; border-radius: 999px; background: rgba(245,184,61,.1); color: var(--amber); border: 1px solid rgba(245,184,61,.3); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--black); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--chalk-2); padding: 7px 14px; border-radius: 9px; font: 600 .85rem var(--sans); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--onyx-3); color: var(--chalk); box-shadow: 0 0 0 1px rgba(61,217,245,.35), 0 0 18px -4px rgba(61,217,245,.6); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { border-radius: 16px; background: var(--onyx); border: 1px solid var(--line); padding: 16px 18px; }
.kpi small { color: var(--muted); font-size: .82rem; }
.kpi .v { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: .8rem; margin-top: 2px; color: var(--green); }
.kpi .d.bad { color: var(--red); }
.spark { height: 34px; margin-top: 8px; }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-top: 12px; }
.panel { border-radius: 16px; background: var(--onyx); border: 1px solid var(--line); padding: 16px 18px; position: relative; }
.panel h4 { font-size: .92rem; font-weight: 600; letter-spacing: -.005em; display: flex; justify-content: space-between; align-items: center; }
.panel h4 small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.chart { width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.chart text { fill: var(--muted); font: 500 11px var(--sans); }
.chart .gridl { stroke: rgba(236,236,234,.06); }
.chart .area { fill: url(#ionFade); }
.chart .line { fill: none; stroke: var(--ion); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(61,217,245,.7)); stroke-linecap: round; stroke-linejoin: round; }
.chart .line2 { fill: none; stroke: rgba(236,236,234,.35); stroke-width: 1.5; stroke-dasharray: 4 5; }
.chart .bar { fill: var(--ion); transition: height .8s cubic-bezier(.2,.8,.2,1), y .8s cubic-bezier(.2,.8,.2,1); }
.chart .bar.dim { fill: #2b5560; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .dotp { fill: var(--obsidian); stroke: var(--ion); stroke-width: 2; }
.tip { position: absolute; pointer-events: none; z-index: 5; padding: 8px 10px; border-radius: 10px; background: rgba(11,12,15,.95); border: 1px solid rgba(61,217,245,.4); font-size: .8rem; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .15s; box-shadow: 0 10px 30px -10px #000; }
.tip.on { opacity: 1; }
.tip b { color: var(--ion); }
.donut-wrap { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: center; margin-top: 10px; }
.legend { display: grid; gap: 7px; font-size: .82rem; }
.legend span { display: flex; align-items: center; gap: 8px; color: var(--chalk-2); }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--chalk); font-weight: 600; }
.heat { display: grid; grid-template-columns: 90px repeat(8, 1fr); gap: 4px; margin-top: 12px; font-size: .74rem; }
.heat div { height: 24px; border-radius: 5px; display: grid; place-items: center; color: var(--chalk); font-variant-numeric: tabular-nums; }
.heat .nm { justify-content: start; color: var(--chalk-2); place-items: center start; }
.dash-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 980px) { .kpis { grid-template-columns: 1fr 1fr; } .dash-grid, .dash-row3 { grid-template-columns: 1fr; } }
.list-rows { margin-top: 10px; display: grid; gap: 8px; }
.list-rows div { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 10px; background: var(--black); font-size: .84rem; }
.list-rows small { color: var(--muted); display: block; font-size: .74rem; }
.tag { font: 600 .72rem var(--sans); padding: 3px 8px; border-radius: 999px; }
.tag.r { background: rgba(242,107,91,.12); color: var(--red); } .tag.a { background: rgba(245,184,61,.12); color: var(--amber); } .tag.g { background: rgba(74,222,155,.12); color: var(--green); }
.bars-h { display: grid; gap: 9px; margin-top: 12px; }
.bars-h div { display: grid; grid-template-columns: 120px 1fr 34px; gap: 10px; align-items: center; font-size: .82rem; color: var(--chalk-2); }
.bars-h i { display: block; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--ion), #1d8ea3); box-shadow: 0 0 12px rgba(61,217,245,.45); width: 0; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.bars-h b { text-align: right; font-variant-numeric: tabular-nums; color: var(--chalk); font-weight: 600; }

/* ---------- AI demo ---------- */
.ai-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 920px) { .ai-wrap { grid-template-columns: 1fr; } }
.ai-panel { position: relative; border-radius: var(--r-xl); padding: 22px; background: linear-gradient(180deg, #13161b, #0d0e11); border: 1px solid var(--line-2); overflow: hidden; }
.ai-panel::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 0;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(61,217,245,.9) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
.ai-panel > * { position: relative; z-index: 1; }
.ai-step { border-radius: 14px; background: var(--onyx); border: 1px solid var(--line); padding: 14px 16px; margin-top: 12px; }
.ai-step small { color: var(--muted); font-size: .78rem; display: flex; align-items: center; gap: 8px; }
.ai-step .txt { margin-top: 6px; font-size: .95rem; min-height: 1.5em; }
.ai-step .cur::after { content: "▍"; color: var(--ion); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-actions { display: flex; gap: 8px; margin-top: 12px; }
.ai-actions span { padding: 7px 14px; border-radius: 9px; font: 600 .82rem var(--sans); border: 1px solid var(--line-2); color: var(--chalk-2); }
.ai-actions .acc { background: var(--ion); color: var(--ion-ink); border-color: var(--ion); }
.ai-actions .acc.pressed { animation: press .6s ease; }
@keyframes press { 40% { transform: scale(.92); box-shadow: 0 0 0 6px rgba(61,217,245,.25); } }
.ai-mark { display: inline-flex; gap: 6px; align-items: center; font-size: .72rem; padding: 3px 8px; border-radius: 999px; background: rgba(61,217,245,.1); color: var(--ion); border: 1px solid rgba(61,217,245,.3); }
.rules-list { display: grid; gap: 14px; margin-top: 30px; padding: 0; }
.rules-list li { list-style: none; display: flex; gap: 14px; align-items: flex-start; color: var(--chalk-2); }
.rules-list li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 3px; background: radial-gradient(circle, var(--ion) 0 35%, rgba(61,217,245,.15) 40%); box-shadow: 0 0 14px rgba(61,217,245,.5); }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-in, .calc-out { border-radius: var(--r-l); border: 1px solid var(--line); background: var(--canvas); padding: clamp(20px, 3vw, 34px); }
.calc-out { background: radial-gradient(ellipse at 80% 0%, rgba(61,217,245,.16), transparent 60%), var(--canvas); border-color: rgba(61,217,245,.25); position: relative; overflow: hidden; }
.slider { margin-top: 22px; }
.slider label { display: flex; justify-content: space-between; font-size: .95rem; color: var(--chalk-2); }
.slider label b { color: var(--chalk); font-variant-numeric: tabular-nums; font-weight: 600; }
.slider input[type=range] { width: 100%; margin-top: 12px; accent-color: var(--ion); height: 6px; }
.big-out { font-size: clamp(3rem, 2rem + 4vw, 5.4rem); font-weight: 620; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(61,217,245,.35); }
.big-out .u { font-size: .4em; color: var(--ion); letter-spacing: -.01em; margin-left: 6px; }
.out-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.out-row div { padding: 16px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.out-row strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; display: block; }
.out-row small { color: var(--muted); }
.fine { margin-top: 18px; font-size: .82rem; color: var(--muted); }

/* ---------- gallery ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 14px; }
.mosaic figure { margin: 0; position: relative; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--onyx); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0)) scale(1.12); transition: transform .1s linear; }
.mosaic figcaption { position: absolute; left: 14px; bottom: 12px; font-size: .82rem; padding: 6px 10px; border-radius: 999px; background: rgba(7,8,10,.7); backdrop-filter: blur(8px); }
.m1 { grid-column: span 7; grid-row: span 4; } .m2 { grid-column: span 5; grid-row: span 2; } .m3 { grid-column: span 5; grid-row: span 2; }
.m4 { grid-column: span 4; grid-row: span 3; } .m5 { grid-column: span 4; grid-row: span 3; } .m6 { grid-column: span 4; grid-row: span 3; }
@media (max-width: 820px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .mosaic figure { grid-column: span 1 !important; grid-row: span 2 !important; } .m1 { grid-column: span 2 !important; } }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.split h2 { font-size: var(--t-2); line-height: 1.1; }
.split p.body { margin-top: 18px; color: var(--chalk-2); font-size: 1.1rem; max-width: 34rem; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--chalk-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 6px; border-left: 2px solid var(--ion); border-bottom: 2px solid var(--ion); transform: rotate(-45deg); filter: drop-shadow(0 0 4px var(--ion)); }
.photo-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4 / 3; box-shadow: 0 50px 100px -40px #000; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1) translateY(var(--py, 0)); }
.photo-frame .float-ui { position: absolute; right: 16px; bottom: 16px; max-width: 260px; padding: 12px 14px; border-radius: 14px; background: rgba(11,12,15,.82); border: 1px solid rgba(61,217,245,.35); backdrop-filter: blur(12px); font-size: .85rem; box-shadow: 0 0 30px -8px rgba(61,217,245,.5); }
.photo-frame .float-ui b { display: block; color: var(--ion); font-size: .78rem; margin-bottom: 3px; }

/* mock UI windows */
.window { border-radius: var(--r-l); border: 1px solid var(--line-2); background: var(--canvas); overflow: hidden; box-shadow: 0 50px 100px -40px #000, 0 0 90px -40px rgba(61,217,245,.35); }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--onyx); font-size: .82rem; color: var(--muted); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--onyx-3); display: inline-block; }
.win-body { padding: 18px; }
.mock-field { margin-top: 12px; }
.mock-field label { font-size: .78rem; color: var(--muted); display: block; margin-bottom: 6px; }
.mock-field .box { border-radius: 10px; border: 1px solid var(--line-2); background: var(--black); padding: 10px 12px; font-size: .92rem; min-height: 40px; }
.mock-field .box.focus { border-color: var(--ion); box-shadow: 0 0 0 3px rgba(61,217,245,.15); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips span { font-size: .76rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--chalk-2); }
.prev-box { margin-top: 12px; border-radius: 10px; border: 1px dashed rgba(236,236,234,.18); padding: 10px 12px; font-size: .84rem; color: var(--chalk-2); }
.prev-box b { color: var(--muted); font-size: .74rem; display: block; margin-bottom: 4px; font-weight: 600; }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.check-row:first-child { border-top: 0; }
.check-row .tag { flex: none; }

/* formats grid */
.formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.formats div { padding: 16px 18px; border-radius: 14px; background: var(--canvas); border: 1px solid var(--line); font-size: .95rem; display: flex; gap: 12px; align-items: center; transition: border-color .3s, transform .3s; }
.formats div:hover { border-color: rgba(61,217,245,.4); transform: translateY(-2px); }
.formats div::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ion); box-shadow: 0 0 10px var(--ion); flex: none; }

/* map mock */
.mapmock { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 10; background: radial-gradient(ellipse at 40% 50%, #12262d, #0a0b0e 70%); border: 1px solid var(--line-2); }
.mapmock svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapmock .route { fill: none; stroke: rgba(61,217,245,.55); stroke-width: 2.5; stroke-dasharray: 6 8; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -600; } }
.pin { fill: var(--ion); filter: drop-shadow(0 0 6px var(--ion)); }
.pin-ring { fill: none; stroke: var(--ion); stroke-width: 2; transform-origin: center; transform-box: fill-box; animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(2.6); } }
.pin.amber { fill: var(--amber); filter: drop-shadow(0 0 6px var(--amber)); } .pin.red { fill: var(--red); filter: drop-shadow(0 0 6px var(--red)); }

/* security / faq / contact */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: 1fr; } }
.faq-list { max-width: 860px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 50px 24px 0; position: relative; font-size: 1.15rem; font-weight: 580; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; color: var(--ion); transition: transform .3s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 0 26px; color: var(--chalk-2); max-width: 46rem; font-size: 1.05rem; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 16px; border-radius: var(--r-xl); padding: clamp(20px, 3vw, 34px); background: var(--canvas); border: 1px solid var(--line-2); box-shadow: 0 0 100px -40px rgba(61,217,245,.4); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 8px; font-size: .92rem; color: var(--chalk-2); }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; color: var(--chalk); background: var(--black); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; min-height: 50px; width: 100%; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ion); box-shadow: 0 0 0 4px rgba(61,217,245,.15); }
.form .consent { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.form .consent input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--ion); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(40px, 7vw, 90px); text-align: center; isolation: isolate;
  background: radial-gradient(ellipse at 50% 120%, rgba(61,217,245,.35), transparent 60%), linear-gradient(180deg, #121419, #0b0c0f); border: 1px solid rgba(61,217,245,.25); }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { margin: 20px auto 0; max-width: 36rem; color: var(--chalk-2); font-size: 1.15rem; }
.cta-band .cta-row { justify-content: center; }
.cta-band .ringbg { position: absolute; left: 50%; top: 100%; width: 900px; height: 900px; transform: translate(-50%, -50%); z-index: -1; border-radius: 50%; border: 1px solid rgba(61,217,245,.18);
  box-shadow: 0 0 0 80px rgba(61,217,245,.025), 0 0 0 160px rgba(61,217,245,.02); animation: breathe 6s ease-in-out infinite; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--black); padding: 70px 0 40px; color: var(--muted); font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h4 { color: var(--chalk); font-size: .95rem; margin-bottom: 14px; font-weight: 600; letter-spacing: 0; }
.foot a { color: var(--chalk-2); text-decoration: none; display: block; padding: 4px 0; }
.foot a:hover { color: var(--ion); }
.foot .brand svg { width: 92px; margin-bottom: 16px; }
.foot-base { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }

/* progress bar */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 40; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, var(--ion), var(--ion-2)); box-shadow: 0 0 12px var(--ion); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .hero-media, .hero-inner { transform: none !important; opacity: 1 !important; }
}

/* keep glows and side reveals inside the page on every screen */
.section, .phero, .hero, .marquee { overflow-x: clip; }
@media (max-width: 900px) { [data-reveal="left"], [data-reveal="right"] { transform: translateY(34px); } }

/* ---------- phone app chrome (matches the ARCH app) ---------- */
.screen { display: flex; flex-direction: column; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 15px 26px 4px; font: 600 12px var(--sans); color: var(--chalk); flex: none; }
.ph-status .ic { display: flex; gap: 5px; align-items: center; }
.ph-status .ic i { display: block; width: 16px; height: 9px; border: 1.5px solid var(--chalk); border-radius: 3px; position: relative; }
.ph-status .ic i::after { content: ""; position: absolute; inset: 1px 4px 1px 1px; background: var(--chalk); border-radius: 1px; }
.ph-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 8px; flex: none; }
.ph-head svg { width: 54px; color: var(--chalk); }
.ph-head small { display: block; font: 500 9px var(--mono); color: var(--muted); margin-top: 3px; }
.ph-exam { display: flex; gap: 8px; align-items: center; padding: 8px 14px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); flex: none; }
.ph-back { font: 600 10.5px var(--sans); padding: 6px 8px; border-radius: 8px; background: var(--onyx-2); color: var(--chalk-2); white-space: nowrap; }
.ph-exam strong { display: block; font-size: 13px; line-height: 1.2; }
.ph-exam small { display: block; color: var(--muted); font-size: 10px; }
.ph-state { margin-left: auto; font: 600 9.5px var(--sans); padding: 3px 7px; border-radius: 999px; background: rgba(124,231,250,.1); color: var(--ion-2); white-space: nowrap; }
.app-tabs { flex: none; padding: 8px 10px 6px; gap: 5px; }
.app-tabs button { padding: 7px 4px; font-size: 11.5px; border-radius: 9px; }
.app-body { position: relative; inset: auto; flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 12px; }
.ph-sync { flex: none; margin: 0 10px 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px 7px 12px; border-radius: 12px; font: 600 10.5px var(--sans);
  background: rgba(74,222,155,.08); color: var(--green); border: 1px solid rgba(74,222,155,.25); }
.ph-sync.waiting { background: rgba(245,184,61,.08); color: var(--amber); border-color: rgba(245,184,61,.3); }
.ph-sync b { padding: 5px 9px; border-radius: 8px; background: var(--ion); color: var(--ion-ink); font-weight: 650; }
.ph-nav { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px 16px; border-top: 1px solid var(--line); background: rgba(11,12,15,.6); }
.ph-nav span { display: grid; justify-items: center; gap: 3px; font: 600 9.5px var(--sans); color: var(--muted); }
.ph-nav span.on { color: var(--ion); }
.ph-nav svg { width: 18px; height: 18px; }
.ph-nav small { font: 500 8.5px var(--sans); color: var(--muted); }
.ph-stage { position: relative; flex: 1; min-height: 0; }
.story-screen { padding: 10px 12px; overflow: hidden; }
.d-sec { margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--onyx); border: 1px solid var(--line); }
.d-sec h5 { margin: 0 0 6px; font-size: 11.5px; font-weight: 650; display: flex; justify-content: space-between; }
.d-sec h5 small { color: var(--muted); font-weight: 500; }
.d-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.d-chips span { font: 600 10px var(--sans); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--chalk-2); }
.d-chips span.on { border-color: rgba(61,217,245,.5); color: var(--ion); background: rgba(61,217,245,.08); }
.d-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 6px; }
.d-photos i { aspect-ratio: 1; border-radius: 7px; background: linear-gradient(135deg, #3a4a52, #1d272c); position: relative; overflow: hidden; }
.d-photos i::after { content: attr(data-n); position: absolute; left: 4px; top: 4px; font: 700 8.5px var(--sans); padding: 1px 5px; border-radius: 5px; background: var(--ion); color: var(--ion-ink); }
.d-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 11px; }
.d-kv dt { color: var(--muted); } .d-kv dd { margin: 0; text-align: right; }
.d-input { min-height: 52px; }
.d-row { margin-top: 6px; }
.d-btn { min-height: 34px; font-size: 12px; }

/* Darker image treatment: visuals sit behind the words, Ion reads clearly on near-black */
.hero-media::after { background:
  linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.5) 35%, rgba(0,0,0,.78) 72%, var(--obsidian) 100%),
  linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.45) 100%) !important; }
.hero-media video, .hero-media img { filter: saturate(.85) brightness(.8); }
.phero .bgimg img, .phero .bgimg video { opacity: .32 !important; filter: saturate(.8); }
.phero .bgimg::after { background: linear-gradient(180deg, rgba(0,0,0,.72), var(--obsidian) 88%); }
.card-photo img { filter: brightness(.72) saturate(.85); }
.card-photo::after { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 45%, rgba(4,5,7,.95)); }
.mosaic img, .photo-frame img { filter: brightness(.68) saturate(.85); }
.mosaic figure::after, .photo-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.6)); }
.mosaic figcaption, .photo-frame .float-ui { z-index: 1; }

/* App shell around illustrative screens: matches the ARCH office layout */
.app-shell { display: grid; grid-template-columns: 208px 1fr; border-radius: var(--r-xl); border: 1px solid var(--line-2); overflow: hidden;
  background: #0d0e11; box-shadow: 0 60px 120px -50px #000, 0 0 0 1px rgba(61,217,245,.06), 0 0 80px -30px rgba(61,217,245,.25); }
.as-side { background: #0a0b0d; border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 14px; font-size: .8rem; }
.as-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 6px; }
.as-brand svg { height: 15px; width: auto; color: var(--chalk); }
.as-brand small { color: var(--muted); font-size: .68rem; }
.as-group { display: grid; gap: 1px; }
.as-group small { color: var(--muted); font-size: .68rem; padding: 0 8px 4px; }
.as-group span { padding: 6px 8px; border-radius: 8px; color: var(--chalk-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-group span.on { background: rgba(61,217,245,.1); color: var(--ion); box-shadow: inset 2px 0 0 var(--ion); }
.as-main { min-width: 0; display: flex; flex-direction: column; }
.as-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.as-search { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #111216; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-bell { position: relative; font-size: .85rem; filter: grayscale(1); }
.as-bell i { position: absolute; top: -6px; right: -8px; font: 650 9px var(--sans); font-style: normal; background: var(--ion); color: var(--ion-ink); border-radius: 999px; padding: 1px 5px; filter: none; }
.as-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #1d2a30; color: var(--ion); font: 650 .7rem var(--sans); }
.as-crumb { padding: 12px 18px 0; color: var(--muted); font-size: .76rem; }
.as-body { padding: 8px 12px 14px; min-width: 0; }
.as-body .dash { border: 0; background: transparent; box-shadow: none; padding: 6px; }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; } .as-side { display: none; } }

/* AI suggestions panel, as the app shows them */
.ai-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ai-head small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.ai-queue { display: grid; gap: 6px; margin-top: 10px; }
.ai-queue div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px dashed var(--line-2); font-size: .8rem; color: var(--chalk-2); }
.ai-queue em { font-style: normal; color: var(--amber); font-size: .74rem; }
.calc-compare { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.calc-compare div { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; font-size: .9rem; color: var(--chalk-2); }
.calc-compare i { grid-column: 1 / -1; grid-row: 2; height: 10px; border-radius: 6px; background: #2a2d34; width: var(--w); }
.calc-compare .arch i { background: var(--ion); box-shadow: 0 0 18px -2px rgba(61,217,245,.7); }
.calc-compare b { font-variant-numeric: tabular-nums; color: var(--chalk); }
.calc-compare .arch b { color: var(--ion); }
.calc-compare p { font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
.ph-stage { overflow: hidden; }
.d-photos i { display: block; background-size: cover; filter: saturate(.85); }
.d-photos figcaption { font-size: 9.5px; color: var(--muted); margin-top: 3px; line-height: 1.25; }
.ph-sync b { white-space: nowrap; }
.ph-sync > span { min-width: 0; }
