/* NurtureLead public site: Graphite theme. Light is the default; dark is the same tokens with other values.
   The tokens are the signed-off palette (docs/boards/KIT.md), the same names and values as web/app/app.css
   (test/site.test.ts checks they stay the same). Use tokens, never a raw colour. */

:root {
  --ground: #F4F5F6; --sidebar: #FAFAFB; --panel: #FFFFFF; --raised: #ECEEF0;
  --line: #DFE2E6; --line-soft: #EBEDEF; --line-strong: #C6CBD2;
  --text: #17191C; --text-2: #3D434A; --muted: #646B74; --faint: #8D949D;
  --accent: #C6F35E; --on-accent: #141A05; --accent-text: #456B00; --accent-soft: #EAF7C8;
  --good: #0F7A4D; --good-soft: #DDF3E7; --good-dot: #1FA36A;
  --warn: #8A5A00; --warn-soft: #FBEFD3; --warn-line: #E0A021;
  --stop: #C0362C; --stop-soft: #FBE3E1; --on-stop: #FFFFFF;
  --info: #1F5FBF; --info-soft: #E1ECFB;
  --float: 0 12px 32px rgba(23, 25, 28, 0.14); --scrim: rgba(23, 25, 28, 0.45);
  --sans: 'Geist', 'Helvetica Neue', system-ui, sans-serif; --mono: 'Geist Mono', ui-monospace, monospace;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --ground: #0F1012; --sidebar: #131417; --panel: #17181B; --raised: #1E2024;
  --line: #2A2D33; --line-soft: #22252A; --line-strong: #3A3E45;
  --text: #ECEDEE; --text-2: #C9CDD2; --muted: #9BA1A9; --faint: #5B6068;
  --accent: #C6F35E; --on-accent: #141A05; --accent-text: #C6F35E; --accent-soft: #1D2B17;
  --good: #5FD39A; --good-soft: #16302A; --good-dot: #5FD39A;
  --warn: #F0B34B; --warn-soft: #33261A; --warn-line: #F0B34B;
  --stop: #FF7A72; --stop-soft: #3A1F1D; --on-stop: #17181B;
  --info: #7CC4FF; --info-soft: #17283A;
  --float: 0 12px 32px rgba(0, 0, 0, 0.45); --scrim: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---- base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); color: var(--text); font: 16px/26px var(--sans); -webkit-font-smoothing: antialiased; }
main { flex-grow: 1; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-text); font-weight: 500; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled { cursor: default; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1168px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 40; padding: 8px 14px; border-radius: 6px; background: var(--text); color: var(--panel); }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- type (KIT.md: public site scale) */
h1 { font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 36px; line-height: 42px; font-weight: 600; letter-spacing: -0.015em; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
.h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: 0; }
.h4 { font-size: 16px; line-height: 26px; font-weight: 600; }
.eyebrow { font-size: 12px; line-height: 18px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-text); }
.eyebrow + h1 { margin-top: 16px; }
.eyebrow + h2 { margin-top: 12px; }
.lead { font-size: 20px; line-height: 28px; color: var(--text-2); }
.sm { font-size: 14px; line-height: 22px; }
.xs { font-size: 12px; line-height: 18px; }
.t2 { color: var(--text-2); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.grow { flex-grow: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.center { text-align: center; }
.mw-640 { max-width: 640px; } .mw-680 { max-width: 680px; } .mw-720 { max-width: 720px; } .mw-760 { max-width: 760px; } .mw-920 { max-width: 920px; }
.mt-4 { margin-top: 4px; } .mt-6 { margin-top: 6px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-28 { margin-top: 28px; } .mt-32 { margin-top: 32px; } .mt-36 { margin-top: 36px; } .mt-48 { margin-top: 48px; } .mt-56 { margin-top: 56px; }
/* A fact nobody has given yet: shown in brackets until the owner fills it in. */
.ph { padding: 1px 6px; border: 1px dashed var(--faint); border-radius: 4px; font: 13px var(--mono); color: var(--muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--text); font-size: 15px; line-height: 22px; font-weight: 500; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--raised); }
.btn.primary { border-color: transparent; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(0.96); background: var(--accent); }
.btn.sm { height: 36px; padding: 0 16px; }
.btn:disabled { opacity: 0.5; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.icon-btn { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--raised); color: var(--text); }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; line-height: 26px; padding-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 400; }
.chip:hover { text-decoration: none; background: var(--raised); }
.chip[aria-pressed='true'], .chip[aria-current] { border-color: var(--text); background: var(--text); color: var(--panel); font-weight: 500; }

/* ---- site header */
.site-head { position: relative; z-index: 20; min-height: 72px; flex-shrink: 0; background: var(--panel); border-bottom: 1px solid var(--line); }
.site-head > .wrap { height: 71px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.mark { width: 26px; height: 26px; border-radius: 6px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.site-nav { flex-grow: 1; display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav a { color: var(--text-2); font-weight: 400; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); text-decoration: none; }
.site-nav a[aria-current] { font-weight: 500; }
.head-actions { display: flex; align-items: center; gap: 16px; }
.login-link { color: var(--text); font-size: 15px; font-weight: 500; }
.menu-btn { display: none; }
.site-menu { display: none; }
.noscript-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; min-height: 71px; font-size: 15px; }
.noscript-nav a { color: var(--text-2); font-weight: 400; }
.noscript-nav a:first-child { color: var(--text); font-weight: 600; }

/* ---- site footer */
.site-foot { flex-shrink: 0; padding: 48px 0; background: var(--panel); border-top: 1px solid var(--line); font-size: 14px; line-height: 22px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2.6fr); gap: 32px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.foot-col h2 { margin-bottom: 4px; font-size: 14px; line-height: 22px; font-weight: 600; letter-spacing: 0; }
.foot-col a { color: var(--text-2); font-weight: 400; }
.foot-small { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--muted); }
.foot-small a { color: var(--accent-text); font-weight: 500; }
.foot-small a.brand { color: var(--text); font-weight: 600; }

/* ---- sections and layout */
.sec { padding: 48px 0; }
.sec.hero { padding: 72px 0 48px; }
.sec.top { padding: 64px 0 48px; }
.sec.last { padding-bottom: 72px; }
.sec.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; }
.sec.roomy { padding: 72px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 24px; }
.sec-head > div { flex-grow: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.stack { display: flex; flex-direction: column; }
.stack.g-16 { gap: 16px; } .stack.g-20 { gap: 20px; } .stack.g-12 { gap: 12px; } .stack.g-10 { gap: 10px; } .stack.g-8 { gap: 8px; } .stack.g-6 { gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; }
.card { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.card.col { display: flex; flex-direction: column; }
.ico { width: 32px; height: 32px; border-radius: 6px; background: var(--raised); color: var(--text-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; line-height: 20px; white-space: nowrap; background: var(--raised); color: var(--text-2); }
.tag.flat { padding: 0 8px; }
.tag.accent { background: var(--accent-soft); color: var(--accent-text); }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.info { background: var(--info-soft); color: var(--info); }
.tag.fill { background: var(--accent); color: var(--on-accent); font-weight: 500; }
.tag.off { color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good-dot); flex-shrink: 0; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 6px; color: var(--text); }
.notice svg { color: var(--warn); margin-top: 5px; }
.notice.sm svg { margin-top: 3px; }
.notice.xs { padding: 10px 12px; gap: 10px; } .notice.xs svg { margin-top: 1px; }
.note-info { display: flex; gap: 10px; padding: 12px 14px; border-radius: 6px; background: var(--info-soft); color: var(--info); font-size: 14px; line-height: 22px; }
.note-info svg { margin-top: 3px; }

/* Lists with a tick (or a dash for "not included") in front of each line. */
.ticks { display: flex; flex-direction: column; gap: 14px; }
.ticks > li { position: relative; padding-left: 28px; font-size: 14px; line-height: 22px; color: var(--text-2); }
.ticks > li::before { content: ''; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") center / 16px no-repeat; }
.ticks > li b, .ticks > li strong { font-weight: 600; color: var(--text); }
.ticks.tight { gap: 10px; }
.ticks.tight > li { padding-left: 26px; color: var(--text); }
.ticks > li.no { color: var(--muted); }
.ticks > li.no::before { background: var(--faint);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 8h8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 8h8'/%3E%3C/svg%3E"); }
.ticks.ui-ticks { gap: 6px; }
.ticks.ui-ticks > li { padding-left: 24px; font-size: 13px; line-height: 20px; color: var(--text); }
.ticks.ui-ticks > li::before { top: 2px; }

/* An inverse surface: the text colour as the fill (KIT.md). */
.inverse { background: var(--text); color: var(--panel); }
.inverse .dim { color: var(--line-strong); }
.inverse .ticks > li { padding-left: 28px; color: var(--line-strong); }
.inverse .ticks > li::before { background: var(--panel); top: 5px; }
.inverse .ticks > li b { display: block; font-size: 16px; line-height: 26px; color: var(--panel); margin-bottom: 2px; }
.inverse :focus-visible { outline-color: var(--panel); }
.inverse .btn.ghost { background: transparent; border-color: var(--panel); color: var(--panel); font-weight: 600; }
.inverse .btn.ghost:hover { background: transparent; opacity: 0.85; }

/* ---- home */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { padding: 20px 16px 0 0; border-top: 1px solid var(--line-strong); }
.step .n { font: 13px/20px var(--mono); color: var(--muted); }
.step h3 { margin-top: 12px; min-height: 56px; }
.step p { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--text-2); }
.feature h3 { margin-top: 20px; }
.feature p, .tile p { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--text-2); }
.tile h3 { margin-top: 16px; min-height: 56px; }
.plan-mini .price { margin-top: 12px; font: 28px/34px var(--mono); }
.plan-mini .per { margin-top: 4px; font-size: 14px; line-height: 22px; color: var(--muted); }
.plan-mini .has { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 14px; line-height: 22px; color: var(--text-2); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.faq > div { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.faq p { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--text-2); }
.cta-band { padding: 56px; display: flex; align-items: center; gap: 24px 48px; }
.cta-band.inverse { padding: 40px 48px; border: 0; border-radius: 6px; }
.agency { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }

/* ---- product visuals: small pieces of the app, drawn in markup */
.ui { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: 13px; line-height: 20px; }
.inverse .ui { border-color: var(--panel); }
.ui-head { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.ui-head.tall { min-height: 52px; }
.ui-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.pill { padding: 2px 10px; border-radius: 10px; background: var(--raised); color: var(--text-2); font-size: 12px; white-space: nowrap; }
.av { width: 24px; height: 24px; border-radius: 50%; background: var(--raised); color: var(--text-2); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.av.lg { width: 32px; height: 32px; font-size: 12px; }
.av.sm { width: 22px; height: 22px; font-size: 10px; }
.av.sq { border-radius: 6px; background: var(--text); color: var(--panel); font-size: 12px; }
.fake-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--text); white-space: nowrap; }
.fake-btn.primary { border-color: transparent; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.fake-btn.on { height: 30px; padding: 0 12px; border-color: var(--accent-text); background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.fake-btn.opt { height: 30px; padding: 0 12px; }
.fake-field { flex-grow: 1; min-width: 0; display: flex; align-items: center; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--faint); }
.lnk { color: var(--accent-text); font-weight: 500; }
.fake-toggle { width: 34px; height: 18px; flex-shrink: 0; padding: 0 2px; border-radius: 9px; background: var(--accent); display: flex; align-items: center; justify-content: flex-end; }
.fake-toggle::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--on-accent); }

.hero-ui { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.hero-ui > div { display: flex; flex-direction: column; min-width: 0; }
.hero-ui > div + div { border-left: 1px solid var(--line); }
.flow { flex-grow: 1; padding: 28px 16px; background: var(--ground); display: flex; flex-direction: column; align-items: center; --node: 232px; --gap: 20px; }
.flow.compact { padding: 24px 12px; --node: 196px; --gap: 16px; }
.node { width: var(--node); max-width: 100%; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; }
.flow.compact .node { padding: 10px 12px; }
.node-k { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 18px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.node-k.act { color: var(--accent-text); }
.node-k.branch { color: var(--warn); }
.here { margin-left: auto; padding: 0 7px; border-radius: 9px; background: var(--ground); color: var(--text); font: 11px/18px var(--mono); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.node b { font-weight: 600; }
.node-s { color: var(--muted); font-size: 12px; }
.vl { display: block; width: 1px; height: var(--gap); background: var(--line-strong); flex-shrink: 0; }
.vl.short { height: calc(var(--gap) - 6px); }
.vl.stub { height: calc(var(--gap) / 2); }
.fork { position: relative; width: calc(var(--node) * 2 + 24px); max-width: 100%; padding-top: calc(var(--gap) - 6px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fork::before { content: ''; position: absolute; top: 0; left: calc((100% - 24px) / 4); right: calc((100% - 24px) / 4); height: calc(var(--gap) - 6px); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 6px 6px 0 0; }
.fork > div { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.fork .node { width: 100%; }
.yn { height: 20px; padding: 0 10px; border-radius: 10px; background: var(--raised); color: var(--text); font-size: 11px; line-height: 20px; font-weight: 600; }
.yn.yes { background: var(--accent); color: var(--on-accent); }
.bubble { max-width: 300px; padding: 10px 12px; border-radius: 6px; background: var(--raised); }
.bubble.me { align-self: flex-end; max-width: 360px; background: var(--text); color: var(--panel); }
.bubble.bot { align-self: flex-start; max-width: 440px; display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--panel); border: 1px solid var(--line); }
.draft { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line-strong); border-left: 2px solid var(--accent-text); border-radius: 6px; }
.stamp { font: 11px/16px var(--mono); color: var(--muted); }

.viz { height: 148px; padding: 14px; background: var(--ground); border-radius: 6px; display: flex; flex-direction: column; justify-content: center; font-size: 12px; line-height: 20px; overflow: hidden; }
.viz-row { display: flex; align-items: center; justify-content: center; }
.viz-row + .viz-row { margin-top: 12px; }
.mini-node { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; white-space: nowrap; }
.mini-node .mono { font-size: 11px; color: var(--muted); }
.hl { width: 12px; height: 1px; background: var(--line-strong); flex-shrink: 0; }
.hl.s { width: 10px; }
.yn.mini { padding: 0 8px; }
.list { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; }
.list > * { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px; border-bottom: 1px solid var(--line-soft); }
.list > *:last-child { border-bottom: 0; }
.list.kv > * { min-height: 0; justify-content: space-between; padding: 3px 10px; }
.list.kv > * > :first-child, .kv-row > :first-child { color: var(--muted); }
.list b { font-weight: 500; }
.chan { width: 66px; flex-shrink: 0; }

/* A slider drawn still: --v is the value, --safe the safe-value guide, both as a share of the track. */
.sl { position: relative; height: 12px; }
.sl::before { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--line); }
.sl::after { content: ''; position: absolute; left: 0; top: 5px; width: var(--v); height: 2px; background: var(--accent-text); }
.sl i { position: absolute; z-index: 1; }
.sl .safe { left: var(--safe); top: 1px; width: 1px; height: 10px; background: var(--faint); }
.sl .safe.bold { top: 0; width: 2px; height: 12px; }
.sl .knob { left: var(--v); top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 3px; background: var(--text); }
.sl-top { display: flex; justify-content: space-between; gap: 12px; }
.sl-scale { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 11px; line-height: 16px; color: var(--muted); }
.sl-scale > :nth-child(2) { text-align: center; }
.sl-scale > :nth-child(3) { text-align: right; }

.trow { display: grid; align-items: center; gap: 0 8px; padding: 0 16px; min-height: 40px; border-bottom: 1px solid var(--line-soft); }
.trow.c3 { grid-template-columns: 1.4fr 1fr 1fr; }
.trow.c3b { grid-template-columns: 1.4fr 0.8fr 1fr; }
.trow.tall { min-height: 44px; }
.trow.hd { min-height: 32px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; border-bottom-color: var(--line); }
.trow.end { border-bottom-color: var(--line); }
.trow b { font-weight: 500; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; min-height: 36px; border-bottom: 1px solid var(--line-soft); }
.kv-row.end { border-bottom-color: var(--line); }
.kv-row.last, .trow.last { border-bottom: 0; }
.ui-body .kv-row { padding: 0; min-height: 40px; }

/* ---- features */
.feat { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.feat.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); }
.sec.feat-sec { padding: 56px 0; }
.palette { width: 148px; flex-shrink: 0; padding: 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.palette > span { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--sidebar); }
.palette > span::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--accent-text); }
.palette > .k-wait::before { background: var(--muted); }
.palette > .k-branch::before { background: var(--warn-line); }
.palette > .k-stop::before { background: var(--stop); }
.palette > b { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ui-foot { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 18px; color: var(--text-2); }
.ui-foot svg { color: var(--muted); margin-top: 1px; }
.box { border: 1px solid var(--line); border-radius: 6px; }
.box.pad { padding: 10px 12px; }
.box .kv-row { padding: 0 12px; }
.box .kv-row > :first-child { width: 110px; flex-shrink: 0; }
.box .kv-row > :nth-child(2) { flex-grow: 1; }
.soft { padding: 10px 12px; border-radius: 6px; background: var(--ground); }

/* ---- pricing */
.seg { display: inline-flex; gap: 2px; height: 42px; padding: 3px; background: var(--raised); border-radius: 6px; }
.seg button { height: 36px; padding: 0 18px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-size: 15px; }
.seg button[aria-pressed='true'] { border-color: var(--line-strong); background: var(--panel); color: var(--text); font-weight: 600; }
.period { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-height: 42px; }
.plan h2 { font-size: 20px; line-height: 28px; letter-spacing: 0; }
.plan .for { margin-top: 4px; min-height: 44px; font-size: 14px; line-height: 22px; color: var(--muted); }
.plan .amount { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.plan .amount b { font: 400 32px/40px var(--mono); }
.plan .amount span { font-size: 14px; color: var(--muted); }
.plan .billed { margin-top: 6px; font-size: 14px; line-height: 22px; color: var(--text-2); }
.plan .trial { min-height: 22px; font-size: 14px; line-height: 22px; color: var(--good); font-weight: 500; }
.plan .btn { margin-top: 20px; }
.plan .ticks { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.tbl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 22px; }
.tbl th, .tbl td { padding: 13px 12px 13px 0; text-align: left; vertical-align: top; font-weight: 400; border-bottom: 1px solid var(--line-soft); }
.tbl th:first-child { padding-left: 24px; width: 27.5%; }
.tbl.limits th:first-child { width: 30.6%; }
.tbl.limits th:last-child, .tbl.limits td:last-child { width: 28.6%; }
.tbl > * > tr > :last-child { padding-right: 24px; }
.tbl thead th { font-weight: 600; border-bottom-color: var(--line); vertical-align: middle; }
.tbl.limits thead th { vertical-align: bottom; color: var(--muted); font-size: 12px; line-height: 18px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; }
.tbl.limits tbody > tr > * { vertical-align: middle; height: 44px; padding-top: 0; padding-bottom: 0; }
.tbl .grp th { padding: 7px 24px; background: var(--sidebar); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.tbl tbody th[scope='row'] { color: var(--text-2); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl .no { color: var(--muted); }
.addon .price { margin-top: 12px; font: 28px/34px var(--mono); }
.addon .per { margin-top: 4px; font-size: 14px; line-height: 22px; color: var(--muted); }

/* ---- about */
.about-what { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 80px; }
.jobs > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-top: 1px solid var(--line-soft); }
.jobs > li:first-child { padding-top: 0; border-top: 0; }
.jobs h3 + p { margin-top: 6px; max-width: 668px; color: var(--text-2); }
.facts { padding: 12px 24px; }
.facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.panel-soft { padding: 24px; background: var(--sidebar); border: 1px solid var(--line); border-radius: 6px; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 22px; color: var(--muted); }
.legend::before { content: ''; width: 2px; height: 12px; background: var(--faint); flex-shrink: 0; }

/* ---- contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 416px; gap: 64px; align-items: start; }
.form { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 22px; font-weight: 500; }
.input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--text); font-size: 16px; font-weight: 400; }
select.input { padding: 0 6px; }
textarea.input { height: 180px; padding: 8px 10px; line-height: 24px; resize: vertical; }
.input::placeholder { color: var(--faint); }
.input[aria-invalid='true'] { border-color: var(--stop); }
.err { color: var(--stop); font-size: 14px; line-height: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ways > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.ways > li:first-child { padding-top: 0; border-top: 0; }
.ways h2 { font-size: 20px; line-height: 28px; letter-spacing: 0; }
.ways .pair { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 26px; }
.ways .pair > :first-child { width: 104px; flex-shrink: 0; color: var(--muted); }
.sent { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* ---- legal */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 12px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 15px; line-height: 22px; font-weight: 400; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a[aria-current] { border-bottom-color: var(--accent-text); color: var(--text); font-weight: 600; }
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; max-height: calc(100vh - 48px); overflow-y: auto; }
.toc h2 { margin-bottom: 14px; font-size: 12px; line-height: 18px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.toc a { padding: 4px 0 4px 14px; border-left: 2px solid var(--line); color: var(--muted); font-size: 14px; line-height: 22px; font-weight: 400; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.on { border-left-color: var(--accent-text); color: var(--text); font-weight: 500; }
.prose { display: flex; flex-direction: column; gap: 36px; }
.prose section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.prose h2 { font-size: 20px; line-height: 28px; letter-spacing: 0; max-width: 760px; }
.prose p, .prose li { max-width: 760px; color: var(--text-2); }
.prose h2 + * { margin-top: -2px; }
.prose ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
.prose h3 { font-size: 16px; line-height: 26px; }

/* ---- help */
.search { width: 640px; max-width: 100%; display: flex; gap: 8px; }
.search label { flex-grow: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--faint); }
.search label:focus-within, .ask label:focus-within { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.search input, .ask input { flex-grow: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: 15px; outline: none; }
.search input::placeholder, .ask input::placeholder { color: var(--faint); }
.topic h2 { font-size: 20px; line-height: 28px; letter-spacing: 0; }
.topic ul { margin-top: 16px; align-self: stretch; font-size: 14px; line-height: 22px; border-bottom: 1px solid var(--line-soft); }
.topic li a { display: block; padding: 9px 0; border-top: 1px solid var(--line-soft); color: var(--text); font-weight: 400; }
.topic > a { margin-top: 12px; font-size: 14px; line-height: 22px; }
.assist { padding: 32px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.chat { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 6px; background: var(--ground); font-size: 13px; line-height: 20px; }
.ask { margin-top: 4px; display: flex; gap: 8px; }
.ask label { flex-grow: 1; min-width: 0; display: flex; align-items: center; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); }
.ask input { font-size: 13px; }
.support-band { padding: 24px 32px; display: flex; align-items: center; gap: 16px; }
.support-band h2 { font-size: 20px; line-height: 28px; letter-spacing: 0; }

/* ---- blog */
.post-lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 0; overflow: hidden; }
.cover { min-height: 150px; background: var(--raised); color: var(--faint); display: flex; align-items: center; justify-content: center; }
.post-lead .cover { min-height: 336px; border-right: 1px solid var(--line); }
.post-lead .body { padding: 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post .cover { height: 150px; flex-shrink: 0; border-bottom: 1px solid var(--line); }
.post .body { flex-grow: 1; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.post h3 a, .post-lead h2 a { color: var(--text); font-weight: 600; }
.post .date { margin-top: auto; padding-top: 14px; }
.date { font: 13px/22px var(--mono); color: var(--muted); }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 64px 24px; border: 1px dashed var(--faint); border-radius: 6px; color: var(--muted); text-align: center; }
.empty h2 { color: var(--text); font-size: 20px; line-height: 28px; letter-spacing: 0; }

/* ---- narrower screens */
@media (max-width: 1040px) {
  .g4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step h3, .tile h3 { min-height: 0; }
  .plan .for { min-height: 0; }
  .about-what { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 900px) {
  h1 { font-size: 44px; line-height: 48px; }
  h2 { font-size: 30px; line-height: 36px; }
  .site-head > .wrap { gap: 8px; }
  .site-head .brand { margin-right: auto; }
  .site-nav, .head-actions .login-link, .head-actions .btn { display: none; }
  .head-actions { gap: 4px; }
  .menu-btn { display: inline-flex; }
  .site-menu.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; padding: 8px 24px 24px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: var(--float); }
  .site-menu a.item { padding: 12px 0; border-bottom: 1px solid var(--line-soft); color: var(--text); font-size: 16px; font-weight: 400; }
  .site-menu a.item[aria-current] { font-weight: 600; }
  .site-menu .btn { margin-top: 20px; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-2, .agency, .feat, .feat.flip, .assist { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feat.flip > :first-child { order: 2; }
  .hero-ui { grid-template-columns: minmax(0, 1fr); }
  .hero-ui > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px; }
  .legal { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; max-height: none; padding: 20px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
  .post-lead { grid-template-columns: minmax(0, 1fr); }
  .post-lead .cover { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-small { grid-column: 1 / -1; }
  .sec.band, .sec.roomy { padding: 56px 0; }
}
@media (max-width: 760px) {
  /* The comparison tables become one block per row: the row's name, then each plan with its value. */
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: auto !important; height: auto !important; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl tbody tr.grp { padding: 0; }
  .tbl tbody tr.grp th { padding: 7px 16px; }
  .tbl tbody th[scope='row'] { padding: 0 0 6px; border: 0; font-weight: 600; color: var(--text); }
  .tbl td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 2px 0 !important; border: 0; }
  .tbl.limits td { grid-template-columns: minmax(0, 1fr) 56px; }
  .tbl td::before { content: attr(data-l); color: var(--muted); font-family: var(--sans); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 36px; line-height: 40px; }
  h1 br { display: none; }
  h2 { font-size: 26px; line-height: 32px; }
  .lead { font-size: 18px; line-height: 26px; }
  .sec { padding: 36px 0; }
  .sec.hero, .sec.top { padding: 40px 0 32px; }
  .sec.band, .sec.roomy, .sec.feat-sec { padding: 40px 0; }
  .sec.last { padding-bottom: 48px; }
  .site-menu.open { padding: 8px 16px 20px; }
  .g2, .g3, .g4, .steps, .faq { grid-template-columns: minmax(0, 1fr); }
  .faq { gap: 24px; }
  .card { padding: 20px; }
  .cta-band, .cta-band.inverse { padding: 28px 20px; }
  .btn-row .btn { flex-grow: 1; }
  .flow, .flow.compact { padding: 20px 12px; }
  .fork { gap: 12px; }
  .fork::before { left: calc((100% - 12px) / 4); right: calc((100% - 12px) / 4); }
  .node, .flow.compact .node { padding: 8px 10px; }
  .palette { display: none; }
  .ui-body { padding: 16px; }
  .ui-head .hide-s { display: none; }
  .form { padding: 20px; }
  .form .g2 { gap: 24px; }
  .input { height: 44px; }
  .assist { padding: 20px; }
  .chat { padding: 14px; }
  .support-band { flex-wrap: wrap; padding: 20px; }
  .support-band .btn { width: 100%; }
  .search { flex-direction: column; }
  .post-lead .body { padding: 24px 20px; }
  .facts { padding: 8px 20px; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot { padding: 36px 0; }
  .weekdays .tag { padding: 2px 5px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
