/* Session Captain site. Harbour Navy with brass. No framework. */

:root {
  --paper: #F6F4EE;
  --paper-2: #EEEBE2;
  --card: #FFFFFF;
  --ink: #142238;
  --ink-2: #3D495C;
  --ink-3: #5F6979;
  --rule: #D8D3C6;
  --rule-2: #E6E2D7;
  --navy: #23436E;
  --navy-hover: #1A3456;
  --navy-text: #23436E;
  --navy-deep: #13294A;
  --brass: #8A6A1F;
  --brass-fill: #C4952F;
  --brass-soft: #F1E6CC;
  --code-bg: #FBFAF6;

  --red: #CF222E;
  --amber: #9A6700;
  --blue: #0969DA;
  --green: #1A7F37;
  --gray: #8C959F;

  --shadow: 0 1px 0 rgba(20, 34, 56, .04), 0 18px 40px -18px rgba(20, 34, 56, .28);
  --shot-border: #D0D7DE;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Code", Consolas, ui-monospace, monospace;

  --wrap: 1200px;
  --gutter: 32px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0A111D;
    --paper-2: #0F1828;
    --card: #111B2C;
    --ink: #E7ECF3;
    --ink-2: #A9B4C4;
    --ink-3: #8592A5;
    --rule: #22304A;
    --rule-2: #1A263B;
    --navy: #2F5A94;
    --navy-hover: #3A69A8;
    --navy-text: #8EB0E6;
    --navy-deep: #0E1E36;
    --brass: #C8A464;
    --brass-fill: #C8A464;
    --brass-soft: #2A2413;
    --code-bg: #0D1626;

    --red: #F85149;
    --amber: #D29922;
    --blue: #58A6FF;
    --green: #3FB950;
    --gray: #6E7681;

    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 24px 50px -20px rgba(0, 0, 0, .7);
    --shot-border: #2A3548;
  }
}

/* ---------- base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
figure { margin: 0; }

a { color: var(--navy-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { margin: 0; font-weight: 500; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.015em; }
h2 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.08; font-variation-settings: "opsz" 60; text-wrap: balance; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

code, kbd, .mono { font-family: var(--mono); font-size: .86em; }
code { background: var(--paper-2); border: 1px solid var(--rule-2); border-radius: 4px; padding: .06em .35em; word-break: break-word; }
kbd {
  display: inline-block; min-width: 1.7em; text-align: center;
  padding: .05em .45em; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px;
  background: var(--card); color: var(--ink); font-weight: 500; line-height: 1.5;
}

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

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label {
  font-family: var(--sans); font-size: 13px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 14px; font-weight: 600;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 16px/1 var(--sans); text-decoration: none;
  padding: 15px 22px; border-radius: 8px; border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-ico { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08), inset 0 -2px 0 rgba(0,0,0,.18); }
.btn-primary:hover { background: var(--navy-hover); }
.btn-secondary { background: transparent; color: var(--navy-text); border-color: currentColor; }
.btn-secondary:hover { background: var(--paper-2); }
.btn-small { padding: 9px 14px; font-size: 14px; background: var(--navy); color: #fff; }
.btn-small:hover { background: var(--navy-hover); }

/* ---------- masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--rule);
}
/* A brass scale along the bottom edge: the one nautical flourish. */
.masthead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 5px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--brass-fill) 0 1px, transparent 1px 24px);
  opacity: .45;
  -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
          mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.masthead-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.005em; }
.brand img { border-radius: 7px; }
.topnav { display: flex; gap: 26px; margin-left: auto; }
.topnav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.topnav a:hover { color: var(--ink); text-decoration: underline; }

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

.hero { padding: 72px 0 96px; }
.hero-grid {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 1fr) 380px 190px;
  column-gap: 52px;
}
.hero-head { grid-column: 1 / 3; grid-row: 1; margin-bottom: 44px; }
.hero-copy { grid-column: 1; grid-row: 2; padding-top: 8px; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: .02em; margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 76px); line-height: 1.0; letter-spacing: -0.028em;
  font-variation-settings: "opsz" 72; font-weight: 500; max-width: 17ch; text-wrap: balance;
}
.lede { font-size: 19.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 34px; max-width: 30em; }

.cta { display: grid; justify-items: start; gap: 10px; }
.cta-meta { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin: 0; }
.cta-phone { font-size: 15px; margin-top: 8px; }

.note {
  margin-top: 34px; padding: 14px 16px 14px 18px; max-width: 30em;
  border-left: 3px solid var(--brass-fill); background: var(--brass-soft); border-radius: 0 6px 6px 0;
  font-size: 15px; line-height: 1.5; color: var(--ink);
}
.note strong { font-weight: 600; }
/* Early preview: until the public launch. */
.preview-badge {
  display: inline-block; margin-right: 10px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--brass-fill); background: var(--brass-soft); color: var(--brass);
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px;
}

/* The screenshot as a specimen, with labelled call-outs. */
.specimen { grid-column: 2 / 4; grid-row: 2; position: relative; margin-top: 6px; }
.specimen-shot { position: relative; width: 380px; }
.specimen-shot picture { position: relative; }
.specimen-shot picture::before {
  /* navy plate behind the window */
  content: ""; position: absolute; inset: 28px -26px -26px 26px; border-radius: 14px;
  background: var(--navy-deep); z-index: -1;
}
@media (prefers-color-scheme: dark) {
  .specimen-shot picture::before { background: #16273F; }
}
.specimen-shot picture img,
.shot img {
  border-radius: 10px; border: 1px solid var(--shot-border); box-shadow: var(--shadow); background: var(--card);
}

.annots { list-style: none; margin: 0; padding: 0; }
.annot {
  position: absolute; left: calc(100% + 46px); width: 200px;
  font-size: 14px; line-height: 1.35; color: var(--ink-2);
  transform: translateY(-50%);
}
.annot::before {
  /* leader line back to the row */
  content: ""; position: absolute; right: calc(100% + 8px); top: .68em; width: 32px; height: 1px;
  background: var(--brass-fill);
}
.annot::after {
  content: ""; position: absolute; right: calc(100% + 34px); top: calc(.68em - 3px); width: 7px; height: 7px;
  border-radius: 50%; background: var(--brass-fill);
}
.a-ask  { top: 14.2%; }
.a-red  { top: 26%; }
.a-work { top: 33.4%; }
.a-done { top: 55.1%; }
.a-here { top: 62.4%; }
.a-week { top: 96.4%; }

/* ---------- shared section layout ---------- */

section { position: relative; }
.split {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: end;
  margin-bottom: 44px;
}
.split h2 { max-width: 16ch; }
.prose { color: var(--ink-2); font-size: 17.5px; max-width: 34em; }

/* ---------- problem ---------- */

.problem { padding: 96px 0 88px; border-top: 1px solid var(--rule); background: var(--paper-2); }
.tabstrip {
  background: #0C0C0C; color: #CCCCCC; border-radius: 10px; overflow: hidden;
  border: 1px solid #2B2B2B; box-shadow: var(--shadow); font-family: "Segoe UI Variable", "Segoe UI", var(--sans);
}
.tabs { display: flex; gap: 2px; padding: 8px 8px 0; background: #202020; overflow: hidden; }
.tab {
  flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 12.5px; color: #A8A8A8; padding: 8px 12px 9px; border-radius: 7px 7px 0 0; background: #2A2A2A;
}
.tab.is-active { background: #0C0C0C; color: #FFFFFF; }
.tab-plus { flex: none; color: #8A8A8A; padding: 6px 10px; font-size: 15px; }
.term { padding: 18px 20px 20px; font-family: "Cascadia Mono", "Cascadia Code", var(--mono); font-size: 14px; line-height: 1.7; }
.term p { margin: 0; }
.t-dim { color: #7A7A7A; }
.t-ok { color: #3FB950; }
.t-prompt { color: #E6E6E6; }
.caret { display: inline-block; width: .55em; height: 1.05em; background: #CCCCCC; vertical-align: -.18em; }
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
}
.tabstrip-cap {
  display: flex; flex-wrap: wrap; gap: 8px 0; margin: 18px 0 0; padding: 0; font-family: var(--mono); font-size: 13px; color: var(--ink-3);
}
.tabstrip-cap span + span::before { content: "/"; margin: 0 12px; color: var(--rule); }
.tabstrip-cap span:last-child { color: var(--ink); }

/* ---------- status key ---------- */

.key { padding: 104px 0 96px; }
.watchline { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 3px; margin-bottom: 0; }
.seg { flex: 1; }
.s-red { background: var(--red); } .s-amber { background: var(--amber); } .s-blue { background: var(--blue); }
.s-ember { background: linear-gradient(90deg, var(--green), color-mix(in srgb, var(--green) 35%, transparent)); }
.s-green { background: var(--green); } .s-gray { background: var(--gray); }

.states { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin: 0; }
.state { padding: 18px 18px 0 0; }
.state dt { font-weight: 600; font-size: 15.5px; display: flex; align-items: baseline; gap: 9px; margin-bottom: 6px; line-height: 1.35; }
.state dt .dot { position: relative; top: -1px; }
.state dd { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; }
.d-red { background: var(--red); } .d-amber { background: var(--amber); } .d-blue { background: var(--blue); }
.d-green { background: var(--green); }
.d-ember { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent), 0 0 10px 2px color-mix(in srgb, var(--green) 55%, transparent); }
.d-gray { background: none; width: auto; height: auto; color: var(--gray); font-size: 16px; line-height: 1; font-weight: 600; }
.aside-line { margin-top: 40px; color: var(--ink-2); font-size: 15.5px; border-top: 1px solid var(--rule); padding-top: 18px; }

/* ---------- feature rows ---------- */

.feature { padding: 96px 0; border-top: 1px solid var(--rule); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 80px; align-items: center; }
.feature-grid.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.feature-grid.flip .feature-copy { order: 2; }
.feature-grid.flip .feature-media { order: 1; justify-self: end; }
.feature-copy h2 { margin-bottom: 24px; }
:where(.feature-copy) > p { color: var(--ink-2); font-size: 17.5px; max-width: 32em; }
.feature-copy em { font-style: normal; font-weight: 600; color: var(--ink); }
.feature-media { min-width: 0; max-width: 100%; }

.stack { position: relative; min-height: 560px; }
.stack .shot { position: absolute; width: 420px; max-width: 86%; }
.stack { min-height: 720px; }
.shot-perm { top: 0; right: 0; z-index: 1; }
.shot-ask { top: 310px; left: 0; z-index: 2; }

.quick .keys { display: flex; gap: 6px; margin-bottom: 14px; }
.quick h2 kbd { font-size: 20px; padding: .2em .6em; border-bottom-width: 3px; letter-spacing: 0; }
.shot-quick { width: 400px; max-width: 100%; }

.shot-rows { width: 460px; max-width: 100%; margin-left: auto; }
.shot-week { width: 460px; max-width: 100%; margin: 24px 0 0 auto; }
.shot figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; }

.callout {
  margin-top: 30px; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card);
  border-top: 3px solid var(--navy-text);
}
.callout h3 { margin-bottom: 8px; }
.callout p { color: var(--ink-2); font-size: 15.5px; }

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

.ledger-sec { padding: 100px 0; border-top: 1px solid var(--rule); background: var(--paper-2); }
.ledger { margin: 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.ledger > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.ledger dt { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.25; font-variation-settings: "opsz" 24; }
.ledger dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- phone ---------- */

.phone { padding: 104px 0; border-top: 1px solid var(--rule); }
.phone-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 88px; align-items: center; }
.device {
  width: 320px; max-width: 100%; margin: 0 auto; padding: 10px; border-radius: 44px;
  background: #1B1F27; box-shadow: var(--shadow), inset 0 0 0 1px #3A404C;
}
.device img { border-radius: 34px; }
.phone-copy h2 { margin-bottom: 22px; }
:where(.phone-copy) > p { color: var(--ink-2); font-size: 17.5px; max-width: 32em; }
.facts { list-style: none; padding: 0; margin: 26px 0 30px; border-top: 1px solid var(--rule); }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: 15.5px; }
.facts strong { color: var(--ink); font-weight: 600; margin-right: 4px; }
.cta-inline { margin-bottom: 18px; }
.phone-copy > p.small { font-size: 14.5px; color: var(--ink-3); max-width: 34em; }
.remote { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--rule); }
.remote strong { color: var(--ink-2); }

/* ---------- setup ---------- */

.setup { padding: 100px 0; border-top: 1px solid var(--rule); background: var(--paper-2); }
.steps { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.step { counter-increment: step; padding: 0 36px 0 0; position: relative; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  font-family: var(--serif); font-size: 20px; font-weight: 500; background: var(--paper-2); color: var(--navy-text);
  border: 1.5px solid var(--navy-text); margin-bottom: 18px; position: relative; z-index: 1;
}
.step::after {
  /* course line between steps */
  content: ""; position: absolute; top: 19px; left: 46px; right: 8px; height: 0; border-top: 1.5px dashed var(--rule);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }

.diff { border: 1px solid var(--rule); border-radius: 10px; background: var(--code-bg); overflow: hidden; }
.diff-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--rule); background: var(--card); font-size: 13px; }
.diff-head .mono { color: var(--ink); font-weight: 500; }
.diff-tag { color: var(--ink-3); font-size: 13px; }
.code { margin: 0; padding: 18px 20px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 13px; line-height: 1.65; color: var(--ink); tab-size: 2; }
.code code { background: none; border: 0; padding: 0; font-size: inherit; word-break: normal; }
.code .k { color: var(--navy-text); }
.code .s { color: var(--green); }
.code .c { color: var(--ink-3); font-style: italic; }
.diff-foot { margin: 0; padding: 14px 20px; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-2); }
.diff-foot em { font-style: normal; font-weight: 600; color: var(--ink); }

/* ---------- FAQ ---------- */

.faq { padding: 100px 0; border-top: 1px solid var(--rule); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 72px; align-items: start; }
.faq-grid h2 { position: sticky; top: 110px; max-width: 10ch; }
.faq-list { border-top: 2px solid var(--ink); }
details { border-bottom: 1px solid var(--rule); }
summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 17px; line-height: 1.4;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.75px solid var(--ink-3); border-bottom: 1.75px solid var(--ink-3); transform: rotate(45deg);
  transition: transform .15s ease;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
summary:hover { color: var(--navy-text); }
summary code { font-weight: 500; }
.answer-body { padding: 0 0 22px; color: var(--ink-2); font-size: 16px; max-width: 40em; }
.answer-body ul { margin: 0; padding-left: 1.1em; }
.answer-body li { margin-bottom: 8px; }
.answer-body em { font-style: normal; font-weight: 600; color: var(--ink); }
.hash code { word-break: break-all; }

/* ---------- closing ---------- */

.closing { background: var(--navy-deep); color: #EEF2F8; padding: 80px 0; }
@media (prefers-color-scheme: dark) { .closing { background: #12223A; } }
.closing-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 64px; align-items: center; }
.closing h2 { color: #FFFFFF; margin-bottom: 14px; max-width: 14ch; }
.closing p { color: #B9C6D8; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-onnavy { background: #F6F4EE; color: #13294A; }
.btn-onnavy:hover { background: #FFFFFF; }
.btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #FFFFFF; background: rgba(255,255,255,.06); }
.closing-meta { flex-basis: 100%; font-size: 14px; margin: 4px 0 0; }
.closing :focus-visible { outline-color: #E2C27E; }

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

.foot { padding: 40px 0 56px; border-top: 1px solid var(--rule); }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.foot-brand img { border-radius: 6px; }
.foot-lines { text-align: right; font-size: 13.5px; color: var(--ink-3); }
.foot-lines p { margin: 0 0 4px; }

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

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 56px; }
  .specimen { grid-column: 2; margin-top: 0; grid-row: 2; }
  .specimen-shot { width: 100%; }
  /* no room for call-outs beside the screenshot; its alt text carries them */
  .annots { display: none; }
  .states { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .watchline { display: none; }
  .state { border-top: 4px solid var(--rule); padding-top: 14px; padding-bottom: 18px; }
  .state:nth-child(1) { border-color: var(--red); } .state:nth-child(2) { border-color: var(--amber); }
  .state:nth-child(3) { border-color: var(--blue); } .state:nth-child(4) { border-color: var(--green); }
  .state:nth-child(5) { border-color: var(--green); } .state:nth-child(6) { border-color: var(--gray); }
  .ledger { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .topnav { gap: 18px; }
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-head, .hero-copy { grid-column: 1; }
  .hero-head { margin-bottom: 28px; }
  .hero-copy { padding-top: 0; }
  .hero h1 { max-width: 15ch; }
  .specimen { grid-column: 1; grid-row: 3; margin-top: 64px; }
  .specimen-shot { width: min(380px, calc(100% - 26px)); }
  .split, .feature-grid, .feature-grid.flip, .phone-grid, .faq-grid, .closing-grid { grid-template-columns: 1fr; }
  .split { row-gap: 18px; }
  .feature-grid, .phone-grid { row-gap: 44px; }
  .feature-grid.flip .feature-copy { order: 1; }
  .feature-grid.flip .feature-media { order: 2; justify-self: stretch; }
  .shot-rows, .shot-week { margin-left: 0; }
  .phone-media { order: 2; }
  .faq-grid h2 { position: static; margin-bottom: 28px; max-width: none; }
  .closing-grid { row-gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding: 0 0 0 58px; }
  .step::before { position: absolute; left: 0; top: -4px; margin: 0; }
  .step::after { top: 40px; bottom: -28px; left: 19px; right: auto; height: auto; border-top: 0; border-left: 1.5px dashed var(--rule); }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .topnav { display: none; }
  .masthead-row { height: 58px; justify-content: space-between; }
  .hero h1 { font-size: clamp(36px, 10vw, 46px); }
  .lede { font-size: 17.5px; }
  .kicker { font-size: 12px; margin-bottom: 18px; }
  .btn-primary { width: 100%; justify-content: center; }
  .cta { justify-items: stretch; }
  .states { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .state { padding-right: 0; }
  .ledger > div { grid-template-columns: 1fr; gap: 4px; }
  .stack { min-height: 0; display: grid; gap: 20px; }
  .stack .shot { position: static; width: 100%; max-width: 420px; }
  .tab { padding: 7px 8px 8px; font-size: 11.5px; }
  .tabs .tab:nth-child(n+4):not(.is-active) { display: none; }
  .tabstrip-cap { display: grid; gap: 4px; }
  .tabstrip-cap span + span::before { content: none; }
  .term { font-size: 12.5px; padding: 14px; }
  .problem, .key, .feature, .ledger-sec, .phone, .setup, .faq { padding: 68px 0; }
  .closing { padding: 60px 0; }
  .foot-lines { text-align: left; }
  .closing-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 370px) {
  .states { grid-template-columns: 1fr; }
  .brand span { font-size: 16px; }
}

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

.lost { padding-top: 120px; padding-bottom: 160px; }
.lost h1 { font-family: var(--serif); font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
