/* Site design system for the marketing, guide and tool pages (not the builder).
   Loaded after style.css / landing.css, so it re-tones their tokens too. */
:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f3f6f5; --band: #f7f9f8; --ink: #14201c; --ink-2: #36433e;
  --muted: #4a5752; --faint: #6b7873; --line: #e3e8e6; --line-2: #c9d3cf; --accent: #0a6c55; --accent-hover: #064a3b;
  --accent-soft: #e8f3ef; --accent-ink: #ffffff; --warn: #c2412d; --warn-soft: #fbe9e5; --paper: #fbfbf8;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 40px rgba(20,32,28,.07);
  --wrap: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1412; --surface: #151b19; --surface-2: #1b2320; --band: #131a17; --ink: #e6ebe9; --ink-2: #c9d2ce;
    --muted: #a3b0ab; --faint: #7f8d88; --line: #26302c; --line-2: #364240; --accent: #43c49a; --accent-hover: #6fd6b3;
    --accent-soft: #15352b; --accent-ink: #06140f; --warn: #f08a6c; --warn-soft: #3a2018;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 40px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1412; --surface: #151b19; --surface-2: #1b2320; --band: #131a17; --ink: #e6ebe9; --ink-2: #c9d2ce;
  --muted: #a3b0ab; --faint: #7f8d88; --line: #26302c; --line-2: #364240; --accent: #43c49a; --accent-hover: #6fd6b3;
  --accent-soft: #15352b; --accent-ink: #06140f; --warn: #f08a6c; --warn-soft: #3a2018;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 40px rgba(0,0,0,.35);
}
body { background: var(--bg); color: var(--ink); font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
.btn { padding: 9px 16px; border-radius: 6px; font-size: 15px; font-weight: 500; border-color: var(--line-2); }
.btn:hover { text-decoration: none; border-color: var(--ink-2); }
.btn.primary { font-weight: 600; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn.lg { padding: 13px 22px; font-size: 16px; }
.mono-tag { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 28px; padding: 14px max(24px, calc((100vw - var(--wrap)) / 2));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .brand { font-size: 18px; gap: 10px; flex: none; }
.site-header .brand:hover { text-decoration: none; color: var(--ink); }
.site-header .brand-icon { width: 28px; height: 28px; }
.site-header .sh-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.sh-nav > a, .sh-drop > summary { padding: 8px 12px; border-radius: 6px; color: var(--ink-2); font-size: 15px; cursor: pointer; list-style: none; }
.sh-nav > a:hover, .sh-drop > summary:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.sh-nav > a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.sh-drop { position: relative; }
.sh-drop > summary::-webkit-details-marker { display: none; }
.sh-drop > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: .6; }
.sh-drop-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 480px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-shadow: var(--shadow); }
.sh-drop-menu a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 6px; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.sh-drop-menu a span { font-weight: 400; font-size: 13px; color: var(--faint); }
.sh-drop-menu a:hover { background: var(--surface-2); text-decoration: none; }
.sh-act { display: flex; align-items: center; gap: 10px; flex: none; }
.sh-act .sh-signin { color: var(--ink-2); font-size: 15px; padding: 8px 6px; }
.sh-nav .sh-signin-m { display: none; }
.sh-menu { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; padding: 0; place-items: center; }
.sh-menu svg { width: 20px; height: 20px; }

/* ---------- footer ---------- */
footer.site { text-align: left; border-top: 1px solid var(--line); padding: 48px max(24px, calc((100vw - var(--wrap)) / 2)) 40px; font-size: 14px; color: var(--muted); background: var(--bg); }
.sf-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.sf-grid > div { display: flex; flex-direction: column; gap: 8px; }
.sf-grid strong { color: var(--ink); font-size: 14px; }
.sf-grid a { color: var(--muted); }
.sf-grid a:hover { color: var(--accent); }
.sf-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 15px; }
.sf-brand img { width: 22px; height: 22px; }
.sf-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }

/* ---------- sections ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec { padding-top: 88px; padding-bottom: 88px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 40px; }
.sec-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -.02em; line-height: 1.1; max-width: 600px; border: 0; padding: 0; }
.sec-head p { margin: 0; color: var(--muted); max-width: 420px; line-height: 1.5; }

/* home hero */
.home-hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 64px; }
.home-hero h1 { margin: 18px 0 0; font-size: clamp(38px, 5vw, 56px); line-height: 1.04; letter-spacing: -.025em; }
.home-hero .sub { margin: 22px 0 0; font-size: 19px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.home-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.home-hero .fine { margin-top: 16px; font-size: 14px; color: var(--faint); }
.shot { position: relative; margin: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.shot::before { content: ""; display: block; height: 26px; border-bottom: 1px solid var(--line); background: var(--surface-2)
  radial-gradient(circle, var(--line-2) 3.5px, transparent 4px) 10px 50% / 16px 26px repeat-x; background-size: 16px 26px; background-position: 8px 0; }
.shot img { display: block; width: 100%; height: auto; }
.proof { display: flex; flex-wrap: wrap; gap: 14px 48px; padding: 20px 0; font-size: 14.5px; color: var(--muted); }
.proof strong { color: var(--ink); }

/* capability grid */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cap { background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cap h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.cap p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
.cap .incl { margin-top: auto; font: 13px/1.5 var(--mono); color: var(--faint); }
.cap .more { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.cap .more li::before { content: "—"; color: var(--accent); margin-right: 8px; }

/* learn pair */
.learn { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.learn a { display: flex; flex-direction: column; gap: 14px; padding: 40px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); }
.learn a:hover { text-decoration: none; border-color: var(--accent); }
.learn strong { font-size: 28px; line-height: 1.15; letter-spacing: -.01em; }
.learn span.d { font-size: 16px; line-height: 1.5; color: var(--muted); }
.learn .go { margin-top: 8px; font-weight: 600; color: var(--accent); }
.learn a.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.learn a.solid .mono-tag, .learn a.solid span.d, .learn a.solid .go { color: var(--accent-ink); }
.learn a.solid .mono-tag { opacity: .85; }
.learn a.solid:hover { background: var(--accent-hover); }

/* tools strip */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tools a { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); }
.tools a:hover { border-color: var(--accent); text-decoration: none; }
.tools b { font-size: 15.5px; } .tools span { font-size: 13.5px; color: var(--faint); line-height: 1.45; }

/* final call to action */
.end-cta { text-align: center; display: grid; justify-items: center; gap: 18px; }
.end-cta h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; line-height: 1.1; border: 0; padding: 0; }
.end-cta p { margin: 0; color: var(--muted); font-size: 17px; max-width: 560px; }

/* ---------- guide (docs layout) ---------- */
.guide-hero { padding-top: 56px; padding-bottom: 8px; }
.guide-hero h1 { margin: 12px 0 0; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.025em; max-width: 820px; }
.guide-hero p { margin: 14px 0 0; font-size: 18px; color: var(--muted); max-width: 720px; line-height: 1.55; }
.docs { max-width: var(--wrap); margin: 0 auto; padding: 24px 24px 88px; display: grid; grid-template-columns: 240px minmax(0, 1fr) 250px; gap: 48px; align-items: start; }
.docs-parts { display: grid; gap: 22px; }
.docs-nav { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: hidden auto; font-size: 14px; display: grid; gap: 22px; padding: 2px 6px 8px 10px; margin-left: -10px; }
.docs-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 10px; background: var(--surface); }
.docs-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 0; font-size: 14px; outline: none; }
.docs-search kbd { font-size: 11px; }
.docs-progress { display: grid; gap: 8px; }
.docs-progress .lbl { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--faint); }
.docs-progress .bar { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.docs-progress .bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width .15s; }
.docs-part { display: grid; gap: 2px; }
.docs-part > span { font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.docs-part a { color: var(--ink-2); padding: 5px 10px; margin: 0 -10px; border-left: 2px solid transparent; border-radius: 0 4px 4px 0; }
.docs-part a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.docs-part a.read { color: var(--faint); }
.docs-part a.read::before { content: "✓ "; color: var(--accent); }
.docs-part a.active { color: var(--ink); font-weight: 600; background: var(--accent-soft); border-left-color: var(--accent); }
.docs-part a.hide { display: none; }
.docs article { max-width: 720px; }
.docs article section { margin-bottom: 56px; scroll-margin-top: 84px; padding-top: 0; }
.docs article .crumb { font: 12px var(--mono); color: var(--faint); margin-bottom: 10px; }
.docs article h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.12; margin: 0 0 14px; padding: 0; border: 0; }
.docs article h3 { font-size: 19px; margin: 30px 0 8px; }
.docs article p, .docs article li { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.docs article .lede { font-size: 18px; color: var(--ink-2); }
.docs article strong { color: var(--ink); }
.docs .rail { position: sticky; top: 80px; display: grid; gap: 18px; }
.rail-box { border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; gap: 8px; background: var(--surface); }
.rail-box strong { font-size: 15px; }
.rail-box p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.rail-box .btn { justify-self: start; margin-top: 4px; }
.in-builder { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: var(--band); border: 1px solid var(--line); border-radius: 8px; padding: 20px 24px; margin: 22px 0 4px; }
.in-builder > div { display: grid; gap: 3px; }
.in-builder strong { font-size: 16px; }
.in-builder p { margin: 0 !important; font-size: 15px !important; color: var(--muted) !important; line-height: 1.5 !important; }
ol.walk { list-style: none; padding: 0; margin: 14px 0; border-top: 1px solid var(--line); counter-reset: w; }
ol.walk > li { counter-increment: w; position: relative; padding: 16px 0 16px 52px; border-bottom: 1px solid var(--line); }
ol.walk > li::before { content: counter(w, decimal-leading-zero); position: absolute; left: 0; top: 19px; font: 14px/1 var(--mono); color: var(--accent); }
.docs .callout { border-radius: 8px; background: var(--band); border-color: var(--line); border-left-color: var(--accent); }
.docs .formula { background: var(--surface-2); border-radius: 6px; }
.docs table { background: var(--surface); border: 1px solid var(--line); }
.docs .calc { background: var(--band); border-color: var(--line); }
.docs .calc input { background: var(--surface); border-color: var(--line-2); }
.docs .card { border-color: var(--line); }

/* ---------- pricing ---------- */
.price-head { text-align: center; display: grid; justify-items: center; gap: 16px; padding-top: 72px; }
.price-head h1 { margin: 0; font-size: clamp(34px, 4.6vw, 48px); letter-spacing: -.025em; line-height: 1.05; }
.price-head p { margin: 0; font-size: 18px; color: var(--muted); max-width: 620px; line-height: 1.5; }
.bill-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 8px; background: var(--surface-2); margin-top: 8px; }
.bill-toggle button { border: 0; background: none; padding: 9px 18px; border-radius: 6px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.bill-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bill-toggle .save { font-size: 12px; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 10px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 20px; background: var(--surface); }
.plan.best { border: 2px solid var(--accent); padding: 31px; }
.plan .tag { position: absolute; top: -13px; left: 31px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; }
.plan h2 { margin: 0; font-size: 20px; border: 0; padding: 0; }
.plan .who { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.plan .amt { display: flex; align-items: baseline; gap: 6px; }
.plan .amt b { font-size: 44px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.plan .amt span { color: var(--faint); }
.plan .note { font-size: 13px; color: var(--accent); min-height: 18px; margin-top: 4px; }
.plan .btn { justify-content: center; padding: 12px; font-weight: 600; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.plan li.plus { padding-left: 0; font-weight: 600; color: var(--ink); } .plan li.plus::before { display: none; }
.site-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--band); border: 1px solid var(--line); border-radius: 10px; padding: 24px 32px; margin-top: 20px; }
.site-row strong { font-size: 17px; } .site-row p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.addons { margin-top: 40px; display: grid; gap: 14px; }
.addons-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.addon { padding: 22px 24px; display: grid; gap: 6px; border-right: 1px solid var(--line); }
.addon:last-child { border-right: 0; }
.addon .top { display: flex; justify-content: space-between; gap: 12px; }
.addon p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.addon a { font-size: 14px; font-weight: 600; margin-top: 4px; }
.faq2 { margin: 72px auto 0; max-width: 760px; }
.faq2 h2 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 14px; border: 0; padding: 0; }
.faq2 details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq2 summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq2 summary::-webkit-details-marker { display: none; }
.faq2 summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 20px; line-height: 1; }
.faq2 details[open] summary::after { content: "−"; }
.faq2 details p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }

/* ---------- tool pages (calculators and the like) ---------- */
.lp { max-width: var(--wrap); padding: 56px 24px 88px; }
.lp .crumbs { font: 400 14px var(--sans); letter-spacing: 0; text-transform: none; color: var(--faint); margin-bottom: 12px; }
.lp .crumbs a { color: var(--faint); } .lp .crumbs a:hover { color: var(--accent); }
.lp h1 { font-size: clamp(32px, 4.4vw, 44px); letter-spacing: -.025em; line-height: 1.05; max-width: 820px; }
.lp .lede { font-size: 18px; color: var(--muted); max-width: 760px; }
.lp h2 { font-size: 28px; letter-spacing: -.02em; margin: 56px 0 12px; }
.lp p, .lp li { color: var(--ink-2); }
.lp .panel-box, .lp .calc { border-color: var(--line); border-radius: 10px; }
.lp .related a, .lp .faq details, .lp .sym { border-color: var(--line); border-radius: 8px; }
.lp .faq details { background: none; border-width: 0 0 1px; border-radius: 0; padding: 14px 0; margin: 0; }
.lp .note { background: var(--band); border-left-color: var(--accent); }
.calc input, .calc select { border-color: var(--line-2); border-radius: 6px; background: var(--surface); font-size: 16px; padding: 10px 12px; }
.calc input:focus, .calc select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.result div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.result b { font-family: var(--sans); font-size: 28px; letter-spacing: -.02em; }
.result span { font-size: 13px; color: var(--faint); }
.result .big { background: var(--accent); border-color: var(--accent); }
/* a two-pane calculator: inputs left, result right */
.calc2 { display: grid; grid-template-columns: 400px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 28px 0 8px; background: var(--surface); }
.calc2 .in { padding: 32px; display: grid; gap: 18px; align-content: start; border-right: 1px solid var(--line); }
.calc2 .in label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.calc2 .in input, .calc2 .in select { font-size: 18px; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink); min-width: 0; width: 100%; }
.calc2 .in input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.calc2 .in .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc2 .in .mono { font-family: var(--mono); font-size: 16px; }
.calc2 .in .hint { font-size: 13px; color: var(--faint); font-weight: 400; }
.calc2 .out { padding: 32px 40px; background: var(--band); display: grid; gap: 28px; align-content: start; }
.kpis { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; align-items: end; }
.kpi { display: grid; gap: 4px; }
.kpi .lbl { font: 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.kpi .v { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.kpi .v small { font-size: 20px; font-weight: 500; margin-left: 4px; }
.kpi.main .v { font-size: 64px; color: var(--accent); letter-spacing: -.03em; line-height: 1; }
.kpi.main .v small { font-size: 24px; }
.kpi .s { font-size: 14px; color: var(--muted); }
.kpi .v.bad { color: var(--warn); } .kpi .v.ok { color: var(--accent); }
.bars { display: grid; gap: 12px; }
.bars .row { display: grid; grid-template-columns: 64px 1fr 72px; gap: 14px; align-items: center; font-size: 14px; }
.bars .row > span { font-family: var(--mono); color: var(--muted); }
.bars .row > span:last-child { text-align: right; color: var(--ink); }
.bars .row.over > span:last-child { color: var(--warn); }
.bars .track { position: relative; height: 26px; background: var(--surface-2); border-radius: 4px; }
.bars .fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width .2s; }
.bars .row.over .fill { background: var(--warn); }
.bars .takt { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); transition: left .2s; }
.bars .legend { font: 12px var(--mono); color: var(--faint); padding-left: 78px; }
.calc2 .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.calc2 .checks { margin: 0; }

/* ---------- legal ---------- */
main.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }
main.legal h1 { font-size: clamp(32px, 4vw, 42px); letter-spacing: -.02em; }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .docs { grid-template-columns: 220px minmax(0, 1fr); }
  .docs .rail { display: none; }
  .tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .site-header { gap: 12px; padding: 10px 16px; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .sh-menu { display: grid; }
  .sh-act .sh-signin { display: none; }
  .site-header .sh-nav { display: none; position: fixed; top: 61px; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 16px 24px; flex-direction: column; align-items: stretch;
    gap: 2px; background: var(--bg); overflow: auto; z-index: 39; }
  .site-header.open .sh-nav { display: flex; }
  .sh-nav > a, .sh-drop > summary { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .sh-drop-menu { position: static; transform: none; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 4px 0 8px 8px; }
  .sh-nav .sh-signin-m { display: block; }
  .home-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .caps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .site-row { max-width: 520px; margin-left: auto; margin-right: auto; }
  .addons-row { grid-template-columns: 1fr; } .addon { border-right: 0; border-bottom: 1px solid var(--line); } .addon:last-child { border-bottom: 0; }
  .calc2 { grid-template-columns: 1fr; } .calc2 .in { border-right: 0; border-bottom: 1px solid var(--line); }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 8px; }
  .docs-nav { position: static; margin-left: 0; max-height: none; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 28px; background: var(--surface); }
  .docs-nav .docs-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .sf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap, .lp { padding-left: 16px; padding-right: 16px; }
  .sec { padding-top: 56px; padding-bottom: 56px; }
  .sec-head { flex-direction: column; align-items: start; gap: 12px; }
  .caps, .learn, .tools { grid-template-columns: 1fr; }
  .learn a { padding: 28px; } .learn strong { font-size: 24px; }
  .proof { gap: 10px 24px; }
  .site-header .sh-act .btn.primary { padding: 8px 12px; font-size: 14px; }
  .kpis { grid-template-columns: 1fr 1fr; } .kpi.main { grid-column: 1 / -1; }
  .calc2 .in, .calc2 .out { padding: 24px 20px; }
  .bars .row { grid-template-columns: 54px 1fr 58px; gap: 10px; } .bars .legend { padding-left: 64px; }
  .site-row { grid-template-columns: 1fr; padding: 22px; }
  .docs-nav .docs-parts { gap: 14px 12px; font-size: 13.5px; } .docs-part a { padding: 4px 8px; margin: 0 -8px; }
  .in-builder { grid-template-columns: 1fr; }
  .sf-grid { grid-template-columns: 1fr 1fr; gap: 24px; } .sf-grid > div:first-child { grid-column: 1 / -1; }
  .plan { padding: 26px; } .plan.best { padding: 25px; }
}
@media (prefers-reduced-motion: reduce) { .bars .fill, .bars .takt, .docs-progress .bar i { transition: none; } }
.docs .sym-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.docs .sym p { font-size: 14px; }
.calc2 [hidden] { display: none !important; }

/* lean tool widgets on their public pages: the same two-pane frame as the takt calculator */
.tool-page .tool-card { margin: 28px 0 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.tool-page .tool-card > .lt-tool { gap: 0; font-size: 14.5px; }
.tool-page .tool-card .lt-in { padding: 32px; gap: 14px; align-content: start; }
.tool-page .tool-card .lt-out { padding: 32px 36px; gap: 18px; background: var(--band); align-content: start; align-self: stretch; }
@media (min-width: 900px) { .tool-page .tool-card .lt-in { border-right: 1px solid var(--line); } }
@media (max-width: 899px) { .tool-page .tool-card .lt-in { border-bottom: 1px solid var(--line); } .tool-page .tool-card .lt-in, .tool-page .tool-card .lt-out { padding: 24px 20px; } }
.tool-page .lt-grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tool-page .lt-grid label { font-size: 14px; font-weight: 500; gap: 6px; }
.tool-page .lt-grid label em { font-size: 13px; color: var(--faint); }
.tool-page .lt-tool input, .tool-page .lt-tool select { font-size: 16px; padding: 10px 12px; border-color: var(--line-2); border-radius: 6px; background: var(--surface); }
.tool-page .lt-sub { font: 500 12px var(--mono); letter-spacing: .06em; color: var(--faint); margin-top: 8px; }
.tool-page .lt-res { background: none; padding: 0; gap: 20px; align-items: end; }
.tool-page .lt-big b { font-size: 56px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.tool-page .lt-big span { font-size: 14px; color: var(--muted); }
.tool-page .lt-kpis { gap: 16px; }
.tool-page .lt-kpis div { background: none; padding: 0; border-radius: 0; }
.tool-page .lt-kpis b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.tool-page .lt-kpis span { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.tool-page .lt-bars { gap: 10px; }
.tool-page .lt-bar { grid-template-columns: 130px 1fr 74px; font-size: 14px; }
.tool-page .lt-bar i { height: 22px; border-radius: 4px; }
.tool-page .lt-note, .tool-page .lt-help { font-size: 14px; }
.tool-page .tool-card .lt-foot { margin: 0; padding: 18px 32px; border-top: 1px solid var(--line); background: var(--surface); }
.tool-page .lt-tbl input, .tool-page .lt-tbl select, .tool-page .lt-tool .sm { font-size: 14px; padding: 7px 8px; }
.tool-page .lt-big b { font-size: clamp(36px, 3.6vw, 52px); white-space: nowrap; }
.tool-page .lt-big { flex: 1 1 240px; }
@media (max-width: 640px) {
  .lp .btn, .wrap .btn { white-space: normal; text-align: center; }
  .tool-page .tool-card .lt-in, .tool-page .tool-card .lt-out { padding: 22px 14px; }
  .tool-page .tool-card .lt-foot { padding: 16px 14px; }
}

/* header tools: light/dark and language */
.sh-tools { display: inline-flex; gap: 4px; align-items: center; }
.sh-icon { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer; padding: 0; font: 600 12.5px var(--mono); letter-spacing: .04em; }
.sh-icon:hover { background: var(--surface-2); color: var(--ink); }
.sh-icon svg { width: 18px; height: 18px; }
.sh-icon .i-sun { display: none; }
:root[data-theme="dark"] .sh-icon .i-sun { display: block; } :root[data-theme="dark"] .sh-icon .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sh-icon .i-sun { display: block; } :root:not([data-theme="light"]) .sh-icon .i-moon { display: none; } }
.sh-nav .sh-tools-m { display: none; }
.sf-lang button { border: 0; background: none; padding: 0; font: inherit; color: var(--faint); cursor: pointer; }
.sf-lang button:hover { color: var(--accent); }
.sf-lang button[aria-current="true"] { color: var(--ink); font-weight: 600; }
@media (max-width: 980px) {
  .sh-act .sh-tools { display: none; }
  .site-header .sh-nav .sh-tools-m { display: flex; padding: 14px 0; }
  .sh-tools-m .sh-tools { gap: 10px; }
  .sh-tools-m .sh-icon { width: 44px; height: 44px; border-color: var(--line); }
}

/* "See it in use": a real screenshot with the result card on top, and the story underneath */
.usecase { display: grid; gap: 40px; max-width: none; }
.uc-shot { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 33%; align-items: start; }
.uc-map { display: block; width: 100%; margin-top: 28px; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fbfbf8; box-shadow: var(--shadow); }
.uc-card { position: relative; z-index: 1; width: calc(100% + 48px); margin: -20px 0 0 -48px; height: auto; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 18px 48px rgba(20,32,28,.2); }
.uc-text { display: grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: 40px; align-items: start; }
.uc-text > div { display: grid; gap: 14px; align-content: start; }
.uc-text h3 { margin: 0; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.02em; line-height: 1.15; }
.uc-text p { margin: 0; color: var(--muted); line-height: 1.6; }
.uc-steps { margin: 0; padding: 0; list-style: none; counter-reset: u; display: grid; gap: 12px; }
.uc-steps li { counter-increment: u; position: relative; padding-left: 36px; color: var(--ink-2); line-height: 1.55; }
.uc-steps li::before { content: counter(u); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 13px/24px var(--mono); text-align: center; }
.uc-stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.uc-stats div { background: var(--surface); padding: 12px 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.uc-stats b { font-size: 20px; letter-spacing: -.01em; color: var(--accent); white-space: nowrap; }
.uc-stats span { font-size: 13.5px; color: var(--faint); line-height: 1.35; text-align: right; }
.uc-text .btn { justify-self: start; }
@media (max-width: 980px) {
  .uc-shot { grid-template-columns: 1fr; }
  .uc-map { margin-top: 0; }
  .uc-card { width: 70%; margin: -40px 0 0 auto; display: block; }
  .uc-text { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) { .uc-card { width: 90%; } }
/* use-case clips: the app doing the work, on a loop */
.uc-video { display: block; }
.uc-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 10px; background: #fbfbf8; box-shadow: var(--shadow); }
.uc-video figcaption { margin-top: 10px; font-size: 13px; color: var(--faint); text-align: right; }
/* the smaller examples after the lead one */
.uc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; margin-top: 72px; }
.uc-item { display: grid; gap: 14px; align-content: start; }
.uc-item .uc-video { margin-bottom: 6px; }
.uc-item h3 { margin: 0; font-size: 22px; letter-spacing: -.015em; line-height: 1.2; }
.uc-item p { margin: 0; color: var(--muted); line-height: 1.6; }
.uc-item .uc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.uc-item .uc-stats div { flex-direction: column; align-items: flex-start; gap: 2px; }
.uc-item .uc-stats b { font-size: 18px; }
.uc-item .uc-stats span { text-align: left; }
.uc-item .more { justify-self: start; font-weight: 600; color: var(--accent); text-decoration: none; }
.uc-item .more:hover { text-decoration: underline; }
@media (max-width: 860px) { .uc-grid { grid-template-columns: 1fr; gap: 48px; margin-top: 56px; } }
