/* Duck Type LLC: ducktype.tech
   One stylesheet for every page. Fonts are self-hosted (OFL) so the site
   makes no third-party requests. */

@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/young-serif-400.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/hanken-grotesk-var.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("fonts/hanken-grotesk-italic-var.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); }

:root {
  --paper: #f3eee3;
  --paper-deep: #e9e1d0;
  --card: #fbf8f1;
  --ink: #1b1a16;
  --ink-soft: #4f4b42;
  --ink-faint: #6e685b;
  --rule: #d3c9b4;
  --bill: #e4600f;
  --bill-ink: #b04604;

  --serif: "Young Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(18px, 5vw, 48px);
  --max: 1180px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper grain, kept faint enough to sit under text. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .09 0 0 0 0 .07 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--bill); color: var(--card); }
:focus-visible { outline: 2px solid var(--bill); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--ink); color: var(--card); padding: 10px 14px;
  font: 500 13px var(--mono); text-decoration: none;
}
.skip:focus { top: 12px; }

.mono { font-family: var(--mono); }

.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- header ---------- */

.site-head { border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { width: 34px; height: 30px; color: var(--ink); flex: none; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover svg { transform: rotate(-8deg); }
.brand-name { font: 400 25px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand-llc { font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--ink-faint); margin-left: 2px; align-self: flex-end; padding-bottom: 3px; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); }
.site-nav a {
  font: 500 13px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 0;
  background: linear-gradient(var(--bill), var(--bill)) left 100% / 0 2px no-repeat;
  transition: background-size .25s ease, color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background-size: 100% 2px; }

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--card);
  box-shadow: 0 3px 0 var(--bill);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--bill); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--bill); }
.btn small { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.btn-line { background: transparent; color: var(--ink); box-shadow: none; }
.btn-line:hover { background: var(--ink); color: var(--card); box-shadow: none; }
.btn-off { background: transparent; color: var(--ink-faint); border-color: var(--rule); box-shadow: none; cursor: default; }
.btn-off:hover { transform: none; box-shadow: none; }

.text-link {
  font: 500 14px/1 var(--mono);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: var(--bill); }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px);
}

.hero h1 {
  font: 400 clamp(46px, 7.2vw, 100px)/.98 var(--serif);
  letter-spacing: -.025em;
  margin: 22px 0 28px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--bill); }

.lede { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 34em; margin: 0 0 34px; text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.specimen {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 26px 28px 30px;
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(1.6deg);
  transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.specimen:hover { transform: rotate(0deg); }
.specimen-top { display: flex; justify-content: space-between; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 20px; }
.headword { font: 400 clamp(34px, 3.6vw, 46px)/1 var(--serif); margin: 0 0 8px; letter-spacing: -.01em; }
.pron { font: 400 14px/1.4 var(--mono); color: var(--ink-soft); margin: 0 0 18px; }
.pron i { font-family: var(--sans); font-size: 15px; }
.specimen ol { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; font-size: 16px; line-height: 1.55; }
.specimen ol li::marker { font: 500 14px var(--mono); color: var(--bill-ink); }
.specimen-duck { position: absolute; width: 74px; height: 66px; right: -18px; bottom: -34px; color: var(--ink); transform: rotate(-6deg); }

.hero-strip {
  display: flex; flex-wrap: wrap; gap: 10px 0;
  border-block: 1px solid var(--rule);
  padding-block: 14px;
}
.hero-strip span { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--rule); }
.hero-strip span:last-child { border-right: 0; }

/* Load-in: one staggered pass, nothing after. */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
  .rise-2 { animation-delay: .08s; }
  .rise-3 { animation-delay: .16s; }
  .rise-4 { animation-delay: .24s; }
  .rise-5 { animation-delay: .36s; }
  .specimen.rise { transform: translateY(18px) rotate(1.6deg); animation-name: rise-tilt; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes rise-tilt { to { opacity: 1; transform: rotate(1.6deg); } }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(72px, 10vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font: 400 clamp(38px, 5vw, 64px)/1 var(--serif); letter-spacing: -.02em; margin: 14px 0 0; }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 18px; max-width: 30em; text-wrap: pretty; }

/* ---------- apps ---------- */

.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
  border-top: 1.5px solid var(--ink);
  padding-block: clamp(28px, 4vw, 44px) clamp(56px, 7vw, 88px);
}
.app:nth-of-type(even) .app-stage { order: -1; }

.app-index { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; }
.app-num { font: 400 15px/1 var(--mono); color: var(--ink-faint); }

.app-title { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.app-icon { width: 76px; height: 76px; border-radius: 22.5%; flex: none; box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 10px 22px -8px rgba(27, 26, 22, .45); }
.app-title h3 { font: 400 clamp(34px, 4vw, 50px)/1 var(--serif); letter-spacing: -.02em; margin: 0; }
.app-title .kind { display: block; margin-top: 8px; }

.app-tagline { font: 400 clamp(21px, 2.1vw, 25px)/1.3 var(--serif); margin: 0 0 16px; text-wrap: balance; }
.app-copy p.body { color: var(--ink-soft); margin: 0 0 26px; text-wrap: pretty; }

.specs { display: grid; grid-template-columns: max-content 1fr; margin: 0 0 30px; border-top: 1px solid var(--rule); }
.specs dt, .specs dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.specs dt { font: 500 12px/1.9 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); padding-right: 28px; }
.specs dd { font-size: 16px; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2f9e55; box-shadow: 0 0 0 3px rgba(47, 158, 85, .18); }
.status.soon::before { background: var(--bill); box-shadow: 0 0 0 3px rgba(228, 96, 15, .18); }

.app-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.app-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }

.app-stage {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  isolation: isolate;
}

.phone {
  position: relative;
  width: 250px;
  padding: 8px;
  border-radius: 38px;
  background: #0c0b0f;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset, 0 40px 70px -20px rgba(0, 0, 0, .55);
}
.phone img { width: 100%; border-radius: 30px; }

/* Yatzy Pop!: its own candy palette. */
.stage-yatzy { background: radial-gradient(120% 90% at 85% 0%, #a855f7 0%, transparent 60%), linear-gradient(160deg, #4b2fe6 0%, #6a45f7 45%, #9b4df5 100%); }
.stage-yatzy::before, .stage-yatzy::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); z-index: -1; }
.stage-yatzy::before { width: 440px; height: 440px; top: -160px; left: -140px; }
.stage-yatzy::after { width: 300px; height: 300px; bottom: -120px; right: -80px; }
.stage-yatzy .phone { transform: rotate(-4deg); }

.die {
  --pip: #5b4300;
  position: absolute;
  width: 96px; height: 96px;
  border-radius: 24px;
  background: #ffd23e;
  box-shadow: inset 0 -6px 0 rgba(120, 80, 0, .18), 0 14px 26px -10px rgba(30, 8, 90, .55);
}
.die::before { content: ""; position: absolute; inset: 14px; }
.die-5::before {
  background:
    radial-gradient(circle, var(--pip) 62%, transparent 66%) 0 0 / 18px 18px no-repeat,
    radial-gradient(circle, var(--pip) 62%, transparent 66%) 100% 0 / 18px 18px no-repeat,
    radial-gradient(circle, var(--pip) 62%, transparent 66%) 50% 50% / 18px 18px no-repeat,
    radial-gradient(circle, var(--pip) 62%, transparent 66%) 0 100% / 18px 18px no-repeat,
    radial-gradient(circle, var(--pip) 62%, transparent 66%) 100% 100% / 18px 18px no-repeat;
}
.die-3 { --pip: #fff; background: #ff6b9d; width: 76px; height: 76px; border-radius: 19px; box-shadow: inset 0 -5px 0 rgba(120, 10, 50, .2), 0 14px 26px -10px rgba(30, 8, 90, .55); }
.die-3::before {
  inset: 12px;
  background:
    radial-gradient(circle, var(--pip) 62%, transparent 66%) 0 0 / 15px 15px no-repeat,
    radial-gradient(circle, var(--pip) 62%, transparent 66%) 50% 50% / 15px 15px no-repeat,
    radial-gradient(circle, var(--pip) 62%, transparent 66%) 100% 100% / 15px 15px no-repeat;
}
.stage-yatzy .die-5 { left: 9%; bottom: 13%; transform: rotate(-14deg); }
.stage-yatzy .die-3 { right: 10%; top: 12%; transform: rotate(12deg); }

/* Cowboy: a terminal. */
.stage-cowboy { background: #0a0b0d; color: #d6d7da; flex-direction: column; gap: 26px; }
.stage-cowboy::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px);
}
.term-line { font: 500 14px/1.4 var(--mono); white-space: nowrap; }
.term-line .g { color: #3fbf5b; }
.term-line .r { color: #f0605d; font-weight: 700; }
.term-line .f { color: #6b6f78; }
.cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: #d6d7da; margin-left: 4px; }
@media (prefers-reduced-motion: no-preference) { .cursor { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
.stage-cowboy .phone { background: #1b1d22; }
.term-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font: 400 12px/1.4 var(--mono); color: #8d919a; }
.term-tags span::before { content: "· "; color: #3fbf5b; }

@media (prefers-reduced-motion: no-preference) {
  .stage-yatzy .die-5 { animation: tumble 7s ease-in-out infinite; }
  .stage-yatzy .die-3 { animation: tumble-b 6s ease-in-out infinite; }
  @keyframes tumble { 50% { transform: translateY(-12px) rotate(-6deg); } }
  @keyframes tumble-b { 50% { transform: translateY(10px) rotate(20deg); } }
}

/* ---------- company ---------- */

.company { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); border-top: 1.5px solid var(--ink); padding-top: clamp(36px, 5vw, 56px); }
.company-copy p { margin: 0 0 18px; font-size: 18px; color: var(--ink-soft); text-wrap: pretty; }
.company-copy p:first-child { font: 400 clamp(24px, 2.4vw, 30px)/1.35 var(--serif); color: var(--ink); margin-bottom: 24px; }

.principles { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; counter-reset: p; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 52px 1fr; padding: 18px 0; border-top: 1px solid var(--rule); }
.principles li::before { content: "0" counter(p); font: 500 13px/1.9 var(--mono); color: var(--bill-ink); }
.principles b { display: block; font-weight: 650; font-size: 17px; }
.principles span { color: var(--ink-soft); font-size: 16px; }

.facts {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 26px 28px 12px;
  align-self: start;
  box-shadow: 8px 8px 0 var(--paper-deep);
}
.facts h3 { font: 400 26px/1.1 var(--serif); margin: 0 0 4px; }
.facts .eyebrow { margin-bottom: 18px; }
.facts dl { margin: 0; display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--rule); }
.facts dt { font: 500 12px/1.7 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); padding-right: 16px; }
.facts dd { font-size: 16px; overflow-wrap: anywhere; }
.facts a { text-decoration-color: var(--rule); text-underline-offset: 4px; }
.facts a:hover { text-decoration-color: var(--bill); }

/* ---------- contact ---------- */

.contact { text-align: left; padding-bottom: clamp(72px, 10vw, 128px); }
.contact-card {
  background: var(--ink);
  color: var(--card);
  border-radius: 28px;
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.contact-card .eyebrow { color: #b9b2a2; }
.contact-card h2 { font: 400 clamp(44px, 5.2vw, 72px)/.95 var(--serif); letter-spacing: -.025em; margin: 16px 0 20px; }
.contact-card p { color: #cfc8b8; margin: 0; max-width: 28em; }
.contact-list { display: grid; gap: 0; }
.contact-list a {
  display: grid; gap: 4px;
  padding: 18px 0;
  border-top: 1px solid rgba(243, 238, 227, .18);
  text-decoration: none;
}
.contact-list a:last-child { border-bottom: 1px solid rgba(243, 238, 227, .18); }
.contact-list small { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #b9b2a2; }
.contact-list span { font: 400 clamp(22px, 2.6vw, 32px)/1.2 var(--serif); overflow-wrap: anywhere; transition: color .2s; }
.contact-list a:hover span { color: #ff9a55; }
.contact-duck { position: absolute; width: 46px; height: 41px; right: 22px; top: 18px; color: var(--card); --paper: var(--ink); transform: rotate(-8deg); pointer-events: none; }

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

.site-foot { border-top: 1px solid var(--rule); padding-block: 34px 44px; font-size: 14px; color: var(--ink-soft); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px 40px; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand svg { width: 26px; height: 23px; color: var(--ink); }
.foot-brand b { font: 400 19px/1 var(--serif); color: var(--ink); font-weight: 400; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-nav a { font: 500 13px/1.6 var(--mono); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-decoration-color: var(--bill); text-underline-offset: 4px; }
.foot-legal { margin-top: 22px; font-size: 12.5px; line-height: 1.6; color: var(--ink-faint); max-width: 60em; }

/* ---------- documents (privacy, terms, support) ---------- */

.doc-head { padding-block: clamp(48px, 8vw, 96px) clamp(28px, 4vw, 40px); border-bottom: 1.5px solid var(--ink); margin-bottom: clamp(32px, 5vw, 56px); }
.doc-head h1 { font: 400 clamp(44px, 7vw, 88px)/.98 var(--serif); letter-spacing: -.025em; margin: 16px 0 18px; }
.doc-head p { margin: 0; color: var(--ink-soft); font-size: 19px; max-width: 36em; text-wrap: pretty; }

.doc { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 720px); gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(72px, 10vw, 120px); }
.toc { position: sticky; top: 24px; align-self: start; }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; font: 400 13.5px/1.5 var(--mono); color: var(--ink-soft); text-decoration: none; padding: 5px 0 5px 12px; border-left: 2px solid var(--rule); }
.toc a:hover { color: var(--ink); border-left-color: var(--bill); }

.prose { font-size: 17px; line-height: 1.7; }
.prose h2 { font: 400 clamp(26px, 3vw, 34px)/1.15 var(--serif); letter-spacing: -.01em; margin: 52px 0 14px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 650; margin: 28px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--bill-ink); }
.prose a { text-decoration-color: var(--bill); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose code { font: 400 .88em var(--mono); background: var(--paper-deep); padding: 1px 5px; border-radius: 3px; }
.prose strong { font-weight: 650; }

.callout { background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px; padding: 20px 24px; margin: 24px 0; box-shadow: 6px 6px 0 var(--paper-deep); }
.callout p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 20px 0 24px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--rule); }
.prose th { font: 500 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); border-top: 1.5px solid var(--ink); }

.app-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 8px 0 28px; }
.app-help-card { background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px; padding: 22px; display: grid; gap: 12px; align-content: start; }
.app-help-card header { display: flex; align-items: center; gap: 14px; }
.app-help-card img { width: 52px; height: 52px; border-radius: 22.5%; }
.app-help-card h3 { margin: 0; font: 400 24px/1.1 var(--serif); }
.app-help-card p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.app-help-card ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.app-help-card li { margin: 0; }

/* ---------- 404 ---------- */

.lost { min-height: 62vh; display: grid; place-content: center; text-align: center; gap: 18px; padding-block: 80px; }
.lost svg { width: 120px; height: 107px; margin: 0 auto; color: var(--ink); transform: scaleX(-1) rotate(-8deg); }
.lost h1 { font: 400 clamp(42px, 6vw, 72px)/1 var(--serif); margin: 0; }
.lost p { margin: 0 auto; color: var(--ink-soft); max-width: 26em; }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
  .specimen { max-width: 520px; margin-right: 18px; }
  .section-head { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .app:nth-of-type(even) .app-stage { order: 0; }
  .company { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .head-row { min-height: 64px; }
  .brand-name { font-size: 22px; }
  .brand svg { width: 28px; height: 25px; }
  .brand-llc { display: none; }
  .site-nav a.nav-optional { display: none; }
  .app-stage { min-height: 0; padding: 40px 16px; border-radius: 22px; }
  .phone { width: 210px; border-radius: 32px; }
  .phone img { border-radius: 25px; }
  .die { width: 70px; height: 70px; border-radius: 18px; }
  .die::before { inset: 10px; }
  .die-5::before { background-size: 14px 14px; }
  .die-3 { width: 56px; height: 56px; border-radius: 14px; }
  .die-3::before { inset: 9px; background-size: 11px 11px; }
  .term-line { font-size: 12px; }
  .facts { padding: 22px 18px 8px; }
  .facts dl { grid-template-columns: 1fr; }
  .facts dd { border-top: 0; padding-top: 0; }
  .hero-strip span { border-right: 0; margin-right: 0; padding-right: 0; width: 100%; }
  .contact-card { border-radius: 22px; }
  .specimen { padding: 22px 20px 26px; box-shadow: 7px 7px 0 var(--ink); }
}
