/* ===========================================================
   Stack Trace Studios — dark + developer motif
   =========================================================== */

:root {
  --bg:        #08090d;
  --bg-2:      #0b0d12;
  --surface:   #13151c;
  --surface-2: #181b24;
  --border:        rgba(255,255,255,.08);
  --border-hover:  rgba(255,255,255,.18);

  --text:     #eceef2;
  --text-dim: #9aa0ac;
  --text-mute:#6b7280;

  --accent:   #7c6cff;
  --accent-2: #c084fc;
  --grad: linear-gradient(120deg, #7c6cff 0%, #a855f7 50%, #f0abfc 100%);

  --green: #4ade80;
  --cyan:  #38bdf8;
  --amber: #fbbf24;
  --red:   #fb7185;

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --maxw: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ===================== Background ===================== */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow-1 { width: 620px; height: 620px; top: -200px; left: -120px; background: radial-gradient(circle, #6d3bff, transparent 70%); }
.glow-2 { width: 560px; height: 560px; top: -120px; right: -160px; background: radial-gradient(circle, #c026d3, transparent 70%); opacity:.35; }
.glow-3 { width: 700px; height: 700px; bottom: -380px; left: 30%; background: radial-gradient(circle, #2563eb, transparent 70%); opacity:.28; }

/* ===================== Nav ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,9,13,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.brand-dim { color: var(--text-mute); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; color: var(--text-dim); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 16px; border-radius: 10px; color: var(--text) !important;
  background: var(--surface); border: 1px solid var(--border);
}
.nav-cta:hover { border-color: var(--border-hover); background: var(--surface-2); }

/* ===================== Buttons ===================== */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 12px; cursor: pointer; transition: transform .15s ease, box-shadow .25s ease, border-color .2s; }
.btn-primary { background: var(--grad); color: #0b0612; box-shadow: 0 8px 30px -8px rgba(124,108,255,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(124,108,255,.75); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-hover); transform: translateY(-2px); }

/* ===================== Hero ===================== */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-top: 92px; padding-bottom: 84px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; color: var(--text-dim); margin-bottom: 22px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px 2px rgba(74,222,128,.7); }
.hero-title { font-size: clamp(2.4rem, 5.2vw, 4.05rem); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; margin-bottom: 22px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.18rem; color: var(--text-dim); max-width: 34ch; margin-bottom: 34px; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Terminal */
.hero-term { perspective: 1400px; }
.term {
  background: linear-gradient(180deg, #0f1118, #0c0e14);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(124,108,255,.06), inset 0 1px 0 rgba(255,255,255,.04);
  transform: rotateY(-7deg) rotateX(3deg); transform-origin: center;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.hero-term:hover .term { transform: rotateY(0) rotateX(0); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 15px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot.r { background: #fb6f6f; } .tdot.y { background: #fbbf4d; } .tdot.g { background: #57d977; }
.term-title { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--text-mute); }
.term-body { padding: 20px 22px; font-family: var(--mono); font-size: 13.5px; line-height: 1.85; overflow-x: auto; }
.term-body code { color: #cfd3dc; }
.t-line { display: block; }
.c-prompt { color: var(--green); font-weight: 600; }
.c-flag { color: var(--amber); }
.c-key { color: var(--accent-2); }
.c-fn  { color: var(--cyan); }
.c-str { color: var(--green); }
.c-mut { color: var(--text-mute); }
.c-ok  { color: var(--green); font-weight: 700; }
.cursor { color: var(--accent-2); animation: blink 1.1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

/* ===================== Stats ===================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 30px; }
.stat {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 26px 22px; text-align: center;
}
.stat-num { display: block; font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { display: block; margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }

/* ===================== Sections ===================== */
.section { padding-block: 84px; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-tag { font-family: var(--mono); font-size: 13px; color: var(--accent-2); margin-bottom: 14px; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.section-lead { margin-top: 16px; font-size: 1.1rem; color: var(--text-dim); }

.group-label { display: flex; align-items: center; gap: 12px; font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; margin: 46px 0 22px; }
.group-label:first-of-type { margin-top: 8px; }
.group-glyph { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); font-size: 1.05rem; }

/* ===================== Cards ===================== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), color-mix(in srgb, var(--g1) 18%, transparent), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: 0 24px 50px -28px rgba(0,0,0,.85); }
.card:hover::before { opacity: 1; }
.app-icon {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; font-size: 1.6rem;
  background: linear-gradient(150deg, var(--g1, #7c6cff), var(--g2, #c084fc));
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--g1) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { min-width: 0; }
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.card-top h4 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
.tag { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); padding: 3px 8px; border: 1px solid var(--border); border-radius: 6px; white-space: nowrap; }
.card p { font-size: .94rem; color: var(--text-dim); line-height: 1.55; }

/* ===================== About ===================== */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.about-copy p { color: var(--text-dim); margin-top: 18px; font-size: 1.05rem; }
.principles { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.principles li {
  display: flex; gap: 14px; align-items: baseline;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 15px 18px; font-size: .96rem; color: var(--text-dim);
}
.p-key { flex: 0 0 76px; font-family: var(--mono); font-size: 12.5px; color: var(--accent-2); font-weight: 600; }

/* ===================== Contact ===================== */
.contact { text-align: center; max-width: 620px; margin-inline: auto; }
.contact .section-lead { margin-inline: auto; max-width: 46ch; }
.mail-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  font-family: var(--mono); font-size: 1rem; padding: 16px 26px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .18s ease, border-color .2s, box-shadow .3s;
}
.mail-btn:hover { transform: translateY(-3px); border-color: var(--border-hover); box-shadow: 0 18px 44px -20px rgba(124,108,255,.55); }
.mail-btn .c-prompt { color: var(--green); }
.mail-addr { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }

/* ===================== Footer ===================== */
.footer { border-top: 1px solid var(--border); padding-block: 36px; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 14px; color: var(--text-dim); }
.footer-meta { font-size: 13px; color: var(--text-mute); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13.5px; color: var(--text-dim); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ===================== Reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; }
  .hero-term { order: 2; }
  .term { transform: none; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  /* The links used to be hidden outright here. With Support and two family pages in
     the bar that stranded users on phones, so the row scrolls sideways instead. */
  .nav-inner { height: auto; padding-block: 10px; flex-wrap: wrap; }
  .nav-links {
    gap: 14px; width: 100%; overflow-x: auto; padding-bottom: 2px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; font-size: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: 60px; }
  .hero-sub { max-width: none; }
}

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .term { transform: none; }
}

/* ===========================================================
   Multi-page site: families, app pages, support & privacy docs
   Added when the site absorbed the per-app GitHub Pages sites.
   =========================================================== */

/* Every page scopes --g1/--g2 to its own app or family, so accents cascade. */
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after {
  content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ---------- Status pills ---------- */
.pill {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .03em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--border);
  color: var(--text-dim);
}
.pill-live { color: #86efac; border-color: rgba(74,222,128,.32); background: rgba(74,222,128,.09); }
.pill-soon { color: #fcd34d; border-color: rgba(251,191,36,.30); background: rgba(251,191,36,.08); }
.pill-dev  { color: #93c5fd; border-color: rgba(56,189,248,.30); background: rgba(56,189,248,.08); }

/* ---------- Family sections on the hub ---------- */
.family-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 34px;
}
.family-head > div { max-width: 660px; }
.family-head .section-tag { color: var(--g2, var(--accent-2)); }
.family-head .btn { flex: 0 0 auto; }
.family-glyph {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: 6px;
  border-radius: 13px; font-size: 1.2rem; vertical-align: -8px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--g1, #7c6cff) 30%, transparent), color-mix(in srgb, var(--g2, #c084fc) 30%, transparent));
  border: 1px solid var(--border);
}
.family .group-label { font-size: 1.05rem; color: var(--text-dim); margin: 40px 0 18px; }
.family .group-label:first-of-type { margin-top: 4px; }

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.chip {
  font-family: var(--mono); font-size: 12.5px; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 15px; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--text); border-color: var(--border-hover); }
.chip.is-on {
  color: #0b0612; font-weight: 600; border-color: transparent;
  background: linear-gradient(120deg, var(--g1, #7c6cff), var(--g2, #c084fc));
}
.card[hidden] { display: none; }

/* ---------- Cards: full-tile link + extra meta ---------- */
.card { padding: 0; }
.card-link { display: flex; gap: 16px; align-items: flex-start; padding: 22px; width: 100%; }
.card-link:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -3px; border-radius: var(--radius); }
.card-kicker {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 3px;
}
.card-top { flex-wrap: wrap; }
.card-meta {
  margin-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--text-mute);
  display: flex; gap: 7px; flex-wrap: wrap;
}
/* The separator belongs to the item that follows it, so wrapping never strands a
   dangling middot at the end of a line. */
.card-meta span + span::before { content: "\00b7\00a0"; opacity: .5; }
.sep { opacity: .5; }

/* ---------- Interior page headers ---------- */
.page-hero { padding-top: 56px; padding-bottom: 18px; }
.crumb { font-family: var(--mono); font-size: 12.5px; color: var(--text-mute); margin-bottom: 22px; }
.crumb a { color: var(--text-dim); }
.crumb a:hover { color: var(--text); }
.page-title { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.page-lead { margin-top: 18px; font-size: 1.13rem; color: var(--text-dim); max-width: 70ch; }
.page-facts { margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--text-mute); }
.page-facts strong { color: var(--text); }

/* ---------- App product page ---------- */
.app-hero { display: flex; gap: 28px; align-items: flex-start; margin-top: 30px; }
.app-hero-icon {
  flex: 0 0 auto; width: 108px; height: 108px; border-radius: 26px; overflow: hidden;
  background: linear-gradient(150deg, var(--g1), var(--g2));
  box-shadow: 0 20px 50px -18px color-mix(in srgb, var(--g1) 65%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
}
.app-hero-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-hero-copy { min-width: 0; }
.app-hero-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.price { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }
.app-page .hero-actions { margin-top: 26px; }
.btn-disabled {
  border: 1px dashed var(--border-hover); color: var(--text-mute); cursor: default;
  background: rgba(255,255,255,.02);
}

.specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  margin-top: 40px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.spec { background: var(--bg-2); padding: 18px 20px; }
.spec dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); }
.spec dd { margin-top: 6px; font-size: 1rem; font-weight: 600; }

.prose { max-width: 68ch; }
.prose p { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }

.inside { list-style: none; max-width: 68ch; margin-top: 26px; display: grid; gap: 10px; }
.inside li {
  position: relative; padding: 14px 18px 14px 40px; font-size: .98rem; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.inside li::before {
  content: "▸"; position: absolute; left: 17px; top: 14px; color: var(--g2, var(--accent-2)); font-size: .9rem;
}

.note {
  max-width: 68ch; margin-top: 30px; padding: 20px 22px; border-radius: var(--radius-sm);
  background: rgba(251,191,36,.05); border: 1px solid rgba(251,191,36,.22);
}
.note h3 { font-size: .95rem; font-weight: 700; color: var(--amber); margin-bottom: 8px; }
.note p { font-size: .97rem; color: var(--text-dim); }

/* ---------- Feature grid ---------- */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feat {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px;
}
.feat h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feat h3::before {
  content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; margin-bottom: 12px;
  background: linear-gradient(90deg, var(--g1, #7c6cff), var(--g2, #c084fc));
}
.feat p { font-size: .95rem; color: var(--text-dim); line-height: 1.55; }

.traits { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 22px; }
.traits li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.traits strong { font-size: .95rem; }
.traits span { font-size: .9rem; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq { max-width: 74ch; display: grid; gap: 10px; }
.qa { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qa summary {
  cursor: pointer; list-style: none; padding: 17px 46px 17px 20px; position: relative;
  font-weight: 600; font-size: 1rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.15rem; color: var(--g2, var(--accent-2)); transition: transform .2s;
}
.qa[open] summary::after { content: "\2212"; }
.qa summary:hover { color: var(--text); }
.qa p { padding: 0 20px 19px; color: var(--text-dim); font-size: .99rem; max-width: 70ch; }

/* ---------- Support / privacy documents ---------- */
.narrow { max-width: 800px; }
.doc-head { display: flex; align-items: center; gap: 20px; }
.doc-icon { width: 72px; height: 72px; border-radius: 18px; flex: 0 0 auto; }
.doc-h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin: 44px 0 12px; }
.doc-h2:first-child { margin-top: 0; }
.doc .narrow p { color: var(--text-dim); font-size: 1.02rem; margin-bottom: 12px; max-width: 72ch; }
/* Underline inline prose links only. Scoped to <p> so it cannot reach the app
   tiles in .doc-list, which are cards rather than sentences. */
.doc .narrow p a:not(.mail-btn):not(.btn) { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.fine { font-size: .89rem !important; color: var(--text-mute) !important; }
.contact-line { margin-top: 4px; }
.contact-line .mail-btn { margin-top: 10px; }
.doc-nav { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 13px; }

.doc-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 8px; }
.doc-list a {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s, transform .18s ease;
}
.doc-list a:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.doc-list img { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto; }
.doc-list .dl-text { display: flex; flex-direction: column; min-width: 0; }
.doc-list .dl-name { font-weight: 600; font-size: .96rem; line-height: 1.3; }
.doc-list .dl-sub { font-size: .82rem; color: var(--text-mute); line-height: 1.35; }
.doc-list a { position: relative; }
.doc-list a::after {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px;
  background: var(--g1, var(--accent));
}

/* ---------- Footer disclaimer ---------- */
.footer-disclaimer {
  flex-basis: 100%; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 11.5px; line-height: 1.6; color: var(--text-mute); max-width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .family-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .app-hero { flex-direction: column; gap: 20px; }
  .app-hero-icon { width: 88px; height: 88px; border-radius: 22px; }
}
@media (max-width: 620px) {
  .page-hero { padding-top: 34px; }
  .doc-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .doc-list { grid-template-columns: 1fr; }
}
