/* Atomaze website. "Periodic editorial": porcelain paper, ink type, element tiles as the recurring motif.
   Tokens first; light and dark both first-class. Pages are generated by tools/build-site.py. */

:root {
  --paper: #F5F2EA;
  --paper-2: #EDE8DC;
  --card: #FFFEFB;
  --tile: #FBF8F1;
  --tile-2: #EFE9DC;
  --ink: #15171F;
  --ink-2: #4C4F5C;
  --ink-3: #6A6D7A;
  --rule: rgba(21, 23, 31, .11);
  --rule-2: rgba(21, 23, 31, .18);
  --ion: #2F5BFF;
  --ion-ink: #2448E6;
  --flame: #FF5B35;
  --flame-ink: #D63A14;
  --jade: #12B886;
  --gold: #F2B705;
  --graphite: #0E1014;
  --graphite-2: #181B21;
  --graphite-3: #22262E;
  --on-dark: #F2EFE7;
  --on-dark-2: #A9ACB8;
  --lv-foundation: #12B886;
  --lv-core: #2F5BFF;
  --lv-advanced: #FF5B35;
  --shadow-1: 0 1px 2px rgba(21, 23, 31, .06), 0 8px 24px -12px rgba(21, 23, 31, .18);
  --shadow-2: 0 2px 6px rgba(21, 23, 31, .06), 0 30px 60px -28px rgba(21, 23, 31, .35);

  --serif: "Fraunces", "New York", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1200px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111318;
    --paper-2: #171A20;
    --card: #1A1D24;
    --tile: #20242C;
    --tile-2: #181B22;
    --ink: #F2EFE7;
    --ink-2: #B9BBC6;
    --ink-3: #9497A3;
    --rule: rgba(255, 255, 255, .09);
    --rule-2: rgba(255, 255, 255, .16);
    --ion-ink: #8AA3FF;
    --flame-ink: #FF8A6B;
    --graphite: #08090C;
    --graphite-2: #13151A;
    --graphite-3: #1D2027;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 60px -28px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ion-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ion); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--ion) 25%, transparent); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144;
  font-weight: 360;
  font-size: clamp(3.1rem, 7.6vw, 6.4rem);
  line-height: .94;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 110;
  font-weight: 380;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.03em;
  text-wrap: balance;
}
h3 { font-family: var(--serif); font-variation-settings: "opsz" 36; font-weight: 500; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.012em; }
.lede { font-size: clamp(1.07rem, 1.3vw, 1.2rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }

/* App Store button: self-made, black, never Apple's artwork. */
.store {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 1px;
  min-height: 52px; padding: 7px 20px 8px; border-radius: 13px;
  background: #000; color: #fff; text-decoration: none; line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .0), 0 10px 24px -12px rgba(0, 0, 0, .55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6); text-decoration: none; }
.store__small { font-size: .7rem; letter-spacing: .01em; opacity: .85; }
.store__big { font-size: 1.32rem; font-weight: 600; letter-spacing: -.02em; }
@media (prefers-color-scheme: dark) { .store { box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); } }
.store--nav { min-height: 38px; padding: 4px 13px 5px; border-radius: 10px; }
.store--nav .store__small { font-size: .56rem; }
.store--nav .store__big { font-size: .98rem; }
.store--foot { margin-top: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }

.ghost, .btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 20px; border-radius: 13px;
  font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s, transform .25s var(--ease);
}
.ghost { color: var(--ink); border: 1px solid var(--rule-2); }
.ghost:hover { border-color: var(--ink); text-decoration: none; }
.btn { background: var(--ion); color: #fff; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }

/* ------------------------------------------------------------------------------------------------- nav */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled, .nav.is-open {
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 var(--rule);
}
.nav__in { height: 100%; width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-variation-settings: "opsz" 48; font-weight: 500; font-size: 1.32rem; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 8px -2px rgba(47, 91, 255, .5); }
.brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__in { gap: 12px; }
  .store--nav { margin-left: auto; }
  .nav__toggle {
    display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; border: 0; border-radius: 12px;
    background: transparent; cursor: pointer;
  }
  .nav__toggle i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav.is-open .nav__toggle i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__toggle i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    padding: 8px var(--gutter) 20px; background: var(--paper); box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .4);
    border-bottom: 1px solid var(--rule); display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 13px 0; font-size: 1.1rem; border-bottom: 1px solid var(--rule); }
  .nav__links a:last-child { border-bottom: 0; }
}
@media (max-width: 420px) {
  .store--nav:not(.store--soon) .store__small { display: none; }
  .store--nav { min-height: 36px; padding: 3px 11px 4px; }
  .store--nav .store__big { font-size: .9rem; }
  .brand span { font-size: 1.18rem; }
}

/* ---------------------------------------------------------------------------------------------- phones */

.phone {
  position: relative;
  padding: 2.4%;
  border-radius: 17% / 7.8%;
  background: linear-gradient(150deg, #3A3E49, #121318 38%, #23262E 70%, #0B0C0F);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .14),
    inset 0 0 0 4px rgba(0, 0, 0, .6),
    0 2px 4px rgba(21, 23, 31, .1),
    0 50px 90px -40px rgba(21, 23, 31, .55),
    0 24px 40px -24px rgba(21, 23, 31, .4);
}
.phone > img, .phone .stage__screen img {
  width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; border-radius: 14.6% / 6.7%; background: var(--paper);
}

/* --------------------------------------------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + clamp(28px, 6vw, 72px)) 0 clamp(56px, 8vw, 104px);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink-2); margin-bottom: 26px; }
.mini-tile {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(145deg, var(--tile), var(--tile-2)); box-shadow: inset 0 0 0 1px var(--rule-2), 0 3px 8px -4px rgba(21, 23, 31, .35);
  font: 600 1rem/1 var(--serif); color: var(--ink); transform: rotate(-8deg);
}
.hero__lede { margin-top: 26px; font-size: clamp(1.1rem, 1.45vw, 1.28rem); line-height: 1.5; color: var(--ink-2); max-width: 31em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__fine { margin-top: 18px; font-size: .92rem; color: var(--ink-3); }

.hero__art { position: relative; height: clamp(500px, 56vw, 700px); }
.hero__art .phone { position: absolute; will-change: transform; }
.phone--back { width: 44%; left: 4%; top: 12%; --rot: -7deg; transform: rotate(var(--rot)); z-index: 1; }
.phone--front { width: 50%; right: 6%; top: 2%; --rot: 4deg; transform: rotate(var(--rot)); z-index: 2; }
.orbit { position: absolute; left: -12%; top: 4%; width: 124%; height: auto; overflow: visible; pointer-events: none; }
.orbit ellipse { fill: none; stroke: var(--flame); stroke-width: 3.2; stroke-linecap: round; }
.orbit--back { z-index: 0; opacity: .45; }
.orbit--front { z-index: 3; }
.orbit--front ellipse { stroke-dasharray: 50 50; }
.electron { fill: var(--flame); filter: drop-shadow(0 0 10px rgba(255, 91, 53, .7)); }

/* The periodic table drawn faintly behind the hero, from elements.json */
.ptable {
  position: absolute; z-index: -1; right: max(-6vw, -80px); top: calc(var(--nav-h) + 8px);
  width: min(1180px, 96vw); display: grid; grid-template-columns: repeat(18, 1fr);
  grid-template-rows: repeat(7, auto) 14px repeat(2, auto); gap: 5px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 78%);
}
.ptable span {
  grid-row: var(--r); grid-column: var(--c); aspect-ratio: 1; border-radius: 7px;
  border: 1px solid var(--rule); color: color-mix(in srgb, var(--ink) 20%, transparent);
  font: 500 clamp(.5rem, 1vw, .9rem)/1 var(--serif); display: grid; place-items: center; position: relative;
  transition: background .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.ptable b { position: absolute; left: 12%; top: 9%; font: 400 clamp(.32rem, .55vw, .5rem)/1 var(--mono); }
.ptable span.is-lit {
  background: color-mix(in srgb, var(--k) 20%, transparent);
  border-color: color-mix(in srgb, var(--k) 60%, transparent);
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  transition-duration: .12s;
}

@media (prefers-reduced-motion: no-preference) {
  .ptable span { animation: cell-in .9s var(--ease) both; animation-delay: calc((var(--r) * 2 + var(--c)) * 22ms); }
  .hero__copy > * { animation: rise .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .12s; }
  .hero__copy > :nth-child(3) { animation-delay: .24s; }
  .hero__copy > :nth-child(4) { animation-delay: .34s; }
  .hero__copy > :nth-child(5) { animation-delay: .42s; }
  .hero__art { animation: rise 1.2s .2s var(--ease) both; }
}
@keyframes cell-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { height: clamp(420px, 118vw, 640px); max-width: 560px; width: 100%; margin: 8px auto 0; }
  .ptable { top: calc(var(--nav-h) + 4px); right: -20vw; width: 150vw; opacity: .8; }
}

/* ------------------------------------------------------------------------------------------- stat tiles */

.stats { padding: 0 0 clamp(16px, 3vw, 40px); }
.stats__row { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.stat {
  position: relative; display: flex; flex-direction: column; padding: 16px 18px 18px; min-height: 176px; border-radius: 16px;
  background: linear-gradient(150deg, var(--tile), var(--tile-2)); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1);
}
.stat__code { font: 500 .8rem/1 var(--mono); color: var(--ink-3); }
.stat__n { margin-top: auto; font: 400 clamp(2.6rem, 4.4vw, 3.6rem)/1 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -.04em; font-variant-numeric: tabular-nums lining-nums; }
.stat__label { margin-top: 8px; font-weight: 600; }
.stat__sub { font-size: .88rem; color: var(--ink-3); }
.stat:first-child .stat__n { color: var(--ion-ink); }
@media (max-width: 900px) {
  .stats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:first-child { grid-column: 1 / -1; min-height: 150px; }
}

/* --------------------------------------------------------------------------------------------- reveals */

.js-motion [data-reveal] > *, .js-motion .ctable .tt {
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity .7s var(--ease), transform .8s var(--spring);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js-motion .ctable .readout, .js-motion .ctable .ucol { opacity: 1; transform: none; }
.js-motion .ctable .tt { transform: scale(.7); transition-delay: calc(var(--i, 0) * 32ms); }
.js-motion [data-reveal].is-in > *, .js-motion .ctable.is-in .tt { opacity: 1; transform: none; }
.js-motion .ctable.is-in .tt.is-settled { transition-delay: 0s; }

/* ------------------------------------------------------------------------------------------------ course */

.course { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); }
.course__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--rule-2); background: transparent; color: var(--ink); cursor: pointer; font-weight: 500; font-size: .95rem;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip__n { font: 500 .78rem/1 var(--mono); opacity: .65; }
.chip__dot { width: 9px; height: 9px; border-radius: 50%; }
.chip__dot--all { background: conic-gradient(var(--lv-foundation) 0 33%, var(--lv-core) 0 66%, var(--lv-advanced) 0); }
.chip__dot--foundation { background: var(--lv-foundation); }
.chip__dot--core { background: var(--lv-core); }
.chip__dot--advanced { background: var(--lv-advanced); }

.ctable {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: auto;
  gap: 7px; position: relative;
}
.ucol { display: contents; }
.ucol__head { grid-column: var(--col); grid-row: var(--row); align-self: end; display: flex; justify-content: center; padding-bottom: 2px; }
.ucol__num { font: 500 .78rem/1 var(--mono); color: var(--u); }
.ucol__name { display: none; }
.tt {
  grid-column: var(--col); grid-row: var(--row);
  position: relative; aspect-ratio: 1 / 1.06; min-width: 0; padding: 0; border: 0; border-radius: 11px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: color-mix(in srgb, var(--u) 13%, var(--tile));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--u) 38%, transparent);
  color: var(--ink);
}
.tt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--u); opacity: 0; transition: opacity .25s var(--ease); }
.tt > * { position: relative; }
.tt__n { position: absolute; left: 9%; top: 8%; font: 500 clamp(.55rem, .8vw, .72rem)/1 var(--mono); color: color-mix(in srgb, var(--u) 75%, var(--ink)); }
.tt__lv { position: absolute; right: 9%; top: 9%; width: 7px; height: 7px; border-radius: 50%; }
.tt__lv--foundation { background: var(--lv-foundation); }
.tt__lv--core { background: var(--lv-core); }
.tt__lv--advanced { background: var(--lv-advanced); }
.tt__s { font: 500 clamp(1.05rem, 2.1vw, 1.9rem)/1 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.02em; margin-top: 4%; }
.tt__t {
  margin-top: 5%; padding: 0 6%; font-size: clamp(.5rem, .72vw, .66rem); line-height: 1.15; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tt:hover::before, .tt.is-active::before { opacity: 1; }
.tt:hover, .tt.is-active { color: var(--on); }
.tt:hover .tt__n, .tt:hover .tt__t, .tt.is-active .tt__n, .tt.is-active .tt__t { color: var(--on); opacity: .85; }
.tt.is-active { box-shadow: 0 12px 24px -12px var(--u); }
.tt.is-dim { opacity: .2 !important; filter: saturate(0); }
.tt { transition: opacity .35s var(--ease), filter .35s var(--ease), transform .5s var(--spring), box-shadow .25s; }

.readout {
  grid-column: 5 / 13; grid-row: 1 / 3; align-self: stretch; z-index: 2;
  display: flex; gap: 18px; align-items: center; padding: 6px 4px 10px 14px;
}
.readout__tile {
  flex: none; position: relative; width: clamp(84px, 9vw, 112px); aspect-ratio: 1; border-radius: 14px;
  display: grid; place-items: center; background: var(--u); color: #fff;
  box-shadow: 0 16px 30px -16px var(--u); transition: background .3s var(--ease), box-shadow .3s;
}
.readout__tile span { position: absolute; left: 11px; top: 9px; font: 500 .78rem/1 var(--mono); opacity: .9; }
.readout__tile b { font: 500 2.7rem/1 var(--serif); font-variation-settings: "opsz" 96; letter-spacing: -.02em; }
.readout__body { min-width: 0; }
.readout__unit { font-size: .86rem; color: var(--ink-3); }
.readout__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 450; margin-top: 2px; letter-spacing: -.02em; }
.readout__sub { color: var(--ink-2); margin-top: 3px; font-size: .97rem; }
.readout__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; font-size: .82rem; }
.lvl, .access { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.lvl { background: color-mix(in srgb, var(--lvc, var(--lv-core)) 13%, transparent); color: color-mix(in srgb, var(--lvc, var(--lv-core)) 80%, var(--ink)); }
.lvl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lvc, var(--lv-core)); }
.lvl--foundation { --lvc: var(--lv-foundation); }
.lvl--core { --lvc: var(--lv-core); }
.lvl--advanced { --lvc: var(--lv-advanced); }
.access { background: var(--ink); color: var(--paper); }
.access--free { background: color-mix(in srgb, var(--jade) 16%, transparent); color: color-mix(in srgb, var(--jade) 70%, var(--ink)); }

.legend { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 24px; font-size: .9rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend__n { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--u); color: #fff; font: 500 .72rem/1 var(--mono); }
.course__foot { margin-top: 26px; color: var(--ink-3); font-size: .95rem; }

@media (max-width: 900px) {
  .course__intro { grid-template-columns: 1fr; }
  .ctable { display: flex; flex-direction: column; gap: 18px; }
  .ucol { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .ucol__head { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; align-items: center; gap: 10px; padding: 0; }
  .ucol__name { display: inline; font-weight: 600; font-size: .92rem; }
  .tt { grid-column: auto; grid-row: auto; aspect-ratio: 1; border-radius: 9px; }
  .tt__t { display: none; }
  .tt__s { font-size: clamp(1rem, 4.6vw, 1.5rem); }
  .tt__n { font-size: .55rem; }
  .tt__lv { width: 5px; height: 5px; }
  .readout {
    position: sticky; top: calc(var(--nav-h) + 6px); padding: 12px; border-radius: 18px; gap: 14px;
    background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1);
  }
  .readout__tile { width: 72px; border-radius: 12px; }
  .readout__tile b { font-size: 2rem; }
  .readout__title { font-size: 1.2rem; }
  .readout__sub { font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .readout__unit { font-size: .78rem; }
  .readout__meta { margin-top: 6px; font-size: .74rem; }
  .legend { display: none; }
}

/* -------------------------------------------------------------------------------------------- inside (dark) */

.inside { background: var(--graphite); color: var(--on-dark); padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.inside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
}
.inside .lede { color: var(--on-dark-2); }
.inside a { color: #9DB2FF; }
.inside__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(32px, 6vw, 96px); position: relative; }
.inside__copy > .lede { margin-top: 20px; }
.step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; max-width: 30em; opacity: .32; transition: opacity .5s var(--ease); }
.step.is-on { opacity: 1; }
.step:first-of-type { min-height: 60vh; }
.step__tile {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 12px;
  font: 500 1.35rem/1 var(--serif); color: var(--on-dark);
  background: linear-gradient(145deg, var(--graphite-3), var(--graphite-2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.step.is-on .step__tile { background: var(--ion); box-shadow: 0 10px 30px -10px var(--ion); }
.step h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 400; letter-spacing: -.025em; font-variation-settings: "opsz" 96; }
.step p { margin-top: 14px; color: var(--on-dark-2); font-size: 1.08rem; line-height: 1.6; }
.step__shot { display: none; }

.stage__sticky { position: sticky; top: calc(50vh - min(300px, (100vh - 140px) * .46) * 1.087 + 10px); display: flex; gap: 20px; align-items: center; }
.phone--stage { width: min(300px, (100vh - 140px) * .46); flex: none; }
.phone--stage { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), inset 0 0 0 4px rgba(0, 0, 0, .6), 0 60px 120px -40px rgba(47, 91, 255, .35), 0 30px 60px -30px #000; }
.phone--stage { display: grid; }
.stage__screen { grid-area: 1 / 1; opacity: 0; transform: scale(.965); transition: opacity .55s var(--ease), transform .7s var(--ease); }
.stage__screen.is-on { opacity: 1; transform: none; }
.stage__rail { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.stage__rail li {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  font: 500 .82rem/1 var(--serif); color: var(--on-dark-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: background .3s, color .3s;
}
.stage__rail li.is-on { background: var(--on-dark); color: var(--graphite); }

@media (max-width: 900px) {
  .inside__grid { grid-template-columns: 1fr; }
  .stage { display: none; }
  .step, .step:first-of-type { min-height: 0; opacity: 1; margin-top: 64px; max-width: none; }
  .step__shot { display: block; margin-top: 28px; }
  .step__shot .phone { width: min(62vw, 290px); margin-inline: auto; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), 0 40px 80px -30px #000; }
  .step .step__tile { background: var(--ion); }
}

/* ------------------------------------------------------------------------------------------- try (atom) */

.try { padding: clamp(80px, 10vw, 140px) 0; }
.try__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.try__intro .lede { margin-top: 20px; }
.try__note { margin-top: 18px; color: var(--ink-3); font-size: .95rem; max-width: 30em; }
.try__phone { margin-top: 36px; }
.try__phone .phone { width: 220px; transform: rotate(-4deg); }
@media (max-width: 1099px) { .try__phone { display: none; } }

.bench { background: var(--card); border-radius: 28px; padding: 14px; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-2); }
.bench__stage {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10.5;
  background-color: color-mix(in srgb, var(--paper) 60%, var(--card));
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 22px 22px; background-position: -1px -1px;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.bench__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.etile {
  position: absolute; left: 14px; top: 14px; width: clamp(78px, 10vw, 104px); aspect-ratio: 1; border-radius: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 4px;
  background: color-mix(in srgb, var(--k, #2FBF8A) 18%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--k, #2FBF8A) 70%, transparent);
  transition: background .3s, box-shadow .3s;
}
.etile__n { position: absolute; left: 9px; top: 8px; font: 500 .74rem/1 var(--mono); }
.etile__s { font: 500 clamp(1.8rem, 3vw, 2.4rem)/1 var(--serif); }
.etile__name { font-size: .66rem; margin-top: 4px; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etile__m { font: 400 .62rem/1 var(--mono); margin-top: 3px; color: var(--ink-3); }
.etile.is-pop { animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.08); } }
.charge {
  position: absolute; right: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; font: 500 .82rem/1.2 var(--mono);
  background: color-mix(in srgb, var(--jade) 16%, var(--card)); color: color-mix(in srgb, var(--jade) 70%, var(--ink));
}
.charge.is-pos { background: color-mix(in srgb, var(--flame) 16%, var(--card)); color: var(--flame-ink); }
.charge.is-neg { background: color-mix(in srgb, var(--ion) 16%, var(--card)); color: var(--ion-ink); }
.nuclide {
  position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 3px;
  padding: 8px 14px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule);
}
.nuclide__nums { display: flex; flex-direction: column; align-items: flex-end; font: 500 .74rem/1.15 var(--mono); }
.nuclide b { font: 500 2rem/1 var(--serif); }
.readings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 4px 0; }
.readings div { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--paper) 55%, var(--card)); }
.readings dt { font: 500 .7rem/1.2 var(--mono); color: var(--ink-3); }
.readings dd { margin: 4px 0 0; font: 500 1.4rem/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.readings .is-flame { color: var(--flame-ink); }
.bench__say { margin: 14px 6px 0; min-height: 4.6em; color: var(--ink-2); font-size: .98rem; }
.bench__say strong { color: var(--ink); }
.steppers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.stepper {
  display: grid; grid-template-columns: 44px 1fr 44px; grid-template-rows: auto 44px; align-items: center;
  padding: 10px; border-radius: 16px; background: color-mix(in srgb, var(--paper) 55%, var(--card));
}
.stepper__label { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; margin: 0 0 8px 4px; }
.stepper__label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.stepper--p { --dot: var(--flame); }
.stepper--n { --dot: #9AA0AE; }
.stepper--e { --dot: var(--ion); }
.stepper button {
  width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer; font-size: 1.35rem; line-height: 1;
  background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2), 0 1px 2px rgba(0, 0, 0, .06);
  transition: transform .15s, background .2s;
}
.stepper button:hover { background: var(--tile); }
.stepper button:active { transform: scale(.92); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { text-align: center; font: 500 1.35rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.bench__shells { margin: 12px 6px 4px; font: 400 .82rem/1.3 var(--mono); color: var(--ink-3); }

@media (max-width: 900px) {
  .try__grid { grid-template-columns: 1fr; }
  .bench__stage { aspect-ratio: 1 / .92; }
}
@media (max-width: 560px) {
  .bench { padding: 10px; border-radius: 22px; }
  .readings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steppers { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: auto 44px 1fr 44px; grid-template-rows: 44px; padding: 6px 6px 6px 12px; }
  .stepper__label { grid-column: auto; margin: 0; min-width: 6.5em; }
  .etile { width: 70px; left: 10px; top: 10px; }
  .etile__s { font-size: 1.6rem; }
  .nuclide { padding: 6px 10px; right: 10px; bottom: 10px; }
  .nuclide b { font-size: 1.5rem; }
  .charge { right: 10px; top: 10px; }
}

/* ------------------------------------------------------------------------------------------------- habit */

.habit { padding: clamp(80px, 10vw, 140px) 0 0; background: var(--paper-2); overflow: hidden; }
.habit__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.habit__phones { position: relative; height: clamp(520px, 52vw, 680px); }
.habit__phones .phone { position: absolute; }
.phone--a { width: 62%; left: 0; top: 0; transform: rotate(-3deg); z-index: 1; }
.phone--b { width: 46%; right: 0; bottom: 0; transform: rotate(5deg); z-index: 2; }
.habit__copy .lede { margin-top: 20px; }
.habit__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.hcard { padding: 20px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1); }
.hcard h3 { margin-top: 16px; font-size: 1.2rem; }
.hcard p { margin-top: 6px; font-size: .94rem; color: var(--ink-2); }
.hcard__tile {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  font: 500 1.3rem/1 var(--serif); color: #fff; background: linear-gradient(145deg, #7B95FF, var(--ion));
}
.hcard__tile--flame { background: linear-gradient(145deg, #FF8A65, var(--flame)); font-family: var(--mono); font-size: 1.15rem; }
.hcard__tile--gold { background: linear-gradient(145deg, #FFD54A, var(--gold)); color: var(--ink); font-family: var(--mono); font-size: 1.15rem; }
.ring { width: 52px; height: 52px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring circle:first-child { stroke: color-mix(in srgb, var(--jade) 18%, transparent); }
.ring__fill { stroke: var(--jade); stroke-linecap: round; stroke-dasharray: 90 100; }
.js-motion .ring__fill { stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s var(--ease) .3s; }
.js-motion .is-in .ring__fill { stroke-dasharray: 90 100; }
.habit__fine { margin-top: 20px; font-size: .92rem; color: var(--ink-3); }

.ribbon { margin-top: clamp(64px, 8vw, 110px); padding: 28px 0 36px; border-top: 1px solid var(--rule); overflow: hidden; }
.ribbon__track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: 8px; width: max-content; will-change: transform; }
.ribbon__track li {
  flex: none; width: 92px; height: 104px; border-radius: 12px; padding: 9px 10px; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--k) 12%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 35%, transparent);
}
.ribbon__track span { font: 500 .62rem/1 var(--mono); color: var(--ink-3); }
.ribbon__track b { margin-top: auto; font: 500 1.75rem/1 var(--serif); }
.ribbon__track em { font-style: normal; font-size: .7rem; color: var(--ink-2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ribbon__track li:first-child, .ribbon__track li:nth-child(26), .ribbon__track li:last-child { background: var(--k); box-shadow: 0 10px 22px -12px var(--k); }
.ribbon__track li:first-child *, .ribbon__track li:nth-child(26) *, .ribbon__track li:last-child * { color: #fff; }
.ribbon__track li:first-child * { color: var(--ink); }
.no-motion .ribbon, .ribbon.is-static { overflow-x: auto; scrollbar-width: thin; }

@media (max-width: 900px) {
  .habit__grid { grid-template-columns: 1fr; }
  .habit__phones { order: 2; height: clamp(420px, 120vw, 600px); max-width: 520px; width: 100%; margin: 0 auto; }
  .habit__cards { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------------------------- audience */

.audience { padding: clamp(80px, 10vw, 140px) 0; }
.audience .lede { margin-top: 18px; }
.audience__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.acard { padding: 24px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1); }
.acard__tile {
  position: relative; width: 112px; aspect-ratio: 1; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--lv); color: #fff; box-shadow: 0 16px 30px -16px var(--lv); margin-bottom: 26px;
}
.acard__tile span { position: absolute; left: 11px; top: 10px; font: 500 .8rem/1 var(--mono); }
.acard__tile b { font: 500 2.7rem/1 var(--serif); }
.acard__tile em { font-style: normal; font-size: .72rem; margin-top: 4px; }
.acard h3 { font-size: 1.5rem; }
.acard__count { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.acard__count .access { font-size: .76rem; }
.acard p:last-child { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 900px) { .audience__grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------------------------------- pricing */

.pricing { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper-2); }
.pricing .lede { margin-top: 18px; }
.pricing__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) auto; gap: 16px; margin-top: 44px; align-items: start; }
.pcard { padding: 26px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1); }
.pcard header { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.pcard h3 { font-size: 1.5rem; }
.pcard__price { font: 500 .95rem/1.3 var(--mono); color: var(--ink-3); margin-top: 2px; }
.pcard__tile {
  flex: none; width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  font: 500 1.6rem/1 var(--serif); background: linear-gradient(145deg, var(--tile), var(--tile-2)); box-shadow: inset 0 0 0 1px var(--rule-2);
}
.pcard__tile--pro { background: linear-gradient(145deg, #FFD54A, var(--gold)); color: var(--ink); box-shadow: 0 12px 24px -14px var(--gold); }
.pcard--pro { background: var(--graphite); color: var(--on-dark); box-shadow: var(--shadow-2); }
.pcard--pro .pcard__price { color: var(--on-dark-2); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: .97rem; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 17px; height: 17px; border-radius: 5px;
  background: color-mix(in srgb, var(--jade) 18%, transparent);
}
.ticks li::after { content: ""; position: absolute; left: 5.5px; top: calc(.2em + 3.5px); width: 4px; height: 8px; border: solid var(--jade); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pcard--pro .ticks li::before { background: rgba(242, 183, 5, .18); }
.pcard--pro .ticks li::after { border-color: var(--gold); }
.pcard--free .store { margin-top: 26px; }
.plans { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
.plan {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name price" "note price"; align-items: center; gap: 2px 16px;
  padding: 13px 16px; border-radius: 14px; background: var(--graphite-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.plan__name { grid-area: name; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.plan__note { grid-area: note; font-size: .82rem; color: var(--on-dark-2); }
.plan__price { grid-area: price; font: 500 1.2rem/1 var(--mono); text-align: right; }
.plan__price small { display: block; font-size: .72rem; color: var(--on-dark-2); margin-top: 4px; }
.plan--best { box-shadow: inset 0 0 0 1.5px var(--gold); background: linear-gradient(90deg, rgba(242, 183, 5, .1), transparent 70%), var(--graphite-2); }
.plan__flag { padding: 3px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .68rem; font-weight: 700; }
.pricing__phone .phone { width: 250px; }
.fine { margin-top: 28px; font-size: .84rem; line-height: 1.6; color: var(--ink-3); max-width: 64em; }
@media (max-width: 1099px) {
  .pricing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing__phone { display: none; }
}
@media (max-width: 760px) { .pricing__grid { grid-template-columns: 1fr; } .pcard { padding: 20px; } }

/* --------------------------------------------------------------------------------------------------- faq */

.faq { padding: clamp(80px, 10vw, 140px) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 64px; align-items: start; }
.faq__grid > .h2 { position: sticky; top: calc(var(--nav-h) + 24px); }
.faq__list { border-top: 1px solid var(--rule-2); }
.faq__more { grid-column: 2; color: var(--ink-2); }
.qa { border-bottom: 1px solid var(--rule-2); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 2px; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 1.22rem; font-weight: 450; }
.qa__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--rule-2); transition: background .25s, transform .35s var(--ease); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); translate: -50% -50%; transition: transform .35s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { background: var(--ink); }
.qa[open] .qa__icon::before, .qa[open] .qa__icon::after { background: var(--paper); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa__a { padding: 0 48px 22px 2px; color: var(--ink-2); max-width: 40em; }
.qa summary:hover h3 { color: var(--ion-ink); }
@supports selector(::details-content) {
  .qa::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
  .qa[open]::details-content { block-size: auto; }
  :root { interpolate-size: allow-keywords; }
}
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__grid > .h2 { position: static; }
  .faq__more { grid-column: 1; }
}

/* ------------------------------------------------------------------------------------------------ closer */

.closer { padding: 0 0 clamp(80px, 10vw, 140px); text-align: center; }
.closer__in { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.closer__icon { width: 120px; height: 120px; border-radius: 27px; box-shadow: 0 30px 60px -24px rgba(47, 91, 255, .6); transform: rotate(-6deg); }
.closer .lede { margin-bottom: 8px; }

/* ------------------------------------------------------------------------------------------------ footer */

.foot { background: var(--graphite); color: var(--on-dark-2); padding: 64px 0 36px; font-size: .95rem; }
.foot .brand { color: var(--on-dark); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot__brand p { margin-top: 14px; max-width: 26em; }
.foot h2 { font: 600 .9rem/1.2 var(--sans); color: var(--on-dark); margin-bottom: 12px; }
.foot nav, .foot__grid > div:last-child { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot a { color: var(--on-dark-2); text-decoration: none; }
.foot a:hover { color: var(--on-dark); text-decoration: underline; }
.foot__note { font-size: .86rem; }
.foot__legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; display: grid; gap: 6px; color: #8C8F9B; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------------------------- doc pages */

.docmain { padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(72px, 9vw, 120px); }
.doc { max-width: 760px; }
.doc__head { padding-bottom: 32px; border-bottom: 1px solid var(--rule-2); margin-bottom: 36px; }
.doc__tile {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 15px; margin-bottom: 26px;
  font: 500 1.75rem/1 var(--serif); color: #fff; background: linear-gradient(145deg, #6F8CFF, var(--ion)); box-shadow: 0 16px 30px -16px var(--ion); transform: rotate(-6deg);
}
.h1--doc { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.doc__head .lede { margin-top: 16px; }
.doc__body { font-size: 1.04rem; line-height: 1.68; }
.doc__body > * + * { margin-top: 1em; }
.doc__body h2 { font-family: var(--serif); font-variation-settings: "opsz" 60; font-weight: 450; font-size: 1.6rem; letter-spacing: -.015em; line-height: 1.2; margin-top: 2.1em; }
.doc__body ul { padding-left: 1.2em; }
.doc__body li + li { margin-top: .4em; }
.doc__body li::marker { color: var(--ion); }
.doc__date { font: 500 .88rem/1 var(--mono); color: var(--ink-3); }
.contact {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px; border-radius: 22px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1);
}
.contact h2 { margin-top: 0; }
.contact p { margin-top: 8px; }
.contact__tip { font-size: .9rem; color: var(--ink-3); }
.contact .btn { flex: none; }
.faq--doc { padding: 24px 0 8px; }
.faq--doc .faq__list { margin-top: 18px; }
.faq--doc .qa summary h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
@media (max-width: 640px) { .contact { flex-direction: column; align-items: flex-start; padding: 20px; } }

.nf__in { max-width: 720px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 20px; }
.nf__tile {
  position: relative; width: 150px; aspect-ratio: 1; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, transparent 0 8px, var(--rule) 8px 9px), linear-gradient(145deg, var(--tile), var(--tile-2));
  box-shadow: inset 0 0 0 1.5px var(--rule-2), var(--shadow-1); border: 1.5px dashed var(--rule-2); transform: rotate(-5deg);
}
.nf__tile span { position: absolute; left: 14px; top: 12px; font: 500 .9rem/1 var(--mono); color: var(--ink-3); }
.nf__tile b { font: 500 4rem/1 var(--serif); color: var(--ink); }
.nf__tile em { font-style: normal; font-size: .8rem; color: var(--ink-3); margin-top: 4px; }
.nf__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
