/* earluma.com. Identity and motion follow the app's kit (design/ux/README.md):
   light ground, ink text, gold beam, aqua for corrected sound, grey dots for raw.
   Dark mode mirrors the app's dark tokens. No third-party requests. */

@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/Sora-Variable.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
/* metric-matched fallback so the swap to Sora doesn't move the layout */
@font-face {
  font-family: "Sora Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  size-adjust: 104.5%;
  ascent-override: 92.8%;
  descent-override: 27.8%;
  line-gap-override: 0%;
}

:root {
  --ground: #F5F6FA;
  --card: #FFFFFF;
  --card-line: #E6E9F0;
  --fill: #F0F2F7;
  --chip: #E9ECF3;
  --line: #E2E6EE;
  --text: #12161F;
  --text2: #5B6478;
  --text3: #8A93A6;
  --gold: #F5A623;
  --gold-text: #B26A00;
  --gold-soft: #FFF4E0;
  --on-gold: #1A1204;
  --aqua: #13A3B8;
  --aqua-text: #0A7F91;
  --aqua-soft: #E3F5F8;
  --ink: #12161F;
  --on-ink: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(18, 22, 31, .05);
  --shadow: 0 1px 2px rgba(18, 22, 31, .04), 0 8px 24px -12px rgba(18, 22, 31, .12);
  --shadow-lg: 0 2px 4px rgba(18, 22, 31, .04), 0 30px 60px -24px rgba(18, 22, 31, .28);
  --display: "Sora", "Sora Fallback", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-card: 24px;
  --r-btn: 16px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-spring: cubic-bezier(.3, 1.25, .5, 1);
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0B0F1A;
    --card: #141A28;
    --card-line: #232B40;
    --fill: #1A2132;
    --chip: #232B40;
    --line: #26304A;
    --text: #EEF1F8;
    --text2: #9AA6C0;
    --text3: #66728C;
    --gold: #F7B548;
    --gold-text: #F7B548;
    --gold-soft: #2C2412;
    --aqua: #5FD4E6;
    --aqua-text: #5FD4E6;
    --aqua-soft: #12303A;
    --ink: #EEF1F8;
    --on-ink: #0B0F1A;
    --shadow-sm: 0 0 0 1px var(--card-line);
    --shadow: 0 0 0 1px var(--card-line), 0 12px 30px -16px rgba(0, 0, 0, .6);
    --shadow-lg: 0 0 0 1px var(--card-line), 0 30px 70px -24px rgba(0, 0, 0, .75);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 8px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 600; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.num-n, .amt, .fr-lab, .spec-i { font-variant-numeric: tabular-nums; }

/* gradient stops take brand colours from CSS (dark mode included) */
.st-gold { stop-color: var(--gold); }
.st-aqua { stop-color: var(--aqua); }
.st-raw { stop-color: var(--text3); }

/* ---------- brand mark ---------- */
.mark { width: 30px; height: 30px; overflow: visible; }
.mark .m-glow { fill: var(--gold); opacity: .16; }
.mark .m-raw { fill: none; stroke: var(--text3); stroke-width: 3.6; stroke-linecap: round; stroke-dasharray: .01 6.2; }
.mark .m-clean { fill: none; stroke: var(--aqua); stroke-width: 4.4; stroke-linecap: round; }
.mark .m-beam { fill: var(--gold); opacity: .55; }
.mark .m-dot { fill: var(--gold); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.045em; line-height: 1; }
.brand span { transform: translateY(-1px); }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.hdr-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: .94rem; }
.nav a { color: var(--text2); text-decoration: none; padding: 6px 0; transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.hdr .langs { margin-left: 0; }
.langs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--chip); font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.langs a { color: var(--text2); text-decoration: none; padding: 4px 9px; border-radius: 999px; transition: background .2s, color .2s; }
.langs a:hover { color: var(--text); }
.langs a[aria-current="true"] { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }
@media (max-width: 820px) {
  .nav { display: none; }
  .hdr .langs { margin-left: auto; }
}

/* ---------- App Store badge (drawn, not an Apple asset file) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 16px;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 13px; border: 1px solid #A6A6A6;
  font-family: var(--ui);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 10px 24px -14px rgba(0, 0, 0, .55);
}
.badge:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 16px 30px -14px rgba(0, 0, 0, .6); text-decoration: none; }
.badge:active { transform: scale(.98); }
.badge .apple { width: 28px; height: 28px; fill: #fff; margin-top: -3px; }
.badge span { display: flex; flex-direction: column; line-height: 1; }
.badge small { font-size: 11.5px; letter-spacing: .01em; margin-bottom: 3px; }
.badge strong { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 72px) 0 clamp(40px, 6vw, 96px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 48px); }
.hero-copy { position: relative; z-index: 1; max-width: 600px; }
.eyebrow, .kicker, .sec-head .kicker {
  font-family: var(--display); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-text); margin: 0 0 18px;
}
.hero h1 { margin-bottom: 24px; }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); line-height: 1.55; color: var(--text2); max-width: 30em; margin-bottom: 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.note { font-size: .88rem; color: var(--text2); margin: 14px 0 0; }
.hero-art { position: relative; margin: 0 calc(var(--gutter) * -1 - 2vw) 0 -22%; aspect-ratio: 760 / 560; }
.beam-art { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin: -8px calc(var(--gutter) * -1) -12px; aspect-ratio: 1 / .7; }
  .hero-copy { max-width: none; }
}

/* the art (shared by hero and final) */
.ba-ring { fill: none; stroke: var(--line); stroke-width: 1.4; }
.ba-sonar { fill: none; stroke: var(--gold); stroke-width: 1.6; opacity: 0; vector-effect: non-scaling-stroke; }
.ba-raw, .ba-clean { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ba-halo { opacity: .16; }
.ba-halo2 { opacity: .3; }
.ba-core { opacity: .95; }
.ba-dotring { fill: none; stroke: var(--gold); stroke-opacity: .42; stroke-width: 3; }
.ba-dot { fill: var(--gold); }
.ba-breathe, .ba-ring, .ba-sonar, .ba-dotring { transform-box: view-box; transform-origin: 380px 280px; }
@media (prefers-color-scheme: dark) { .ba-halo { opacity: .22; } }

@media (prefers-reduced-motion: no-preference) {
  .beam-art.is-live .ba-breathe { animation: breathe 5s ease-in-out infinite; }
  .beam-art.is-live .ba-ring1 { animation: ring 5s ease-in-out infinite; }
  .beam-art.is-live .ba-ring2 { animation: ring 5s ease-in-out -1.9s infinite; }
  .beam-art.is-live .ba-dotring { animation: dotring 5s ease-in-out infinite; }
  .beam-art.is-live .ba-sonar { animation: sonar 4.5s cubic-bezier(.3, .2, .4, 1) infinite; }
  .beam-art.is-paused * { animation-play-state: paused !important; }

  /* hero copy enters staggered (CSS only, so it never waits for JS) */
  .hi { animation: rise .7s var(--ease) both; }
  .hero h1.hi { animation-name: rise-only; animation-delay: .05s; }
  .lead.hi { animation-delay: .1s; }
  .cta.hi { animation-delay: .15s; }
  .note.hi { animation-delay: .2s; }
  .hero-art { animation: fade 1.1s var(--ease) .05s both; }
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes ring { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.014); } }
@keyframes dotring { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes sonar {
  0% { transform: scale(.16); opacity: .3; }
  70% { opacity: .06; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-only { from { transform: translateY(10px); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 7.5vw, 112px) 0; }
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { margin-bottom: 18px; }
.sec-head p { color: var(--text2); font-size: 1.1rem; }
.sec-head.split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.sec-head.split h2 { margin-bottom: 0; }
.sec-copy p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .sec-head.split { grid-template-columns: 1fr; } }

/* scroll reveal: rise 14 px + fade, 50 ms stagger (set by site.js) */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); animation: rv-safety .01s 2.5s forwards; }
  .js .rv { animation: none; }
  .rv.in { opacity: 1; transform: none; }
}
@keyframes rv-safety { to { opacity: 1; transform: none; } }

/* ---------- before / after ---------- */
.sound { padding-top: clamp(40px, 6vw, 80px); }
.fr-card { margin: 0; background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(16px, 3vw, 32px); }
.fr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(8px, 2vw, 20px); }
.ab {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px;
  background: var(--card); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--card-line);
  min-width: min(100%, 360px);
}
.ab-pill {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: 17px; background: var(--gold);
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--gold) 70%, transparent);
  transition: transform .42s var(--ease-spring);
}
.ab[data-state="1"] .ab-pill { transform: translateX(100%); }
.ab-opt {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  border: 0; background: none; cursor: pointer; padding: 10px 14px 9px; border-radius: 17px;
  color: var(--text2); transition: color .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.ab-opt svg { width: 40px; height: 11px; margin-bottom: 4px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ab-opt .g-raw path { stroke-dasharray: .01 3.6; stroke-width: 2.1; }
.ab-opt strong { font-family: var(--display); font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.15; }
.ab-opt span { font-size: .8rem; }
.ab-opt[aria-pressed="true"] { color: var(--on-gold); }
.ab-opt[aria-pressed="false"]:hover { color: var(--text); }
.legend { display: flex; gap: 20px; margin: 0; font-size: .86rem; color: var(--text2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend span::before { content: ""; width: 22px; height: 0; border-top: 3px solid var(--aqua); border-radius: 2px; }
.legend .lg-raw::before { border-top: 3px dotted var(--text3); }
.fr { width: 100%; height: auto; aspect-ratio: 1000 / 400; overflow: visible; }
.fr-grid { stroke: var(--line); stroke-width: 1; opacity: .55; }
.fr-grid.major, .fr-grid.zero { opacity: 1; }
.fr-grid.major { stroke: color-mix(in srgb, var(--line) 60%, var(--text3)); stroke-dasharray: 2 4; }
.fr-grid.zero { stroke: color-mix(in srgb, var(--line) 50%, var(--text3)); }
.fr-lab { fill: var(--text2); font: 500 15px var(--ui); }
.fr-ghost { fill: none; stroke: var(--text3); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: .01 7; }
.fr-raw { fill: none; stroke: var(--text3); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .01 8.5; }
.fr-corr { fill: none; stroke: var(--aqua); stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round; }
.fr-dot { fill: var(--gold); }
.fr-dotring { fill: none; stroke: var(--gold); stroke-opacity: .42; stroke-width: 2.5; }
.fr-card figcaption { margin-top: 14px; font-size: .86rem; color: var(--text2); }
@media (max-width: 560px) {
  .fr { aspect-ratio: 1000 / 470; }
  .fr-lab { font-size: 30px; }
  .legend { font-size: .8rem; gap: 14px; }
  .ab { width: 100%; }
}

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 6vw, 96px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.step {
  position: relative; width: 100%; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  text-align: left; border: 0; background: transparent; padding: 18px 20px; border-radius: 20px; cursor: pointer;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}
.step:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.step[aria-current="step"] { background: var(--card); box-shadow: var(--shadow); }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--chip); color: var(--text2); font: 600 1rem var(--display);
  transition: background .35s var(--ease), color .35s var(--ease), transform .45s var(--ease-spring);
}
.step[aria-current="step"] .step-n { background: var(--gold); color: var(--on-gold); transform: scale(1.04); }
.step-t { display: grid; gap: 4px; padding-top: 7px; }
.step-t strong { font-family: var(--display); font-size: 1.12rem; letter-spacing: -0.02em; }
.step-t span { color: var(--text2); font-size: .97rem; }
.step-bar { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; opacity: 0; }
.how-grid.is-auto .step[aria-current="step"] .step-bar { opacity: .7; animation: stepbar var(--cc-dwell, 3.2s) linear forwards; }
@keyframes stepbar { to { transform: scaleX(1); } }

/* Control Center mock */
.cc { position: relative; }
.cc-screen {
  position: relative; min-height: 380px; border-radius: 36px; overflow: hidden; padding: 26px;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(245, 166, 35, .28), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(19, 163, 184, .22), transparent 60%),
    #1B2130;
  box-shadow: var(--shadow-lg);
}
.cc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; transition: transform .5s var(--ease), opacity .5s var(--ease), filter .5s var(--ease); }
.cc-tile { background: rgba(255, 255, 255, .13); border-radius: 20px; aspect-ratio: 1; position: relative; }
.cc-conn { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
.cc-conn i { border-radius: 50%; background: rgba(255, 255, 255, .22); aspect-ratio: 1; }
.cc-conn i:nth-child(1), .cc-conn i:nth-child(3) { background: #2E86F7; }
.cc-conn i:nth-child(2) { background: #34C759; }
.cc-np { grid-column: span 2; grid-row: span 2; padding: 16px; display: flex; flex-direction: column; }
.cc-art { width: 34%; aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, var(--gold), #E0721A); }
.cc-lines { display: grid; gap: 7px; margin-top: 12px; }
.cc-lines b { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .55); width: 80%; }
.cc-lines b + b { background: rgba(255, 255, 255, .25); width: 55%; }
.cc-out { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.cc-out svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cc-out .fillme { fill: #fff; stroke: none; }
.cc-tap { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; transform: scale(.6); }
.cc-ctrls { margin-top: auto; display: flex; justify-content: space-around; align-items: center; }
.cc-ctrls i { width: 14px; height: 12px; background: rgba(255, 255, 255, .7); clip-path: polygon(100% 0, 100% 100%, 50% 50%, 50% 100%, 0 50%, 50% 0, 50% 50%); }
.cc-ctrls i.play { width: 14px; height: 16px; clip-path: polygon(0 0, 100% 50%, 0 100%); background: #fff; }
.cc-ctrls i:last-child { transform: scaleX(-1); }
.cc-sq { display: grid; place-items: center; }
.cc-sq i { width: 34%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); }
.cc-slider { grid-row: span 2; aspect-ratio: auto; overflow: hidden; }
.cc-slider i { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: rgba(255, 255, 255, .9); }
.cc-slider.vol i { height: 70%; }
.cc-wide { grid-column: span 2; aspect-ratio: auto; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.cc-wide i { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .85); flex: none; }
.cc-wide b { height: 8px; width: 55%; border-radius: 4px; background: rgba(255, 255, 255, .4); }
.cc-sq i.moon { border: 0; background: radial-gradient(circle at 70% 35%, transparent 0 42%, rgba(255, 255, 255, .75) 43%); }
.cc-sq i.sq { border-radius: 6px; }
.cc-sheet {
  position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 16px 12px 10px;
  border-radius: 26px; background: rgba(36, 42, 58, .92); color: #fff;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transform: translateY(calc(100% + 30px)); opacity: 0;
  transition: transform .55s var(--ease-spring), opacity .35s var(--ease);
}
.cc-title { margin: 0 8px 8px; font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .6); }
.cc-sheet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cc-sheet li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; font-size: .98rem; transition: background .35s var(--ease), color .35s var(--ease); }
.cc-sheet li svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.cc-sheet li:nth-child(2) svg + span::after { content: ""; }
.cc-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--gold); flex: none; box-shadow: 0 0 0 4px rgba(245, 166, 35, .22); }
.cc-earluma svg:last-child { margin-left: auto; stroke: #F5A623; stroke-width: 2.4; opacity: 0; transform: scale(.4); transition: opacity .3s .25s, transform .45s .25s var(--ease-spring); }
.how-grid[data-step="2"] .cc-tap { animation: tap 1.6s var(--ease) .35s infinite; }
.how-grid[data-step="2"] .cc-out { background: rgba(255, 255, 255, .16); }
.how-grid[data-step="3"] .cc-grid { transform: scale(.94); opacity: .5; filter: blur(2px); }
.how-grid[data-step="3"] .cc-sheet { transform: none; opacity: 1; }
.how-grid[data-step="3"] .cc-earluma { background: #FFF4E0; color: #8A5200; font-weight: 600; }
.how-grid[data-step="3"] .cc-earluma svg:last-child { opacity: 1; transform: none; }
.how-grid[data-step="1"] .cc-grid { animation: cc-open .6s var(--ease) both; }
@keyframes cc-open { from { transform: translateY(-18px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tap { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; } 70%, 100% { opacity: 0; transform: scale(1.5); } }
@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
  .cc { max-width: 420px; width: 100%; margin: 0 auto; }
}

/* routing strip */
.flow {
  margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 0 clamp(8px, 2vw, 20px);
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px) clamp(16px, 4vw, 44px);
}
.flow-node { display: grid; justify-items: center; gap: 10px; font-size: .9rem; color: var(--text2); text-align: center; }
.flow-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--fill); color: var(--text2); }
.flow-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.is-earluma { color: var(--gold-text); font-weight: 600; }
.is-earluma .flow-ic { background: radial-gradient(circle, color-mix(in srgb, var(--gold) 30%, var(--card)) 0%, var(--card) 70%); box-shadow: 0 0 0 1px var(--card-line), 0 10px 30px -8px color-mix(in srgb, var(--gold) 55%, transparent); }
.flow-ic .flow-mark { width: 44px; height: 44px; stroke: none; }
.flow-ic .flow-mark .m-raw, .flow-ic .flow-mark .m-clean { stroke-width: 3.2; }
.flow-ic .flow-mark .m-raw { stroke-dasharray: .01 5.4; }
.flow-ic .flow-mark .m-glow { opacity: .3; }
.flow-node:last-child .flow-ic { background: var(--aqua-soft); color: var(--aqua-text); }
.flow-line { width: 100%; height: 24px; overflow: visible; }
.flow-line path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.flow-line.raw path { stroke: var(--text3); stroke-width: 3; stroke-dasharray: .01 7; }
.flow-line.clean .base { stroke: var(--aqua); stroke-width: 3; opacity: .9; }
.flow-line.clean .pulse { stroke: var(--card); stroke-width: 7; stroke-dasharray: 0 1000; opacity: 0; }
.flow-p { max-width: 720px; margin: 20px auto 0; text-align: center; color: var(--text2); }
@media (prefers-reduced-motion: no-preference) {
  .flow.in .flow-line.raw path { animation: dots 1.4s linear infinite; }
  .flow.in .flow-line.clean .pulse { opacity: .9; stroke-dasharray: 4 400; animation: pulse 1.8s var(--ease) infinite; stroke: color-mix(in srgb, var(--aqua) 30%, white); }
}
@keyframes dots { to { stroke-dashoffset: -14; } }
@keyframes pulse { from { stroke-dashoffset: 30; } to { stroke-dashoffset: -260; } }
@media (max-width: 480px) {
  .flow { padding: 18px 12px; gap: 0 4px; }
  .flow-ic { width: 52px; height: 52px; border-radius: 15px; }
  .flow-node { font-size: .8rem; }
}

/* ---------- screenshots ---------- */
.app { overflow: hidden; }
.shots-rail { outline-offset: -4px; }
.shots { max-width: 1200px; margin: 0 auto; padding: 24px var(--gutter) 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 36px); align-items: start; }
.shot { margin: 0; }
.shot-in { will-change: transform; }
.shot:nth-child(even) { margin-top: 64px; }
.device {
  position: relative; border-radius: 15% / 7.3%; padding: 3.2%;
  background: linear-gradient(160deg, #2A3142, #0E121A 60%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
}
.device::after { /* dynamic island */
  content: ""; position: absolute; top: 3.8%; left: 50%; width: 28%; height: 3.2%; transform: translateX(-50%);
  border-radius: 999px; background: #05070B;
}
.device picture { display: block; border-radius: 12.5% / 6.1%; overflow: hidden; background: #F5F6FA; padding-top: 11%; }
.device img { width: 100%; aspect-ratio: 540 / 1104; object-fit: cover; }
.shot figcaption { margin-top: 20px; display: grid; gap: 2px; font-size: .92rem; color: var(--text2); }
.shot figcaption strong { font-family: var(--display); color: var(--text); font-size: 1.02rem; letter-spacing: -0.015em; }
.shots-hint { display: none; font-size: .82rem; color: var(--text2); margin-top: -12px; }
@media (max-width: 860px) {
  .shots-rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .shots-rail::-webkit-scrollbar { display: none; }
  .shots { display: flex; width: max-content; max-width: none; padding-bottom: 28px; }
  .shot { width: min(62vw, 250px); scroll-snap-align: center; flex: none; }
  .shot:nth-child(even) { margin-top: 0; }
  .shots-hint { display: block; }
}

/* ---------- numbers ---------- */
.nums-band { padding: clamp(24px, 4vw, 40px) 0; border-block: 1px solid var(--line); }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); }
.num { padding: 12px clamp(12px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.num:first-child { border-left: 0; padding-left: 0; }
.num-v { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; }
.num-n { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4rem); letter-spacing: -0.04em; line-height: 1; display: inline-block; text-align: right; }
.num-n.w1 { min-width: .66em; }
.num-n.w2 { min-width: 1.3em; }
.num-u { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--gold-text); letter-spacing: -0.01em; }
.num-d { margin: 0; color: var(--text2); font-size: .92rem; max-width: 22ch; }
@media (max-width: 760px) {
  .nums { grid-template-columns: 1fr 1fr; }
  .num { padding: 18px 14px; }
  .num:nth-child(odd) { border-left: 0; padding-left: 0; }
  .num:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- features (spec sheet) ---------- */
.specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); border-top: 1px solid var(--line); }
.spec { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.spec-i { font: 600 .8rem var(--display); color: var(--gold-text); padding-top: 4px; letter-spacing: .04em; }
.spec h3 { margin-bottom: 6px; }
.spec p { margin: 0; color: var(--text2); font-size: .98rem; }
@media (max-width: 760px) { .specs { grid-template-columns: 1fr; } .spec { grid-template-columns: 36px 1fr; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 28px 24px 26px; display: flex; flex-direction: column; overflow: hidden; }
.plan header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; margin-bottom: 18px; }
.plan h3 { font-size: 1.02rem; }
.plan-tag { font-size: .74rem; font-weight: 600; color: var(--gold-text); background: var(--gold-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.plan-price { min-height: 2.6rem; margin: 0 0 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.amt.is-range { font-size: clamp(1.35rem, 1.1rem + .6vw, 1.6rem); }
.amt { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.1rem); letter-spacing: -0.035em; line-height: 1.1; }
.per { color: var(--text2); font-size: .92rem; }
.plan ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .93rem; color: var(--text2); }
.plan li { position: relative; padding-left: 22px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--aqua); border-bottom: 2px solid var(--aqua); transform: rotate(-45deg); }
.plan.is-featured { box-shadow: 0 0 0 1.5px var(--gold), var(--shadow); }
.plan.is-featured::before { /* a thin beam of light along the top */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}
.fine { margin-top: 28px; font-size: .84rem; color: var(--text2); max-width: 880px; }
@media (max-width: 1040px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-family: var(--display); font-weight: 600; font-size: 1.06rem; letter-spacing: -0.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--gold-text); }
.pm { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--chip); transition: background .3s var(--ease), transform .4s var(--ease); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; margin: -1px 0 0 -5.5px; background: var(--text); border-radius: 2px; transition: transform .4s var(--ease); }
.pm::after { transform: rotate(90deg); }
details[open] .pm { background: var(--gold); transform: rotate(180deg); }
details[open] .pm::after { transform: rotate(0deg); }
details[open] .pm::before, details[open] .pm::after { background: var(--on-gold); }
.faq-side p { margin-top: 18px; }
.faq-a p { margin: 0; padding: 0 44px 24px 4px; color: var(--text2); }
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq-list details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
    .faq-list details[open]::details-content { height: auto; }
  }
}
@media (max-width: 760px) { .faq-in { grid-template-columns: 1fr; } .faq-side p { margin-top: 18px; }
.faq-a p { padding-right: 4px; } }

/* ---------- final CTA ---------- */
.final { position: relative; overflow: hidden; text-align: center; padding: clamp(24px, 4vw, 48px) 0 clamp(72px, 9vw, 120px); }
.final-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.final-art { width: min(640px, 100%); aspect-ratio: 760 / 560; margin-bottom: clamp(-40px, -3vw, -16px); }
.final h2 { max-width: 15em; margin-bottom: 32px; }
.final .cta { justify-content: center; }
.final .note { margin-top: 16px; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: .9rem; color: var(--text2); }
.ftr-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-bottom: 28px; }
.ftr-top nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.ftr a { color: var(--text2); text-decoration: none; }
.ftr a:hover { color: var(--text); }
.ftr .brand { color: var(--text); font-size: 1.15rem; }
.ftr .langs a[aria-current="true"] { color: var(--text); }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.ftr-bottom p { margin: 0; }
.ftr-bottom a { text-decoration: underline; text-decoration-color: var(--line); }
.credits { max-width: 560px; }
@media (max-width: 640px) { .ftr-top nav { margin-left: 0; width: 100%; } }

/* ---------- document pages (privacy, terms, support, press, 404) ---------- */
.doc { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 120px); }
.doc .narrow { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); margin-bottom: 14px; position: relative; padding-top: 40px; }
.doc h1::before, .doc h1::after { content: ""; position: absolute; top: 0; height: 14px; }
.doc h1::before { /* the brand line laid flat: grey dots into the gold dot, out as aqua */
  left: 0; width: 58px;
  background: radial-gradient(circle, var(--text3) 1.4px, transparent 1.9px) 0 0 / 8px 14px repeat-x;
}
.doc h1::after {
  left: 56px; width: 84px;
  background:
    radial-gradient(circle at 7px 7px, var(--gold) 0 5.5px, transparent 6px) no-repeat,
    linear-gradient(90deg, var(--aqua), color-mix(in srgb, var(--aqua) 0%, transparent)) 10px 6px / 74px 2.5px no-repeat;
}
.doc h1 + p, .doc .updated { color: var(--text2); }
.doc .updated { font-size: .92rem; margin-bottom: 32px; }
.doc h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); letter-spacing: -0.025em; margin: 56px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 86%, var(--text2)); }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.doc li { margin: .4em 0; }
.doc li::marker { color: var(--gold-text); font-weight: 600; }
.table-scroll { overflow-x: auto; margin: 8px 0 20px; border-radius: 18px; box-shadow: var(--shadow); background: var(--card); }
.doc table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--display); font-weight: 600; font-size: .86rem; letter-spacing: -0.01em; background: var(--fill); }
.doc tr:last-child td { border-bottom: 0; }
.facts { display: grid; grid-template-columns: 160px 1fr; margin: 0 0 1em; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--text2); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }
.doc .faq { border-top: 1px solid var(--line); margin-top: 8px; }
.doc .faq details { border-bottom: 1px solid var(--line); }
.doc .faq summary { cursor: pointer; padding: 18px 36px 18px 2px; font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; list-style: none; position: relative; }
.doc .faq summary::-webkit-details-marker { display: none; }
.doc .faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.4rem/1 var(--ui); color: var(--gold-text); transition: transform .3s var(--ease); }
.doc .faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.doc .faq details p { margin: 0 0 18px; color: var(--text2); }

/* ---------- reduced motion: final states, no travel ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  .shot-in { will-change: auto; }
}
