/* Rowsmith (gallivantus.com) v1.1. Own design system (SPEC 6): "indigo-dyed yarn on a white worktable".
   Patua One (display, soft slab) + Jost (text, tabular figures); both OFL, self-hosted. Indigo-dye palette with one
   sun-yellow accent for markers and the hero action. No inline styles anywhere (CSP style-src 'self'). */
@font-face { font-family: "Patua One"; src: url("/assets/fonts/patua-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #ffffff; --wash: #eef2f8; --wash-2: #e1e8f3; --ink: #141b2d; --ink-2: #39435a; --muted: #5a6478;
  --line: #dbe2ee; --line-2: #b9c5d9;
  --indigo: #24408a; --indigo-dk: #1a3170; --night: #121f45; --night-2: #0d1736; --mist: #c8d3ea;
  --sun: #f4c542; --sun-dk: #d9a514; --sun-tint: #fff6d6;
  --madder: #b03a2c; --madder-dk: #8c2a1f; --madder-tint: #f8e4df; --moss: #4d6b3a; --moss-tint: #e5eedc;
  --wool: #3d5ea8; --wool-2: #93a9d6; --wool-3: #c4d1ea;
  --display: "Patua One", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1200px; --gut: clamp(16px, 4vw, 44px); --r: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.62 var(--sans); font-feature-settings: "tnum" 1; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--indigo); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--indigo-dk); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun-dk); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.005em; margin: 0 0 .45em; color: var(--ink); }
h1 { font-size: clamp(38px, 5.4vw, 66px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: clamp(21px, 2vw, 26px); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.wrap--read { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
/* section label: sentence case beside a stitch-marker ring (not a capitals kicker) */
.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 15px/1.3 var(--sans); color: var(--indigo); margin: 0 0 14px; }
.eyebrow::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--sun-dk); }
.eyebrow a { color: inherit; }
.lede { font-size: clamp(18px, 1.55vw, 20.5px); color: var(--ink-2); max-width: 40em; }
.small { font-size: 14.5px; color: var(--muted); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- masthead ---------- */
.mast { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.mast__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand__word { font: 400 28px/1 var(--display); letter-spacing: 0; color: var(--indigo); }
.mark { width: 34px; height: 34px; flex: none; }
.mark__ball { fill: var(--indigo); }
.mark__wind { fill: none; stroke: #9fb4e0; stroke-width: 1.6; stroke-linecap: round; }
.mark__needle { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.mark__knob { fill: var(--sun-dk); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { font: 500 15.5px/1 var(--sans); color: var(--ink-2); text-decoration: none; padding: 10px 13px; border-radius: 6px; }
.nav a:hover { background: var(--wash); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--indigo); box-shadow: inset 0 -2.5px 0 var(--sun-dk); border-radius: 0; }
.nav .nav__cta { margin-left: 10px; background: var(--indigo); color: #fff; border-radius: 8px; }
.nav .nav__cta:hover { background: var(--indigo-dk); color: #fff; }
.nav .nav__cta[aria-current="page"] { box-shadow: none; border-radius: 8px; color: #fff; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font: 600 15px/1 var(--sans); padding: 12px 16px; border-radius: 8px; background: var(--indigo); color: #fff; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); }
.menu__list { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 18px 40px rgba(20, 27, 45, .18); padding: 8px; display: grid; }
.menu__list a { padding: 13px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.menu__list a:hover, .menu__list a[aria-current="page"] { background: var(--wash); }
@media (max-width: 960px) { .nav { display: none; } .menu { display: block; } .mast__in { height: 62px; } .brand__word { font-size: 25px; } }

/* ---------- buttons, labels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 8px; border: 0; font: 600 16.5px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; }
.btn--go { background: var(--indigo); color: #fff; }
.btn--go:hover { background: var(--indigo-dk); color: #fff; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #ffd65e; color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--indigo-dk); color: #fff; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--line:hover { background: var(--wash); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--indigo); }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn--danger { background: transparent; color: var(--madder-dk); box-shadow: inset 0 0 0 1.5px var(--madder); }
.btn--danger:hover { background: var(--madder); color: #fff; }
.textlink { font-weight: 600; text-decoration: none; color: var(--indigo); border-bottom: 2px solid var(--sun-dk); padding-bottom: 2px; }
.textlink:hover { color: var(--indigo-dk); text-decoration: none; border-bottom-color: var(--indigo-dk); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.tag { display: inline; font-size: 15.5px; color: var(--ink-2); }
.tag__name { font-weight: 600; color: var(--ink); }
.tag__num { font-weight: 600; color: var(--ink); }
/* "Free during preview": a yarn ball-band label with notched ends */
.tag__free { display: inline-block; margin-left: 4px; font: 700 12px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); background: var(--sun); padding: 7px 15px; vertical-align: 2px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%); }

/* tape-measure rule */
.tape { height: 22px; border-top: 1.5px solid var(--line-2); background:
  repeating-linear-gradient(90deg, var(--line-2) 0 1.5px, transparent 1.5px 96px) top left / 100% 16px no-repeat,
  repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 48px) top left / 100% 10px no-repeat,
  repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px) top left / 100% 6px no-repeat; }

/* ---------- home: indigo hero, the real Even Spacer output drawn as cloth across the full width ---------- */
.hero { background: var(--night); color: var(--mist); overflow: hidden; }
.hero__top { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 84px); align-items: center; padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(30px, 4vw, 52px); }
.hero h1 { color: #fff; font-size: clamp(44px, 6.6vw, 88px); line-height: 1; margin: 0; }
.hero .lede { color: var(--mist); margin-bottom: 26px; }
.textlink--light { color: #fff; border-bottom-color: var(--sun); }
.textlink--light:hover { color: var(--sun); border-bottom-color: var(--sun); }
.hero__price { margin: 26px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(200, 211, 234, .28); font-size: 15.5px; line-height: 1.6; color: var(--mist); }
.hero__price strong { color: #fff; font-weight: 600; }
.hero__price .tag__free { margin-left: 6px; }
.hero__note { display: block; margin-top: 6px; font-size: 14.5px; color: #a9b7d6; }
.hero__fabric { margin: 0; }
.hero__cloth { border-top: 1px solid rgba(200, 211, 234, .16); background: var(--night-2); padding: 10px 0 0; height: clamp(96px, 14.5vw, 214px); overflow: hidden; }
.hero__cloth { position: relative; }
.hero__cloth::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(rgba(18, 31, 69, 0), var(--night)); pointer-events: none; }
.hero__cloth .fab { display: block; width: 100%; height: auto; }
.hero__cloth .fab__k { stroke: #b6c6ea; }
.hero__cloth .fab__k--a { stroke: #5f7bbd; }
.hero__cloth .fab__k--b { stroke: #4a64a6; }
.hero__cloth .fab__ring { stroke: var(--sun); stroke-width: 2.8; }
.hero__cloth .fab__pin { stroke: var(--sun); }
.hero__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 26px; padding-top: 16px; padding-bottom: 22px; font-size: 15px; color: #a9b7d6; }
.hero__cap .instr { margin: 0; color: #fff; font-size: clamp(18px, 1.7vw, 22px); }
.hero__ex { flex-basis: 100%; font-weight: 600; color: var(--sun); }
.hero__cap strong { color: #fff; }

.instr { font: 600 clamp(18px, 1.7vw, 21px)/1.5 var(--sans); color: var(--ink); margin: 0 0 14px; overflow-wrap: anywhere; }
.instr__lead { color: var(--muted); font-weight: 500; }
.fab { display: block; width: 100%; height: auto; }
.fab__k, .fab__c { fill: none; stroke-width: 3.1; stroke-linecap: round; }
.fab__k { stroke: var(--wool); }
.fab__k--a { stroke: var(--wool-2); }
.fab__k--b { stroke: var(--wool-3); }
.fab__c { stroke: var(--madder); }
.fab__dot { fill: var(--madder); }
.fab__ring { fill: none; stroke: var(--sun-dk); stroke-width: 2.6; }
.fab__pin { stroke: var(--sun-dk); stroke-width: 2; stroke-linecap: round; }
.fab__k-fill { fill: var(--wool-2); }
.fab__c-fill { fill: var(--madder); }
.fab__tri { fill: var(--sun-dk); }

.section { padding: clamp(56px, 8vw, 108px) 0; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 90px); }
.split__aside { align-self: start; position: sticky; top: 104px; }
/* the four tools as numbered stitch markers */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 20px; padding: 28px 0 32px; border-top: 1.5px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { content: counter(step); grid-column: 1; grid-row: 1 / span 4; width: 54px; height: 54px; border-radius: 50%; border: 3.5px solid var(--sun); display: grid; place-items: center; font: 400 26px/1 var(--display); color: var(--indigo); }
.steps li > * { grid-column: 2; justify-self: start; }
.steps h3 { margin: 10px 0 6px; }
.steps h3 a { color: var(--ink); text-decoration: none; }
.steps h3 a:hover { color: var(--indigo); }
.steps p { margin: 0 0 12px; color: var(--ink-2); }
.steps .out { font: 500 15.5px/1.5 var(--sans); background: var(--wash); border-left: 4px solid var(--indigo); padding: 10px 14px; border-radius: 0 6px 6px 0; margin: 0 0 14px; overflow-wrap: anywhere; }

.band { background: var(--wash); color: var(--ink); }
.sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.sum div { padding: 22px 20px 20px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.sum b { display: block; font: 400 clamp(32px, 3.4vw, 46px)/1 var(--display); color: var(--indigo); margin-bottom: 10px; }
.sum span { font-size: 15px; color: var(--ink-2); }

.wb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.dial { background: var(--wash); border-radius: 18px; padding: 26px; border: 1px solid var(--line); }
.dial__name { font: 600 15px/1.2 var(--sans); color: var(--ink-2); }
.dial__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0 10px; }
.dial__val { font: 400 clamp(64px, 8vw, 92px)/1 var(--display); color: var(--indigo); min-width: 2ch; text-align: center; flex: 1; }
.dial__btn { width: 64px; height: 64px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font: 500 34px/1 var(--sans); display: inline-grid; place-items: center; cursor: pointer; }
.dial__btn--up { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.dial__btn:hover { filter: brightness(.95); }
.dial__rep { font-size: 15.5px; color: var(--ink-2); text-align: center; }
.dial__rep b { color: var(--indigo); }
.ticks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--moss); border-bottom: 2.5px solid var(--moss); transform: rotate(-45deg); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.plan { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 30px 28px 26px; }
.plan--pass { border: 2px solid var(--indigo); position: relative; }
.plan__name { font: 400 26px/1.1 var(--display); margin: 0 0 6px; }
.plan__price { font: 400 46px/1 var(--display); color: var(--indigo); margin: 10px 0 4px; }
.plan__price small { font: 500 16px/1 var(--sans); color: var(--muted); }
.plan__alt { font-size: 15.5px; color: var(--ink-2); margin-bottom: 12px; }
.plan ul { padding-left: 20px; margin: 14px 0 0; }
.plan li { margin-bottom: 6px; }
.plan__badge { position: absolute; top: -13px; left: 22px; margin-left: 0; }

/* ---------- inner pages ---------- */
.phead { padding: clamp(34px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); }
.phead h1 { font-size: clamp(36px, 4.6vw, 56px); }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: clamp(40px, 6vw, 80px); }
.tool__result { position: sticky; top: 96px; }
.panel { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.6vw, 30px); }
.fs { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.fs legend, .lab { display: block; font: 600 14.5px/1.3 var(--sans); color: var(--ink); margin-bottom: 8px; padding: 0; }
.hint { display: block; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.field { margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
input[type=text], input[type=number], input:not([type]), textarea, select { width: 100%; font: 500 17px/1.3 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 12px 13px; min-height: 48px; }
textarea { min-height: 150px; line-height: 1.5; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--wash-2); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1.5px solid var(--line-2); background: #fff; font: 500 15.5px/1 var(--sans); cursor: pointer; }
.seg input:checked + label { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.seg input:focus-visible + label { outline: 3px solid var(--sun-dk); outline-offset: 2px; }
.errors { background: var(--madder-tint); border-left: 4px solid var(--madder); border-radius: 0 8px 8px 0; padding: 14px 16px; margin: 0 0 20px; }
.errors p { margin: 0 0 4px; color: var(--madder-dk); font-weight: 500; }
.notice { background: var(--moss-tint); border-left: 4px solid var(--moss); border-radius: 0 8px 8px 0; padding: 14px 16px; margin: 0 0 22px; font-weight: 500; }
/* a result reads like a yarn label: an indigo band with its name, the answer below */
.card { position: relative; margin: 0; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 0 24px 22px; overflow: hidden; box-shadow: 0 22px 44px -30px rgba(20, 27, 45, .45); }
.card__hole { display: none; }
.card__label { display: flex; align-items: center; gap: 10px; margin: 0 -24px 18px; padding: 12px 24px; background: var(--indigo); color: #fff; font: 600 14.5px/1.2 var(--sans); }
.card__label::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid var(--sun); }
.card__head { font: 400 25px/1.15 var(--display); margin: 0 0 16px; }
.card__fab { margin: 4px 0 16px; background: var(--wash); border-radius: 8px; padding: 12px 10px 8px; }
.card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 15px; color: var(--muted); }
.card__foot strong { color: var(--ink); }
.result h2 { font-size: clamp(25px, 2.5vw, 32px); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.kv div { background: var(--wash); border-radius: 8px; padding: 12px 14px; }
.kv b { display: block; font: 400 30px/1.05 var(--display); color: var(--indigo); }
.kv span { font-size: 14px; color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th { text-align: left; font: 600 13.5px/1.3 var(--sans); color: var(--muted); padding: 10px 10px; border-bottom: 2px solid var(--line-2); }
.tbl td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-wrap { margin-top: 18px; }
.tbl-hint { display: none; margin: 18px 0 0; }
@media (max-width: 640px) { .tbl--wide { min-width: 640px; } .tbl-hint { display: block; } }
.pass-note { margin-top: 26px; padding: 18px 20px; border-radius: var(--r); background: var(--sun-tint); border: 1px solid #efd77f; }
.pass-note p { margin: 0 0 6px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(25px, 2.6vw, 32px); margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose li { margin-bottom: 6px; }
.explain { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); background: var(--wash); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }

/* sizes */
.scale { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.scale__c { padding: 18px 14px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.scale__c:first-child { border-left: 0; }
.scale__n { font: 400 38px/1 var(--display); color: var(--indigo); }
.scale__name { font-weight: 600; }
.scale__yarn { height: 26px; display: flex; align-items: center; }
.scale__yarn i { display: block; width: 100%; border-radius: 99px; background: var(--wool); }
.y0 i { height: 1.5px; } .y1 i { height: 3px; } .y2 i { height: 4.5px; } .y3 i { height: 6px; } .y4 i { height: 8.5px; } .y5 i { height: 12px; } .y6 i { height: 17px; } .y7 i { height: 24px; }
.scale__k { font-size: 14px; color: var(--ink-2); }
.credit { font-size: 14px; color: var(--muted); border-left: 3px solid var(--line-2); padding-left: 12px; }
.found { margin-top: 14px; }

/* workbasket */
.linkbox { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin: 10px 0 6px; }
.linkbox input { flex: 1 1 320px; font-size: 15px; font-weight: 500; background: var(--wash); }
.plist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line-2); }
.plist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.plist__name { font: 400 25px/1.15 var(--display); text-decoration: none; color: var(--ink); }
.plist__name:hover { color: var(--indigo); }
.plist__meta { font-size: 15px; color: var(--muted); }
.chip { display: inline-flex; align-items: baseline; gap: 6px; font-size: 14.5px; background: var(--wash); border-radius: 6px; padding: 6px 12px; margin: 6px 6px 0 0; }
.chip b { font-weight: 700; color: var(--indigo); }
.lock { font: 600 12.5px/1 var(--sans); color: var(--madder-dk); background: var(--madder-tint); padding: 5px 9px; border-radius: 4px; }
details.more { border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; margin: 18px 0; }
details.more > summary { cursor: pointer; padding: 18px 20px; font: 600 16.5px/1.3 var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font: 400 26px/0.8 var(--display); color: var(--indigo); }
details.more[open] > summary::after { content: "\2013"; }
details.more > div { padding: 0 20px 20px; }
.counters { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 10px 0 24px; }
.counter { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 20px; }
.counter .dial__val { font-size: 64px; }
.counter form { margin: 0; }
.counter__tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 14px; }
.counter__tools button { background: none; border: 0; color: var(--indigo); font: 600 14px/1 var(--sans); cursor: pointer; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; }
.counter__msg { margin: 8px 0 0; font-size: 14px; color: var(--madder-dk); }
.danger { border-top: 2px solid var(--line-2); margin-top: 34px; padding-top: 24px; }
.inline-form { display: inline; }

/* message / errors */
.message { padding: clamp(50px, 8vw, 110px) 0; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #c9d1e3; padding: 56px 0 30px; font-size: 15px; }
.foot a { color: #fff; }
.foot a:hover { color: var(--sun); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px 60px; padding-bottom: 30px; border-bottom: 1px solid #343e57; }
.foot__brand { font: 400 30px/1 var(--display); color: #fff; margin-bottom: 12px; }
.foot__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.foot__links a { text-decoration: none; }
.foot__legal { padding-top: 22px; display: grid; gap: 10px; color: #b3bdd3; font-size: 14px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

/* ---------- AdEngine slot (PLAN-2026-10-16 s3; the label and space go when tag.js hides the slot) ---------- */
.ae-slot { margin: 0; padding: 0; }
.ae-slot ins.adengine { display: block; max-width: 728px; min-height: 110px; margin: 32px auto 40px; text-align: center; text-decoration: none; }
.ae-slot ins.adengine::before { content: "Advertisement"; display: block; margin-bottom: 4px; font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ae-slot ins.adengine a { display: inline-block; }
.ae-slot:has(> ins.adengine[style*="display: none"]) { display: none; }
@media (max-width: 767px) { .ae-slot ins.adengine { max-width: 300px; min-height: 270px; } }

/* ---------- print ---------- */
.sheet { background: #fff; color: #000; padding: 32px; border: 1px solid var(--line); border-radius: 8px; }
.sheet h1 { font-size: 40px; }
@media print {
  .mast, .foot, .ae-slot, .noprint, .skip { display: none !important; }
  body { background: #fff; }
  .sheet { border: 0; padding: 0; }
  a { color: #000; text-decoration: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__top, .split, .wb, .tool { grid-template-columns: minmax(0, 1fr); }
  .split__aside, .tool__result { position: static; }
  .sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scale { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scale__c:nth-child(5) { border-left: 0; }
  .scale__c:nth-child(n+5) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .plans, .cols2, .foot__top, .kv { grid-template-columns: minmax(0, 1fr); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { grid-template-columns: 48px minmax(0, 1fr); gap: 2px 14px; }
  .steps li::before { width: 42px; height: 42px; font-size: 21px; border-width: 3px; }
  .steps h3 { margin-top: 6px; }
  .card { padding: 0 18px 20px; }
  .card__label { margin: 0 -18px 16px; padding: 12px 18px; }
  .card__fab { margin: 4px 0 16px; }
  .btn { width: 100%; }
  .btn-row { gap: 12px; }
  .hero .btn-row .textlink { margin: 4px auto 0; }
  .hero__cap { gap: 4px 18px; }
  .scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scale__c:nth-child(odd) { border-left: 0; }
  .scale__c:nth-child(n+3) { border-top: 1px solid var(--line); }
  .plist li { grid-template-columns: minmax(0, 1fr); }
  .tbl { font-size: 14.5px; }
  .tbl th, .tbl td { padding: 9px 6px; }
}
