/* Anjo site design system — Editorial dark + Living Pigment, Geist-rigor.
   One accent (PAD-driven), mono machine layer, hairline surfaces, 4px grid.
   Shared by the concise redo pages. */
:root {
  color-scheme: dark;
  --canvas: #0a0a0b;
  --surface: rgba(255,255,255,0.024);
  --surface-2: rgba(255,255,255,0.04);
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.16);
  --text: #f2efe9;
  --muted: #8b8278;
  --muted-2: #6f6862;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
  /* single accent — the only color. PAD-driven; orb script overwrites live. */
  --accent: #c9a96e;
  --accent-2: #e8cd92;
  --bloom: rgba(201,169,110,0.22);
  --dyn-c0: #c9a96e;
  --dyn-c1: #2ec4b6;
  /* 4px grid */
  --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s8:48px; --s10:64px; --s12:96px; --s16:128px;
  --r-sm:10px; --r-md:16px; --r-full:999px;
  --ease: cubic-bezier(0.16,1,0.3,1);
  --w: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  letter-spacing: -0.011em; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--s5); }

/* mono machine label — the editorial signature */
.kicker {
  font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 8px;
}
.kicker::before { content:''; width: 16px; height: 1px; background: var(--line-strong); }
.kicker b { color: var(--accent); font-weight: 600; }

/* nav */
nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--w); margin: 0 auto; padding: 18px var(--s5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { font-weight: 700; font-size: 19px; letter-spacing: -0.04em; }
.nav-links { display: flex; align-items: center; gap: var(--s5); }
.nav-links a.lnk { color: var(--muted); font-size: 14px; transition: color .18s; }
.nav-links a.lnk:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 18px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s var(--ease), background .2s, border-color .2s, opacity .2s;
}
.btn-primary { background: #f2efe9; color: #0a0a0b; }
.btn-primary:hover { transform: translateY(-1px); opacity: .92; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; }

/* hero — the one pigment moment (hybrid: instant CSS pigment → lazy ShaderGradient) */
.hero {
  position: relative; isolation: isolate; padding: var(--s16) 0 var(--s12);
  text-align: center; overflow: hidden;
  /* Instant pigment on first paint so the LCP hero never flashes flat black
     before the WebGL field mounts. Tracks the live PAD vars. */
  background:
    radial-gradient(120% 92% at 50% 34%, color-mix(in srgb, var(--dyn-c0) 22%, transparent) 0%, transparent 60%),
    radial-gradient(80% 62% at 50% 56%, color-mix(in srgb, var(--dyn-c1) 15%, transparent) 0%, transparent 72%),
    var(--canvas);
}
.hero.compact { padding: var(--s12) 0 var(--s10); }
#hero-pigment {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--canvas);
  pointer-events: none;                  /* pure backdrop — no camera grab on hover/scroll */
  opacity: 0; transition: opacity 1.2s var(--ease);
}
#hero-pigment.ready { opacity: 1; }
#hero-pigment canvas { display: block; }
#hero-pigment-veil {                     /* vignette so the headline stays legible over motion */
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(135% 110% at 50% 42%, transparent 50%, rgba(0,0,0,0.40) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.12) 0%, transparent 32%, rgba(0,0,0,0.30) 100%);
}
@media (prefers-reduced-motion: reduce) { #hero-pigment { transition: none; } }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.orb-wrap { margin-bottom: var(--s6); filter: drop-shadow(0 18px 60px var(--bloom)); }
#orb-preview { border-radius: 50%; display: block; }
.hero .lede { color: rgba(255,255,255,0.9); font-size: clamp(20px,2.6vw,26px); line-height: 1.45; max-width: 40ch; }
.hero .hero-note { color: rgba(255,255,255,0.6); }
h1 {
  margin: var(--s5) 0 0; font-weight: 600;
  font-size: clamp(40px, 7.4vw, 84px); line-height: 0.98; letter-spacing: -0.045em;
  max-width: 14ch;
}
h1 em { font-style: normal; color: var(--accent-2); }
.lede { margin: var(--s5) 0 0; max-width: 46ch; color: var(--muted); font-size: clamp(16px,2vw,19px); }
.hero-actions { display: flex; gap: var(--s3); margin-top: var(--s6); flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: var(--s5); font: 500 12px/1 var(--mono); letter-spacing: 0.04em; color: var(--muted-2); }

/* section rhythm */
section.band { padding: var(--s12) 0; border-top: 1px solid var(--line); }
.band-head { max-width: 30ch; margin-bottom: var(--s8); }
.band-head h2 { margin: var(--s4) 0 0; font-weight: 600; font-size: clamp(28px,4vw,44px); line-height: 1.04; letter-spacing: -0.04em; }
.band-head p { margin: var(--s4) 0 0; color: var(--muted); font-size: 17px; }

/* pillars — show, don't tell */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.pillar {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s6) var(--s5) var(--s5);
  background: var(--surface); transition: border-color .2s, background .2s;
  display: flex; flex-direction: column;
}
.pillar::before { content:''; display:block; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent)); margin-bottom: var(--s5); }
.pillar:hover { border-color: var(--line-strong); background: var(--surface-2); }
.pillar-art { height: 132px; border-radius: var(--r-sm); margin-bottom: var(--s5); overflow: hidden;
  display: grid; place-items: center; background: radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.03), transparent 70%); }
.pillar h3 { margin: 0 0 var(--s3); font-size: 20px; font-weight: 600; letter-spacing: -0.025em; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.pillar .num { font: 500 11px/1 var(--mono); color: var(--accent); letter-spacing: 0.1em; margin-bottom: var(--s5); }

/* feature rows — alternating art / copy (how-it-works deep page) */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; padding: var(--s10) 0; border-top: 1px solid var(--line); }
.frow:nth-child(even) .frow-art { order: 2; }
.frow-art { height: 260px; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden;
  display: grid; place-items: center; background: radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.035), transparent 72%); }
.frow-copy h3 { margin: var(--s4) 0 var(--s3); font-size: clamp(24px,3vw,34px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; }
.frow-copy p { margin: 0; color: var(--muted); font-size: 16px; max-width: 42ch; }
.frow-copy .lnk-arrow { display: inline-block; margin-top: var(--s5); color: var(--accent); font-size: 14px; font-weight: 600; }

/* pillar / feature mini-art */
.mini-orb { width: 96px; height: 96px; border-radius: 50%; background: var(--orb-bg,#100e0c);
  box-shadow: inset 0 0 1px rgba(255,255,255,0.18), 0 0 40px -6px var(--bloom);
  background-image: radial-gradient(circle at 38% 34%, color-mix(in srgb,var(--dyn-c1) 80%, transparent), transparent 60%),
                    radial-gradient(circle at 64% 66%, color-mix(in srgb,var(--dyn-c0) 80%, transparent), transparent 62%); }
.mini-map { width: 86%; height: 100%; }
.mini-map .edge { stroke: rgba(163,154,145,0.34); stroke-width: 1.1; stroke-dasharray: 4 4; }
.mini-map text { font: 600 9px var(--mono); fill: var(--muted); letter-spacing: .04em; }

/* ── Inner World map — faithful re-creation of the on-device graph.
   Node colours mirror mobile/lib/wiki-palette.ts (category-fixed, do NOT react
   to PAD). Soft glowing orb-nodes + connecting edges + labelled chips. */
.iw-map { width: 100%; height: 100%; display: block; }
.iw-map .iw-edge { fill: none; stroke-linecap: round; opacity: .55; }
.iw-map .iw-node { transform-box: fill-box; transform-origin: center; }
.iw-map .iw-label { font: 600 11px/1 var(--mono); letter-spacing: .02em; dominant-baseline: middle; }
.iw-map .iw-chip { stroke-width: 1; }
/* gentle drift so the graph feels alive, not a static diagram */
.iw-map .drift-a { animation: iwd 9s var(--ease) infinite alternate; }
.iw-map .drift-b { animation: iwd 11s var(--ease) infinite alternate-reverse; }
.iw-map .drift-c { animation: iwd 13s var(--ease) infinite alternate; }
@keyframes iwd { from { transform: translateY(0); } to { transform: translateY(-6px); } }

/* Inner World showcase — the map as the page's visual centrepiece */
.iw-show { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: var(--s8); align-items: center; }
.iw-stage {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-md);
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(201,169,110,0.06), transparent 60%),
    radial-gradient(100% 100% at 70% 100%, rgba(46,196,182,0.05), transparent 64%),
    #08080a;
  overflow: hidden; aspect-ratio: 16 / 11;
}
.iw-stage::after { /* legibility vignette */
  content:''; position:absolute; inset:0; pointer-events:none;
  box-shadow: inset 0 0 80px 8px rgba(0,0,0,0.55);
}
.iw-stagehead {
  position: absolute; top: 14px; left: 16px; right: 16px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--muted);
}
.iw-stagehead b { color: var(--accent); font-weight: 600; }
.iw-meta { color: var(--muted-2); }
/* node orbs — static canvases rendering the real main-orb blob field, laid over
   the SVG edges/labels and positioned to match the viewBox node coordinates */
.iw-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.iw-orbs canvas { position: absolute; }
@media (max-width: 820px) { .iw-show { grid-template-columns: 1fr; gap: var(--s6); } }

/* privacy pillar glyph — phone holding the inner world, locked */
.iw-lock { display: grid; place-items: center; }
.iw-lock svg { width: 96px; height: 120px; }
.mini-wave { display: flex; align-items: center; gap: 4px; height: 64px; }
.mini-wave span { width: 4px; border-radius: 999px; background: linear-gradient(180deg,var(--accent-2),var(--accent)); animation: wv 1.4s ease-in-out infinite; }
.mini-wave span:nth-child(odd){animation-duration:1.1s}.mini-wave span:nth-child(3n){animation-duration:1.7s}
.mini-wave span:nth-child(2){animation-delay:-.2s}.mini-wave span:nth-child(3){animation-delay:-.6s}.mini-wave span:nth-child(4){animation-delay:-.9s}
.mini-wave span:nth-child(5){animation-delay:-.35s}.mini-wave span:nth-child(6){animation-delay:-.75s}.mini-wave span:nth-child(7){animation-delay:-.15s}
.mini-wave span:nth-child(8){animation-delay:-.55s}.mini-wave span:nth-child(9){animation-delay:-.95s}.mini-wave span:nth-child(10){animation-delay:-.4s}.mini-wave span:nth-child(11){animation-delay:-.7s}
.mini-wave.lg { height: 92px; gap: 5px; } .mini-wave.lg span { width: 5px; }
@keyframes wv { 0%,100%{height:10px;opacity:.5} 50%{height:56px;opacity:1} }

/* trust stages chip row */
.stages { display: flex; gap: 6px; flex-wrap: wrap; }
.stages span { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: var(--r-full); border: 1px solid var(--line); color: var(--muted); }
.stages span.on { color: #0e0d0c; border-color: transparent; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s4); counter-reset: s; }
.step { border-top: 1px solid var(--line-strong); padding-top: var(--s4); }
.step::before { counter-increment: s; content: '0' counter(s); display: block; font: 500 12px/1 var(--mono); color: var(--accent); margin-bottom: var(--s4); letter-spacing: .1em; }
.step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s4); }
.tier { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); background: var(--surface); }
.tier.pop { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--surface-2); }
.tier .tag { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tier.pop .tag { color: var(--accent); }
.tier .price { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; margin: var(--s3) 0 var(--s2); }
.tier .price span { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.tier ul { list-style: none; margin: var(--s4) 0 var(--s5); padding: 0; }
.tier li { color: var(--muted); font-size: 14px; padding: 6px 0; padding-left: 20px; position: relative; }
.tier li::before { content: '·'; position: absolute; left: 6px; color: var(--accent); }
.tier .btn { width: 100%; }

/* comparison table — concise vs pages */
.cmp { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1.1fr 1.4fr 1.4fr; border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; }
.cmp-row > div { padding: 16px 18px; font-size: 14.5px; color: var(--muted); }
.cmp-row .feat { color: var(--text); font-weight: 500; }
.cmp-row .us { color: var(--text); background: color-mix(in srgb, var(--accent) 7%, transparent); border-left: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); }
.cmp-head > div { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); padding-top: 14px; padding-bottom: 14px; }
.cmp-head .us { color: var(--accent); }
@media (max-width: 720px) {
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-row > div { padding: 10px 16px; }
  .cmp-row .feat { padding-top: 16px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
  .cmp-row .us { border-left: 0; }
  .cmp-head { display: none; }
}

/* two-column contrast (mirror vs mold) */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.contrast .col { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); }
.contrast .col.us { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--surface-2); }
.contrast h3 { margin: var(--s3) 0 var(--s2); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.contrast p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 720px) { .contrast { grid-template-columns: 1fr; } }

/* closer */
.closer { text-align: center; padding: var(--s16) 0; }
.closer h2 { font-size: clamp(32px,5vw,56px); font-weight: 600; letter-spacing: -0.045em; margin: var(--s4) 0 0; }
.closer p { color: var(--muted); margin: var(--s4) 0 var(--s6); }

footer { border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s10); }
.inception-badge { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: var(--s8); text-align: center; }
.inception-badge .inception-label { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.inception-badge img { opacity: .82; transition: opacity .2s; }
.inception-badge a:hover img { opacity: 1; }
.inception-badge a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s4); color: var(--muted-2); font-size: 13px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot-links { display: flex; gap: var(--s5); flex-wrap: wrap; }

@media (max-width: 820px) {
  .pillars, .steps, .tiers { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; gap: var(--s5); padding: var(--s8) 0; }
  .frow:nth-child(even) .frow-art { order: 0; }
  .frow-art { height: 200px; }
  .nav-links a.lnk { display: none; }
  .hero { padding-top: var(--s12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-field, .mini-wave span { animation: none; }
  .mini-wave span:nth-child(odd){height:40px}.mini-wave span:nth-child(3n){height:20px}.mini-wave span{height:30px}
}

/* ── Waitlist dialog ─────────────────────────────────────────────────────── */
.waitlist-dialog {
  width: min(92vw, 420px); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: #0e0e10; color: var(--text); padding: var(--s6);
  box-shadow: 0 24px 64px -16px rgba(0,0,0,0.7); position: relative;
}
.waitlist-dialog::backdrop { background: rgba(5,5,6,0.66); backdrop-filter: blur(3px); }
.waitlist-dialog[open] { animation: wl-in .28s var(--ease); }
@keyframes wl-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.waitlist-close {
  position: absolute; top: 10px; right: 12px; width: 32px; height: 32px;
  border: none; background: transparent; color: var(--muted); font-size: 24px; line-height: 1;
  cursor: pointer; border-radius: var(--r-sm);
}
.waitlist-close:hover { color: var(--text); background: var(--surface-2); }
.waitlist-dialog h2 { font-size: 22px; letter-spacing: -0.01em; margin: 0 0 var(--s2); }
.waitlist-sub { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 var(--s5); }
.waitlist-dialog form { display: flex; flex-direction: column; gap: var(--s3); }
.waitlist-dialog input[type="email"] {
  height: 46px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: 15px; width: 100%;
}
.waitlist-dialog input[type="email"]:focus { outline: none; border-color: var(--accent); }
.waitlist-dialog .btn { width: 100%; height: 46px; }
.waitlist-msg { margin: var(--s2) 0 0; font-size: 13px; min-height: 1.2em; }
.waitlist-msg[data-kind="error"] { color: #e88; }
.waitlist-msg[data-kind="success"] { color: var(--accent-2); }
.waitlist-fineprint { color: var(--muted-2); font-size: 12px; margin: var(--s5) 0 0; }
.waitlist-fineprint a { color: var(--muted); text-decoration: underline; }
