/* Sharpify rīki v2: "instrument" design. Dark masthead, one floating tool panel with a dark result pane,
   editorial article with a sticky table of contents. References (Mobbin): Wise + incident.io calculator heroes,
   Hers / Kit result cards, Revolut Business + Stripe invoice editors, Ramp big-number result.
   v1 lives in archives/site-v1-2026-10-24.css. */
:root {
  --ink: #04161A;
  --ink-2: #0A2428;
  --ink-3: #133439;
  --teal: #00665E;
  --teal-hover: #00544D;
  --teal-bright: #1FA593;
  --mint: #A6E6D6;
  --lime: #CEDC00;
  --lime-hover: #DCE93A;
  --paper: #F6F5F0;
  --paper-2: #EEEDE6;
  --surface: #FFFFFF;
  --field: #F2F2EE;
  --line: #E5E3DA;
  --line-strong: #D3D1C6;
  --text: #2E3638;
  --heading: #0C1A1C;
  --muted: #6D787A;
  --error: #B03A3F;
  --on-dark: rgba(255, 255, 255, .92);
  --on-dark-2: rgba(255, 255, 255, .66);
  --on-dark-3: rgba(255, 255, 255, .42);
  --hair-dark: rgba(255, 255, 255, .09);
  --sans: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-panel: 0 40px 90px -30px rgba(4, 22, 26, .55), 0 12px 30px -12px rgba(4, 22, 26, .18), 0 1px 2px rgba(4, 22, 26, .06);
  --shadow-card: 0 1px 2px rgba(4, 22, 26, .04), 0 10px 30px -14px rgba(4, 22, 26, .16);
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-hover); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 6.2vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--lime); color: var(--ink); }

/* ---------- Header: glass over the dark masthead ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--ink); border-bottom: 1px solid var(--hair-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 22px; width: auto; display: block; }
.brand span { color: var(--on-dark-2); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-left: 1px solid rgba(255,255,255,.18); padding-left: 12px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--on-dark-2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); }
.nav .nav-cta { background: var(--lime); color: var(--ink); font-weight: 700; margin-left: 10px; padding: 9px 18px; }
.nav .nav-cta:hover { background: var(--lime-hover); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; gap: 2px; border-bottom: 1px solid var(--hair-dark); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; border-radius: 10px; }
  .nav .nav-cta { margin: 10px 0 0; text-align: center; }
}

/* ---------- Masthead: dark band holding breadcrumbs + hero ---------- */
.masthead {
  position: relative; overflow: hidden; color: var(--on-dark); padding-bottom: 132px;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(31, 165, 147, .28), rgba(31, 165, 147, 0) 60%),
    radial-gradient(40% 50% at 10% 100%, rgba(206, 220, 0, .07), rgba(206, 220, 0, 0) 70%),
    var(--ink);
}
.masthead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 90% at 70% 10%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 90% at 70% 10%, #000 30%, transparent 75%);
}
.masthead > * { position: relative; }
.crumbs { font-size: 13px; color: var(--on-dark-3); padding-top: 28px; }
.crumbs a { color: var(--on-dark-2); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { margin: 0 8px; opacity: .5; }
.hero { padding-top: 28px; padding-bottom: 8px; }
.masthead .hero h1 { color: #fff; max-width: 15ch; }
.masthead .hero h1 em { color: var(--mint); }
.hero p.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--on-dark-2); max-width: 640px; margin: 18px 0 26px; }
.eyebrow-chip { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--on-dark-2); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); padding: 7px 14px 7px 10px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(206,220,0,.16); }
.badges { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--on-dark-2); }
.badge::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; background: rgba(166,230,214,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%23A6E6D6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.badge.lime::before { background-color: rgba(206,220,0,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%23CEDC00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

@media (max-width: 600px) {
  .masthead { padding-bottom: 104px; }
  .crumbs { padding-top: 16px; font-size: 12.5px; }
  .hero { padding-top: 18px; }
  .eyebrow-chip { margin-bottom: 16px; font-size: 12px; }
  .hero p.lead { font-size: 16px; margin: 12px 0 0; }
  .masthead .badges { display: none; }
}

/* ---------- The instrument: one floating panel, lifted into the masthead ---------- */
.tool {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-panel);
  margin-bottom: 40px; position: relative; overflow: clip;
}
.tool.wide { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
main > .wrap:first-of-type > .tool:first-child, .lift { margin-top: -96px; }
.tool > .card { border: 0; box-shadow: none; border-radius: 0; padding: clamp(22px, 3vw, 40px); }
.tool > .card + .card, .tool > .card + div { border-left: 1px solid var(--line); }
.tool > div:not(.card) > .card { border: 0; box-shadow: none; border-radius: 0; padding: clamp(22px, 3vw, 40px); }
.tool > div:not(.card) { background: var(--paper); align-self: stretch; }
.tool > div:not(.card) > .card { background: transparent; }
.tool > div.sticky:not(.card) { position: static; }
.tool > div.sticky:not(.card) > .card { position: sticky; top: 92px; }
@media (max-width: 920px) { .tool > div.sticky:not(.card) > .card { position: static; } }
@media (max-width: 920px) {
  .tool, .tool.wide { grid-template-columns: 1fr; }
  .tool > .card + .card, .tool > .card + div { border-left: 0; border-top: 1px solid var(--line); }
  main > .wrap:first-of-type > .tool:first-child, .lift { margin-top: -84px; }
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); padding: 24px; }
.card h2, .card h3 { margin-top: 0; }
.card-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 16px; }
.sticky { position: sticky; top: 92px; }
@media (max-width: 920px) { .sticky { position: static; } }

/* Dark result pane (salary, PVN: any tool whose result card is #result) */
.tool:has(> #result) { align-items: stretch; }
.tool > #result {
  border-left: 0; position: static; color: var(--on-dark);
  background: radial-gradient(90% 60% at 100% 0%, rgba(31,165,147,.22), rgba(31,165,147,0) 60%), linear-gradient(180deg, var(--ink-2), var(--ink));
}
#result .result-main { background: none; padding: 0 0 22px; margin: 0; border-bottom: 1px solid var(--hair-dark); }
#result .result-main .k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); opacity: .85; }
#result .result-main .v { font-size: clamp(48px, 6.6vw, 80px); font-weight: 700; letter-spacing: -.045em; line-height: 1; margin: 14px 0 12px; color: #fff; font-variant-numeric: tabular-nums; }
#result .result-main .s { font-size: 14.5px; color: var(--on-dark-2); }
#result .result-main .s strong { color: var(--lime); font-weight: 700; }
#result .split { background: rgba(255,255,255,.06); gap: 3px; height: 10px; margin: 22px 0 12px; }
#result .split i { border-radius: 3px; }
#result .legend { color: var(--on-dark-2); }
#result .lines li { border-bottom-color: var(--hair-dark); color: var(--on-dark-2); }
#result .lines li > span:last-child { color: #fff; }
#result .lines li.total { border-top-color: rgba(255,255,255,.28); }
#result .lines li.total span { color: #fff; }
#result .lines .sub { color: var(--on-dark-3); }
#result .card-title { color: var(--mint); opacity: .75; margin-top: 26px !important; }
#result .alert { background: rgba(206,220,0,.08); color: #E3EB9E; border-left-color: var(--lime); }
#result .words { background: rgba(255,255,255,.05); color: var(--on-dark-2); border: 1px solid var(--hair-dark); }
#result .words strong { color: #fff; }
#result .copy-btn { background: rgba(166,230,214,.1); color: var(--mint); }
#result .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
#result .btn-ghost:hover { border-color: #fff; color: #fff; }
#result .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
#result .btn-primary:hover { background: var(--mint); color: var(--ink); }
#result .result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-size: 13.5px; font-weight: 600; color: var(--heading); margin-bottom: 8px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 520px) { .row, .row.three { grid-template-columns: 1fr; } }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=url], input[type=password], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--heading); background: var(--field);
  border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%236D787A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
textarea { min-height: 90px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 102, 94, .12); }
.input-affix { position: relative; }
.input-affix input { padding-right: 48px; }
.input-affix .affix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.big-input input { font-size: clamp(28px, 3.4vw, 36px); font-weight: 700; letter-spacing: -.03em; min-height: 76px; padding: 12px 56px 12px 18px; border-radius: 14px; font-variant-numeric: tabular-nums; }
.big-input .affix { font-size: 22px; right: 20px; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--field); border-radius: 999px; padding: 4px; gap: 2px; width: 100%; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { flex: 1 1 auto; text-align: center; margin: 0; padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.seg label:hover { color: var(--heading); }
.seg input:checked + label { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -6px rgba(4,22,26,.6); }
.seg input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text); cursor: pointer; margin-bottom: 12px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); flex: 0 0 auto; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--field); font-size: 20px; font-weight: 600; color: var(--heading); cursor: pointer; transition: background .2s; }
.stepper button:hover { background: var(--paper-2); }
.stepper input { text-align: center; max-width: 84px; font-weight: 700; }
.panel-note, .tool .note { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; border-radius: 999px; padding: 13px 24px; min-height: 50px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(4,22,26,.7); }
.btn-primary:hover { background: var(--teal); color: #fff; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-hover); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--heading); color: var(--heading); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Results (light defaults; the dark pane overrides above) ---------- */
.result-main { background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: #fff; border-radius: var(--r); padding: 22px; margin-bottom: 16px; }
.result-main .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.7); }
.result-main .v { font-size: clamp(34px, 5vw, 48px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.result-main .s { font-size: 14px; color: rgba(255,255,255,.75); }
.result-main .s strong { color: var(--lime); }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.lines li:last-child { border-bottom: 0; }
.lines li > span:last-child { font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines li.total { border-top: 1px solid var(--heading); border-bottom: 0; margin-top: 2px; padding-top: 14px; }
.lines li.total span { font-weight: 700; font-size: 16px; color: var(--heading); }
.lines li .sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.words { background: var(--paper); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--text); margin-top: 14px; }
.words strong { color: var(--heading); }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.alert { background: #F4F6DC; border-left: 3px solid var(--lime); padding: 12px 14px; border-radius: 8px; font-size: 13.5px; line-height: 1.55; color: #4A5000; margin-top: 16px; }
.alert:empty { display: none; }
.copy-btn { font-size: 11.5px; font-weight: 700; color: var(--teal); background: rgba(0,102,94,.08); border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer; margin-left: 8px; }

/* Split bar */
.split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); margin: 16px 0 10px; }
.split i { display: block; height: 100%; transition: width .5s var(--ease); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend b { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- Article: sticky contents + editorial column ---------- */
.article-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; margin-top: 72px; align-items: start; }
@media (max-width: 980px) { .article-grid { grid-template-columns: 1fr; gap: 0; margin-top: 48px; } .toc { display: none; } }
.toc { position: sticky; top: 100px; }
.toc p { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.45; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--heading); }
.toc a.on { color: var(--heading); font-weight: 600; border-left-color: var(--teal); }
.content { max-width: 740px; font-size: 17px; line-height: 1.75; }
.content > h2:first-of-type, .content > .updated + h2 { margin-top: .4em; }
.content h2 { margin-top: 2.2em; margin-bottom: .6em; }
.content h3 { margin-top: 1.8em; font-size: 20px; }
.content ul, .content ol { padding-left: 22px; margin: 0 0 1.2em; }
.content li { margin-bottom: 8px; padding-left: 4px; }
.content li::marker { color: var(--teal); font-weight: 700; }
.content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.content th, .content td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.content tr:last-child td { border-bottom: 0; }
.content th { background: var(--paper-2); color: var(--heading); font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.content td:last-child { font-variant-numeric: tabular-nums; }
.content .table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 1.4em; box-shadow: var(--shadow-card); }
.formula { position: relative; background: var(--ink); color: #fff; border-radius: var(--r); padding: 22px 24px 22px 24px; font-weight: 600; font-size: 16px; line-height: 1.6; margin: 0 0 1.4em; overflow: hidden; }
.formula::before { content: "Formula"; display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 6px; }
.formula::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(31,165,147,.35), transparent 70%); }
.updated { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 1.6em; line-height: 1.4; }
.updated::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); flex: 0 0 auto; }

/* FAQ: numbered, hairline rows */
.faq { margin-top: 2.4em; counter-reset: q; }
.faq h2 { margin-bottom: .8em; }
.faq details { border-bottom: 1px solid var(--line-strong); counter-increment: q; }
.faq details:first-of-type { border-top: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; line-height: 1.45; color: var(--heading); padding: 22px 48px 22px 44px; list-style: none; position: relative; transition: color .2s; }
.faq summary:hover { color: var(--teal); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: 24px; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; border: 1px solid var(--line-strong); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%230C1A1C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .3s var(--ease), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--paper-2); }
.faq details > div { padding: 0 48px 22px 44px; color: var(--text); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; color: var(--on-dark); border-radius: 28px; padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 64px); margin: 96px 0 24px; align-items: center;
  background: radial-gradient(50% 70% at 0% 0%, rgba(31,165,147,.3), transparent 70%), radial-gradient(40% 60% at 100% 100%, rgba(206,220,0,.12), transparent 70%), var(--ink);
}
@media (max-width: 920px) { .cta { grid-template-columns: 1fr; margin-top: 64px; } }
.cta h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); line-height: 1.06; }
.cta h2 em { color: var(--lime); }
.cta p { color: var(--on-dark-2); font-size: 17px; }
.cta .eyebrow { color: var(--mint); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.cta ul { list-style: none; padding: 0; margin: 22px 0 0; }
.cta li { padding: 12px 0 12px 32px; position: relative; color: var(--on-dark); font-size: 15.5px; border-top: 1px solid var(--hair-dark); }
.cta li::before { content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: rgba(206,220,0,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%23CEDC00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.cta .proof { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin-top: 30px; }
.cta .proof div { font-size: 12.5px; color: var(--on-dark-3); line-height: 1.4; }
.cta .proof strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; color: #fff; letter-spacing: -.01em; margin-bottom: 6px; }
@media (max-width: 520px) { .cta .proof { grid-template-columns: 1fr 1fr; } }
.cta form { background: var(--surface); color: var(--text); border-radius: 20px; padding: clamp(22px, 3vw, 32px); position: relative; z-index: 1; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.cta form h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 4px; }
.cta form .small { font-size: 13px; color: var(--muted); }
.cta form .form-body > .small:first-of-type { margin-bottom: 20px; }
.form-ok { display: none; text-align: center; padding: 24px 6px; }
.form-ok.show { display: block; }
.form-ok .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px; }
.form-err { color: var(--error); font-size: 13.5px; margin-top: 10px; min-height: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Related tools + hub grid ---------- */
.band { padding: 80px 0 24px; }
.band h2 { margin-bottom: 28px; }
.band .kicker, .kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; color: var(--text); min-height: 230px; transition: border-color .25s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.tool-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(4,22,26,.35); color: var(--text); }
.tool-card .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--mint); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.tool-card h3 { margin: 0; font-size: 19px; color: var(--heading); }
.tool-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.tool-card .go { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--heading); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.tool-card .go::after { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); margin-left: auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 11 11 5M6 5h5v5' fill='none' stroke='%230C1A1C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; transition: background-color .2s, border-color .2s; }
.tool-card:hover .go::after { background-color: var(--lime); border-color: var(--lime); }
.tool-card .tag { position: absolute; top: 24px; right: 24px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }

/* Hub bento: the first card is the flagship, dark and wide */
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hub-grid .tool-card:first-child { grid-column: span 2; grid-row: span 2; background: radial-gradient(70% 80% at 100% 0%, rgba(31,165,147,.3), transparent 60%), var(--ink-2); border-color: var(--ink-3); color: var(--on-dark); padding: 34px; }
.hub-grid .tool-card:first-child h3 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; }
.hub-grid .tool-card:first-child p { color: var(--on-dark-2); font-size: 16px; max-width: 420px; }
.hub-grid .tool-card:first-child .ico { background: rgba(255,255,255,.08); }
.hub-grid .tool-card:first-child .go { color: #fff; }
.hub-grid .tool-card:first-child .go::after { border-color: rgba(255,255,255,.25); filter: invert(1); }
.hub-grid .tool-card:first-child:hover .go::after { filter: none; }
.hub-grid .tool-card:first-child .tag { color: var(--on-dark-2); border-color: var(--hair-dark); }
.flag-num { margin: 22px 0 6px; font-size: clamp(44px, 6vw, 76px); font-weight: 700; letter-spacing: -.045em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.flag-num small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--mint); margin-bottom: 10px; }
.hub-grid .tool-card:last-child { grid-column: span 2; }
@media (max-width: 920px) { .hub-grid { grid-template-columns: 1fr 1fr; } .hub-grid .tool-card:last-child { grid-column: auto; } }
@media (max-width: 600px) { .hub-grid { grid-template-columns: 1fr; } .hub-grid .tool-card:first-child { grid-column: auto; grid-row: auto; } }

/* Statement strip (hub) */
.statement { text-align: center; max-width: 820px; margin: 104px auto 0; }
.statement h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.1; }
.statement p { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; color: var(--muted); margin: 18px auto 0; max-width: 640px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-top: 48px; }
.pillars div { background: var(--surface); padding: 28px; text-align: left; }
.pillars strong { display: block; font-size: 16px; color: var(--heading); margin-bottom: 6px; }
.pillars span { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-3); padding: 64px 0 32px; margin-top: 96px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; gap: 28px; } }
.site-footer p { color: var(--on-dark-2); max-width: 360px; }
.site-footer h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer .legal { border-top: 1px solid var(--hair-dark); margin-top: 48px; padding-top: 22px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.site-footer .saying { font-family: var(--serif); font-style: italic; font-size: 22px; color: #fff; margin: 18px 0 14px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(4, 22, 26, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 80; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 24px; max-width: 460px; width: 100%; padding: 32px; position: relative; box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; background: var(--field); border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--heading); }
.modal-box h3 { font-size: 22px; letter-spacing: -.02em; padding-right: 34px; }

/* ---------- Consent ---------- */
.consent { position: fixed; left: 16px; bottom: 16px; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(4,22,26,.4); padding: 18px 20px; z-index: 70; display: none; font-size: 13.5px; line-height: 1.55; }
@media (max-width: 520px) { .consent { right: 16px; max-width: none; } }
.consent.show { display: block; }
.consent p { margin-bottom: 14px; }
.consent .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.consent .btn { min-height: 40px; padding: 8px 18px; font-size: 13.5px; }

/* ---------- Mobile result pill ---------- */
.mres { display: none; }
@media (max-width: 920px) {
  .mres { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(4,22,26,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; padding: 12px 12px 12px 18px; border-radius: 18px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.5); font-size: 14px; transition: transform .3s var(--ease), opacity .3s; }
  .mres strong { color: var(--lime); font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
  .mres a { color: var(--ink); background: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; padding: 9px 14px; border-radius: 999px; font-size: 13px; }
  .mres.hide { transform: translateY(140%); opacity: 0; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .25s, transform .25s var(--ease); z-index: 90; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Motion: only the result number moves. No fade-in on the hero or tool: an invisible H1
   delays Largest Contentful Paint, which is a ranking signal. ---------- */
@media (prefers-reduced-motion: no-preference) {
  .v.bump { animation: bump .35s var(--ease); }
}
@keyframes bump { 0% { opacity: .55; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }

@media print {
  .site-header, .site-footer, .cta, .band, .consent, .no-print, .masthead, .toc { display: none !important; }
  .tool { box-shadow: none; margin-top: 0 !important; }
}

/* Embed widget: bare calculator inside other sites' iframes, plus the copy box on tool pages. */
body.embed { background: transparent; padding: 0; min-height: 0; }
body.embed .tool { margin: 0; }
body.embed .sticky, body.embed .tool > div.sticky:not(.card) > .card { position: static; }
.embed-credit { margin: 10px 4px 0; font-size: 13px; color: var(--muted); }
.embed-credit a { color: inherit; font-weight: 600; }
.embed-box { display: grid; gap: 10px; justify-items: start; margin: 0 0 1.4em; }
.embed-box textarea { width: 100%; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--paper); color: var(--heading); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; resize: none; min-height: 0; }

/* Salary result: periods table, raise line, payback note. */
.periods { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.periods th, .periods td { padding: 7px 0; text-align: right; border-bottom: 1px solid var(--hair-dark); }
.periods th { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3); }
.periods td:first-child, .periods th:first-child { text-align: left; color: var(--on-dark-2); }
.periods td { color: #fff; font-weight: 600; }
.periods-note { font-size: 12px; color: var(--on-dark-3); margin: 8px 0 4px; }
.raise-in { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
#result .raise-in input { width: 64px; min-height: 0; padding: 4px 8px; font: inherit; font-weight: 600; text-align: right; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; }
.payback { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(206,220,0,.1); border: 1px solid rgba(206,220,0,.28); color: var(--on-dark); font-size: 14px; line-height: 1.55; }
.payback:empty { display: none; }
.payback strong { color: var(--lime); }
.payback a { display: block; margin-top: 6px; color: var(--lime); font-weight: 700; }
/* Inline email opt-in under a tool. */
.notify { margin: 28px 0 0; }
.notify .form-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 32px; align-items: center; }
.notify h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 6px; }
.notify p { margin: 0; font-size: 14.5px; color: var(--text); }
.notify-fields { display: flex; gap: 8px; }
.notify-fields input { flex: 1; min-width: 0; }
.notify .check, .notify .form-err { grid-column: 2; margin: 0; }
.notify .form-err:empty { display: none; }
@media (max-width: 760px) {
  .notify .form-body { grid-template-columns: 1fr; }
  .notify .check, .notify .form-err { grid-column: 1; }
  .notify-fields { flex-direction: column; }
}

/* Per-amount salary pages: three headline numbers and neighbour chips. */
.amount-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; z-index: 2; }
.amount-stats .card { padding: 24px 26px; }
.amount-stats small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.amount-stats strong { display: block; margin: 8px 0 4px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; color: var(--heading); font-variant-numeric: tabular-nums; }
.amount-stats .card:first-child { background: var(--ink-2); border-color: var(--ink-2); }
.amount-stats .card:first-child small { color: var(--mint); }
.amount-stats .card:first-child strong { color: #fff; }
.amount-stats .card:first-child span { color: var(--on-dark-2); }
.amount-stats span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .amount-stats { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--heading); text-decoration: none; }
.chips .chip:hover { border-color: var(--teal); color: var(--teal); }

/* Hub with 7 cards: the last one spans the row instead of standing alone. */
.hub-grid .tool-card:nth-child(7):last-child { grid-column: 1 / -1; }
/* Loan schedule card under the calculator. */
.schedule { margin-top: 28px; }
.schedule-scroll { overflow-x: auto; margin: 0 -4px 14px; }
.schedule table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.schedule th, .schedule td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.schedule th { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.schedule td:first-child, .schedule th:first-child { text-align: left; }

/* Grid items default to min-width:auto, which lets a wide table stretch the page on phones. Tables scroll in .table-wrap instead. */
.article-grid > * { min-width: 0; }
