/* ==========================================================================
   Core — consumer site design system
   Light, warm, same brand family as the partner site.
   Every text colour below was contrast-checked against every surface it is
   used on before being committed. Minimum measured ratio: 4.75:1.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:          #FFFFFF;
  --bg-2:        #F7F9FC;
  --bg-3:        #EEF2F7;
  --surface:     #FFFFFF;
  --line:        #E4EAF1;
  --line-strong: #CFD8E3;

  /* Text — measured minimums: ink 16.05, text-2 6.64, text-3 4.75 */
  --ink:     #0F1720;
  --text-2:  #4A5666;
  --text-3:  #606C7C;

  /* Brand marque keeps the partner-site gradient */
  --lime:   #C2FF3D;
  --cyan:   #2AD8F0;
  --violet: #A78BFA;

  /* Product accents — all ≥5.2:1 as text and as button backgrounds */
  --fit:    #047857;
  --fit-2:  #10B981;
  --pkt:    #0369A1;
  --pkt-2:  #0EA5E9;
  --cal:    #6D28D9;
  --cal-2:  #8B5CF6;

  --accent:      var(--ink);
  --accent-2:    var(--ink);
  --accent-soft: #F1F5F9;
  --accent-line: #DCE4EE;

  --ok:   #047857;
  --warn: #B45309;
  --bad:  #B91C1C;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 10px;  --r: 14px;  --r-lg: 20px;  --r-xl: 28px;
  --pad:  clamp(20px, 5vw, 40px);
  --maxw: 1180px;

  --ease: cubic-bezier(.16,1,.3,1);
  --shadow-sm: 0 1px 2px rgba(15,23,32,.06), 0 4px 12px -4px rgba(15,23,32,.08);
  --shadow:    0 2px 4px rgba(15,23,32,.05), 0 18px 44px -16px rgba(15,23,32,.18);
  --shadow-lg: 0 30px 70px -28px rgba(15,23,32,.30);
}

/* Per-product theming */
body[data-theme="fit"] { --accent: var(--fit); --accent-2: var(--fit-2); --accent-soft: #ECFDF5; --accent-line: #A7F3D0; }
body[data-theme="pkt"] { --accent: var(--pkt); --accent-2: var(--pkt-2); --accent-soft: #EFF9FF; --accent-line: #A5DEF8; }
body[data-theme="cal"] { --accent: var(--cal); --accent-2: var(--cal-2); --accent-soft: #F5F0FF; --accent-line: #DDD0FB; }

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lime); color: var(--ink); }

/* ------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 780px; }
.wrap-wide { max-width: 1320px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-sm { padding-block: clamp(40px, 5vw, 68px); }
.section-alt { background: var(--bg-2); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.flex { display: flex; } .center { align-items: center; } .between { justify-content: space-between; }
.wrapf { flex-wrap: wrap; }
.gap-sm { gap: 9px; } .gap { gap: 16px; } .gap-lg { gap: 30px; }
.ta-c { text-align: center; } .mx-auto { margin-inline: auto; }
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:34px}.mt-5{margin-top:52px}

/* ------------------------------------------------------------ type ---- */
h1,h2,h3,h4 { line-height: 1.12; font-weight: 700; letter-spacing: -.025em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.35rem); }
h4 { font-size: 1rem; }
h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }

/* Visual level classes — heading tags are normalised at build time */
.hs1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); letter-spacing: -.035em; }
.hs2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.03em; }
.hs3 { font-size: clamp(1.1rem, 1.9vw, 1.35rem); letter-spacing: -.025em; }
.hs4 { font-size: 1rem; letter-spacing: -.02em; }
.hs5, .hs6 { font-size: .93rem; letter-spacing: -.01em; }

.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-2); } .dim { color: var(--text-3); }
.small { font-size: .89rem; } .xs { font-size: .79rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 7px 14px; border-radius: 100px; border: 1px solid var(--accent-line);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.section-head { max-width: 680px; }
.section-head.ta-c { margin-inline: auto; }
.section-head .hs2 { margin-top: 16px; }
.section-head .lede { margin-top: 14px; }
.section-head.ta-c .lede { margin-inline: auto; }

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ----------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 100px; font-weight: 600; font-size: .94rem;
  border: 1px solid transparent; white-space: nowrap; letter-spacing: -.01em;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .25s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #1D2733; box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { filter: brightness(1.1); }
.btn-ghost { border-color: var(--line-strong); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-2); }
.btn-plain { color: var(--text-2); padding-inline: 6px; }
.btn-plain:hover { color: var(--ink); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 17px; font-size: .85rem; }
.btn-block { width: 100%; }
.arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px;
  color: var(--accent); font-weight: 600; font-size: .91rem;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------------------- cards -- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 28px);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.card-hover:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-tint { background: var(--bg-2); }

.icon-badge {
  width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center;
  border-radius: 13px; background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
}
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge.lg { width: 54px; height: 54px; flex-basis: 54px; border-radius: 16px; }
.icon-badge.lg svg { width: 25px; height: 25px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px;
  border-radius: 100px; font-size: .79rem; font-weight: 600;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2);
}
.chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.chip.solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.divider { height: 1px; background: var(--line); border: 0; }

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------ header -- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 12px 20px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.stuck { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(15,23,32,.05); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 70px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.03em; font-size: 1.08rem; }
.logo-mark {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--lime), var(--cyan) 68%, var(--violet));
  color: var(--ink); font-weight: 800; font-size: .95rem; letter-spacing: -.04em;
}
.logo-sub { display: block; font-size: .68rem; color: var(--text-3); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-top: -1px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 100px;
  font-size: .91rem; font-weight: 500; color: var(--text-2); transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); background: var(--bg-2); }
.nav-link.active { color: var(--ink); font-weight: 600; }
.caret { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: min(560px, 92vw); background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.mega.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.mega-grid { display: grid; gap: 6px; }
.mega-item { display: flex; gap: 13px; padding: 13px; border-radius: var(--r); transition: background .2s; }
.mega-item:hover { background: var(--bg-2); }
.mega-item strong { display: block; font-size: .92rem; }
.mega-item span.d { display: block; font-size: .8rem; color: var(--text-3); line-height: 1.45; margin-top: 2px; }
.m-fit { --accent: var(--fit); --accent-soft: #ECFDF5; --accent-line: #A7F3D0; }
.m-pkt { --accent: var(--pkt); --accent-soft: #EFF9FF; --accent-line: #A5DEF8; }
.m-cal { --accent: var(--cal); --accent-soft: #F5F0FF; --accent-line: #DDD0FB; }
.mega-foot { margin-top: 8px; padding: 12px 13px; border-radius: var(--r); background: var(--bg-2); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); place-items: center; background: #fff; }
.burger span { display: block; width: 18px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span + span { margin-top: 4.5px; }
.burger.on span:nth-child(1) { transform: translateY(6.3px) rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { transform: translateY(-6.3px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 70px 0 0; z-index: 99; background: #fff; padding: 22px var(--pad) 60px;
  overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: none; }
.m-group + .m-group { margin-top: 20px; }
.m-head { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 0 4px 8px; }
.mobile-nav a.m-row { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-nav a.m-row .sub { display: block; font-size: .78rem; color: var(--text-3); font-weight: 400; margin-top: 2px; }

/* -------------------------------------------------------------- hero -- */
.hero { padding-block: clamp(48px, 7vw, 92px) clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.hero-split { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero .hs1 { margin-top: 20px; }
.hero .lede { margin-top: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; z-index: 0; }
.rel { position: relative; z-index: 1; }

.page-head { padding-block: clamp(40px, 5vw, 68px) clamp(24px, 3vw, 40px); position: relative; overflow: hidden; }
.page-head .hs1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-top: 14px; }
.page-head .lede { margin-top: 14px; }
.crumb { display: flex; gap: 8px; align-items: center; font-size: .78rem; color: var(--text-3); flex-wrap: wrap; }
.crumb a { min-height: 24px; display: inline-flex; align-items: center; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }

.stat-row { display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 44px); margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat .n { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat .l { font-size: .79rem; color: var(--text-3); margin-top: 6px; }

/* ------------------------------------------------------------ device -- */
.device { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 10px; box-shadow: var(--shadow-lg); }
.device-bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px 10px; }
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E1E7EF; display: block; }
.device-bar .url { margin-left: 8px; flex: 1; height: 24px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 11px; font-size: .68rem; color: var(--text-3); font-family: var(--mono); overflow: hidden; white-space: nowrap; }
.device-screen { background: var(--bg-2); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.dash { padding: clamp(14px, 2.2vw, 22px); }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.panel-title { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 15px; position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--k, var(--accent)); }
.kpi .lab { font-size: .7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.kpi .val { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 700; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: .74rem; margin-top: 4px; color: var(--text-3); }
.up { color: var(--ok); } .down { color: var(--bad); }

.meter { height: 7px; border-radius: 100px; background: var(--bg-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0; transition: width 1.1s var(--ease); }
.meter-row { display: flex; justify-content: space-between; font-size: .81rem; margin-bottom: 6px; color: var(--text-2); }

.bars { display: flex; align-items: flex-end; gap: clamp(5px,1.4vw,11px); height: 140px; }
.bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; height: 100%; }
.bars .b .stack { display: flex; flex-direction: column-reverse; gap: 3px; height: 100%; justify-content: flex-start; }
.bars .b .seg { border-radius: 4px; height: 0; transition: height .9s var(--ease); }
.bars .b .lb { text-align: center; font-size: .68rem; color: var(--text-3); }

.legend { display: flex; flex-direction: column; gap: 9px; }
.legend li { display: flex; align-items: center; gap: 9px; font-size: .84rem; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }
.legend .nm { flex: 1; color: var(--text-2); }
.legend .vl { font-variant-numeric: tabular-nums; font-weight: 600; }

.ledger { display: flex; flex-direction: column; gap: 1px; max-height: 300px; overflow-y: auto; }
.ledger li { display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: center; padding: 10px 8px; border-radius: 10px; }
.ledger li:hover { background: var(--bg-2); }
.ledger .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: .95rem; }
.ledger .t { font-size: .87rem; font-weight: 500; }
.ledger .s { font-size: .73rem; color: var(--text-3); }
.ledger .amt { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .89rem; }

/* ----------------------------------------------------------- pricing -- */
.toggle-wrap { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 100px; background: var(--bg-3); border: 1px solid var(--line); }
.toggle-wrap button { padding: 9px 18px; border-radius: 100px; font-size: .86rem; font-weight: 600; color: var(--text-2); transition: background .25s var(--ease), color .25s, box-shadow .25s; }
.toggle-wrap button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: var(--ink); box-shadow: var(--shadow); }
.price-card.featured::before {
  content: attr(data-badge); position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 100px; white-space: nowrap;
}
.price-tag { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 2px; }
.price-tag .cur { font-size: 1.15rem; font-weight: 600; color: var(--text-2); }
.price-tag .amt { font-size: clamp(2.2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-tag .per { font-size: .88rem; color: var(--text-3); }
.save-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 100px; background: #ECFDF5; color: var(--fit); border: 1px solid #A7F3D0; }

.feat-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; flex: 1; }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-2); }
.feat-list .tick { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 3px; color: var(--accent); }
.feat-list li.off { opacity: .5; } .feat-list li.off .tick { color: var(--text-3); }

.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; max-width: 100%; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
table.cmp th, table.cmp td { padding: 14px 17px; text-align: left; border-bottom: 1px solid var(--line); font-size: .89rem; }
table.cmp thead th { background: var(--bg-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-weight: 700; }
table.cmp td:not(:first-child), table.cmp th:not(:first-child) { text-align: center; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp .yes { color: var(--ok); font-weight: 700; }
table.cmp .no { color: var(--text-3); }
table.cmp .lim { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
table.cmp .grp td { background: var(--bg-2); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-2); }

/* -------------------------------------------------- plan builder ------ */
.builder { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(18px, 3vw, 34px); align-items: start; }
.pick {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px; border-radius: var(--r); border: 2px solid var(--line); background: #fff;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.pick:hover { border-color: var(--line-strong); }
.pick.on { border-color: var(--accent); background: var(--accent-soft); }
.pick + .pick { margin-top: 10px; }
.pick .box { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px; border: 2px solid var(--line-strong); display: grid; place-items: center; background: #fff; transition: .2s; }
.pick.on .box { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick .box svg { width: 14px; height: 14px; opacity: 0; transition: opacity .15s; }
.pick.on .box svg { opacity: 1; }
.pick .nm { font-weight: 600; font-size: .96rem; }
.pick .dsc { font-size: .8rem; color: var(--text-3); margin-top: 1px; }
.pick .pr { margin-left: auto; font-size: .84rem; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.summary { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.summary-body { padding: 22px; }
.summary-total { padding: 20px 22px; background: var(--bg-2); border-top: 1px solid var(--line); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; padding: 7px 0; color: var(--text-2); }
.sum-row.big { font-size: 1rem; color: var(--ink); font-weight: 600; }
.sum-row .v { font-variant-numeric: tabular-nums; }
.big-price { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------- account ----- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 12px 16px; font-size: .9rem; font-weight: 600; color: var(--text-2);
  border-bottom: 2px solid transparent; white-space: nowrap; min-height: 44px;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabpanel[hidden] { display: none; }

.auth-wrap { min-height: 74vh; display: grid; place-items: center; padding-block: clamp(32px, 5vw, 64px); background: var(--bg-2); }
.auth-card { width: min(432px, 100%); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 11px; background: #fff;
  border: 1px solid var(--line-strong); color: var(--ink); font-size: .93rem;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15,23,32,.08); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23606C7C' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 16px; padding-right: 38px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checkline input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: 0 0 18px; }
.checkline span { font-size: .84rem; color: var(--text-2); }

/* ---------------------------------------------------------- content --- */
.prose { max-width: 74ch; color: var(--text-2); }
.prose > * + * { margin-top: 16px; }
.prose .hs2 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); color: var(--ink); margin-top: 40px; scroll-margin-top: 96px; }
.prose .hs3 { font-size: 1.03rem; color: var(--ink); margin-top: 26px; scroll-margin-top: 96px; }
.prose p, .prose li { font-size: .93rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul li { list-style: disc; margin-top: 8px; }
.prose ol li { list-style: decimal; margin-top: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: .88rem; max-width: 100%; }
.prose th, .prose td { padding: 11px 13px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg-2); color: var(--ink); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.prose code { font-family: var(--mono); font-size: .85em; background: var(--bg-3); padding: 2px 6px; border-radius: 5px; }

.doc-layout { display: grid; grid-template-columns: 236px 1fr; gap: clamp(26px, 4vw, 52px); align-items: start; }
.doc-layout > * { min-width: 0; }
.toc { position: sticky; top: 92px; }
.toc .hs5 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; margin-bottom: 10px; }
.toc a { display: flex; align-items: center; min-height: 24px; padding: 6px 11px; border-radius: 9px; font-size: .84rem; color: var(--text-2); border-left: 2px solid transparent; }
.toc a:hover { color: var(--accent); background: var(--accent-soft); border-left-color: var(--accent); }

.callout { border-radius: var(--r); padding: 15px 17px; font-size: .88rem; line-height: 1.65; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text-2); }
.callout strong { color: var(--ink); }
.callout.warn { background: #FFFBEB; border-color: #FDE68A; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 4px; text-align: left; font-weight: 600; font-size: .98rem; color: var(--ink); }
.faq-q:hover { color: var(--accent); }
.faq-q .pm { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 4px 22px; color: var(--text-2); font-size: .92rem; max-width: 70ch; }

.steps { counter-reset: s; display: grid; gap: 18px; }
.step { display: flex; gap: 16px; }
.step .num { counter-increment: s; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: .92rem; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.step .num::before { content: counter(s); }

.metric-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.metric-strip > div { background: #fff; padding: 20px; }
.metric-strip .n { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -.03em; }
.metric-strip .l { font-size: .77rem; color: var(--text-3); margin-top: 5px; }

.quote { display: flex; flex-direction: column; gap: 14px; }
.quote p { font-size: .95rem; color: var(--ink); line-height: 1.65; }
.stars { display: flex; gap: 2px; color: #E8A33D; }
.stars svg { width: 15px; height: 15px; }
.person { display: flex; align-items: center; gap: 11px; }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .88rem; color: #fff; background: var(--accent); }
.person .nm { font-size: .89rem; font-weight: 600; }
.person .rl { font-size: .77rem; color: var(--text-3); }

.cta-band {
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-2), #fff);
  padding: clamp(32px, 5vw, 60px) clamp(22px, 4vw, 52px); text-align: center;
}

.big404 { font-size: clamp(4.5rem, 16vw, 10rem); font-weight: 800; letter-spacing: -.06em; line-height: .9; color: var(--bg-3); }

/* ------------------------------------------------------------ footer -- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(44px, 5vw, 66px) 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: clamp(22px, 3vw, 38px); }
.foot-col .hs5 { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; margin-bottom: 13px; }
.foot-col li + li { margin-top: 5px; }
.foot-col a { display: inline-flex; align-items: center; min-height: 24px; font-size: .87rem; color: var(--text-2); }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .81rem; color: var(--text-3); }
.foot-legal { max-width: 62ch; line-height: 1.6; }

/* ----------------------------------------------------------- motion --- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1{transition-delay:.06s}.rv-d2{transition-delay:.12s}.rv-d3{transition-delay:.18s}.rv-d4{transition-delay:.24s}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------- responsive --- */
@media (max-width: 1024px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .builder { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-plain { display: none; }
  .burger { display: grid; }
  .hero-split { grid-template-columns: 1fr; }
  .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 700px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 620px) {
  .nav { gap: 10px; }
  .nav-cta { gap: 7px; }
  .nav-cta .btn { padding: 9px 14px; font-size: .8rem; }
}
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
@media print {
  .site-header, .mobile-nav, .blob, .cta-band { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   Interactive demo components (Pocket ledger, Calendar booking)
   ========================================================================== */
.donut-wrap { position: relative; display: grid; place-items: center; }
.donut-center { position: absolute; text-align: center; }
.donut-seg { transition: stroke-width .2s; cursor: pointer; }
.donut-seg:hover { stroke-width: 20; }

.seg { display: flex; gap: 5px; padding: 4px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); }
.seg button { flex: 1; padding: 9px; border-radius: 9px; font-size: .83rem; font-weight: 600; color: var(--text-2); transition: .2s; min-height: 38px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 18px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 100px;
  font-size: .86rem; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.demo-grid   { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; }
.demo-grid-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 860px) { .demo-grid, .demo-grid-3 { grid-template-columns: 1fr; } }

/* Booking widget */
.booker { display: grid; grid-template-columns: 232px 1fr 200px; min-height: 440px; background: #fff; }
.booker > * { padding: 20px; }
.book-side { border-right: 1px solid var(--line); }
.book-mid  { border-right: 1px solid var(--line); }
.evt { width: 100%; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; margin-bottom: 8px; transition: border-color .2s, background .2s; }
.evt:hover { border-color: var(--line-strong); }
.evt.on { border-color: var(--accent); background: var(--accent-soft); }
.evt .en { font-size: .87rem; font-weight: 600; }
.evt .ed { font-size: .74rem; color: var(--text-3); margin-top: 2px; }
.evt .bar { height: 3px; width: 24px; border-radius: 2px; margin-bottom: 8px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-nav { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); transition: .2s; }
.cal-nav:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .68rem; color: var(--text-3); font-weight: 700; letter-spacing: .06em; padding-bottom: 6px; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: .84rem; font-weight: 500; color: var(--text-2); border: 1px solid transparent; transition: .18s; position: relative; }
.cal-day.free { background: var(--accent-soft); color: var(--accent); font-weight: 600; border-color: var(--accent-line); }
.cal-day.free:hover { border-color: var(--accent); transform: scale(1.05); }
.cal-day.on { background: var(--accent); color: #fff; font-weight: 700; border-color: var(--accent); }
.cal-day.dis { color: var(--text-3); opacity: .4; cursor: not-allowed; }
.cal-day.today::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.slots { display: flex; flex-direction: column; gap: 7px; max-height: 380px; overflow-y: auto; }
.slot { padding: 11px; border-radius: 10px; border: 1px solid var(--accent-line); color: var(--accent); font-weight: 600; font-size: .85rem; text-align: center; background: #fff; transition: .18s; min-height: 40px; }
.slot:hover, .slot.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.book-empty { display: grid; place-items: center; height: 100%; text-align: center; color: var(--text-3); font-size: .84rem; padding: 20px; }

@media (max-width: 1024px) {
  .booker { grid-template-columns: 1fr 1fr; }
  .booker .book-side { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .booker { grid-template-columns: 1fr; }
  .booker .book-mid { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---- responsive fixes (audit, Jan 2026) ---- */
/* Decorative blobs must never create a scrollbar */
.page-head, .section, .section-sm { overflow-x: clip; }

/* Wide data tables inside prose scroll rather than push the page */
@media (max-width: 760px) {
  .prose table { display: block; overflow-x: auto; max-width: 100%; }
  .prose thead, .prose tbody, .prose tr { width: max-content; min-width: 100%; }
}
/* Decorative 404 numeral — hidden from assistive tech and duplicated in the heading */
.big404 { color: #CBD5E1; }
/* WCAG 2.5.8 minimum target size for checkboxes */
.checkline input { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 0; }
