/* Zigh landing page: Zign's landing layout, with flowers in place of personalities.
   Tokens come from zigh.css; this file adds the landing layout. */
:root {
  --f-white: #f7f4ec;  --f-white-rim: #e2ddd2;
  --f-red: #d0283a;    --f-red-rim: #bc2032;
  --f-yellow: #f2c230; --f-yellow-rim: #deaf22;
  --f-blue: #5f86d8;   --f-blue-rim: #5379c9;
  --f-violet: #8a4bb0; --f-violet-rim: #7c40a0;
  --on-p: #1e1630;
  /* Zigh's card is warm charcoal in both themes, as in the app: every petal colour shows on it. */
  --card: #26211f;
  --card-ink: #f3ede3;
  --card-ink-muted: #b5aaa0;
  --shadow-card: 0 14px 32px rgba(30,22,48,0.14);
  --glow: rgba(232,168,76,0.22);
  --bezel: #2a2040;
}
@media (prefers-color-scheme: dark) {
  :root {
    --shadow-card: 0 18px 40px rgba(8,5,16,0.55);
    --glow: rgba(232,168,76,0.16);
    --bezel: #0e0a17;
  }
}

html { scroll-behavior: smooth; }
/* The hero phone's glow reaches past the page edge; keep it from adding a sideways scroll. */
html, body { overflow-x: clip; }
@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); }
/* Decision circles: Zign's "Let fate choose" style, a raised circle with a gold rim. */
.p-decision { --fill: var(--surface-raised); --rim: #dca048; color: var(--surface-raised); box-shadow: inset 0 0 0 2px var(--gold); }
.p-decision.on { background: var(--gold); color: var(--on-p); box-shadow: 0 0 0 6px #dca048; }
.ring .p-decision span { color: var(--ink); }
.ring .p-decision.on span { color: var(--on-p); }
/* Colour circles. */
.f-white { --fill: var(--f-white); --rim: var(--f-white-rim); box-shadow: inset 0 0 0 1px var(--line); }
.f-red { --fill: var(--f-red); --rim: var(--f-red-rim); }
.f-yellow { --fill: var(--f-yellow); --rim: var(--f-yellow-rim); }
.f-blue { --fill: var(--f-blue); --rim: var(--f-blue-rim); }
.f-violet { --fill: var(--f-violet); --rim: var(--f-violet-rim); }
.f-red.on, .f-blue.on, .f-violet.on { color: #fbf8f3; }
.f-white.on { box-shadow: inset 0 0 0 1px var(--line), 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 9.6s infinite; animation-delay: calc(var(--i) * 1.6s); }
}
@keyframes peek { 0%, 15% { background: var(--gold); box-shadow: 0 0 0 4px #dca048; } 16.6%, 100% { background: var(--surface-raised); box-shadow: inset 0 0 0 2px var(--gold); } }
.phone .pc span { font-size: 10.5px; }

/* ── 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)); }
.step-flower { width: 132px; height: 132px; }
@media (prefers-reduced-motion: no-preference) { .step-flower { animation: sway 6s ease-in-out infinite alternate; } }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
/* The sample card: cropped from a real share image (design/share/sample_share_card.png). */
.step-card { width: 85px; height: 151px; border-radius: 6px; box-shadow: var(--shadow-card); }

/* Flowers: a colour ring, and that colour's five flowers beside it. */
.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: 520px; 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 18px; }
.picks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 0 20px; }
.picks button {
  display: grid; justify-items: center; gap: 6px; padding: 8px 2px; border: 0; border-radius: 16px; background: none; cursor: pointer;
  font: 600 12px/15px var(--sans); color: var(--ink-muted); text-align: center; -webkit-tap-highlight-color: transparent;
}
.picks button img { width: 100%; max-width: 84px; aspect-ratio: 1; border-radius: 50%; background: var(--surface-raised); transition: box-shadow .15s ease; }
.picks button[aria-pressed="true"] { color: var(--ink); }
.picks button[aria-pressed="true"] img { box-shadow: 0 0 0 4px var(--band, var(--gold)); }
.picks button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sample {
  position: relative; border: 1px solid #6f655c; 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(--f-yellow)); }
.sample h4 { font: 500 26px/32px var(--display); margin: 0; }
.sample .latin { margin: 4px 0 12px; font: italic 400 15px/20px var(--display); color: var(--card-ink-muted); }
.sample p { margin: 0; color: var(--card-ink-muted); font-size: 15px; line-height: 23px; }
.tryhint { margin: 20px 0 0; font-size: 14px; color: var(--ink-muted); }

/* Decisions */
.calls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.calls li { margin: 0; padding: 22px 24px; border-radius: 20px; background: var(--surface-raised); border: 1px solid var(--line); }
.calls b { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--gold); font: 600 12px/1 var(--sans); margin-bottom: 12px; }
.calls p { margin: 0; font: 500 22px/28px var(--display); }
.calls p em { font-style: italic; font-weight: 400; color: var(--ink-muted); }
@media (max-width: 860px) { .calls { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .calls { grid-template-columns: 1fr; } }

/* 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; }

.get h2.big { margin-left: auto; margin-right: auto; }

/* Language menu at the top right, beside Support: a globe and the current language. */
.bar .lang { position: relative; }
.bar .lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  font-size: 14px; line-height: 20px;
}
.bar .lang summary::-webkit-details-marker { display: none; }
.bar .lang summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bar .lang[open] summary { border-color: var(--gold); }
.bar .lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; margin: 0; padding: 6px; list-style: none;
  min-width: 150px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-card);
}
.bar .lang li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.bar .lang li a:hover { background: var(--surface); }
.bar .lang li a[aria-current] { font-weight: 600; color: var(--gold-ink, var(--ink)); }
.bar .lang summary::before { content: none; display: none; }
.bar nav { align-items: center; }
.bar .lang { border: 0; padding: 0; margin: 0; }
