/* ============================================================================
   How it works (public) — the fan hero and seven chapters, each with a
   live tool you can try with your own numbers. Chapters recolour the page.
   ========================================================================== */

/* ---------------------------------------------------------------- hero */
.p-hero { position: relative; padding-top: clamp(120px, 14vw, 170px); padding-bottom: 40px; overflow: clip; }
.p-hero__copy { display: grid; gap: 22px; justify-items: center; text-align: center; }
.p-hero__copy .lede { margin-inline: auto; }
.p-hero__copy .display { max-width: 14ch; }
.fan {
  position: relative; height: clamp(380px, min(48vw, 62vh), 600px); margin-top: clamp(10px, 2vw, 30px);
  perspective: 1800px;
}
.fan__phone {
  position: absolute; left: 50%; bottom: 0; --w: clamp(150px, min(18vw, 30vh), 260px);
  transform-origin: 50% 120%;
  transform: translateX(-50%) rotate(calc(var(--k) * 11deg * var(--open, 1))) translateY(calc(var(--lift, 0px) + var(--ak) * 18px * var(--open, 1)))
    rotateY(calc(var(--k) * -8deg + var(--ry, 0) * 1deg));
  transition: transform 1.6s var(--ease-out);
  z-index: calc(10 - var(--z, 0));
}
.fan__phone:hover { --lift: -18px; }
.fan__phone .phone { --w: inherit; }
.fan__cap {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  opacity: 0; transition: opacity .4s;
}
.fan__phone:hover .fan__cap { opacity: 1; }
.js .fan:not(.is-open) .fan__phone { --open: 0; }

.p-hero__note { margin-top: 60px; text-align: center; }

/* Chapter index — a sticky row of chapter chips */
.chapters {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); z-index: 20;
  display: flex; justify-content: center; margin-top: 30px; pointer-events: none;
}
.chapters__glass {
  pointer-events: auto; display: flex; gap: 2px; padding: 5px; border-radius: 999px; overflow-x: auto; max-width: calc(100vw - 24px);
  background: rgba(10,14,16,.42); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  scrollbar-width: none;
}
.chapters__glass::-webkit-scrollbar { display: none; }
.chapters a {
  flex: none; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 12.5px; font-weight: 650;
  color: var(--ink-2); transition: color .3s, background .4s;
}
.chapters a:hover { color: var(--ink); }
.chapters a.is-on { color: var(--on-accent); background: var(--accent); }

/* ---------------------------------------------------------------- chapters */
.chapter { position: relative; padding-block: clamp(60px, 7vw, 104px); scroll-margin-top: 120px; }
.chapter__head { display: grid; gap: 18px; margin-bottom: clamp(26px, 4vw, 44px); }
.chapter__head .display { max-width: 18ch; }
.chapter__head .chapter__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin-top: 4px; }
@media (max-width: 760px) { .chapter__head .chapter__facts { grid-template-columns: 1fr; } }
.chapter__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.chapter__grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.chapter__grid--flip { grid-template-columns: .65fr 1.35fr; }
.chapter__grid--flip .instrument { order: 2; }
.chapter__side { display: grid; gap: 22px; justify-items: center; position: sticky; top: 132px; }
.chapter__side .phone { --w: min(290px, 70vw, calc((100vh - 250px) * .46)); --w: min(290px, 70vw, calc((100svh - 250px) * .46)); }
.chapter__facts { display: grid; gap: 10px; width: 100%; }
.chapter__facts li { list-style: none; display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.chapter__facts li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.chapter__facts { margin: 0; padding: 0; }
@media (max-width: 960px) {
  .chapter__grid, .chapter__grid--flip { grid-template-columns: 1fr; }
  .chapter__grid--flip .instrument { order: 0; }
  .chapter__side { position: static; }
}

.instrument { padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 18px; min-width: 0; }
.instrument__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.instrument__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
.instrument__title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: 16px; overflow: hidden; background: var(--hair); border: 1px solid var(--hair); }
.readouts > div { background: rgba(0,0,0,.22); padding: 14px 16px; display: grid; gap: 4px; }
.readouts .kv__v { font-size: clamp(20px, 2.2vw, 28px); }
.readouts .kv__v.accent { color: var(--accent); }
@media (max-width: 560px) { .readouts { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- 1 capture: the scan */
.scan { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: start; }
@media (max-width: 640px) { .scan { grid-template-columns: 1fr; } }
.receipt {
  position: relative; overflow: hidden; padding: 20px 18px 26px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #f6f3ea, #efeadd); color: #2a2a28;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  transform: rotate(-1.2deg);
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat, radial-gradient(6px 6px at 6px 0, transparent 98%, #000) bottom left / 12px 8px repeat-x;
          mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat, radial-gradient(6px 6px at 6px 0, transparent 98%, #000) bottom left / 12px 8px repeat-x;
}
.receipt h4 { margin: 0 0 6px; text-align: center; font-size: 13px; letter-spacing: .12em; }
.receipt .muted { color: #8a877e; text-align: center; font-size: 10px; margin-bottom: 8px; }
.receipt .ln { display: flex; justify-content: space-between; gap: 10px; border-radius: 3px; padding: 0 4px; margin: 0 -4px; transition: background .3s; }
.receipt .ln.is-read { background: color-mix(in srgb, var(--c, #6FB7A4) 26%, transparent); }
.receipt .ln.is-detail { color: #8a877e; padding-left: 14px; }
.receipt .tot { border-top: 1px dashed #b9b4a6; margin-top: 8px; padding-top: 6px; font-weight: 700; }
.receipt__beam {
  position: absolute; left: -10%; right: -10%; height: 46px; top: -60px; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 40%, transparent) 45%, color-mix(in srgb, var(--accent) 80%, #fff) 50%, transparent 56%);
  filter: blur(1px); opacity: 0;
}
.scan.is-scanning .receipt__beam { animation: beam 2.2s var(--ease-soft) both; }
@keyframes beam { 0% { top: -60px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.tiers { display: grid; gap: 8px; }
.tier {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--hair); background: rgba(255,255,255,.025); transition: border-color .4s, background .4s, opacity .4s;
  opacity: .55;
}
.tier b { display: block; font-size: 13px; color: var(--ink); }
.tier span { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.tier i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); border: 1px solid var(--hair); }
.tier.is-on { opacity: 1; border-color: var(--accent-line); background: var(--accent-soft); }
.tier.is-on i { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.tier.is-done i::after { content: "✓"; }
.tier.is-done i span { display: none; }
.parsed { display: grid; gap: 6px; }
.parsed__row {
  display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--hair); font-size: 13px;
  animation: row-in .7s var(--ease-spring) both;
}
.parsed__row i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.parsed__row em { font-style: normal; color: var(--ink-3); font-size: 11.5px; display: block; }
.parsed__row .money { font-size: 16px; }
.parsed__sum { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.parsed__sum .ok { color: var(--positive); font-weight: 700; }
@keyframes row-in { from { opacity: 0; transform: translateX(-30px) scale(.96); filter: blur(4px); } }

/* ---------------------------------------------------------------- 2 plan: payoff */
.payoff__chart { width: 100%; height: auto; overflow: visible; }
.payoff__chart .grid line { stroke: var(--hair); }
.payoff__chart .axis text { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-3); letter-spacing: .06em; }
.payoff__chart .area { fill: url(#payoffFill); transition: d .6s var(--ease-out); }
.payoff__chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; transition: d .6s var(--ease-out); }
.payoff__chart .ghost { fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-dasharray: 5 6; }
.payoff__chart .ghost-lbl { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-3); letter-spacing: .06em; }
.payoff__chart .end { fill: var(--accent); transition: cx .6s var(--ease-out), cy .6s; }
.payoff__chart .end-ring { fill: none; stroke: var(--accent); opacity: .4; transition: cx .6s var(--ease-out); }
.debts { display: grid; gap: 6px; }
.debt {
  display: grid; grid-template-columns: 22px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px;
  border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--hair); font-size: 13px;
  transition: border-color .4s, background .4s;
}
.debt .ord { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.debt.is-target { border-color: var(--accent-line); background: var(--accent-soft); }
.debt.is-target .ord { color: var(--accent); }
.debt .apr { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); }
.debt .money { font-size: 15px; }
.debt .paid { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }

/* ---------------------------------------------------------------- 3 project: monte carlo */
.mc { position: relative; }
.mc canvas { width: 100%; height: clamp(240px, 32vw, 340px); display: block; border-radius: 16px; background: rgba(0,0,0,.18); border: 1px solid var(--hair); }
.mc__odds { position: absolute; right: 16px; top: 14px; text-align: right; pointer-events: none; }
.mc__odds .money { font-size: clamp(44px, 5vw, 64px); color: var(--accent); }
.mc__odds .mono { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.ages { display: flex; flex-wrap: wrap; gap: 6px; }
.ages button { border: 1px solid var(--hair); background: rgba(255,255,255,.04); color: var(--ink-2); padding: 7px 14px; border-radius: 999px; font-weight: 650; font-size: 12.5px; cursor: pointer; transition: all .3s; }
.ages button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }

/* ---------------------------------------------------------------- 4 coach */
.coach { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.coach .qs { grid-column: 1 / -1; }
@media (max-width: 720px) { .coach { grid-template-columns: 1fr; } }
.qs { display: flex; flex-wrap: wrap; gap: 6px; }
.qs button {
  border: 1px solid var(--hair); background: rgba(255,255,255,.04); color: var(--ink); border-radius: 16px 16px 16px 4px;
  padding: 9px 13px; font-size: 13px; text-align: left; cursor: pointer; transition: border-color .3s, background .3s, transform .5s var(--ease-spring);
}
.qs button:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.qs button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.meaning { position: relative; aspect-ratio: 1.2; border-radius: 16px; background: rgba(0,0,0,.2); border: 1px solid var(--hair); overflow: hidden; }
.meaning svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.meaning .node circle { fill: rgba(255,255,255,.12); stroke: var(--ink-4); transition: fill .4s, stroke .4s, r .4s; }
.meaning .node text { font-family: var(--font-mono); font-size: 13px; fill: var(--ink-3); letter-spacing: .04em; transition: fill .4s; }
.meaning .node.is-hit circle { fill: var(--accent); stroke: #fff; }
.meaning .node.is-hit text { fill: var(--ink); }
.meaning .word { font-family: var(--font-mono); font-size: 13px; fill: var(--sand); }
.meaning .wdot { fill: var(--sand); }
.meaning .probe { fill: #fff; filter: drop-shadow(0 0 6px var(--accent)); }
.meaning .link { stroke: var(--sand); stroke-width: 1; opacity: .5; stroke-dasharray: 3 4; }
.meaning .thresh { fill: none; stroke: var(--accent); stroke-dasharray: 2 4; opacity: .5; }
.meaning__score { position: absolute; left: 12px; bottom: 10px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-2); letter-spacing: .06em; }
.meaning__score b { color: var(--accent); }
.bubble-a {
  padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: rgba(255,255,255,.06); border: 1px solid var(--hair);
  font-size: 14px; line-height: 1.55; color: var(--ink); min-height: 120px; white-space: pre-line;
}
.bubble-a .caret { display: inline-block; width: 7px; height: 15px; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.bubble-a__src { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }

/* ---------------------------------------------------------------- 5 harbor */
.harbor { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--hair); }
.harbor canvas { display: block; width: 100%; height: clamp(260px, 34vw, 360px); }
.harbor__hud { position: absolute; left: 14px; top: 12px; right: 14px; display: flex; justify-content: space-between; pointer-events: none; }
.harbor__hud .kv__k { color: rgba(255,255,255,.6); }
.harbor__hud .kv__v { font-size: 22px; color: #fff; }
.harbor__offer {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 20px); opacity: 0; white-space: nowrap;
  padding: 9px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: #0b1a14;
  background: #E8C988; box-shadow: 0 10px 30px -8px rgba(232,201,136,.7); transition: opacity .5s, transform .7s var(--ease-spring);
}
.harbor__offer.is-on { opacity: 1; transform: translate(-50%, 0); }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rules div { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--hair); background: rgba(255,255,255,.03); font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.rules b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } }
.ritual-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.ritual-strip figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.ritual-strip .phone { --w: min(220px, 26vw); }
.ritual-strip figcaption { font-size: 12.5px; color: var(--ink-2); text-align: center; max-width: 26ch; }
.ritual-strip figcaption b { color: var(--ink); display: block; font-family: var(--font-serif); font-size: 17px; font-weight: 600; }
@media (max-width: 720px) { .ritual-strip { grid-template-columns: 1fr; } .ritual-strip .phone { --w: 240px; } }

/* ---------------------------------------------------------------- 6 everywhere: dynamic island */
.island-stage {
  position: relative; height: 250px; border-radius: 22px; overflow: hidden; display: grid; justify-items: center; align-content: start; padding-top: 22px;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), linear-gradient(180deg, #0a0d14, #05070b);
  border: 1px solid var(--hair);
}
.island-stage__clock { position: absolute; left: 0; right: 0; top: 96px; text-align: center; font-family: var(--font-ui); font-weight: 200; font-size: 72px; letter-spacing: -.02em; color: rgba(255,255,255,.85); pointer-events: none; transition: opacity .5s; }
.island-stage.is-expanded .island-stage__clock { opacity: .12; }
.di {
  position: relative; z-index: 2; background: #000; color: #fff; border-radius: 22px; overflow: hidden;
  width: 126px; height: 37px; transition: width .7s var(--ease-spring), height .7s var(--ease-spring), border-radius .7s var(--ease-spring);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 20px 40px -20px rgba(0,0,0,.9);
}
.di.is-open { width: min(360px, 92%); height: 150px; border-radius: 42px; }
.di__view { position: absolute; inset: 0; padding: 18px 22px; display: grid; gap: 8px; align-content: start; opacity: 0; transform: scale(.94); transition: opacity .35s, transform .6s var(--ease-spring); pointer-events: none; }
.di.is-open .di__view.is-on { opacity: 1; transform: none; transition-delay: .22s; }
.di__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.di__lbl { font-size: 12px; color: rgba(255,255,255,.6); font-weight: 600; }
.di__big { font-family: var(--font-serif); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.di__bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.di__bar i { display: block; height: 100%; width: var(--w, 50%); background: var(--c, var(--accent)); border-radius: inherit; transition: width 2.6s linear; }
.di__glyph { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--accent)) 25%, transparent); color: var(--c, var(--accent)); }
.di__glyph svg { width: 16px; height: 16px; }
.di__btn { background: var(--c, var(--accent)); color: #000; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 12px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }
.acts button { border: 1px solid var(--hair); background: rgba(255,255,255,.04); color: var(--ink-2); padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 650; cursor: pointer; transition: all .3s; }
.acts button[aria-pressed="true"] { color: var(--ink); border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------------------------------------------------------------- 7 private: the boundary */
.boundary { width: 100%; height: auto; overflow: visible; }
.boundary text { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; fill: var(--ink-2); }
.boundary .title { font-family: var(--font-ui); font-size: 13px; font-weight: 700; fill: var(--ink); letter-spacing: 0; }
.boundary .glass-edge { fill: rgba(255,255,255,.03); stroke: var(--accent-line); stroke-width: 1.5; }
.boundary .mod rect { fill: rgba(255,255,255,.05); stroke: var(--hair); }
.boundary .mod text { fill: var(--ink); font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; letter-spacing: 0; }
.boundary .flow { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 7; animation: flow 1.4s linear infinite; opacity: .8; }
.boundary .opt { fill: none; stroke: var(--sand); stroke-width: 1.5; stroke-dasharray: 6 6; animation: flow 2.2s linear infinite; }
.boundary .none { stroke: var(--negative); stroke-width: 1.5; stroke-dasharray: 2 5; }
.boundary .srv rect { fill: rgba(255,255,255,.02); stroke: var(--ink-4); stroke-dasharray: 4 4; }
.boundary .srv--none rect { stroke: color-mix(in srgb, var(--negative) 60%, transparent); }
.boundary .cross { stroke: var(--negative); stroke-width: 2; stroke-linecap: round; }
.boundary .dot { fill: var(--accent); }
@keyframes flow { to { stroke-dashoffset: -20; } }
.facts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.facts3 div { padding: 14px; border-radius: 14px; border: 1px solid var(--hair); background: rgba(255,255,255,.03); display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.facts3 b { color: var(--ink); font-size: 13.5px; }
@media (max-width: 640px) { .facts3 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- gallery */
.gallery { position: relative; }
.gallery__track {
  display: flex; gap: clamp(16px, 2.4vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px var(--gutter) 60px;
  scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.gcard { flex: none; scroll-snap-align: center; display: grid; gap: 16px; justify-items: center; width: clamp(220px, 24vw, 290px); }
.gcard .phone { --w: 100%; transition: transform .8s var(--ease-spring), box-shadow .6s; }
.gcard:hover .phone { transform: translateY(-10px) rotate(-1deg); }
.gcard__t { display: flex; gap: 8px; align-items: center; font-weight: 650; }
.gcard__t svg { width: 18px; height: 18px; color: var(--accent); }
.gcard__s { font-size: 12.5px; color: var(--ink-3); text-align: center; max-width: 28ch; margin-top: -8px; }
.gallery__hint { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gallery__nav { display: flex; gap: 8px; }
.gallery__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-edge); background: rgba(255,255,255,.06); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .3s, transform .5s var(--ease-spring); }
.gallery__nav button:hover { background: var(--accent-soft); }
.gallery__nav button:active { transform: scale(.92); }
.gallery__nav svg { width: 18px; height: 18px; }

/* Lock Screen widget mocks under the island */
.lockw { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: stretch; }
.lockw__ring, .lockw__rect, .lockw__inline {
  border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff;
}
.lockw__ring { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.lockw__ring svg { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); transform: rotate(-90deg); }
.lockw__ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.lockw__ring b { font-family: var(--font-serif); font-size: 19px; }
.lockw__ring small { display: block; font-size: 9px; color: rgba(255,255,255,.6); text-align: center; margin-top: -2px; }
.lockw__col { display: grid; gap: 10px; }
.lockw__rect { padding: 10px 14px; display: grid; gap: 2px; }
.lockw__rect .t { font-size: 11px; color: rgba(255,255,255,.6); font-weight: 600; }
.lockw__rect .v { font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.lockw__inline { padding: 8px 14px; border-radius: 999px; font-size: 12.5px; color: rgba(255,255,255,.85); display: flex; gap: 8px; align-items: center; }
.lockw__inline svg { width: 14px; height: 14px; }
.lockw__cap { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ---------------------------------------------------------------- your own numbers */
.yours { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.yours svg { width: 14px; height: 14px; color: var(--accent); }
.dedit { display: grid; gap: 6px; }
.dedit__head, .drow { display: grid; grid-template-columns: 1.3fr 1fr .7fr .9fr 34px; gap: 6px; align-items: center; }
.dedit__head span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-left: 4px; }
.drow input {
  width: 100%; min-width: 0; height: 40px; border-radius: 12px; border: 1px solid var(--hair); background: rgba(255,255,255,.05);
  color: var(--ink); font: inherit; font-size: 14px; padding: 0 10px; outline: none; font-variant-numeric: tabular-nums; transition: border-color .3s, background .3s;
}
.drow input:focus { border-color: var(--accent-line); background: rgba(255,255,255,.08); }
.drow input::placeholder { color: var(--ink-3); }
.drow.is-warn input[data-k="min"] { border-color: var(--negative); }
.drow .x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hair); background: none; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.drow .x:hover { color: var(--ink); border-color: var(--accent-line); }
.drow .x svg { width: 14px; height: 14px; }
.dedit__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.dwarn { font-size: 12.5px; color: var(--negative); min-height: 1em; }
@media (max-width: 560px) {
  .dedit__head { display: none; }
  .drow { grid-template-columns: 1fr 1fr; padding: 10px; border-radius: 14px; border: 1px solid var(--hair); }
  .drow input[data-k="name"] { grid-column: 1 / -1; }
  .drow .x { grid-column: 2; justify-self: end; }
}
.mc-in { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.mc-in .num { display: grid; gap: 8px; }
.mc-in .num label { font-size: 13px; color: var(--ink-2); }
.mc-in .num input { height: 42px; border-radius: 12px; border: 1px solid var(--hair); background: rgba(255,255,255,.05); color: var(--ink); font: inherit; font-size: 15px; padding: 0 12px; outline: none; font-variant-numeric: tabular-nums; }
.mc-in .num input:focus { border-color: var(--accent-line); }
@media (max-width: 560px) { .mc-in { grid-template-columns: 1fr; } }
/* the coach reads better stacked on this page */
.coach { grid-template-columns: 1fr; }
.meaning { aspect-ratio: 2.13; }
.meaning .node text, .meaning .word { font-size: 12px; }
/* on phones the map keeps a legible size and scrolls sideways inside its own box */
@media (max-width: 720px) { .coach .stack { overflow-x: auto; overscroll-behavior-x: contain; } .meaning { min-width: 540px; } }
.bubble-a { min-height: 96px; }
