/* ==========================================================================
   Witnessed — marketing site
   Brand: navy #0D1B2A · green #00C896 · off-white #F0F4F8 · muted #8892A0
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  --bg:            #0D1B2A;
  --bg-deep:       #091420;
  --surface:       #142334;
  --surface-2:     #1A2E42;
  --line:          rgba(240, 244, 248, 0.09);
  --line-strong:   rgba(240, 244, 248, 0.16);

  --text:          #F0F4F8;
  --muted:         #8892A0;
  /* One step dimmer than --muted, but kept light enough to clear WCAG AA (4.5:1)
     on all three backgrounds — it is used at 11–14px, so large-text AA won't do. */
  --muted-dim:     #828C9B;

  --green:         #00C896;
  --green-bright:  #17E0AB;
  --green-wash:    rgba(0, 200, 150, 0.10);
  --green-line:    rgba(0, 200, 150, 0.32);
  --amber:         #F5A623;

  --font-display: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap:      1120px;
  --wrap-text: 720px;
  --radius:    14px;
  --radius-lg: 20px;

  --section-y: clamp(72px, 9vw, 128px);
}

/* --- Reset -------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.022em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-bright); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- Layout primitives -------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(56px, 6vw, 88px) 0; }
.section--hair { border-top: 1px solid var(--line); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--green);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { left: 24px; color: var(--bg); }

/* --- Typographic scale -------------------------------------------------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 20px;
}
.eyebrow--muted { color: var(--muted); }

.h-xl {
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h-lg {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.h-md {
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.h-sm { font-size: 19px; line-height: 1.35; }

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}
.body-muted { color: var(--muted); }
.small { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.86em; letter-spacing: -0.01em; }

.section-head { max-width: 660px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lede { margin-top: 18px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--green); color: #05131E; }
.btn--primary:hover { background: var(--green-bright); color: #05131E; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--muted); color: var(--text); background: rgba(240,244,248,0.03); }

.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 8px; }

/* App Store badge --------------------------------------------------------
   NOTE: this is a placeholder built in-house because the app is not yet on
   the App Store. Once it is live, swap in Apple's official "Download on the
   App Store" badge (developer.apple.com/app-store/marketing/guidelines/)
   and point the href at the real listing. Search for APPSTORE-LINK. */

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(240, 244, 248, 0.04);
  color: var(--text);
  transition: border-color .18s ease, background-color .18s ease;
}
.appstore:hover { color: var(--text); border-color: var(--muted); background: rgba(240,244,248,0.07); }
.appstore__glyph { flex: none; color: var(--text); }
.appstore__text { display: flex; flex-direction: column; line-height: 1.2; }
.appstore__top {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.appstore__main { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.appstore.is-soon { cursor: default; }
.appstore.is-soon:hover { transform: none; border-color: var(--line-strong); background: rgba(240,244,248,0.04); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* --- Chips / pills ------------------------------------------------------ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--green-line);
  background: var(--green-wash);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.chip--neutral {
  border-color: var(--line-strong);
  background: rgba(240,244,248,0.04);
  color: var(--muted);
}
.chip__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 27, 42, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand img {
  width: 30px; height: 30px;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }

.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto -20%;
  height: 720px;
  background: radial-gradient(closest-side, rgba(0, 200, 150, 0.12), transparent 72%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy { max-width: 620px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 32px; }
.hero__note { margin-top: 20px; font-size: 13.5px; color: var(--muted-dim); }

.hero__marks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.hero__mark svg { color: var(--green); flex: none; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; }
}

/* --- Device frame ------------------------------------------------------- */

.device {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 40px;
  padding: 8px;
  background: linear-gradient(160deg, #223449, #101E2E 60%);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.4) inset;
}
.device__screen {
  position: relative;
  border-radius: 33px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 1284 / 2106;
}
.device__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.device--lg { max-width: 328px; }

.device-badge {
  position: absolute;
  right: -14px;
  bottom: 56px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 12px;
  background: rgba(16, 32, 48, 0.94);
  border: 1px solid var(--green-line);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px -18px rgba(0,0,0,0.9);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.device-badge svg { color: var(--green); flex: none; }
.device-badge small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: 0.02em; }

/* On narrow screens the device fills more of the viewport, so the badge would
   land on the shutter button. Straddle the bottom edge instead. */
@media (max-width: 520px) {
  .device-badge { right: -4px; bottom: -18px; }
}

/* --- Cards & surfaces --------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --- Problem section ---------------------------------------------------- */

.problem { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.problem__list { display: grid; gap: 0; margin-top: 8px; }
.problem__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.problem__item:last-child { border-bottom: 1px solid var(--line); }
.problem__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  padding-top: 5px;
  letter-spacing: 0.05em;
}
.problem__item h3 { font-size: 19px; margin-bottom: 7px; }
.problem__item p { color: var(--muted); font-size: 15.5px; max-width: 62ch; }

@media (max-width: 620px) {
  .problem__item { grid-template-columns: 1fr; gap: 6px; }
}

/* --- Steps -------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 44px); }
.step__frame { margin-bottom: 28px; }
.step__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step__label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--green-line);
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 52px; max-width: 460px; margin: 0 auto; }
  .steps .device { max-width: 260px; }
}

/* --- Certificate ledger ------------------------------------------------- */

.cert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .cert { grid-template-columns: 1fr; }
  .cert__visual { order: -1; }
}

.ledger {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), #101E2D);
  overflow: hidden;
}
.ledger__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(240, 244, 248, 0.02);
}
.ledger__title {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ledger__row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.ledger__row:last-child { border-bottom: none; }
.ledger__key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-dim);
  padding-top: 2px;
}
.ledger__val { font-size: 15.5px; }
.ledger__val strong { font-weight: 600; display: block; margin-bottom: 3px; }
.ledger__val span { color: var(--muted); font-size: 14.5px; display: block; }
.ledger__hash {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--green);
  word-break: break-all;
  line-height: 1.5;
  margin-bottom: 4px;
}

@media (max-width: 620px) {
  .ledger__row { grid-template-columns: 1fr; gap: 8px; padding: 18px 20px; }
  .ledger__head { padding: 16px 20px; }
}

/* --- Audience ----------------------------------------------------------- */

.audience {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.audience__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--green-wash);
  border: 1px solid var(--green-line);
  color: var(--green);
  margin-bottom: 4px;
}
.audience h3 { font-size: 18px; }
.audience p { color: var(--muted); font-size: 15px; }

/* --- Pricing ------------------------------------------------------------ */

.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 30px 26px;
}
.tier--feature { border-color: var(--green-line); background: linear-gradient(180deg, rgba(0,200,150,0.06), var(--surface) 55%); }
.tier__flag {
  position: absolute;
  top: -11px; left: 26px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--green);
  color: #05131E;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.tier__name { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.tier__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tier__per { font-family: var(--font-body); font-size: 14.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier__blurb { color: var(--muted); font-size: 14.5px; margin-top: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.tier__list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.tier__list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}
.tier__list svg { color: var(--green); margin-top: 5px; }
.tier__list strong { color: var(--text); font-weight: 500; }

.pricing-note { margin-top: 26px; text-align: center; }

/* --- Trust -------------------------------------------------------------- */

.trust { background: var(--bg-deep); border-top: 1px solid var(--line); }
.trust__item { display: flex; flex-direction: column; gap: 10px; padding: 26px 0; border-top: 1px solid var(--line); }
.trust__term {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.trust__item h3 { font-size: 18px; }
.trust__item p { color: var(--muted); font-size: 15.5px; }

/* --- Final CTA ---------------------------------------------------------- */

.final-cta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.final-cta::before {
  content: "";
  position: absolute;
  left: 50%; top: -60%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 200, 150, 0.13), transparent 70%);
  pointer-events: none;
}
.final-cta__inner { position: relative; text-align: center; max-width: 640px; margin: 0 auto; }
.final-cta h2 { margin-bottom: 18px; }
.final-cta .cta-row { justify-content: center; margin-top: 34px; }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: var(--bg-deep);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } .site-footer__brand { grid-column: 1 / -1; } }

.site-footer__brand p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 36ch; }
/* Footer columns are labelled nav landmarks, not document headings — using <h4>
   here would skip a level after the page's <h2>s. */
.footer-col__label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--muted); font-size: 15px; }
.footer-col a:hover { color: var(--text); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13.5px;
  color: var(--muted-dim);
}

/* --- Legal / document pages --------------------------------------------- */

.doc-hero {
  padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.doc-hero .wrap { max-width: calc(var(--wrap-text) + 48px); }
.doc-hero h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.05; letter-spacing: -0.035em; }
.doc-hero__meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.doc-hero__updated { font-size: 13.5px; color: var(--muted-dim); font-variant-numeric: tabular-nums; }
.doc-hero .lede { margin-top: 22px; }

.doc {
  max-width: calc(var(--wrap-text) + 48px);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) 24px clamp(72px, 8vw, 104px);
}
.doc > * + * { margin-top: 18px; }
.doc h2 {
  font-size: 22px;
  line-height: 1.3;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.doc h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.doc h2 .doc__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 8px;
}
.doc h3 { font-size: 17px; margin-top: 30px; }
.doc p { color: #C9D3DD; }
.doc ul { padding-left: 0; list-style: none; display: grid; gap: 12px; }
.doc li {
  color: #C9D3DD;
  padding-left: 24px;
  position: relative;
  font-size: 16.5px;
}
.doc li::before {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-line);
}
.doc li strong { color: var(--text); font-weight: 600; }
.doc a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--green-line); }

.doc__callout {
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  padding: 22px 24px;
  margin-top: 28px;
}
.doc__callout p { color: var(--muted); font-size: 15.5px; }
.doc__callout p + p { margin-top: 10px; }
.doc__callout strong { color: var(--text); }

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 24px;
  margin-bottom: 8px;
}
.toc h2 {
  font-family: var(--font-body) !important;
  font-size: 11.5px !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: none !important;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  display: grid;
  gap: 9px;
}
.toc li { counter-increment: toc; padding-left: 30px; position: relative; font-size: 15px; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-dim);
  background: none;
  width: auto; height: auto;
  border-radius: 0;
}
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }

/* --- Support page ------------------------------------------------------- */

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--green-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(0,200,150,0.07), var(--surface) 60%);
  padding: 32px;
}
.contact-card h2 { font-size: 24px; margin-bottom: 10px; }
.contact-card p { color: var(--muted); font-size: 15.5px; max-width: 48ch; }
.contact-card__email {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--green);
}
@media (max-width: 720px) {
  .contact-card { grid-template-columns: 1fr; padding: 26px; }
}

.faq { display: grid; gap: 0; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--green); }
.faq__icon {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 3px;
  position: relative;
  transition: transform .2s ease;
  color: var(--muted);
}
.faq__item[open] .faq__icon { transform: rotate(45deg); color: var(--green); }
.faq__body { padding: 0 48px 24px 0; }
.faq__body p { color: var(--muted); font-size: 15.5px; }
.faq__body p + p { margin-top: 12px; }
.faq__body ul { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 8px; }
.faq__body li { color: var(--muted); font-size: 15.5px; padding-left: 20px; position: relative; }
.faq__body li::before {
  content: "";
  position: absolute; left: 2px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green-line);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }

.support-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}
.support-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.support-card p { color: var(--muted); font-size: 14.5px; }
.support-card a { font-size: 14.5px; display: inline-block; margin-top: 12px; }

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

.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.error-page__code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 20px;
}

/* --- Utilities ---------------------------------------------------------- */

.u-mt-s { margin-top: 14px; }
.u-mt-m { margin-top: 26px; }
.u-mt-l { margin-top: 44px; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
