/* Zign landing page. Tokens come from zign.css; this file adds the landing layout. */
:root {
  --p-zign: #e8a84c;     --p-zign-rim: #dca048;
  --p-elder: #d27a5a;    --p-elder-rim: #c87456;
  --p-soulmate: #e07a8f; --p-soulmate-rim: #d57488;
  --p-child: #7fb8e8;    --p-child-rim: #79afdc;
  --p-nature: #7dbf8e;   --p-nature-rim: #77b587;
  --p-cat: #c9a47c;      --p-cat-rim: #bf9c76;
  --on-p: #1e1630;
  --card: #fffdf9;
  --card-ink: #1e1630;
  --card-ink-muted: #5e5270;
  --glass: rgba(255,255,255,0.55);
  --glass-edge: rgba(255,255,255,0.95);
  --glass-rim: rgba(255,255,255,0.55);
  --shadow-card: 0 14px 32px rgba(30,22,48,0.14);
  --shadow-glass: inset 0 1px 0 rgba(255,255,255,0.9), 0 10px 30px rgba(30,22,48,0.12);
  --glow: rgba(232,168,76,0.22);
  --bezel: #2a2040;
}
@media (prefers-color-scheme: dark) {
  :root {
    --card: #f3ede3;
    --glass: rgba(214,236,245,0.16);
    --glass-edge: rgba(255,255,255,0.45);
    --shadow-card: 0 18px 40px rgba(8,5,16,0.55);
    --shadow-glass: inset 0 1px 0 rgba(255,255,255,0.35), 0 10px 30px rgba(8,5,16,0.45);
    --glow: rgba(232,168,76,0.16);
    --bezel: #0e0a17;
  }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.page { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .page { padding: 0 16px; } }

/* ── Header ─────────────────────────────────────────── */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 28px 0 0; }
.bar .wordmark { width: 96px; }
.bar nav { display: flex; gap: 24px; font-size: 14px; font-weight: 600; }
.bar nav a { color: var(--ink-muted); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }
@media (max-width: 600px) { .bar nav .wide { display: none; } }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px;
  padding: 56px 0 96px; min-height: min(86vh, 820px);
}
.hero h1 {
  font: 500 clamp(46px, 7.2vw, 84px)/1.02 var(--display);
  letter-spacing: -0.025em; margin: 0 0 24px;
}
.hero h1 .z { color: var(--gold-ink); }
.hero .sub { font: 400 clamp(18px, 2vw, 21px)/1.5 var(--sans); color: var(--ink-muted); max-width: 32ch; margin: 0 0 36px; text-wrap: pretty; }
.hero .canto { font: 400 15px/1.55 var(--sans); color: var(--ink-muted); max-width: 40ch; margin: -16px 0 32px; }
.hero .canto b { display: inline-block; margin-right: 6px; color: var(--gold); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 26px;
  border-radius: 999px; background: var(--gold); color: #1e1630; font-weight: 600; text-decoration: none;
}
.pill[aria-disabled="true"] { cursor: default; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #1e1630; opacity: .55; }
.textlink { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.textlink:hover { border-color: var(--gold); }
.small { margin: 20px 0 0; font-size: 14px; color: var(--ink-muted); }
.appstore img { height: 52px; width: auto; display: block; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding: 40px 0 72px; min-height: 0; text-align: left; }
  .hero .phone-wrap { justify-self: center; }
}

/* ── Phone mock ─────────────────────────────────────── */
.phone-wrap { position: relative; justify-self: end; }
.phone-wrap::before {
  content: ""; position: absolute; inset: 8% -18%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(30px); z-index: -1;
}
.phone {
  position: relative; width: 300px; aspect-ratio: 9 / 19.5; border-radius: 48px; overflow: hidden;
  border: 10px solid var(--bezel); background: var(--surface); box-shadow: 0 30px 80px rgba(8,5,16,0.35);
  isolation: isolate;
}
.phone video, .phone .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.phone .island { position: absolute; top: 10px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 12px; background: #000; }
.phone .mini-mark { position: absolute; top: 50px; left: 18px; width: 52px; color: var(--ink); }
.phone .q { position: absolute; top: 96px; left: 20px; right: 20px; text-align: center; font: 500 19px/24px var(--display); opacity: .32; margin: 0; }
.phone .hint { position: absolute; bottom: 40px; left: 0; right: 0; text-align: center; font-size: 10.5px; color: var(--ink-muted); margin: 0; }
.phone .sdot { position: absolute; right: 14px; bottom: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.phone .ring { --ring: 228px; position: absolute; left: 50%; top: 50%; margin: calc(var(--ring) / -2) 0 0 calc(var(--ring) / -2); }
.phone .ring .mid { font-size: 19px; line-height: 23px; padding: 0 64px; }

/* ── Ring (shared by the phone and the voices section) ── */
.ring { --ring: 340px; position: relative; width: var(--ring); height: var(--ring); touch-action: manipulation; }
.ring::before { content: ""; position: absolute; inset: calc(var(--ring) * 42 / 340); border-radius: 50%; border: 1px solid var(--line); }
.ring .mid {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; margin: 0;
  padding: 0 calc(var(--ring) * 96 / 340); font: 500 30px/36px var(--display); letter-spacing: -0.01em; pointer-events: none; text-wrap: balance;
}
.pc {
  --d: calc(var(--ring) * 84 / 340);
  position: absolute; left: calc(var(--ring) * var(--x) / 340); top: calc(var(--ring) * var(--y) / 340);
  width: var(--d); height: var(--d); border-radius: 50%; border: 0; padding: 6px; display: grid; place-items: center;
  background: var(--fill); color: var(--fill); font: 600 13px/16px var(--sans); text-align: center; cursor: pointer;
  transition: box-shadow .15s ease, color .15s ease, background-color .15s ease; -webkit-tap-highlight-color: transparent;
}
.pc.on { color: var(--on-p); box-shadow: 0 0 0 6px var(--rim); }
.p-zign { --fill: var(--p-zign); --rim: var(--p-zign-rim); }
.p-elder { --fill: var(--p-elder); --rim: var(--p-elder-rim); }
.p-soulmate { --fill: var(--p-soulmate); --rim: var(--p-soulmate-rim); }
.p-child { --fill: var(--p-child); --rim: var(--p-child-rim); }
.p-nature { --fill: var(--p-nature); --rim: var(--p-nature-rim); }
.p-cat { --fill: var(--p-cat); --rim: var(--p-cat-rim); }
.p-fate { --fill: var(--surface-raised); --rim: #dca048; box-shadow: inset 0 0 0 2px var(--gold); }
.p-fate.on { background: var(--gold); color: var(--on-p); box-shadow: 0 0 0 6px #dca048; }
.p-future {
  --fill: transparent; --rim: var(--glass-rim); background: var(--glass); color: transparent;
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); overflow: hidden;
}
.p-future::before {
  content: ""; position: absolute; left: 14%; top: 10%; width: 46%; height: 22%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.55), rgba(255,255,255,0)); transform: rotate(-24deg);
}
.p-future.on { color: var(--ink); box-shadow: var(--shadow-glass), 0 0 0 6px var(--rim); }
.phone .pc { pointer-events: none; padding: 0; }

/* The hero phone previews one circle after another, as a finger would. */
@media (prefers-reduced-motion: no-preference) {
  .phone .pc { animation: peek 12.8s infinite; animation-delay: calc(var(--i) * 1.6s); }
  .phone .p-future { animation-name: peek-glass; }
}
@keyframes peek { 0%, 11% { box-shadow: 0 0 0 4px var(--rim); } 12.5%, 100% { box-shadow: 0 0 0 0 var(--rim); } }
@keyframes peek-glass { 0%, 11% { box-shadow: var(--shadow-glass), 0 0 0 4px var(--rim); } 12.5%, 100% { box-shadow: var(--shadow-glass), 0 0 0 0 var(--rim); } }
.phone .p-fate { animation: none; }

/* ── Sections ───────────────────────────────────────── */
section.block { padding: 88px 0; border-top: 1px solid var(--line); }
@media (max-width: 600px) { section.block { padding: 64px 0; } }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 16px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
h2.big { font: 500 clamp(32px, 4.4vw, 48px)/1.08 var(--display); letter-spacing: -0.02em; margin: 0 0 16px; max-width: 18ch; }
.intro { color: var(--ink-muted); font-size: 18px; line-height: 28px; max-width: 46ch; margin: 0 0 48px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 24px; padding: 28px; margin: 0; }
.steps .vis { height: 150px; display: grid; place-items: center; margin-bottom: 20px; }
.steps h3 { font: 500 24px/30px var(--display); margin: 0 0 8px; }
.steps h3::before { counter-increment: step; content: counter(step); display: block; font: 600 13px/20px var(--sans); color: var(--ink-muted); margin-bottom: 6px; }
.steps p { color: var(--ink-muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.mini-ring { position: relative; width: 120px; height: 120px; }
.mini-ring b { position: absolute; width: 30px; height: 30px; border-radius: 50%; left: calc(45px + 45px * var(--c)); top: calc(45px + 45px * var(--s)); }
.hold { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); }
@media (prefers-reduced-motion: no-preference) { .hold { animation: breathe 2.2s ease-in-out infinite alternate; } }
@media (prefers-reduced-motion: reduce) { .hold { box-shadow: 0 0 0 14px var(--glow); } }
@keyframes breathe { from { box-shadow: 0 0 0 0 var(--glow); } to { box-shadow: 0 0 0 18px var(--glow); } }
.mini-card {
  position: relative; width: 96px; height: 150px; border-radius: 14px; overflow: hidden; background: var(--card); color: var(--card-ink);
  box-shadow: var(--shadow-card); display: grid; place-items: center; text-align: center; padding: 18px 10px 10px; box-sizing: border-box;
  font: 400 15px/19px var(--display);
}
.mini-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: var(--p-zign); }

/* Voices */
.voices { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; }
.voices .ring { --ring: min(340px, calc(100vw - 56px)); }
@media (max-width: 860px) { .voices { grid-template-columns: 1fr; gap: 40px; justify-items: center; } }
@media (max-width: 400px) { .voices .pc { font-size: 11px; line-height: 13px; } .voices .ring .mid { font-size: 24px; line-height: 29px; } }
.detail { max-width: 460px; min-height: 330px; }
.detail .tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-muted); margin-bottom: 14px; }
.detail h3 { font: 500 32px/38px var(--display); margin: 0 0 10px; }
.detail .desc { color: var(--ink-muted); font-size: 17px; line-height: 27px; margin: 0 0 24px; }
.sample {
  position: relative; overflow: hidden; border-radius: 20px; background: var(--card); color: var(--card-ink); box-shadow: var(--shadow-card);
  padding: 30px 26px 24px; margin: 0;
}
.sample::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--band, var(--p-zign)); }
.sample.glass { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
.sample.glass::before { display: none; }
.sample p { font: 400 26px/34px var(--display); margin: 0; text-wrap: balance; }
.sample small { display: block; margin-top: 14px; font-size: 13px; color: var(--card-ink-muted); }
.sample.glass small { color: var(--ink-muted); }
/* Glass needs something to bend: soft personality colours appear behind The Future You. */
.sample-wrap { position: relative; isolation: isolate; }
.aura { position: absolute; inset: -36px -24px; z-index: -1; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.glassy .aura { opacity: 1; }
.aura b { position: absolute; border-radius: 50%; filter: blur(20px); opacity: .85; }
.aura b:nth-child(1) { left: 0; top: 12px; width: 150px; height: 150px; background: var(--p-child); }
.aura b:nth-child(2) { right: 8%; top: -6px; width: 120px; height: 120px; background: var(--p-soulmate); }
.aura b:nth-child(3) { left: 42%; bottom: 0; width: 110px; height: 110px; background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .aura { transition: none; } }
.tryhint { margin: 20px 0 0; font-size: 14px; color: var(--ink-muted); }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tier.best { border: 2px solid var(--gold); padding: 27px; }
.tier .dots { display: flex; gap: 6px; margin-bottom: 8px; }
.tier .dots b { width: 14px; height: 14px; border-radius: 50%; }
.tier h3 { font: 500 26px/32px var(--display); margin: 0; }
.tier .price { font-size: 14px; font-weight: 600; color: var(--gold-ink); margin: 0; }
.tier p { color: var(--ink-muted); margin: 0; }
.fine { margin: 28px 0 0; color: var(--ink-muted); font-size: 15px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }

/* Privacy */
.private { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.private blockquote { margin: 0; font: 400 clamp(26px, 3.2vw, 36px)/1.3 var(--display); letter-spacing: -0.01em; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { display: flex; align-items: center; gap: 14px; font-weight: 600; margin: 0; padding: 18px 20px; border-radius: 14px; background: var(--surface-raised); border: 1px solid var(--line); }
.facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
@media (max-width: 860px) { .private { grid-template-columns: 1fr; gap: 32px; } }

/* FAQ */
.faq { max-width: 760px; }
.faq details p { color: var(--ink-muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-muted); font-size: 14px; line-height: 21px; }
.foot .note { max-width: 62ch; margin: 0 0 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 12px; }
.foot a { color: var(--ink-muted); }
.foot .wordmark { width: 64px; color: var(--ink); margin-bottom: 20px; }
.badges { display: inline-flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Store buttons (top and bottom): two equal buttons, side by side even on a phone.
   Plum on linen by day, linen on plum by night. */
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 420px); }
.store {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 8px 12px;
  border-radius: 14px; background: var(--ink); color: var(--surface); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease; -webkit-tap-highlight-color: transparent;
}
a.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,22,48,0.18); }
a.store:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.store.soon { opacity: .62; cursor: default; }
.store .mark { flex: none; }
.store-txt { text-align: left; line-height: 1.15; white-space: nowrap; }
.store-txt small { display: block; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; margin-bottom: 2px; }
.store-txt span { font-size: 17px; font-weight: 600; }
@media (max-width: 380px) { .store-txt span { font-size: 15px; } .store { gap: 8px; padding: 8px 10px; } }
@media (prefers-reduced-motion: reduce) { .store { transition: none; } a.store:hover { transform: none; } }
.cta { flex-direction: column; align-items: flex-start; }

/* Bottom download block */
.get { text-align: center; }
.get .intro { margin-left: auto; margin-right: auto; }
.get .cta { align-items: center; }

/* Listen: a round play button with its label; the Future You's voice is a two-part switch. */
.play { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.listen {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 0; border: 0; background: none;
  font: 600 15px/1 var(--sans); color: var(--card-ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.listen .disc {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--band, var(--p-zign)); color: #1e1630;
}
.listen .disc::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--band, var(--p-zign)); opacity: 0; }
.listen.on .disc::after { opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .listen.on .disc::after { animation: ripple 1.4s ease-out infinite; }
  @keyframes ripple { from { transform: scale(.9); opacity: .6; } to { transform: scale(1.35); opacity: 0; } }
}
.listen .i-stop { display: none; }
.listen.on .i-play { display: none; }
.listen.on .i-stop { display: inline; }
.listen:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 999px; }
.fyv { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--ink-muted); }
.fyv[hidden] { display: none; }
.fyv button {
  min-height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font: 600 14px/1 var(--sans); color: var(--ink-muted); -webkit-tap-highlight-color: transparent;
}
.fyv button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.fyv button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sample.glass .listen { color: var(--ink); }
.sample.glass .listen .disc { background: var(--ink); color: var(--surface); }
.sample.glass .listen .disc::after { border-color: var(--ink); }
