/* aCelery Technology — shared styles
   Themes: default (company, follows system light/dark), .theme-acelery, .theme-hifi (always dark). */

:root {
  --bg: #f7f8f4;
  --bg-alt: #eef1e8;
  --surface: #ffffff;
  --ink: #14180f;
  --ink-soft: #4a5243;
  --ink-faint: #7a8371;
  --line: #dde2d4;
  --accent: #1f7a2e;
  --accent-ink: #ffffff;
  --accent-soft: #e2f0dc;
  --hifi: #13c5e3;
  --hifi-deep: #1c2b9d;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 15, .06), 0 8px 30px rgba(20, 24, 15, .08);
  --shadow-lg: 0 30px 80px -20px rgba(20, 24, 15, .35);
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not(.theme-hifi) {
    --bg: #0f120c;
    --bg-alt: #151a11;
    --surface: #1a2015;
    --ink: #eef2e8;
    --ink-soft: #b4bdaa;
    --ink-faint: #858f7a;
    --line: #2a3222;
    --accent: #6cc46f;
    --accent-ink: #0b1408;
    --accent-soft: #1d2d18;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 30px rgba(0, 0, 0, .3);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* HiFi Renderer: always dark, navy + teal */
:root.theme-hifi {
  --bg: #070a1f;
  --bg-alt: #0c1130;
  --surface: #11183d;
  --ink: #eef3ff;
  --ink-soft: #aeb8d8;
  --ink-faint: #7882a8;
  --line: #222c5c;
  --accent: #13c5e3;
  --accent-ink: #04122a;
  --accent-soft: rgba(19, 197, 227, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 30px rgba(0, 0, 0, .4);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--font-mono); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small { font-weight: 500; color: var(--ink-faint); font-size: .95rem; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; margin-right: -8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .brand small { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1rem/1 var(--font); text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn svg { width: 20px; height: 20px; flex: none; }

.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px; text-decoration: none; background: #0b0d0a; color: #fff; border: 1px solid rgba(255,255,255,.14); transition: transform .15s, box-shadow .15s; min-width: 200px; }
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: .72rem; opacity: .8; letter-spacing: .02em; }
.store b { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.store.soon { opacity: .6; cursor: default; }
.store.soon:hover { transform: none; box-shadow: none; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
@media (max-width: 760px) { section { padding: 64px 0; } }
.section-alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font: 600 .8rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-soft); }

/* ---------- Home hero (full-bleed photo, always dark) ---------- */
.photo-hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: center; padding: 96px 0; background: #070a1f; color: #eef3ff; overflow: hidden; }
.photo-hero .hero-bg img { position: absolute; top: 0; right: 0; width: 72%; height: 100%; object-fit: cover; object-position: 72% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%); }
.photo-hero .hero-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,10,31,.7) 0%, rgba(7,10,31,.6) 36%, rgba(7,10,31,.25) 46%, rgba(7,10,31,0) 54%),
              linear-gradient(0deg, rgba(7,10,31,.5) 0%, transparent 18%); }
.photo-hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 500px; }
.photo-hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.7rem); color: #fff; }
.photo-hero h1 em { font-style: normal; background: linear-gradient(100deg, #6cc46f, #13c5e3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.photo-hero .eyebrow { color: #7fd6e6; }
.photo-hero .lead { color: #c3cbe4; }
.photo-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.photo-hero .btn-ghost:hover { background: rgba(255,255,255,.1); }
@media (max-width: 1100px) { .hero-copy { max-width: 430px; } }
@media (max-width: 760px) {
  .photo-hero { flex-direction: column-reverse; align-items: stretch; min-height: 0; padding: 0; }
  .photo-hero .wrap { padding-top: 48px; padding-bottom: 32px; }
  .hero-copy { max-width: none; }
  .photo-hero .hero-bg { position: relative; display: block; }
  .photo-hero .hero-bg img { position: static; width: 100%; height: auto; -webkit-mask-image: none; mask-image: none; }
  .photo-hero .hero-bg::after { background: linear-gradient(180deg, #070a1f 0%, transparent 14%, transparent 86%, var(--bg) 100%); }
}

/* App cards on home */
.app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .app-cards { grid-template-columns: 1fr; } }
.app-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: 28px; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.app-card .media { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.app-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.app-card:hover .media img { transform: scale(1.04); }
.app-card .body { padding: 28px 30px 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.app-card .title { display: flex; align-items: center; gap: 14px; }
.app-card .title img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.app-card h3 { font-size: 1.6rem; margin: 0; }
.app-card .tag { color: var(--ink-faint); font-size: .95rem; margin: 0; }
.app-card p { color: var(--ink-soft); margin: 0; }
.app-card .more { margin-top: auto; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; padding-top: 6px; }
.app-card .more svg { width: 18px; transition: transform .2s; }
.app-card:hover .more svg { transform: translateX(4px); }
.app-card.hifi { background: linear-gradient(160deg, #0c1442, #070a1f 70%); border-color: #222c5c; color: #eef3ff; }
.app-card.hifi p { color: #aeb8d8; }
.app-card.hifi .tag { color: #7882a8; }
.app-card.hifi .more { color: #13c5e3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.app-card.hifi .chips li { background: rgba(19,197,227,.12); color: #13c5e3; }

/* Values grid */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
.value { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.value .ic svg { width: 22px; height: 22px; }
.value p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* ---------- App hero ---------- */
.app-hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.app-hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .app-hero .grid { grid-template-columns: 1fr; } }
.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.app-id img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.app-id div { line-height: 1.25; }
.app-id b { font-family: var(--font-display); font-size: 1.25rem; display: block; }
.app-id span { color: var(--ink-faint); font-size: .92rem; }
.app-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.app-hero .lead { margin-bottom: 32px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--ink-faint); }

/* Device frames */
.phone {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 9 / 19.5;
  border-radius: 44px; padding: 10px; background: #111; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a2a2a;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; background: #000; }
.tablet {
  border-radius: 26px; padding: 12px; background: #111; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a2a2a;
}
.tablet img { border-radius: 16px; width: 100%; }
.hero-devices { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.hero-devices .phone { z-index: 2; }
.hero-devices .phone.back { position: absolute; transform: translate(-58%, -30px) rotate(-6deg) scale(.86); opacity: .95; z-index: 1; }
@media (max-width: 900px) { .hero-devices { min-height: 0; } .hero-devices .phone { max-width: 250px; } .hero-devices .phone.back { display: none; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 112px; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .split + .split { margin-top: 72px; }
}
.split ul.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.split ul.ticks li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.split ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231f7a2e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.theme-hifi .split ul.ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2313c5e3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5'/%3E%3C/svg%3E");
}
.split .phone { margin: 0 auto; }
.phones-pair { display: flex; justify-content: center; align-items: flex-start; gap: 20px; }
.phones-pair .phone { max-width: 250px; }
.phones-pair .phone:nth-child(2) { margin-top: 60px; }
@media (max-width: 560px) { .phones-pair .phone { max-width: 46%; border-radius: 30px; padding: 6px; } .phones-pair .phone img { border-radius: 25px; } }

/* Code block */
.code {
  border-radius: var(--radius); background: #0f1410; color: #dfe8d8; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid #222b22;
}
.code .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #171e17; border-bottom: 1px solid #222b22; font: 500 .8rem var(--font-mono); color: #8a9a86; }
.code .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a453a; display: inline-block; }
.code .bar i:nth-child(1) { background: #ff5f57; } .code .bar i:nth-child(2) { background: #febc2e; } .code .bar i:nth-child(3) { background: #28c840; }
.code .bar span { margin-left: 8px; }
.code pre { margin: 0; padding: 20px 22px; font-size: .84rem; line-height: 1.7; overflow-x: auto; }
.tk-k { color: #ff9e64; } .tk-s { color: #9ece6a; } .tk-f { color: #7dcfff; } .tk-c { color: #6b7a68; font-style: italic; } .tk-t { color: #bb9af7; }

/* Gallery */
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding: 12px max(24px, calc(50vw - var(--max) / 2 + 24px)) 40px; margin: 0 calc(50% - 50vw); scrollbar-width: thin; }
.gallery .phone { box-shadow: 0 18px 40px -18px rgba(0,0,0,.45), inset 0 0 0 2px #2a2a2a; }
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.gallery .phone { width: 240px; max-width: none; border-radius: 36px; padding: 8px; }
.gallery .phone img { border-radius: 28px; }
.gallery figcaption { margin-top: 14px; font-size: .88rem; color: var(--ink-faint); }
@media (max-width: 600px) { .gallery { padding: 12px 16px 28px; } .gallery .phone { width: 200px; } }

/* Callout */
.callout { border-radius: 28px; padding: 56px; background: var(--accent); color: var(--accent-ink); position: relative; overflow: hidden; }
.callout h2 { color: inherit; }
.callout p { opacity: .9; max-width: 620px; }
.callout .stores { margin-top: 28px; }
.callout .store { background: rgba(0,0,0,.85); }
@media (max-width: 600px) { .callout { padding: 36px 24px; border-radius: 22px; } }

.note-box { border-left: 4px solid var(--accent); background: var(--surface); padding: 22px 26px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-soft); }
.note-box strong { color: var(--ink); }

/* ---------- HiFi specifics ---------- */
.hifi-hero { position: relative; padding: 64px 0 88px; overflow: hidden;
  background: radial-gradient(900px 500px at 15% 0%, rgba(28, 43, 157, .45), transparent 70%); }
.hifi-hero .hero-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hifi-hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.5rem); max-width: 14ch; }
.hifi-hero h1 em { font-style: normal; background: linear-gradient(100deg, #13c5e3, #5b8cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hifi-hero .lead { margin-bottom: 24px; }
.hero-shot { margin: 0; }
/* Run the photo off the right edge of the page */
.hero-shot img { width: calc(100% + max(24px, (100vw - var(--max)) / 2 + 24px)); max-width: none; height: auto; border-radius: 28px 0 0 28px; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .hifi-hero { padding: 40px 0 48px; }
  .hifi-hero .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .hero-shot { margin: 0 -24px; }
  .hero-shot img { width: 100%; border-radius: 0; box-shadow: none; }
}
@media (max-width: 600px) { .hero-shot { margin: 0 -16px; } }
.formats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.formats li { font: 600 .82rem var(--font-mono); padding: 7px 12px; border-radius: 8px; background: rgba(19,197,227,.1); border: 1px solid rgba(19,197,227,.3); color: #8ee6f5; }

/* Signal path */
.signal { display: grid; grid-template-columns: repeat(5, auto); align-items: center; justify-content: center; gap: 0; }
.signal .node { text-align: center; padding: 22px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 150px; }
.signal .node.me { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 40px -6px rgba(19,197,227,.5); }
.signal .node svg { width: 30px; height: 30px; color: var(--accent); margin: 0 auto 10px; display: block; }
.signal .node b { display: block; font-family: var(--font-display); }
.signal .node span { font-size: .82rem; color: var(--ink-faint); }
.signal .wire { position: relative; width: 120px; height: 2px; background: linear-gradient(90deg, var(--line), var(--accent)); }
.signal .wire small { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); font: 600 .7rem var(--font-mono); color: var(--accent); white-space: nowrap; }
.signal .wire::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--accent); }
@media (max-width: 860px) {
  .signal { grid-template-columns: 1fr; justify-items: center; }
  .signal .node { width: 100%; max-width: 320px; }
  .signal .wire { width: 2px; height: 44px; background: linear-gradient(180deg, var(--line), var(--accent)); }
  .signal .wire small { top: 50%; left: 14px; transform: translateY(-50%); }
  .signal .wire::after { right: -4px; top: auto; bottom: -2px; border: 5px solid transparent; border-top-color: var(--accent); }
}

.report { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; font-family: var(--font-mono); font-size: .85rem; box-shadow: var(--shadow-lg); }
.report .hd { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--ink-soft); font-weight: 600; }
.report table { width: 100%; border-collapse: collapse; }
.report th, .report td { text-align: left; padding: 10px 18px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.report th { color: var(--ink-faint); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.report tr:last-child td { border-bottom: 0; }
.pass { color: #4ade80; font-weight: 700; }
.fail { color: #fb7185; font-weight: 700; }
@media (max-width: 480px) { .report th, .report td { padding: 10px 12px; } }
.report .cap { padding: 12px 18px; font-family: var(--font); font-size: .78rem; color: var(--ink-faint); border-top: 1px solid var(--line); }

.req { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .req { grid-template-columns: 1fr; } }
.req div { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.req b { display: block; margin-bottom: 4px; }
.req span { color: var(--ink-soft); font-size: .95rem; }

.theme-hifi .phone { box-shadow: var(--shadow-lg), inset 0 0 0 2px #2f3a70; }
.theme-hifi .callout { background: linear-gradient(120deg, #1c2b9d, #0e7fb0 60%, #13c5e3); color: #fff; }

/* ---------- Prose (privacy, guide) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 64px 0 96px; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; padding-top: .4em; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose code { font-size: .88em; background: var(--accent-soft); color: var(--ink); padding: .12em .4em; border-radius: 6px; }
.prose pre { background: #0f1410; color: #dfe8d8; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: .84rem; line-height: 1.65; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose blockquote { margin: 1.2em 0; padding: 4px 20px; border-left: 4px solid var(--accent); }
.prose .updated { color: var(--ink-faint); font-size: .92rem; }

.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; }
.guide-toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding: 64px 0 40px; font-size: .9rem; }
.guide-toc b { display: block; font-family: var(--font-display); margin-bottom: 12px; }
.guide-toc ol { list-style: none; padding: 0; margin: 0 0 18px; }
.guide-toc a { display: block; color: var(--ink-soft); text-decoration: none; padding: 4px 10px; border-radius: 8px; }
.guide-toc a:hover { background: var(--accent-soft); color: var(--ink); }
.guide-layout .prose { margin: 0; max-width: 780px; }
@media (max-width: 960px) { .guide-layout { grid-template-columns: 1fr; gap: 0; } .guide-toc { display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .94rem; color: var(--ink-soft); }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-family: var(--font); font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-faint); font-size: .86rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .app-card, .app-card .media img, .btn, .store { transition: none; }
}

/* ---------- aCelery: Build with AI ---------- */
.ai-callout {
  display: flex; align-items: center; gap: 14px; margin-top: 22px; max-width: 560px;
  padding: 14px 18px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform .15s, box-shadow .15s;
}
.ai-callout:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.ai-callout .spark { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.ai-callout .spark svg { width: 20px; height: 20px; }
.ai-callout span { font-size: .95rem; line-height: 1.45; color: var(--ink-soft); }
.ai-callout b { color: var(--ink); display: block; }
.ai-callout .arrow { flex: none; width: 20px; height: 20px; color: var(--accent); margin-left: auto; transition: transform .2s; }
.ai-callout:hover .arrow { transform: translateX(4px); }

.ai-band {
  --ink: #eef6ea; --ink-soft: #b9c9b2; --ink-faint: #8fa287; --line: rgba(255,255,255,.12);
  --accent: #7fd486; --accent-ink: #0b1408; --accent-soft: rgba(127,212,134,.14);
  background: radial-gradient(900px 500px at 85% 0%, rgba(19,197,227,.12), transparent 70%), linear-gradient(165deg, #0f2a16 0%, #0a1b0f 100%);
  color: var(--ink);
}
.ai-band h2 { color: #fff; }
.ai-band ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ai-band ul.ticks li { position: relative; padding-left: 32px; color: var(--ink-soft); font-size: .95rem; }
.ai-band ul.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237fd486' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; }

.ai-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .ai-grid { grid-template-columns: 1fr; gap: 40px; } }

.chat { border-radius: 22px; background: #f7f8f4; color: #14180f; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); overflow: hidden; }
.chat-hd { display: flex; align-items: center; gap: 8px; padding: 14px 20px; font: 600 .78rem var(--font); letter-spacing: .04em; text-transform: uppercase; color: #5b6652; border-bottom: 1px solid #e3e7dc; background: #fff; }
.chat-hd .dot { width: 8px; height: 8px; border-radius: 50%; background: #28c840; box-shadow: 0 0 0 4px rgba(40,200,64,.18); }
.bubble { margin: 20px; padding: 16px 18px; border-radius: 18px; font-size: .95rem; line-height: 1.6; }
.bubble small { display: block; font: 600 .72rem var(--font); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; opacity: .7; }
.bubble.you { margin-left: 48px; background: #1f7a2e; color: #fff; border-bottom-right-radius: 6px; }
.result { display: flex; gap: 14px; align-items: flex-start; margin: 0 20px 20px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid #e3e7dc; }
.result-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e2f0dc; color: #1f7a2e; }
.result-ic svg { width: 18px; height: 18px; }
.result b { display: block; color: #14180f; line-height: 1.4; }
.result span { display: block; color: #5b6652; font-size: .9rem; margin-top: 4px; }
@media (max-width: 600px) { .bubble { margin: 14px; font-size: .9rem; } .bubble.you { margin-left: 28px; } .result { margin: 0 14px 14px; } }

.ai-side { display: grid; gap: 32px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 800 1rem var(--font-display); background: var(--accent); color: var(--accent-ink); }
.steps b { display: block; font-family: var(--font-display); font-size: 1.08rem; color: #fff; margin-bottom: 2px; }
.steps span { color: var(--ink-soft); font-size: .95rem; }
.ai-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ai-proof .stat { padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.ai-proof b { display: block; font: 800 1.8rem/1.1 var(--font-display); color: var(--accent); letter-spacing: -0.02em; margin-bottom: 6px; }
.ai-proof span { color: var(--ink-soft); font-size: .86rem; line-height: 1.4; display: block; }
.ai-results { margin-top: 88px; }
.ai-results-title { text-align: center; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: #fff; margin-bottom: 40px; }
.ai-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 960px) { .ai-apps { grid-template-columns: 1fr; } }
.ai-app { display: flex; flex-direction: column; padding: 28px 24px 32px; border-radius: 24px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.ai-app-hd { text-align: center; margin-bottom: 28px; }
.ai-app-hd b { display: block; font: 800 1.35rem var(--font-display); color: #fff; }
.ai-app-hd span { color: var(--ink-soft); font-size: .9rem; }
.ai-app .phones-pair .phone { max-width: 220px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.8), inset 0 0 0 2px #2a2a2a; }
.ai-app .phones-pair .phone:nth-child(2) { margin-top: 40px; }
.ai-app .phones-pair { margin-bottom: 28px; }
.ai-prompt { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.ai-prompt summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .95rem; }
.ai-prompt p { margin: 12px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(31,122,46,.35); color: #e8f3e4; font-size: .9rem; line-height: 1.6; }
