/* Aspire landing — Etched Anatomy design system (decided 2026-07-07).
   Tokens match the app: ink/surface/stroke, ember, bone. */

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plex400.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plex500.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}

:root {
  --ink: #0d0f12;
  --surface: #16191e;
  --surface-2: #1c2027;
  --stroke: #262b33;
  --ember: #e8542f;
  --ember-deep: #7a1e0c;
  --bone: #ede7dc;
  --text-2: #9aa0a8;
  --text-3: #6b7078;
  --display: 'Avenir Next', 'Helvetica Neue', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
/* The `hidden` attribute must win over layout classes like `.cta-row {display:flex}`
   (author display beats the UA [hidden] rule). Used to toggle the finale between
   the waitlist form and the TestFlight buttons. */
[hidden] { display: none !important; }

h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ember);
  margin-bottom: 18px;
}

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 16px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--stroke);
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ink) 90%, transparent);
  backdrop-filter: blur(12px);
}
.wordmark { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.3em; font-size: 15px; }
.wordmark img { border-radius: 7px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--bone); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang {
  background: none; border: 1px solid var(--stroke); color: var(--text-2);
  font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 99px; cursor: pointer;
}
.lang:hover { color: var(--bone); border-color: var(--text-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ember); color: #fff6f0;
  font-weight: 600; font-size: 16px;
  padding: 14px 28px; border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(232, 84, 47, 0.35); }
.btn-small { padding: 9px 18px; font-size: 14px; border-radius: 9px; }
.btn-big { padding: 18px 40px; font-size: 18px; }
.btn-outline { background: none; border: 1px solid var(--ember); color: var(--ember); }
.btn-outline:hover { background: rgba(232, 84, 47, 0.12); box-shadow: none; }
.ghost { color: var(--text-2); font-size: 16px; padding: 14px 4px; }
.ghost:hover { color: var(--bone); }
.cta-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.cta-row.center { justify-content: center; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  padding: clamp(60px, 9vh, 110px) clamp(20px, 5vw, 64px) clamp(70px, 10vh, 130px);
  max-width: 1240px; margin: 0 auto;
  position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('/img/bg-topo.jpg') right top / cover no-repeat;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(105deg, transparent 30%, black 75%);
  mask-image: linear-gradient(105deg, transparent 30%, black 75%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; right: 5%; bottom: -10%;
  width: 50%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(122, 30, 12, 0.45), transparent 65%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(42px, 5.8vw, 76px); line-height: 1.04; }
.hero .sub { color: var(--text-2); font-size: clamp(17px, 1.4vw, 19px); max-width: 34em; margin-top: 26px; }
.hero .sub strong { color: var(--bone); }

/* ---------- device frames ---------- */
.phone {
  position: relative; z-index: 1;
  border: 1px solid var(--stroke);
  background: #000;
  border-radius: 12.2%  / 5.6%;
  padding: 2.4%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 70px rgba(122, 30, 12, 0.25);
  max-width: 340px;
  margin: 0 auto;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 10% / 4.6%; }
.hero-phone { transform: rotate(2deg); }
.phone-sm { max-width: 280px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }

.hero-devices { position: relative; z-index: 1; max-width: 340px; margin: 0 auto; }
.hero-watch {
  position: absolute; left: -16%; bottom: 2%; z-index: 2;
  width: 34%; max-width: 130px;
  transform: rotate(-7deg);
  border: 1px solid var(--stroke); border-radius: 26%;
  overflow: hidden; background: #000;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}
.hero-watch img { display: block; width: 100%; height: auto; }

.browser {
  border: 1px solid var(--stroke); border-radius: 12px; overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-bottom: 1px solid var(--stroke);
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
}
.browser-bar i { width: 10px; height: 10px; border-radius: 99px; background: var(--stroke); }
.browser-bar span { margin-left: 10px; }
.browser img { display: block; width: 100%; height: auto; }
.console-stack { display: grid; gap: 22px; }
.browser-back { width: 88%; justify-self: end; opacity: 0.92; }

/* ---------- sections ---------- */
.band {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(70px, 10vh, 120px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--stroke);
}
.band h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.12; max-width: 20em; }
.band .body { color: var(--text-2); margin-top: 24px; max-width: 36em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: 56px; }
.step { border-top: 1px solid var(--stroke); padding-top: 26px; }
.step .phone { margin-bottom: 28px; }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--ember); letter-spacing: 0.2em; }
.step h3 { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: 0.24em; margin: 12px 0 12px; }
.step p { color: var(--text-2); font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.marks { list-style: none; margin-top: 28px; }
.marks li { padding: 12px 0 12px 30px; border-top: 1px solid var(--stroke); position: relative; font-size: 15.5px; }
.marks li::before { content: '✓'; position: absolute; left: 2px; color: var(--ember); font-family: var(--mono); }

/* anatomy figure with ember overlay, composited like the app does */
.anatomy { position: relative; max-width: 340px; margin: 0 auto; }
.anatomy img { display: block; width: 100%; height: auto; }
.anatomy-base {
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 46%, black 55%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 62% at 50% 46%, black 55%, transparent 78%);
}
.anatomy-glow {
  position: absolute; inset: 0;
  mix-blend-mode: screen;
  animation: emberPulse 5s ease-in-out infinite;
}
@keyframes emberPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--stroke); border: 1px solid var(--stroke); margin-top: 56px; }
.cell { background: var(--ink); padding: 30px 28px 34px; }
.cell h3 { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; margin-bottom: 12px; text-transform: uppercase; }
.cell p { color: var(--text-2); font-size: 15px; }

.coach { background: linear-gradient(160deg, transparent, rgba(122, 30, 12, 0.10)); }
.coach-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 5vw, 70px); align-items: center; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); margin-top: 56px; }
.tier { position: relative; border: 1px solid var(--stroke); border-radius: 16px; padding: 34px 30px; background: var(--surface); }
.tier.featured { border-color: rgba(232, 84, 47, 0.55); box-shadow: 0 0 50px rgba(122, 30, 12, 0.3); }
.tier h3 { font-family: var(--display); font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.tier p { color: var(--text-2); font-size: 15.5px; }

/* pricing display */
.price { margin: 2px 0 12px; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; color: var(--bone); }
.price-line + .price-line { margin-top: 8px; }
.price-num { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.02;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-num-sm { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--text-2);
  font-variant-numeric: tabular-nums; }
.price-per, .price-qual, .price-lead { color: var(--text-2); font-size: 15px; }
.price-note { color: var(--text-3); font-size: 13px; }
.price-alt { color: var(--text-2); }
.price-soon { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--text-2); }
.price-sub { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-3);
  margin: 2px 0 16px; line-height: 1.55; }
.price-founding { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--text-3);
  margin-top: 16px; line-height: 1.55; }
.tier .btn-small { margin-top: 20px; }
/* ember accents live only on the featured (Plus) card */
.tier.featured .price-num { color: var(--bone); }
.price-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ember); border: 1px solid rgba(232, 84, 47, 0.45); border-radius: 99px; padding: 2px 8px;
  align-self: center; }
.tier-ribbon { position: absolute; top: -12px; right: 22px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff6f0; background: var(--ember);
  padding: 5px 12px; border-radius: 99px; box-shadow: 0 6px 18px rgba(122, 30, 12, 0.5); }

.finale { text-align: center; padding: clamp(80px, 13vh, 150px) 24px; border-top: 1px solid var(--stroke);
  background: radial-gradient(ellipse at 50% 130%, rgba(122, 30, 12, 0.35), transparent 65%); }
.finale-art { width: clamp(180px, 24vw, 300px); height: auto; margin: 0 auto 10px; display: block; }
.finale h2 { font-size: clamp(32px, 4.4vw, 56px); }
.fine { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--text-3); margin-top: 24px; }

/* ---------- waitlist (beta email capture) ---------- */
.waitlist { max-width: 28rem; margin: 30px auto 0; text-align: center; }
.waitlist-row { display: flex; gap: 10px; }
.waitlist input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--bone);
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 12px;
  padding: 14px 16px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.waitlist input::placeholder { color: var(--text-3); }
.waitlist input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(232, 84, 47, 0.15); }
.waitlist .btn { white-space: nowrap; }
.waitlist-note {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3); margin-top: 16px;
}
.waitlist-msg { color: #f1a9a5; font-size: 13px; margin-top: 12px; }
.waitlist-done { color: var(--bone); font-size: 17px; margin-top: 4px; }
@media (max-width: 480px) { .waitlist-row { flex-direction: column; } }

.foot {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding: 30px clamp(20px, 5vw, 64px) 40px;
  border-top: 1px solid var(--stroke);
  font-size: 13px; color: var(--text-3); font-family: var(--mono);
}
.foot-links { display: flex; gap: 22px; margin-left: auto; }
.foot a:hover { color: var(--bone); }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- zh adjustments ---------- */
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2 { letter-spacing: 0.01em; }
html[lang="zh-Hans"] .hero h1 { font-size: clamp(38px, 5vw, 66px); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero, .split, .coach-grid { grid-template-columns: 1fr; }
  .steps, .grid, .tiers { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding-top: 44px; }
  .hero-phone { transform: none; margin-top: 10px; }
  .step .phone { margin-left: 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .anatomy-glow { animation: none; opacity: 0.8; }
  .btn { transition: none; }
}
