/* Kerbrank marketing pages. Builds on the tokens in kerbrank.css; never
   redefines them. Site-only values live below as --s-* and flip for dark
   mode the same two ways kerbrank.css does. */

:root {
  --s-band: #0E3B2E;
  --s-band-ink: #FBFAF7;
  --s-band-ink-2: #C5D5CD;
  --s-band-line: rgba(251,250,247,.16);
  --s-eyebrow: var(--brand-2);
  --s-wash: color-mix(in oklab, var(--brand) 5%, var(--paper));
  --s-land: #F3F1EA;
  --s-minor: #E7E3D8;
  --s-road: #FFFFFF;
  --s-road-edge: #DDD8CB;
  --s-park: #E2EBDD;
  --s-sea: #D9E6EE;
  --s-coast: #B9CCD8;
  --s-brass: #8A5A14;
  --s-gap: clamp(72px, 10vw, 136px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --s-band: #10261E; --s-band-ink: #EDEFEC; --s-band-ink-2: #AFC0B8; --s-band-line: rgba(237,239,236,.12);
    --s-land: #18201C; --s-minor: #1D2621; --s-road: #26302B; --s-road-edge: #202A25;
    --s-park: #1B2A22; --s-sea: #122029; --s-coast: #22394A; --s-brass: #E0A63F;
  }
}
:root[data-theme="dark"] {
  --s-band: #10261E; --s-band-ink: #EDEFEC; --s-band-ink-2: #AFC0B8; --s-band-line: rgba(237,239,236,.12);
  --s-land: #18201C; --s-minor: #1D2621; --s-road: #26302B; --s-road-edge: #202A25;
  --s-park: #1B2A22; --s-sea: #122029; --s-coast: #22394A; --s-brass: #E0A63F;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.site { font-size: 16.5px; line-height: 1.6; text-rendering: optimizeLegibility; overflow-x: hidden; }
.site img, .site svg { max-width: 100%; }
.site p { text-wrap: pretty; }
.site h1, .site h2, .site .display { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; text-wrap: balance; }
.site h1 { font-size: clamp(2.7rem, 6.4vw, 5.1rem); line-height: 1.02; margin-bottom: .32em; }
.site h2 { font-size: clamp(2.05rem, 4.2vw, 3.3rem); line-height: 1.06; margin-bottom: .4em; }
.site h1 em, .site h2 em { font-style: italic; color: var(--brand-2); }
.site h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.012em; }

/* ---- focus, skip link ---- */
.site :focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
.site .btn:focus-visible { outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--paper); }

/* ---- header ---- */
.s-head .topbar-inner { padding: 14px 0; }
.s-nav { display: flex; align-items: center; gap: 26px; }
.s-nav a.s-link { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; }
.s-nav a.s-link:hover, .s-nav a.s-link[aria-current="page"] { color: var(--ink); }
.s-nav .row { gap: 8px; }
@media (max-width: 760px) { .s-nav a.s-link { display: none; } .s-nav { gap: 8px; } }

/* ---- shared bits ---- */
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--s-eyebrow); margin-bottom: 18px; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.section { padding-block: var(--s-gap); }
.section-tight { padding-block: calc(var(--s-gap) * .66); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; max-width: 58ch; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0 auto; }
.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: 11px; }
.btn-arrow::after { content: "→"; transition: transform .18s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }
.fineprint { font-size: .88rem; color: var(--ink-2); }
.tick { list-style: none; padding: 0; margin: 0; }
.tick li { position: relative; padding-left: 26px; margin: 9px 0; }
.tick li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--brand-2); border-bottom: 2px solid var(--brand-2); transform: rotate(-45deg); }

/* ---- hero ---- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); background:
  radial-gradient(1200px 520px at 85% -10%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 70%),
  linear-gradient(var(--paper), var(--s-wash)); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } }
.hero .lede { margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.visual { position: relative; }
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.frame-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--ink-2); }
.frame-bar b { font-weight: 600; color: var(--ink); }
.frame-dots { display: flex; gap: 6px; } .frame-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.hero-map { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.m-land { fill: var(--s-land); }
.m-minor { stroke: var(--s-minor); stroke-width: 1.5; }
.m-road { stroke: var(--s-road); stroke-width: 9; stroke-linecap: round; filter: drop-shadow(0 0 .6px var(--s-road-edge)); }
.m-park rect { fill: var(--s-park); }
.m-sea { fill: var(--s-sea); }
.m-coast { stroke: var(--s-coast); stroke-width: 2; }
.m-off { fill: none; stroke: var(--s-coast); stroke-width: 1.5; stroke-dasharray: 2 2.4; }
.m-nf { fill: var(--none); } .m-nft { fill: var(--ink-2); }
.m-home { fill: none; stroke: var(--accent); stroke-width: 3; }
.m-pins circle:not(.m-off):not(.m-home) { stroke: var(--surface); stroke-width: 2; }
.frame-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-2); }
.frame-foot i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; vertical-align: -1px; margin-right: 5px; }

.report-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 20px 20px 16px; margin: -20px 12px 0; position: relative; }
@media (min-width: 980px) { .report-card { position: absolute; left: -56px; bottom: -36px; width: 272px; margin: 0; padding: 18px 18px 12px; } .visual { padding-left: 40px; margin-bottom: 36px; } .report-card .rc-big { font-size: 2.7rem; } .report-card .rc-stats { gap: 16px; } }
.rc-label { font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.rc-stats { display: flex; gap: 22px; align-items: flex-end; margin: 6px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rc-big { font-family: var(--serif); font-size: 3.1rem; line-height: .95; letter-spacing: -.02em; }
.rc-small { font-size: .8rem; color: var(--ink-2); line-height: 1.35; }
.rc-small b { display: block; font-size: 1.15rem; color: var(--ink); font-weight: 620; font-variant-numeric: tabular-nums; }
.jobs { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: j; }
.jobs li { counter-increment: j; display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 8px 0; font-size: .86rem; line-height: 1.4; }
.jobs li + li { border-top: 1px solid var(--line-2); }
.jobs li::before { content: counter(j); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: color-mix(in oklab, var(--brand-2) 14%, var(--surface)); color: var(--brand-2); }
.jobs small { display: block; color: var(--ink-2); font-size: .76rem; margin-top: 2px; }

/* ---- statement ---- */
.statement { font-family: var(--serif); font-size: clamp(1.75rem, 3.6vw, 2.85rem); line-height: 1.2; letter-spacing: -.01em; max-width: 26ch; margin: 0; text-wrap: balance; }
.statement span { color: var(--ink-3); }
.statement-wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .statement-wrap { grid-template-columns: 220px 1fr; gap: 48px; } }

/* ---- steps ---- */
.steps { display: grid; gap: 20px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 22px; }
.step::before { content: "0" counter(s); font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--s-brass); display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); margin: 0; }

/* ---- report bento ---- */
.bento { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.bento { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); } .b-todo, .b-comp { grid-column: span 7; } .b-heat, .b-ai { grid-column: span 5; } .b-demand, .b-site { grid-column: span 6; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tile h3 { margin: 0 0 6px; }
.tile p { color: var(--ink-2); margin: 0; font-size: .96rem; }
.tile-viz { background: var(--paper); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; margin-top: auto; }
.b-heat .tile-viz { display: flex; flex-direction: column; align-items: center; }
.mini-heat { width: 100%; max-width: 264px; }
.b-todo .tile-viz { padding: 8px 18px; }
.b-todo .jobs li { font-size: .95rem; padding: 14px 0; }
.b-todo .jobs small { font-size: .82rem; }
.tag { display: inline-block; font-size: .7rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; background: color-mix(in oklab, var(--brand-2) 12%, transparent); color: var(--brand-2); }
.tile .summary-line { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--ink); padding: 10px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }

.mini-heat { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.mini-heat i { aspect-ratio: 1; border-radius: 3px; }
.mini-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .75rem; color: var(--ink-2); margin-top: 12px; }
.mini-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 5px; }

.mini-table { width: 100%; font-size: .84rem; }
.mini-table th { font-size: .68rem; padding: 0 6px 8px; color: var(--ink-2); }
.mini-table td { padding: 8px 6px; }
.mini-table tr.you td { font-weight: 620; }

.bars { display: grid; gap: 10px; font-size: .82rem; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.bar span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar b { font-variant-numeric: tabular-nums; font-weight: 620; }
.bar i { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--line-2); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--brand-2); border-radius: inherit; }
.ai-rate { display: flex; align-items: baseline; gap: 10px; }
.ai-rate b { font-family: var(--serif); font-weight: 400; font-size: 2.5rem; line-height: 1; }
.ai-rate span { font-size: .84rem; color: var(--ink-2); }
.dots { display: flex; gap: 5px; margin-top: 12px; flex-wrap: wrap; }
.dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--brand-2); }
.checks { list-style: none; padding: 0; margin: 0; font-size: .84rem; display: grid; gap: 8px; }
.checks li { display: flex; justify-content: space-between; gap: 12px; }
.checks b { font-weight: 620; }
.ok-t { color: color-mix(in oklab, var(--win) 78%, var(--ink)); } .bad-t { color: var(--bad); }

/* ---- principle band ---- */
.band { background: var(--s-band); color: var(--s-band-ink); }
.band .eyebrow { color: #E9B869; }
.band p { color: var(--s-band-ink-2); }
.band a:not(.btn) { color: var(--s-band-ink); }
.principle { display: grid; gap: 36px; align-items: end; }
@media (min-width: 900px) { .principle { grid-template-columns: 1.3fr 1fr; gap: 72px; } }
.principle blockquote { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.015em; color: var(--s-band-ink); }
.principle blockquote em { color: #E9B869; }

/* ---- comparison ---- */
.compare-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.compare { font-size: .95rem; }
.compare th, .compare td { padding: 16px 20px; vertical-align: top; }
.compare thead th { font-size: .74rem; background: var(--paper); color: var(--ink-2); }
.compare thead th.us { color: var(--brand-2); }
.compare tbody th { text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-2); width: 26%; }
.compare td.us { background: color-mix(in oklab, var(--brand-2) 5%, var(--surface)); font-weight: 520; }
.compare td.them { color: var(--ink-2); }
.compare tbody tr:last-child th { border-bottom: 0; }
@media (max-width: 700px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare tbody th { padding: 0 0 8px; border: 0; width: 100%; font-size: 1rem; }
  .compare td { padding: 6px 0; border: 0; background: none !important; }
  .compare td::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
  .compare td.us::before { color: var(--brand-2); }
}

/* ---- UK ---- */
.uk-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
@media (min-width: 700px) { .uk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .uk-grid { grid-template-columns: repeat(3, 1fr); } }
.uk-item { background: var(--surface); padding: 28px; }
.uk-item h3 { margin-bottom: 8px; }
.uk-item p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.uk-item svg { width: 28px; height: 28px; margin-bottom: 18px; color: var(--brand-2); }

/* ---- pricing ---- */
.plans { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--brand-2); padding: 25px 23px; box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: -12px; left: 22px; background: var(--brand-2); color: var(--paper); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.plan h3, .site .plan .plan-name { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.2; margin: 0 0 2px; }
.plan .for { font-size: .88rem; color: var(--ink-2); margin: 0 0 18px; min-height: 3.2em; }
.price { font-family: var(--serif); font-size: 3.2rem; line-height: 1; letter-spacing: -.02em; }
.price small { font-family: var(--sans); font-size: .9rem; color: var(--ink-2); letter-spacing: 0; margin-left: 2px; }
.plan .tick { margin: 20px 0 24px; font-size: .93rem; }
.plan .btn { margin-top: auto; width: 100%; }
.plans-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 28px; font-size: .92rem; color: var(--ink-2); }

.ptable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.ptable { min-width: 640px; font-size: .93rem; }
.ptable th, .ptable td { padding: 14px 18px; }
.ptable thead th { background: var(--paper); color: var(--ink-2); }
.ptable tbody th { text-transform: none; letter-spacing: 0; font-size: .93rem; color: var(--ink); font-weight: 560; border-bottom: 1px solid var(--line-2); }
.ptable td { text-align: center; font-variant-numeric: tabular-nums; }
.ptable thead th:not(:first-child) { text-align: center; }
.ptable .yes { color: var(--brand-2); font-weight: 700; }
.ptable .no { color: var(--ink-2); }

/* ---- FAQ ---- */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 72px; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); margin: 0 0 22px; max-width: 62ch; }

/* ---- final CTA ---- */
.cta { text-align: center; }
.cta h2 { max-width: 18ch; margin-inline: auto; color: var(--s-band-ink); }
.cta p { max-width: 50ch; margin: 0 auto 32px; font-size: 1.1rem; }
.cta .btn { background: var(--s-band-ink); color: var(--s-band); }
.cta .btn:hover { background: #fff; color: var(--s-band); }
.cta .btn-ghost { background: transparent; color: var(--s-band-ink); border-color: var(--s-band-line); }
.cta .btn-ghost:hover { background: var(--s-band-line); color: var(--s-band-ink); }
.cta .hero-cta { justify-content: center; }

/* ---- footer ---- */
.s-foot { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: .92rem; }
.s-foot-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .s-foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .s-foot-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.s-foot h2, .s-foot .s-foot-h { font-family: var(--sans); font-size: .76rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.s-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.s-foot a { color: var(--ink); text-decoration: none; }
.s-foot a:hover { text-decoration: underline; }
.s-foot p { color: var(--ink-2); max-width: 40ch; }
.s-foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--ink-2); font-size: .85rem; }

/* ---- long-form pages (method, privacy) ---- */
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); background: linear-gradient(var(--paper), var(--s-wash)); }
.page-head h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); max-width: 16ch; }
.prose { padding: clamp(40px, 6vw, 72px) 0 var(--s-gap); }
.prose-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .prose-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 72px; } }
.toc { font-size: .9rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
@media (min-width: 1000px) { .toc nav { position: sticky; top: 96px; } }
.doc { max-width: 68ch; }
.doc h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 56px 0 16px; padding-top: 8px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); font-weight: 620; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 20px 0; background: var(--surface); }
.doc table { font-size: .92rem; min-width: 520px; }
.doc table th { color: var(--ink-2); background: var(--paper); }
.doc table td { vertical-align: top; color: var(--ink-2); }
.doc table td:first-child { color: var(--ink); font-weight: 600; min-width: 140px; }
.callout { border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 24px 0; }
.callout p { margin: 0; color: var(--ink); }

/* ---- sign-in ---- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth-side { display: none; }
@media (min-width: 960px) { .auth-side { display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px; } }
.auth-side .logo { color: var(--s-band-ink); }
.auth-side blockquote { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 3.6vw, 3.6rem); line-height: 1.08; color: var(--s-band-ink); max-width: 16ch; }
.auth-side blockquote em { color: #E9B869; }
.auth-main { display: grid; place-items: center; padding: 32px 16px 48px; }
.auth-box { width: min(400px, 100%); }
.auth-box h1 { font-size: clamp(2.3rem, 5vw, 2.9rem); margin-bottom: 6px; }
.auth-box .sub { color: var(--ink-2); margin-bottom: 28px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 24px; background: var(--surface); }
.auth-tabs button { font: inherit; font-size: .9rem; font-weight: 580; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; }
.auth-tabs button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.auth-box input { padding: 12px 14px; font-size: 1rem; }
.auth-box label { font-size: .88rem; }
.auth-err { color: var(--bad); font-size: .9rem; margin: 14px 0 0; padding: 10px 12px; border-radius: 9px; background: color-mix(in oklab, var(--bad) 9%, transparent); }
.auth-demo { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.auth-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
@media (min-width: 960px) { .auth-top .logo { visibility: hidden; } }
.auth-top a.s-link { font-size: .9rem; color: var(--ink-2); }

/* ---- motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .rise-2 { animation-delay: .12s; }
  .rise-3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after { transition: none !important; animation: none !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 979px) { .frame-foot { padding-bottom: 32px; } }
@media (max-width: 520px) { .hero-cta .btn { flex: 1 1 100%; } .frame-bar .frame-dots { display: none; } }
.mini-heat i.rw, .mini-legend i.rw { background: var(--s-sea); }
@media (max-width: 999px) { .toc { display: none; } }
@media (max-width: 700px) {
  .doc table.stack { min-width: 0; }
  .doc table.stack thead { display: none; }
  .doc table.stack, .doc table.stack tbody, .doc table.stack tr, .doc table.stack td { display: block; width: 100%; }
  .doc table.stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .doc table.stack tr:last-child { border-bottom: 0; }
  .doc table.stack td { padding: 3px 0; border: 0; }
  .doc table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); margin-top: 8px; }
}

/* ---- guides and blog ---- */
.article-head h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); max-width: 20ch; }
.article-head .crumbs { font-size: .86rem; color: var(--ink-2); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.article-head .crumbs a { color: var(--ink-2); text-decoration: none; display: inline-block; padding: 4px 0; }
.article-head .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.article-meta { margin: 18px 0 0; font-size: .86rem; color: var(--ink-2); }
.toc-title { font-size: .72rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
.doc a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc a:hover { text-decoration-thickness: 2px; }
.doc ol { padding-left: 22px; }
.doc code { font-size: .9em; background: var(--line-2); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.doc h2 { scroll-margin-top: 90px; }
.article-cta { margin-top: 64px; padding: clamp(28px, 4vw, 40px); border-radius: 20px; background: var(--s-band); color: var(--s-band-ink); }
.doc .article-cta h2 { color: var(--s-band-ink); margin: 0 0 10px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.doc .article-cta p { color: var(--s-band-ink-2); margin: 0 0 22px; max-width: 52ch; }
.article-cta .btn { background: var(--s-band-ink); color: var(--s-band); }
.article-cta .btn:hover { background: #fff; color: var(--s-band); }
.article-cta .btn-ghost { background: transparent; color: var(--s-band-ink); border-color: var(--s-band-line); }
.article-cta .btn-ghost:hover { background: var(--s-band-line); color: var(--s-band-ink); }
.related { margin-top: clamp(56px, 8vw, 96px); padding-top: 40px; border-top: 1px solid var(--line); }
.related h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 24px; }
.post-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.post-card:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(14,59,46,.35); }
.post-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.post-kicker { font-size: .72rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--s-eyebrow); }
.post-title { font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; letter-spacing: -.01em; }
.post-desc { color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
/* Spam trap: off-screen, never focusable, hidden from assistive tech. */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Comfortable tap targets for small standalone links. */
.plans-note a, .auth-top a.s-link { display: inline-flex; align-items: center; min-height: 44px; }
/* Small phones: keep the logo and both header buttons on one line. */
@media (max-width: 380px) {
  .s-head .topbar-inner { gap: 8px; }
  .s-nav .row { gap: 6px; flex-wrap: nowrap; }
  .s-head .btn-sm { padding: 7px 10px; font-size: .82rem; white-space: nowrap; }
  .s-head .logo { font-size: .98rem; }
}
/* ---- the dashboard, shown on the homepage ---- */
.week-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 980px) { .week-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } }
.journey { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; counter-reset: j; }
.journey li { position: relative; padding-left: 40px; color: var(--ink-2); }
.journey li::before { counter-increment: j; content: counter(j); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 650; background: var(--brand); color: var(--paper); }
.journey strong { color: var(--ink); }
.demo-panel { cursor: default; box-shadow: var(--shadow-lg); }
.demo-panel .status-headline { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.demo-panel .loc-name { font-size: 1.1rem; margin: 0; font-family: var(--sans, inherit); }
@media (max-width: 400px) { .demo-panel { padding: 16px 14px 12px; } .demo-panel .status-top { flex-wrap: wrap; } }

/* ---------- instant answers (launcher is static; the panel loads on demand) */
.s-foot-ask { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.s-foot-ask:hover { text-decoration: underline; }
.kr-assist-btn { position: fixed; right: 18px; bottom: 18px; z-index: 85; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: 600 .92rem/1 var(--sans); cursor: pointer; box-shadow: 0 14px 34px -10px rgba(7, 23, 15, .55), inset 0 1px 0 rgba(255, 255, 255, .14); transition: transform .18s ease, box-shadow .18s ease; }
.kr-assist-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(7, 23, 15, .6), inset 0 1px 0 rgba(255, 255, 255, .14); }
.kr-assist-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kr-assist-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1100px) { .has-cookie-note .kr-assist-btn { bottom: calc(var(--kr-cookie-h, 80px) + 28px); } }
@media (max-width: 700px) { .kr-assist-btn span { display: none; } .kr-assist-btn { padding: 0 14px; } }
.kr-assist-on .kr-assist-btn { display: none; }
@media print { .kr-assist-btn, .kr-assist { display: none !important; } }

.kr-assist { position: fixed; inset: auto 18px 18px auto; z-index: 95; display: none; }
.kr-assist.is-open { display: block; }
.kr-assist-panel { width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 36px)); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(7, 23, 15, .45); overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { .kr-assist.is-open .kr-assist-panel { animation: kra-in .22s cubic-bezier(.2, .7, .2, 1); } }
@keyframes kra-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .kr-assist { inset: auto 12px 12px 12px; } .kr-assist-panel { width: 100%; height: min(640px, calc(100dvh - 24px)); } }
.kr-assist-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 18px; background: #07170F; color: #F4F1E8; }
.kr-assist-title { margin: 0; font-weight: 700; font-size: 1rem; }
.kr-assist-sub { margin: 3px 0 0; font-size: .8rem; color: #B9C8C0; line-height: 1.4; }
.kr-assist-x { flex: none; width: 44px; height: 44px; margin: -6px -6px 0 0; border: 0; border-radius: 12px; background: transparent; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.kr-assist-x:hover { background: rgba(244, 241, 232, .1); }
.kr-assist-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.kr-msg { max-width: 92%; font-size: .92rem; line-height: 1.5; }
.kr-msg p { margin: 0 0 6px; } .kr-msg p:last-child { margin-bottom: 0; }
.kr-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 11px 14px; }
.kr-me { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-radius: 16px 16px 4px 16px; padding: 10px 14px; }
.kr-src { display: inline-block; margin-top: 4px; font-weight: 600; font-size: .88rem; }
.kr-rel { margin-top: 10px !important; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.kr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.kr-chip { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 8px 12px; min-height: 36px; font: inherit; font-size: .84rem; cursor: pointer; text-align: left; }
.kr-chip:hover { border-color: var(--brand-2); color: var(--brand-2); }
.kr-cta { display: inline-block; margin-top: 8px; border: 0; border-radius: 10px; background: var(--brand); color: var(--on-brand); padding: 10px 14px; min-height: 40px; font: 600 .88rem var(--sans); cursor: pointer; }
.kr-typing { display: flex; gap: 4px; padding: 4px 0; }
.kr-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3, #5B6D66); opacity: .5; }
@media (prefers-reduced-motion: no-preference) { .kr-typing i { animation: kra-dot 1s infinite ease-in-out; } .kr-typing i:nth-child(2) { animation-delay: .15s; } .kr-typing i:nth-child(3) { animation-delay: .3s; } }
@keyframes kra-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.kr-assist-ask { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.kr-assist-ask input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; font-size: .95rem; background: var(--paper); color: var(--ink); }
.kr-assist-go { width: 44px; min-height: 44px; border: 0; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-size: 1.2rem; cursor: pointer; }
.kr-assist-foot { margin: 0; padding: 0 14px 12px; font-size: .82rem; color: var(--ink-2); background: var(--surface); }
.kr-link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-2); text-decoration: underline; cursor: pointer; min-height: 24px; }
.kr-mform { display: grid; gap: 8px; min-width: 260px; }
.kr-mform-title { font-weight: 700; margin: 0; }
.kr-mform label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.kr-mform input, .kr-mform textarea { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font: inherit; font-size: .92rem; background: var(--paper); color: var(--ink); }
.kr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.kr-err { color: var(--bad); font-size: .84rem; margin: 0; }
.kr-note { font-size: .76rem; color: var(--ink-2); margin: 0; }

/* keep the footer's last line clear of the Questions button */
.s-foot-base { padding-bottom: 64px; }

/* v4: wider gutters on laptops and small desktops, on every marketing page. */
.site .wrap { width: min(1180px, 100% - clamp(32px, 6vw, 80px)); }

/* ===================== Site header (v5, "Two menus"), merged from nav.css ===================== */
/* Kerbrank site header: "Two menus" (22 Sep 2026).
   [Logo] · Product▾ · Resources▾ · Pricing · [Sign in] [Start free trial →]
   Loads after site.css and before home.css, so every rule is scoped to the
   header's id (#kr-head) or the drawer's (#m-drawer) to win without !important.
   Height is fixed (64px, 60px on phones); scrolling only changes colour, blur
   and shadow, never layout. Without JavaScript the menus open on hover and
   focus (:focus-within) and the phone drawer opens as a :target. */

:root {
  --h-night: #07170F;
  --h-cream: #F4F1E8;
  --h-cream-2: #B9C8C0;
  --h-amber: #E9B869;
  --h-mint: #4FD1A0;
  --n-shadow: 0 18px 50px -12px rgb(7 23 15 / .28);
}

/* ---------- bar ---------- */
html body #kr-head {
  --n-ink: var(--ink);
  --n-ink-2: var(--ink-2);
  --n-hover: color-mix(in oklab, var(--ink) 6%, transparent);
  --n-bar: var(--brand-2);
  --n-focus: var(--brand-2);
  position: sticky; top: 0; z-index: 60;
  height: 64px; padding: 0; box-sizing: border-box;
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
  box-shadow: 0 0 0 transparent;
  transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
html body #kr-head.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgb(7 23 15 / .35);
}
#kr-head .s-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
#kr-head .s-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: 100%; padding: 0;
}

/* Homepage: night green at the top, glass once past the hero (same in light and dark). */
:is(html body.home, html body.landing) #kr-head {
  --n-ink: var(--h-cream);
  --n-ink-2: color-mix(in oklab, var(--h-cream) 80%, transparent);
  --n-hover: rgb(244 241 232 / .09);
  --n-bar: var(--h-mint);
  --n-focus: var(--h-amber);
  background: var(--h-night);
  border-bottom-color: rgb(244 241 232 / .1);
}
:is(html body.home, html body.landing) #kr-head.is-scrolled {
  background: rgb(7 23 15 / .84);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  border-bottom-color: rgb(244 241 232 / .1);
  box-shadow: 0 12px 32px -20px rgb(0 0 0 / .6);
}

/* ---------- logo ---------- */
#kr-head .logo {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.12rem; font-weight: 700; letter-spacing: -.03em; line-height: 1;
  color: var(--n-ink); text-decoration: none; border-radius: 8px;
}
#kr-head .logo-mark { width: 28px; height: 28px; }

/* ---------- centre links ---------- */
#kr-head .s-nav { display: block; }
#kr-head .s-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
#kr-head .s-item { position: relative; margin: 0; }
#kr-head .s-link {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  height: 36px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: .94rem; font-weight: 500; line-height: 20px; letter-spacing: -.005em;
  color: var(--n-ink-2); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
#kr-head .s-link:hover, #kr-head .s-menu-btn[aria-expanded="true"] { background: var(--n-hover); color: var(--n-ink); }
#kr-head .s-link[aria-current="page"], #kr-head .s-link.is-current { color: var(--n-ink); font-weight: 600; }
#kr-head .s-link[aria-current="page"]::after, #kr-head .s-link.is-current::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--n-bar);
}
#kr-head .s-menu-btn.is-current::after { right: 27px; }
#kr-head .s-chev { width: 12px; height: 12px; margin-right: -2px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform .16s ease; }
#kr-head .s-menu-btn[aria-expanded="true"] .s-chev { transform: rotate(180deg); }

/* ---------- panels ---------- */
#kr-head .s-panel {
  position: absolute; top: calc(100% + 8px); left: -8px; z-index: 2;
  width: 376px; padding: 8px; box-sizing: border-box;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--n-shadow);
  transform-origin: 24px 0;
}
#kr-head .s-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* hover bridge */
#kr-head .s-panel:not([hidden]) { animation: kr-nav-in .16s cubic-bezier(.2, .8, .2, 1); }
@keyframes kr-nav-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
#kr-head .s-panel ul, #m-drawer ul { list-style: none; margin: 0; padding: 0; }
#kr-head .s-panel li, #m-drawer li { margin: 0; }

/* rows (shared by panels and drawer) */
#kr-head .s-row, #m-drawer .s-row {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; box-sizing: border-box;
  padding: 10px; border: 0; border-radius: 10px; background: transparent;
  font: inherit; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background-color .14s ease;
}
#kr-head .s-row:hover, #m-drawer .s-row:hover { background: color-mix(in oklab, var(--brand-2) 7%, transparent); }
.s-ico {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: color-mix(in oklab, var(--brand-2) 8%, var(--surface)); color: var(--brand-2);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand-2) 16%, transparent);
  transition: background-color .14s ease, color .14s ease;
}
.s-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.s-row:hover .s-ico { background: var(--brand-2); color: var(--on-brand); box-shadow: none; }
.s-rt { display: grid; gap: 2px; min-width: 0; padding-top: 1px; }
.s-rtt { font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; color: var(--ink); }
.s-rtd { font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--ink-3); }
.s-row[aria-current="page"] .s-rtt { color: var(--brand-2); }
#kr-head .s-panel :focus-visible { outline: 2px solid var(--brand-2); outline-offset: 0; border-radius: 10px; }

/* ---------- account group ---------- */
#kr-head .s-acts { justify-self: end; display: flex; align-items: center; gap: 6px; }
#kr-head .s-signin {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px;
  font-size: .94rem; font-weight: 500; color: var(--n-ink-2); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
#kr-head .s-signin:hover { background: var(--n-hover); color: var(--n-ink); }
#kr-head .s-cta, #m-drawer .s-dcta {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px 0 16px; border: 0; border-radius: 9px;
  font-size: .9rem; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  background: var(--brand); color: var(--on-brand);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 1px 2px rgb(7 23 15 / .18), 0 4px 12px -6px rgb(7 23 15 / .35);
}
#kr-head .s-cta:hover, #m-drawer .s-dcta:hover { background: var(--brand-2); color: var(--on-brand); }
.s-arrow { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.s-cta:hover .s-arrow, .s-dcta:hover .s-arrow { transform: translateX(2px); }
:is(html body.home, html body.landing) #kr-head .s-cta { background: var(--h-cream); color: #07170F; box-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 6px 16px -8px rgb(0 0 0 / .5); }
:is(html body.home, html body.landing) #kr-head .s-cta:hover { background: #fff; color: #07170F; }

/* focus: brand on paper, amber on night */
#kr-head :focus-visible { outline: 2px solid var(--n-focus); outline-offset: 2px; border-radius: 8px; }
#kr-head .s-cta:focus-visible { border-radius: 9px; }
#m-drawer :focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* ---------- burger (phones) ---------- */
#kr-head .s-burger {
  display: none; position: relative; width: 44px; height: 44px; margin-right: -6px; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--n-ink); cursor: pointer;
}
#kr-head .s-burger:hover { background: var(--n-hover); }
#kr-head .s-burger i {
  position: absolute; left: 13px; width: 18px; height: 1.75px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease, top .2s ease;
}
#kr-head .s-burger i:first-child { top: 17.5px; }
#kr-head .s-burger i:last-child { top: 24.5px; }
#kr-head .s-burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
#kr-head .s-burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- drawer (phones) ---------- */
#m-drawer {
  position: fixed; inset: 60px 0 0; z-index: 88;
  flex-direction: column; background: var(--paper); color: var(--ink);
}
#m-drawer:not([hidden]) { display: flex; animation: kr-nav-in .16s cubic-bezier(.2, .8, .2, 1); }
#m-drawer .s-dnav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 20px; }
#m-drawer .s-dh { margin: 18px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
#m-drawer .s-row { min-height: 52px; align-items: center; padding: 8px 10px; }
#m-drawer .s-rtt { font-size: 1.06rem; font-weight: 600; }
#m-drawer .s-rtd { font-size: .86rem; }
#m-drawer .s-dplain { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
#m-drawer .s-dfoot {
  display: grid; gap: 6px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--paper);
}
#m-drawer .s-dcta { width: 100%; height: 48px; font-size: 1rem; border-radius: 11px; }
#m-drawer .s-dsign { display: grid; place-items: center; height: 44px; border-radius: 10px; font-weight: 600; color: var(--ink); text-decoration: none; }
#m-drawer .s-dsign:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }

/* drawer on the homepage: night, like the bar above it */
:is(body.home, body.landing) #m-drawer, :is(body.home, body.landing) #m-drawer .s-dfoot { background: #07170F; color: var(--h-cream); }
:is(body.home, body.landing) #m-drawer .s-rtt, :is(body.home, body.landing) #m-drawer .s-dsign { color: var(--h-cream); }
:is(body.home, body.landing) #m-drawer .s-rtd { color: var(--h-cream-2); }
:is(body.home, body.landing) #m-drawer .s-dh { color: color-mix(in oklab, var(--h-cream) 62%, transparent); }
:is(body.home, body.landing) #m-drawer .s-ico { background: rgb(244 241 232 / .06); color: var(--h-mint); box-shadow: inset 0 0 0 1px rgb(244 241 232 / .1); }
:is(body.home, body.landing) #m-drawer .s-row:hover, :is(body.home, body.landing) #m-drawer .s-dsign:hover { background: rgb(244 241 232 / .06); }
:is(body.home, body.landing) #m-drawer .s-row:hover .s-ico { background: var(--h-mint); color: #07170F; }
:is(body.home, body.landing) #m-drawer .s-row[aria-current="page"] .s-rtt { color: var(--h-mint); }
:is(body.home, body.landing) #m-drawer .s-dplain, :is(body.home, body.landing) #m-drawer .s-dfoot { border-color: rgb(244 241 232 / .1); }
:is(body.home, body.landing) #m-drawer .s-dcta { background: var(--h-cream); color: #07170F; }
:is(body.home, body.landing) #m-drawer .s-dcta:hover { background: #fff; }
:is(body.home, body.landing) #m-drawer :focus-visible { outline-color: var(--h-amber); }

#m-drawer { overscroll-behavior: contain; } /* the drawer covers the page; no html overflow lock, which broke the sticky header */
html.kr-menu-open .kr-assist-btn, html.kr-menu-open .h-sticky { display: none !important; }
html.kr-menu-open body #kr-head { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
html.kr-menu-open :is(body.home, body.landing) #kr-head { background: #07170F; }

/* ---------- no JavaScript: hover/focus opens panels, drawer via :target ---------- */
html:not(.kr-nav) #kr-head button.s-burger { display: none !important; }
html.kr-nav #kr-head a.s-burger-nojs { display: none !important; }
@media (min-width: 900px) {
  html:not(.kr-nav) #kr-head .s-item:hover > .s-panel,
  html:not(.kr-nav) #kr-head .s-item:focus-within > .s-panel { display: block !important; } /* beats kerbrank.css [hidden] !important */
}
@media (max-width: 899.98px) {
  html:not(.kr-nav) #m-drawer:target { display: flex !important; }
}

/* ---------- phones and small tablets ---------- */
@media (max-width: 899.98px) {
  html body #kr-head { height: 60px; }
  #kr-head .s-bar { grid-template-columns: 1fr auto; gap: 8px; }
  #kr-head .s-nav, #kr-head .s-signin { display: none; }
  #kr-head .s-burger { display: block; }
  #kr-head .s-cta { padding: 0 14px; }
  #kr-head .s-cta .s-arrow { display: none; }
}
@media (min-width: 900px) { #m-drawer { display: none !important; } }
@media (max-width: 359px) { #kr-head .s-cta { padding: 0 11px; font-size: .84rem; } #kr-head .logo { font-size: 1.04rem; } }

/* ---------- dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --n-shadow: 0 18px 50px -12px rgb(0 0 0 / .6); }
  :root:not([data-theme="light"]) body #kr-head { --n-bar: var(--h-mint); }
  :root:not([data-theme="light"]) #kr-head .s-panel { background: var(--surface); }
  :root:not([data-theme="light"]) body:not(.home):not(.landing) #kr-head .s-cta, :root:not([data-theme="light"]) body:not(.home):not(.landing) #m-drawer .s-dcta { color: var(--on-brand); }
}
:root[data-theme="dark"] { --n-shadow: 0 18px 50px -12px rgb(0 0 0 / .6); }
:root[data-theme="dark"] body #kr-head { --n-bar: var(--h-mint); }
:root[data-theme="dark"] #kr-head .s-panel { background: var(--surface); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #kr-head .s-panel:not([hidden]), #m-drawer:not([hidden]) { animation: none; }
  #kr-head *, #m-drawer * { transition: none !important; }
}
@media print { #kr-head { position: static; } #m-drawer { display: none !important; } }
.s-foot-base a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
