/* HelpNinja. One dark navy theme, tonal steps, mint as the single accent. Manrope.
   Radius rule: controls 8px, panels and art 14px. Coral lives in the mascot and logo only. */
:root {
  color-scheme: dark;
  --bg: #0b1626;
  --bg-2: #0e1c30;
  --surface: #12233b;
  --surface-2: #172c49;
  --surface-3: #2a4568;
  --line: #1e3350;
  --line-2: #2f4a6b;
  --text: #edf2f7;
  --text-2: #b9c7d7;
  --text-3: #91a4ba;
  --mint: #13c4a3;
  --mint-hi: #48d9bd;
  --mint-ink: #0b1626;
  --bad: #ff9d94;
  --r-s: 8px;
  --r-l: 14px;
  --shadow: 0 28px 56px -28px rgba(2, 8, 17, .85);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --pad: clamp(72px, 9vw, 120px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text-2); font: 400 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; }
svg { max-width: 100%; }
a { color: var(--mint-hi); font-weight: 500; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .18s; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--mint-hi); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; color: var(--text); text-wrap: balance; }
strong { color: var(--text); font-weight: 600; }
p { text-wrap: pretty; }
.shell { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.slim { max-width: 784px; }
.jump { position: absolute; left: -999px; }
.jump:focus { left: 12px; top: 12px; background: var(--mint); color: var(--mint-ink); padding: 8px 12px; z-index: 20; border-radius: var(--r-s); }
.tag { display: block; font: 600 .8125rem/1.2 var(--font); letter-spacing: .01em; color: var(--mint-hi); margin: 0 0 14px; }
.intro { font-size: 1.125rem; line-height: 1.6; color: var(--text-2); max-width: 56ch; margin: 0; }
.meta { font: 500 .9375rem/1.2 var(--font); color: var(--text-3); margin: 0 0 16px; font-variant-numeric: tabular-nums; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(11, 22, 38, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { display: block; height: 36px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { color: var(--text-2); text-decoration: none; padding: 8px 14px; border-radius: var(--r-s); font-weight: 500; font-size: .9375rem; transition: color .18s, background-color .18s, border-color .18s; }
.menu a:hover { color: var(--text); background: var(--surface); }
.menu a.is-on { color: var(--text); background: var(--surface); }
.menu .menu-alerts { margin-left: 10px; border: 1px solid var(--line-2); color: var(--text); font-weight: 600; }
.menu .menu-alerts:hover { border-color: var(--mint); background: var(--surface); }
.nav-t { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-btn { display: none; }

/* buttons */
.b { display: inline-flex; align-items: center; justify-content: center; font: 600 1rem/1.2 var(--font); padding: 14px 22px; border-radius: var(--r-s); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .18s, border-color .18s, color .18s, transform .12s; }
.b:active { transform: translateY(1px); }
.b-teal { background: var(--mint); color: var(--mint-ink); }
.b-teal:hover { background: var(--mint-hi); color: var(--mint-ink); }
.b-line { background: transparent; color: var(--text); border-color: var(--line-2); }
.b-line:hover { background: var(--surface); border-color: var(--text-3); color: var(--text); }
.b[disabled] { opacity: .6; cursor: default; }

/* hero */
.stage { padding: clamp(40px, 6vw, 80px) 0 0; }
.stage-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.stage-grid > * { min-width: 0; }
.stage h1 { font-size: clamp(2.25rem, 5.2vw, 4.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin: 0 0 24px; }
.stage h1 span { color: var(--mint); }
.stage .intro { font-size: 1.1875rem; max-width: 46ch; }
.stage-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.stage-art { margin: 0; }
.stage-art img { display: block; width: 100%; max-width: 470px; height: auto; margin-left: auto; }

/* facts strip under the hero */
.facts { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.facts span { font-size: .9375rem; color: var(--text-2); line-height: 1.5; }

/* playbook picker: one lead, three rows */
.tiles { padding: var(--pad) 0; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 36px; }
.row-head h2, .straight h2, .spec h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin: 0; }
.row-head a { font-weight: 600; font-size: .9375rem; text-decoration: none; }
.row-head a:hover { text-decoration: underline; }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); gap: 0 48px; }
.tile { display: grid; grid-template-columns: 168px 1fr; gap: 22px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text-2); font-weight: 400; }
.tile:nth-child(2) { border-top: 0; padding-top: 0; }
.tile:last-child { padding-bottom: 0; }
.tile:first-child { grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); overflow: hidden; transition: border-color .2s, transform .2s; }
.tile:first-child:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile:first-child:active { transform: translateY(0); }
.tile-art { display: block; border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line); }
.tile:first-child .tile-art { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.tile-art svg, .book-art svg, .book-hero svg { display: block; width: 100%; height: auto; }
.tile-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile:first-child .tile-body { padding: 28px 30px 30px; gap: 10px; flex: 1; }
.tile-title, .book-title { display: block; text-wrap: pretty; }
.tile:first-child .tile-title { text-wrap: balance; }
.tile-title { font: 700 1.125rem/1.25 var(--font); letter-spacing: -.02em; color: var(--text); transition: color .18s; }
.tile:first-child .tile-title { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; letter-spacing: -.03em; }
.tile:hover .tile-title, .book:hover .book-title { color: var(--mint-hi); }
.tile-sum { font-size: .9375rem; line-height: 1.55; color: var(--text-2); }
.tile:first-child .tile-sum { font-size: 1.0625rem; max-width: 46ch; }
.tile-min { font: 500 .875rem/1.2 var(--font); color: var(--text-3); font-variant-numeric: tabular-nums; }
.tile:first-child .tile-min { margin-top: auto; padding-top: 14px; }

/* playbook art: pulled into the page's tonal range, coral swapped for the mint family */
:is(.tile-art, .book-art, .book-hero) svg [fill="#c6efe4"],
:is(.tile-art, .book-art, .book-hero) svg [fill="#ffe1d9"],
:is(.tile-art, .book-art, .book-hero) svg g[fill="#0fae91"] { fill: #1a3152; }
:is(.tile-art, .book-art, .book-hero) svg [stroke="#1d3150"] { stroke: #1a3152; }
:is(.tile-art, .book-art, .book-hero) svg [fill="#ff6b4a"] { fill: #13c4a3; }
:is(.tile-art, .book-art, .book-hero) svg [stroke="#ff6b4a"] { stroke: #13c4a3; }
:is(.tile-art, .book-art, .book-hero) svg [fill="#ffd166"] { fill: #8fe6d4; }
:is(.tile-art, .book-art, .book-hero) svg [fill="#7aa7ff"] { fill: #5f7fa6; }
:is(.tile-art, .book-art, .book-hero) svg :is(rect, path)[fill="#0d1b2e"] { fill: #2a4568; }
:is(.tile-art, .book-art, .book-hero) svg > rect[width="800"][height="300"] { fill: #0e1c30; }
:is(.tile-art, .book-art, .book-hero) svg [stroke="#0d1b2e"][stroke-width="14"] { stroke: #13c4a3; }
:is(.tile-art, .book-art, .book-hero) svg [stroke="#0d1b2e"][stroke-width="3"],
:is(.tile-art, .book-art, .book-hero) svg [stroke="#0d1b2e"][stroke-width="4"] { stroke: #2a4568; }

/* alerts */
.alerts { background: var(--bg-2); padding: var(--pad) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.alerts-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.alerts-grid > * { min-width: 0; }
.dojo { background: var(--surface); border-radius: var(--r-l); padding: 36px; border: 1px solid var(--line); box-shadow: var(--shadow); }
#alertForm { scroll-margin-top: 110px; }
.track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 30px; }
.track span { font: 600 .8125rem/1.2 var(--font); padding: 0 0 10px; border-bottom: 2px solid var(--line-2); color: var(--text-3); font-variant-numeric: tabular-nums; transition: color .2s, border-color .2s; }
.track span.on { border-bottom-color: var(--mint); color: var(--text); }
.pane { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.pane:last-of-type { margin-bottom: 0; }
.pane legend { font: 700 1.5rem/1.2 var(--font); letter-spacing: -.025em; color: var(--text); padding: 0 0 14px; margin: 0; }
.pane legend + .sub { margin-top: -6px; }
.sub { font-size: .9375rem; color: var(--text-2); margin: 0 0 18px; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.tick { display: flex; gap: 12px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 14px; cursor: pointer; font-weight: 500; color: var(--text); transition: border-color .18s, background-color .18s; }
.tick:hover { border-color: var(--text-3); }
.tick input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--mint); }
.tick:has(input:checked) { border-color: var(--mint); background: rgba(19, 196, 163, .08); }
.tick:has(input:focus-visible) { outline: 2px solid var(--mint-hi); outline-offset: 2px; }
.in { margin-bottom: 16px; }
.in label { display: block; font: 600 .9375rem/1.3 var(--font); color: var(--text); margin-bottom: 8px; }
.in small { font: 400 .8125rem var(--font); color: var(--text-3); margin-left: 4px; }
.in input { width: 100%; padding: 13px 14px; font: 400 1rem var(--font); border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--bg-2); color: var(--text); transition: border-color .18s, box-shadow .18s; }
.in input:hover { border-color: var(--text-3); }
.in input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(19, 196, 163, .25); }
.in-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.msg { display: block; color: var(--bad); font-size: .875rem; font-weight: 500; margin-top: 6px; }
.msg:empty { display: none; }
.ok { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-s); margin-bottom: 10px; }
.ok-req { border-color: var(--line-2); }
.ok input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--mint); }
.ok label { font-size: .8125rem; line-height: 1.6; color: var(--text-2); cursor: pointer; }
.ok-req label { font-size: .9375rem; color: var(--text); }
.small-print { font-size: .78rem; line-height: 1.65; color: var(--text-2); margin: 16px 0; }
.pane-nav { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spec > p { max-width: 52ch; }
.spec h2 { margin-bottom: 16px; }
.spec-t { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .9375rem; border-top: 1px solid var(--line); }
.spec-t th, .spec-t td { text-align: left; vertical-align: top; padding: 9px 0; }
.spec-t tr:first-child > * { padding-top: 20px; }
.spec-t th { font: 600 .9375rem/1.65 var(--font); width: 36%; color: var(--text); padding-right: 16px; }
.spec-t td { color: var(--text-2); overflow-wrap: anywhere; }
.spec-wide { margin: 0 0 16px; border-top: 0; font-size: 1rem; }
.spec-wide tr:first-child > * { padding-top: 9px; }
.sample { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; }
.sample-h { font: 600 .8125rem/1.2 var(--font); color: var(--text-3); margin: 0 0 10px; }
.sample-msg { background: var(--surface-2); color: var(--text); border-radius: 4px 14px 14px 14px; padding: 12px 16px; margin: 0; font-size: .9375rem; line-height: 1.55; }

/* faq */
.straight { padding: var(--pad) 0 calc(var(--pad) + 16px); }
.straight-grid { display: grid; grid-template-columns: .9fr 1.5fr; gap: 56px; align-items: start; }
.straight h2 { position: sticky; top: 108px; }
.qa { padding: 26px 0; border-top: 1px solid var(--line); }
.qa:first-child { border-top: 0; padding-top: 4px; }
.qa:last-child { padding-bottom: 0; }
.qa h3 { font-size: 1.1875rem; letter-spacing: -.02em; line-height: 1.3; margin: 0 0 8px; }
.qa p { margin: 0; color: var(--text-2); max-width: 62ch; }

/* inner pages */
.hn-top { padding: clamp(56px, 7vw, 88px) 0 clamp(36px, 4vw, 48px); }
.hn-top h1 { font-size: clamp(2.125rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; margin: 0 0 18px; }
.hn-top .intro { max-width: 58ch; }
.hn-top-book { padding-bottom: 40px; }
.book-hero { margin: 0 auto 48px; max-width: 848px; }
.book-hero svg { border-radius: var(--r-l); border: 1px solid var(--line); }
.doc { padding-bottom: 56px; font-size: 1.0625rem; line-height: 1.7; }
.doc > :first-child { margin-top: 0; }
.doc h2 { font-size: 1.5rem; letter-spacing: -.025em; line-height: 1.2; margin: 44px 0 10px; }
.doc p { margin: 0 0 16px; max-width: 66ch; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; max-width: 66ch; }
.doc li { margin-bottom: 8px; padding-left: 4px; }
.doc li::marker { color: var(--mint); font-weight: 600; }
.doc .aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 22px; font-size: 1rem; margin-top: 40px; max-width: none; color: var(--text-2); }
.stamp { font-size: .9375rem; color: var(--text-3); }
.doc .stamp { color: var(--text-3); }
.flag { background: rgba(19, 196, 163, .08); border: 1px solid rgba(19, 196, 163, .3); border-radius: var(--r-l); padding: 18px 22px; color: var(--text); max-width: none; }
.doc .flag { max-width: none; }
.doc-legal { font-size: 1rem; }
.doc-legal h2 { font-size: 1.3125rem; margin-top: 36px; }
.book-list { padding-bottom: 40px; }
.book:first-child { padding-top: 8px; }
.book { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text-2); font-weight: 400; }
.book-art { display: block; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); transition: border-color .2s; }
.book:hover .book-art { border-color: var(--line-2); }
.book-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.book-title { font: 700 1.625rem/1.15 var(--font); letter-spacing: -.03em; color: var(--text); transition: color .18s; }
.book .tile-sum { font-size: 1.0625rem; max-width: 52ch; }
.book .tile-min { margin-top: 6px; }
.nudge { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px 24px; margin-bottom: 96px; }
.nudge p { margin: 0; }
.next-up { padding-bottom: 96px; }
.next-label { font: 500 .9375rem/1.2 var(--font); color: var(--text-3); margin: 0 0 8px; padding-top: 40px; border-top: 1px solid var(--line); }
.next-up > a { display: inline-block; font: 700 1.5rem/1.2 var(--font); letter-spacing: -.025em; text-decoration: none; color: var(--text); margin-bottom: 32px; }
.next-up > a:hover { color: var(--mint-hi); }
.next-up .nudge { margin-bottom: 0; }
.done { padding-bottom: 96px; }
.done svg { display: block; margin-bottom: 28px; width: 64px; height: 64px; }
.steps-done { padding-left: 22px; margin: 28px 0 32px; color: var(--text-2); max-width: 66ch; }
.steps-done li { margin-bottom: 14px; padding-left: 4px; }
.steps-done li::marker { color: var(--mint); font-weight: 600; }
.hn-top + .shell.slim:not(.doc) { padding-bottom: 8px; }
main > .doc:last-child, main > section.shell.slim.doc:last-of-type { padding-bottom: 96px; }

/* footer */
.base { background: #081120; border-top: 1px solid var(--line); color: var(--text-2); font-size: .9375rem; padding-top: 64px; }
.base a { color: var(--text); font-weight: 500; text-decoration: none; }
.base a:hover { color: var(--mint-hi); text-decoration: underline; }
.base-top { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; }
.base-id .logo-img { margin-bottom: 18px; }
.base-id p { max-width: 48ch; margin: 0; }
.base-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.base-sms { margin-top: 48px; }
.base-sms p { margin: 0 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.base-sms a { text-decoration: underline; }
.base-legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: .875rem; padding-bottom: 36px; color: var(--text-3); }
.base-legal p { margin: 0; }

/* scroll reveal: classes are only ever added by hn.js, so content is visible without it */
@media (prefers-reduced-motion: no-preference) {
  .rv-wait { opacity: 0; transform: translateY(16px); }
  .rv-in { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (max-width: 960px) {
  .stage-grid, .alerts-grid, .straight-grid, .base-top { grid-template-columns: 1fr; }
  .stage-grid { gap: 40px; }
  .stage-art img { max-width: 380px; margin: 0 auto; }
  .alerts-grid { gap: 56px; }
  .straight-grid { gap: 28px; }
  .straight h2 { position: static; }
  .tile-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .tile:first-child { grid-row: auto; margin-bottom: 12px; }
  .tile:nth-child(2) { border-top: 0; padding-top: 22px; }
  .book { grid-template-columns: 240px 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .topbar-in { flex-wrap: wrap; min-height: 60px; gap: 0 16px; }
  .logo-img { height: 32px; }
  .nav-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border-radius: var(--r-s); color: var(--text); cursor: pointer; }
  .nav-btn svg { width: 22px; height: 22px; }
  .nav-t:focus-visible + .nav-btn { outline: 2px solid var(--mint-hi); outline-offset: -4px; }
  .menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0 16px; }
  .nav-t:checked ~ .menu { display: flex; }
  .menu a { padding: 12px 12px; font-size: 1rem; }
  .menu .menu-alerts { margin: 8px 0 0; text-align: center; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .book { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
}
@media (max-width: 560px) {
  .shell { padding: 0 20px; }
  .stage h1 { margin-bottom: 18px; }
  .stage .intro { font-size: 1.0625rem; }
  .stage-btns { margin-top: 28px; }
  .stage-btns .b { flex: 1 1 auto; padding: 14px 16px; }
  .stage-art img { max-width: 300px; }
  .ticks, .in-row { grid-template-columns: 1fr; }
  .tile { grid-template-columns: 1fr; }
  .tile:not(:first-child) .tile-art { display: none; }
  .tile:first-child .tile-body { padding: 22px 20px 24px; }
  .dojo { padding: 24px 18px; }
  .pane legend { font-size: 1.3125rem; }
  .pane-nav .b { flex: 1 1 auto; }
  .spec-t th { width: 40%; }
  .base-links { grid-template-columns: 1fr 1fr; }
}
