/* InstaDial website - shared styles.
   System fonts only, no JavaScript, no third-party requests. */

:root {
  --indigo: #3d5afe;
  --deep: #2433c4;
  --navy: #0b1020;
  --amber: #ffb300;

  --bg: #f6f7fc;
  --surface: #ffffff;
  --tint: #eaeeff;
  --text: #0b1020;
  --muted: #4d5675;
  --line: #dde2f3;
  --dash: #c3ccf0;
  --link: #2f49e0;
  --shadow: 0 1px 2px rgba(11, 16, 32, .05), 0 12px 32px -14px rgba(11, 16, 32, .2);

  --r: 18px;
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #121936;
    --tint: #1a2350;
    --text: #edf0ff;
    --muted: #a8b1d6;
    --line: #232c57;
    --dash: #36427f;
    --link: #9db0ff;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

svg { display: block; max-width: 100%; }
img { max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  padding: .6rem 1rem; background: var(--amber); color: var(--navy);
  font-weight: 700; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  color: #fff; text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav a:not(.btn) { color: #c9d1f5; text-decoration: none; font-size: .95rem; font-weight: 550; }
.nav a:not(.btn):hover { color: #fff; text-decoration: underline; text-underline-offset: .3em; }
.nav-links { display: none; gap: 1.5rem; }
@media (min-width: 700px) { .nav-links { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.45rem;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.btn-play { background: var(--amber); color: var(--navy); }
.btn-play:hover { background: #ffc233; transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(255, 179, 0, .7); text-decoration: none; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: #fff; text-decoration: none; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--deep); transform: translateY(-1px); text-decoration: none; }
.btn-sm { min-height: 40px; padding: .4rem 1.05rem; font-size: .92rem; }
.btn:focus-visible { outline-color: #fff; outline-offset: 3px; }
.btn-primary:focus-visible { outline-color: var(--link); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6.8vw, 3.75rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }
.hl { color: var(--amber); }
h1 .hl { display: block; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #b9c4ff;
}
.eyebrow::before {
  content: ""; width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 179, 0, .22);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(760px 460px at 84% 6%, rgba(61, 90, 254, .55), transparent 62%),
    radial-gradient(520px 360px at 4% 100%, rgba(61, 90, 254, .3), transparent 66%),
    linear-gradient(180deg, var(--navy) 0%, #10183a 100%);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; padding-block: 2.75rem 3.75rem; }
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 2rem; padding-block: 4.25rem 4.75rem; }
}
.lead { margin: 1.15rem 0 1.85rem; max-width: 34rem; font-size: clamp(1.06rem, 2.4vw, 1.25rem); color: #cdd5fa; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 479px) { .cta-row .btn { flex: 1 1 100%; } }
.compat { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: .88rem; color: #c3cbf0; }
.compat li { padding: .28rem .8rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; }

/* Illustration: a phone home screen with InstaDial widgets (decorative).
   Every size is in em from the font-size set on .phone / .shelf, so it scales as one unit. */
.hero-art { display: grid; justify-items: center; }
.phone {
  position: relative; width: 20em; padding: .6em; border-radius: 3em;
  font-size: clamp(12px, 4vw, 16px); line-height: 1.2;
  background: #05081a; border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 3.2em 5em -2.2em rgba(0, 0, 0, .8), 0 0 0 .5em rgba(255, 255, 255, .045), 0 0 9em -2em rgba(61, 90, 254, .6);
}
.screen {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  aspect-ratio: 9 / 17; padding: .9em 1em 1.2em; border-radius: 2.45em; color: #fff;
  background:
    radial-gradient(15em 12em at 92% 0%, rgba(255, 179, 0, .26), transparent 62%),
    radial-gradient(16em 14em at 0% 58%, rgba(96, 118, 255, .5), transparent 64%),
    linear-gradient(176deg, #3d5afe 0%, #2433c4 42%, #131b5a 76%, #0b1020 100%);
}
.screen::before { /* camera cut-out */
  content: ""; position: absolute; top: .75em; left: 50%; width: .8em; height: .8em; margin-left: -.4em;
  border-radius: 50%; background: #05081a;
}
.screen::after { /* gesture bar */
  content: ""; position: absolute; bottom: .5em; left: 50%; width: 6em; height: .3em; margin-left: -3em;
  border-radius: 1em; background: rgba(255, 255, 255, .6);
}
.sb { display: flex; align-items: center; justify-content: space-between; padding: 0 .9em; font-size: .78em; font-weight: 700; }
.sb svg { width: 2.6em; height: .95em; }
.glance { margin: 1.7em .5em 1.5em; }
.glance b { display: block; font-size: 1.5em; font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }

.home { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1em .5em; align-items: start; }
.home .wg { grid-column: span 2; }
.app { display: grid; justify-items: center; gap: .4em; min-width: 0; }
.app b {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .8em; font-weight: 600; text-shadow: 0 1px 3px rgba(5, 8, 26, .6);
}

/* Round photo-style avatars (initials on gradients, no real photos) */
.av {
  position: relative; display: grid; place-items: center; flex: none; width: 4.1em; height: 4.1em; border-radius: 50%;
  color: #fff; box-shadow: 0 0 0 .14em rgba(255, 255, 255, .9), 0 .5em 1em -.3em rgba(5, 8, 26, .55);
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .38), transparent 56%), var(--g);
}
.av::before { content: attr(data-i); font-size: 1.7em; font-weight: 700; line-height: 1; }
.c1 { --g: linear-gradient(145deg, #6b82ff, #3d5afe); }
.c2 { --g: linear-gradient(145deg, #ffd25e, #ffb300); color: var(--navy); }
.c3 { --g: linear-gradient(145deg, #ff8f8f, #e5484d); }
.c4 { --g: linear-gradient(145deg, #a58bff, #6c3df0); }
.c5 { --g: linear-gradient(145deg, #7ad4ff, #1aa3ea); color: var(--navy); }
.c6 { --g: linear-gradient(145deg, #94a0c2, #54607f); }
.c7 { --g: linear-gradient(145deg, #ff86b8, #d6336c); }

/* The 2x1 widget: photo, name, separate voice and video buttons */
.wg {
  display: flex; align-items: center; gap: .65em; height: 5.2em; padding: .6em .8em .6em .6em;
  border-radius: 1.7em; background: rgba(255, 255, 255, .97); color: var(--navy);
  box-shadow: 0 .8em 1.6em -.7em rgba(5, 8, 26, .7);
}
.wg .av { width: 3.7em; height: 3.7em; box-shadow: none; }
.wg-body { display: grid; gap: .35em; min-width: 0; }
.wg-body b { font-weight: 800; letter-spacing: -.01em; }
.wg-btns { display: flex; gap: .4em; }
.wg-btns i { position: relative; display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; font-style: normal; }
.wg-btns .ic { width: 1.05em; height: 1.05em; stroke-width: 2.4; }
.bv { background: var(--indigo); color: #fff; }
.bw { background: var(--amber); color: var(--navy); }

/* The tap: a soft touch dot, plus a ripple that expands and fades. The ripple plays three times
   (under 5 seconds) and then rests, so nothing loops forever. Reduced motion gets a still ring. */
.tap .ic { position: relative; } /* keeps the icon above the touch dot */
.tap::before, .tap::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.tap::before { left: 50%; top: 50%; width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; background: rgba(36, 51, 196, .07); border: .14em solid rgba(36, 51, 196, .5); }
.tap::after { inset: -.2em; border: .2em solid var(--deep); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .tap::after { animation: ripple 1.6s ease-out .5s 3; } }
@media (prefers-reduced-motion: reduce) { .tap::after { transform: scale(1.8); opacity: .35; } }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }

.dock {
  display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; align-items: center; margin-top: auto;
  padding: .7em .5em; border-radius: 2em; background: rgba(255, 255, 255, .16);
}
.dock i, .dock img { width: 3.1em; height: 3.1em; border-radius: 1.05em; }
.dock i { display: grid; place-items: center; background: rgba(255, 255, 255, .2); color: #fff; }
.dock .ic { width: 1.5em; height: 1.5em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.25rem, 8vw, 5.75rem); }
.section-head { max-width: 40rem; margin: 0 0 2.3rem; }
.sub { margin: .8rem 0 0; font-size: 1.1rem; color: var(--muted); }

/* See it in action: a self-hosted video (no embed, no autoplay) with a text fallback and a script */
.demo-fig { margin: 0; }
.video-frame {
  overflow: hidden; aspect-ratio: 16 / 9; border-radius: calc(var(--r) + 8px);
  background: var(--navy); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--navy); }
.demo-fig figcaption { margin-top: 1rem; color: var(--muted); font-size: .98rem; }
.demo-alt { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; }
.script { margin-top: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.script summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 52px; padding: .8rem 1.2rem; cursor: pointer; font-weight: 700; list-style: none;
}
.script summary::-webkit-details-marker { display: none; }
.script summary::after {
  content: ""; flex: none; width: .6rem; height: .6rem; margin-right: .2rem;
  border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .15s ease;
}
.script[open] summary::after { transform: rotate(-135deg); }
.script[open] summary { border-bottom: 1px solid var(--line); }
.script-body { padding: .4rem 1.2rem 1.1rem; }
.script-body p { margin: .8rem 0 0; max-width: 40rem; color: var(--muted); text-wrap: pretty; }

/* How it works: a three-step timeline (vertical on phones, a row from 760px) */
.how { background: var(--surface); border-block: 1px solid var(--line); }
.how .section-head { margin-bottom: 2.6rem; }
.how-steps { display: grid; gap: 2.2rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.how-steps li { position: relative; padding-left: 4.6rem; counter-increment: step; }
.how-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: var(--indigo); color: #fff; font-size: 1.3rem; font-weight: 800;
  box-shadow: 0 0 0 .38rem var(--tint);
}
.how-steps li:last-child::before { background: var(--amber); color: var(--navy); }
.how-steps li:not(:last-child)::after { /* dashed connector to the next step */
  content: ""; position: absolute; left: calc(1.6rem - 1px); top: 4rem; bottom: -1.5rem; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--dash) 0 6px, transparent 6px 12px);
}
.how-steps h3 { margin-top: .75rem; font-size: 1.3rem; }
.how-steps p { margin: .35rem 0 0; color: var(--muted); text-wrap: pretty; }
.nb { white-space: nowrap; }
.note { margin: 2.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 2.6rem; }
  .how-steps li { padding: 4.7rem 0 0; }
  .how-steps li:not(:last-child)::after {
    left: 4rem; top: calc(1.6rem - 1px); bottom: auto; width: calc(100% - 2.2rem); height: 2px;
    background: repeating-linear-gradient(to right, var(--dash) 0 6px, transparent 6px 12px);
  }
  .how-steps h3 { margin-top: 0; }
}

/* Spotlight: the core feature, shown with the two widget sizes */
.spot {
  display: grid; gap: 1.8rem; align-items: center; margin-bottom: 1.2rem;
  padding: clamp(1.4rem, 4.4vw, 2.5rem); border-radius: calc(var(--r) + 8px); color: #fff;
  background:
    radial-gradient(560px 320px at 100% 0%, rgba(150, 168, 255, .3), transparent 64%),
    linear-gradient(135deg, #3547f0 0%, var(--deep) 52%, #151d63 100%);
  box-shadow: 0 28px 50px -28px rgba(36, 51, 196, .65);
}
@media (min-width: 860px) { .spot { grid-template-columns: 1.1fr .9fr; gap: 2.5rem; } }
.tag {
  display: inline-block; margin: 0 0 .9rem; padding: .22rem .75rem; border-radius: 999px;
  background: var(--amber); color: var(--navy); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.spot h3 { font-size: clamp(1.6rem, 4.2vw, 2.15rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.spot p:not(.tag) { margin: .8rem 0 0; font-size: 1.08rem; }
.ticks { display: grid; gap: .55rem; margin: 1.3rem 0 0; padding: 0; list-style: none; font-weight: 650; }
.ticks li { display: flex; align-items: center; gap: .65rem; }
.ticks .ic { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--amber); color: var(--navy); stroke-width: 3; }
.shelf {
  font-size: clamp(12px, 3.8vw, 18px); line-height: 1.2; padding: 1.7em 1.2em 1.3em; border-radius: 1.6em;
  background: rgba(5, 8, 26, .4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.shelf-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 1.4em; }
.shelf-item { display: grid; justify-items: center; gap: 1em; }
.shelf .wg { width: 11em; }
.cap { font-size: .75em; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .85; }

/* Feature groups: "On your home screen" first, then "Also inside" */
.group-h { margin: 2.6rem 0 .3rem; font-size: clamp(1.3rem, 3.4vw, 1.6rem); letter-spacing: -.02em; font-weight: 800; }
.group-intro { margin: 0 0 1.2rem; color: var(--muted); }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } } /* four home-screen cards: a 2 x 2 block */

.card {
  padding: 1.45rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--link); }
.card h4 { margin: 1.05rem 0 .35rem; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }
.card p { margin: 0; font-size: 1rem; color: var(--muted); text-wrap: pretty; }
.ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--link); }
@media (max-width: 639px) { /* icon beside the text keeps the single-column list short */
  .card { display: grid; grid-template-columns: 46px 1fr; column-gap: 1rem; align-items: start; padding: 1.2rem; }
  .card .ico { grid-row: 1 / span 2; }
  .card h4 { margin: .1rem 0 .3rem; }
}

.band { background: var(--tint); }
.family { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 880px) { .family { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.family p { margin: 1rem 0 0; font-size: 1.1rem; color: var(--muted); }
.perks { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.perks li {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.perks .ico { flex: none; }
.perks b { display: block; font-size: 1.08rem; }
.perks li div span { color: var(--muted); font-size: .98rem; }

/* Privacy highlight + final call to action (always dark) */
.dark { color: #fff; background: linear-gradient(180deg, var(--navy), #10183a); }
.dark .eyebrow { color: #b9c4ff; }
.dark .lead { color: #cdd5fa; max-width: 38rem; margin-bottom: 0; }
.proof { display: grid; gap: 1rem; margin: 2.2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof li { padding: 1.45rem; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .13); border-radius: var(--r); }
.proof .ico { background: rgba(255, 179, 0, .15); color: var(--amber); }
.proof h3 { margin: 1rem 0 .3rem; font-size: 1.25rem; color: #fff; }
.proof p { margin: 0; color: #c3cbf0; font-size: 1rem; }
.dark .more { display: inline-block; margin-top: 1.6rem; color: #fff; font-weight: 650; }
.cta-band { text-align: center; }
.cta-band h2 { max-width: 30rem; margin-inline: auto; }
.cta-band .btn { margin-top: 1.7rem; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.6rem 2.2rem; background: var(--navy); color: #b3bde8; font-size: .95rem; }
.site-footer a { color: #e2e7ff; }
.foot { display: grid; gap: 1.6rem; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.3fr 1fr; } }
.foot p { margin: .7rem 0 0; max-width: 28rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .foot-links { justify-content: flex-end; align-content: flex-start; } }
.legal { margin-top: 1.9rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .13); font-size: .85rem; color: #98a3d4; }
.legal p { margin: 0 0 .5rem; max-width: 62rem; }

/* ---------- Policy / document pages ---------- */
.doc { max-width: 46rem; margin-inline: auto; padding-block: 2.6rem 4.5rem; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); }
.meta { margin: .7rem 0 0; color: var(--muted); }
.doc h2 { margin: 2.6rem 0 .7rem; font-size: 1.45rem; letter-spacing: -.015em; scroll-margin-top: 1rem; }
.doc h3 { margin: 1.5rem 0 .3rem; }
.doc p { margin: .8rem 0; }
.doc ul { margin: .8rem 0; padding-left: 1.3rem; }
.doc li { margin: .4rem 0; }
.callout {
  margin: 1.8rem 0 0; padding: 1.15rem 1.3rem; background: var(--surface);
  border: 1px solid var(--line); border-left: 5px solid var(--amber); border-radius: 14px;
}
.callout h2 { margin: 0 0 .3rem; font-size: 1.1rem; }
.callout ul { margin-bottom: 0; }
.toc { margin: 1.8rem 0 0; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.toc h2 { margin: 0 0 .5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3rem; columns: 2 14rem; column-gap: 2rem; }
.toc li { margin: .25rem 0; break-inside: avoid; }
.perm { margin: 1rem 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.perm > div { display: grid; gap: .15rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.perm > div:last-child { border-bottom: 0; }
.perm dt { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.perm dd { margin: 0; }
@media (min-width: 600px) { .perm > div { grid-template-columns: 11rem 1fr; gap: 1rem; } }
code { padding: .08em .32em; border-radius: 6px; background: var(--tint); font: .92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }

/* ---------- 404 ---------- */
.nf { padding-block: clamp(3.5rem, 12vw, 8rem); text-align: center; }
.nf-code { margin: 0; font-size: clamp(5rem, 24vw, 10rem); line-height: 1; font-weight: 800; letter-spacing: -.05em; color: var(--indigo); }
.nf h1 { margin-top: .4rem; font-size: clamp(1.9rem, 6vw, 3rem); }
.nf p:not(.nf-code) { max-width: 30rem; margin: .9rem auto 1.8rem; color: var(--muted); }

@media (prefers-color-scheme: dark) { .nf-code { color: var(--link); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .toc, .skip, .hero-art, .shelf, .video-frame { display: none; }
  .hero *, .dark *, .spot * { color: #000 !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  .site-footer { padding: 1rem 0; background: none; color: #000; }
  .site-footer a, .legal { color: #000; }
}
