/* Paytective website. Same design system as the app (src/ui.tsx): warm white canvas, deep forest
   ink, one forest-green accent with lime highlights, soft sage surfaces, ink outline for focus and
   selection, sentence case, 700 headings, radius 12 controls / 16 cards / pills for chips. */
:root {
  --bg: #FBFBF7; --raised: #F2F3EC; --card: #FFFFFF; --ink: #14261C; --muted: #56655B; --line: #E7E9E0; --border: #D5DACD;
  --accent: #1F6B3A; --accent-hover: #18562E; --accent-soft: #E6F1DF; --on-accent: #FFFFFF;
  --lime: #B7F36B; --forest: #14261C; --on-forest: #F4F8EF; --forest-muted: #B9C9BC; --forest-line: #2B4234; --forest-field: #1D3326;
  --danger: #B42318; --danger-soft: #FDEEEC; --success: #1F6B3A; --success-soft: #E6F1DF;
  --shadow: 0 1px 2px rgba(20, 38, 28, 0.04), 0 8px 24px rgba(20, 38, 28, 0.06);
  --radius: 12px; --radius-card: 16px; --radius-big: 24px;
  --page: 1440px; --gutter: clamp(20px, 4vw, 64px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1510; --raised: #16211A; --card: #121C16; --ink: #EEF3EA; --muted: #A3B3A7; --line: #223128; --border: #31443A;
    --accent: #B7F36B; --accent-hover: #C9F78C; --accent-soft: #22331F; --on-accent: #0D1510;
    --forest: #1A2E21; --forest-line: #2F4637; --forest-field: #213A2A;
    --danger: #FF8A73; --danger-soft: #3A1F19; --success: #B7F36B; --success-soft: #22331F; --shadow: none;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--lime); color: #14261C; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; max-width: var(--page); margin: 0 auto; padding: 12px var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.3px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.top nav { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 15px; font-weight: 600; }
.top nav > a { color: var(--muted); text-decoration: none; white-space: nowrap; padding: 8px 14px; border-radius: 999px; }
.top nav > a:hover { color: var(--ink); background: var(--raised); }
.top nav a.nav-cta { color: var(--on-accent); background: var(--accent); margin-left: 6px; }
.top nav a.nav-cta:hover { color: var(--on-accent); background: var(--accent-hover); }

main { max-width: var(--page); margin: 0 auto; padding: 8px var(--gutter) 64px; }
h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -1.6px; font-weight: 800; margin: 32px 0 14px; max-width: 800px; text-wrap: balance; }
h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.6px; font-weight: 700; margin: 64px 0 16px; text-wrap: balance; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.2px; margin: 24px 0 10px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 640px; margin: 0 0 28px; text-wrap: pretty; }
.note { font-size: 14px; color: var(--muted); }
.mark { background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); padding: 0 2px; }
@media (prefers-color-scheme: dark) { .mark { background: none; color: var(--lime); } }

/* Home hero */
.hero { padding: 24px 0 8px; }
.hero h1 { margin-top: 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; box-shadow: var(--shadow); }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); margin-left: 4px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: -10px 0 8px; color: var(--muted); font-size: 15px; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 9px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.5 9.2l2.3 2.3 4.7-5' fill='none' stroke='%231F6B3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
@media (prefers-color-scheme: dark) { .trust li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.5 9.2l2.3 2.3 4.7-5' fill='none' stroke='%23B7F36B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } }

/* Shared ring */
.ring-wrap { position: relative; }
.ring-wrap svg { display: block; width: 100%; height: auto; }

/* Headline rates */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 6px; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px; box-shadow: var(--shadow); }
.stats span { display: block; font-size: 14px; color: var(--muted); }
.stats strong { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; margin-top: 2px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { font-variant-numeric: tabular-nums; }
thead th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--raised); }
tbody th { font-weight: 600; }
tbody tr:hover { background: color-mix(in srgb, var(--raised) 60%, transparent); }
tr:last-child th, tr:last-child td { border-bottom: none; }

/* Award cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cards a { display: flex; flex-direction: column; gap: 4px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); text-decoration: none; color: var(--ink); height: 100%; box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.15s ease; }
.cards a:hover { transform: translateY(-2px); border-color: var(--ink); color: var(--ink); }
.cards strong { font-size: 18px; font-weight: 700; letter-spacing: -0.2px; }
.cards span { color: var(--muted); font-size: 15px; }
.cards .num { color: var(--ink); font-weight: 600; margin-top: auto; padding-top: 14px; font-variant-numeric: tabular-nums; }

/* Calculator: the form on the left, the answer on the right (stays in view on desktop). */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 27vw, 420px); gap: clamp(20px, 2vw, 32px); align-items: start; margin: 28px 0 18px; }
.calc > .note { grid-column: 1 / -1; margin: 0; }
.calc-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-big); padding: 28px; box-shadow: var(--shadow); min-width: 0; }
.step { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; letter-spacing: -0.2px; margin: 0 0 18px; }
.step b { width: 28px; height: 28px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 14px; }
.step + .calc-grid { margin-bottom: 30px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 14px; }
.calc-grid .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.field select, .field input { font: inherit; font-weight: 500; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); min-height: 50px; padding: 0 14px; width: 100%; min-width: 0; appearance: none; -webkit-appearance: none; transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.field select:hover, .field input:hover { border-color: var(--muted); }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; text-overflow: ellipsis; }
.field select:focus, .field input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field input::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
@media (prefers-color-scheme: dark) { .field input::-webkit-calendar-picker-indicator { filter: invert(1); } }

.shifts { display: flex; flex-direction: column; gap: 10px; }
.shift { position: relative; display: grid; grid-template-columns: 1.35fr 1fr 1fr 0.8fr; gap: 10px; padding: 14px; padding-right: 14px; background: var(--raised); border-radius: var(--radius-card); }
.shift .field { font-size: 13px; color: var(--muted); }
.shift .field input { min-height: 46px; }
.shift-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; }
.shift-pay { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.shift-pay strong { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; font-size: 13px; font-weight: 600; line-height: 1.5; padding: 2px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.chip.penalty { background: var(--accent-soft); border-color: transparent; }
.chip.warn { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
button { font: inherit; cursor: pointer; }
.icon-btn { flex: none; width: 36px; height: 36px; border-radius: 18px; border: none; background: transparent; color: var(--muted); display: grid; place-items: center; transition: background 0.12s ease, color 0.12s ease; }
.icon-btn:hover { background: var(--card); color: var(--ink); }
.icon-btn svg { pointer-events: none; }
.secondary { margin-top: 12px; width: 100%; min-height: 50px; padding: 12px 18px; border-radius: var(--radius); border: 1.5px dashed var(--border); background: transparent; color: var(--ink); font-weight: 600; transition: border-color 0.12s ease, background 0.12s ease; }
.secondary:hover { border-color: var(--ink); background: var(--raised); }

/* The answer: a forest card with the pay ring. */
.result { position: sticky; top: 84px; background: var(--forest); color: var(--on-forest); border-radius: var(--radius-big); padding: 28px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 20px 40px -12px rgba(20, 38, 28, 0.35); }
.result-ring { position: relative; width: 196px; margin: 0 auto 18px; }
.result-ring svg { display: block; width: 100%; height: auto; }
.result-ring div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.result-ring small { font-size: 13px; color: var(--forest-muted); }
.result-ring strong { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.1; color: var(--lime); }
.result > span { color: var(--forest-muted); font-size: 15px; }
.result > strong { font-size: clamp(40px, 5vw, 52px); font-weight: 800; letter-spacing: -1.6px; line-height: 1.05; font-variant-numeric: tabular-nums; color: #FFFFFF; }
.ot-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.ot-line .icon-btn { margin-bottom: 7px; }
.link-btn { border: none; background: none; padding: 4px 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cap-row { height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; }
.cap-row i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.cap-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.facts.ytd { margin-top: 16px; }
.notes.light { color: var(--forest-muted); margin-top: 14px; padding-left: 18px; font-size: 13px; }
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.rates div { background: var(--forest-field); border-radius: var(--radius); padding: 10px 12px; }
.rates span { display: block; font-size: 13px; color: var(--forest-muted); }
.rates strong { display: block; font-size: 20px; font-weight: 700; color: #FFFFFF; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }
.rates small { display: block; font-size: 12px; color: var(--forest-muted); font-variant-numeric: tabular-nums; }
.legend { list-style: none; padding: 14px 0 0; margin: 12px 0 0; border-top: 1px solid var(--forest-line); display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.legend li { display: flex; align-items: center; gap: 10px; color: var(--forest-muted); }
.legend li b { margin-left: auto; color: var(--on-forest); font-weight: 600; font-variant-numeric: tabular-nums; }
.legend i { width: 10px; height: 10px; border-radius: 5px; flex: none; }
.result .field { margin-top: 18px; color: var(--on-forest); }
.result .field input { background: var(--forest-field); border-color: var(--forest-line); color: #FFFFFF; }
.result .field input::placeholder { color: var(--forest-muted); }
.result .field input:hover { border-color: var(--forest-muted); }
.result .field input:focus { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.verdict { margin: 12px 0 0; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; line-height: 1.5; }
.verdict.short { background: #FDEEEC; color: #8A1C12; }
.verdict.ok { background: var(--lime); color: #14261C; }

/* App showcase: two phones drawn with the app's own styles */
.showcase { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; margin-top: 80px; padding: 48px; background: var(--raised); border-radius: 32px; }
.showcase h2 { margin-top: 0; font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -0.9px; }
.showcase .lead { margin-bottom: 0; }
.phones { display: flex; gap: 20px; justify-content: center; }
.phone { margin: 0; width: 248px; border-radius: 40px; padding: 10px; background: #0B140E; box-shadow: 0 24px 48px rgba(20, 38, 28, 0.22); }
.phone:nth-child(2) { transform: translateY(32px); }
.screen { background: #FBFBF7; color: #14261C; border-radius: 31px; padding: 22px 16px 18px; height: 500px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.screen small { display: block; color: #56655B; font-size: 11px; }
.p-title { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.p-strip { display: flex; justify-content: space-between; }
.p-strip span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.p-strip b { width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; }
.p-strip b.today { background: #14261C; color: #fff; }
.p-strip i { width: 4px; height: 4px; border-radius: 2px; }
.p-strip i.dot { background: #1F6B3A; }
.p-ring { position: relative; width: 168px; margin: 4px auto 0; }
.p-ring svg { display: block; width: 100%; }
.p-ring div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.p-ring strong { font-size: 24px; font-weight: 700; letter-spacing: -0.6px; }
.p-cap { text-align: center; color: #56655B; }
.p-cap b { color: #14261C; }
.p-btn { align-self: center; background: #1F6B3A; color: #fff; font-weight: 700; padding: 10px 22px; border-radius: 999px; }
.p-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #E7E9E0; border-radius: 14px; padding: 10px 12px; box-shadow: 0 4px 10px rgba(20, 38, 28, 0.05); }
.p-row span { display: flex; flex-direction: column; gap: 2px; }
.p-row em { font-style: normal; font-size: 10px; font-weight: 600; background: #E6F1DF; border-radius: 999px; padding: 2px 8px; align-self: flex-start; margin-top: 3px; }
.p-row strong { font-size: 14px; }
.p-card { background: #fff; border: 1.5px solid #B42318; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.p-result { display: flex; align-items: center; gap: 10px; }
.p-mini { position: relative; width: 52px; flex: none; }
.p-mini svg { display: block; width: 100%; }
.p-mini span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.p-mini small { font-size: 7px; }
.p-mini b { font-size: 11px; }
.short { display: block; color: #B42318; font-size: 16px; font-weight: 700; letter-spacing: -0.4px; white-space: nowrap; }
.p-compare { display: flex; background: #F2F3EC; border-radius: 10px; padding: 8px 10px; gap: 10px; }
.p-compare span { flex: 1; }
.p-find { display: flex; gap: 8px; }
.p-find i { flex: none; width: 16px; height: 16px; border-radius: 8px; border: 1.5px solid #B42318; color: #B42318; font-style: normal; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.p-find b { display: block; font-size: 12px; line-height: 1.35; }
.p-card .p-btn { align-self: stretch; text-align: center; border-radius: 10px; }

/* Call to action */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 64px 0 0; padding: 32px; border-radius: var(--radius-big); background: var(--forest); color: var(--on-forest); }
.cta strong { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }
.cta p { margin: 6px 0 0; color: var(--forest-muted); max-width: 560px; }
.button { display: inline-block; padding: 14px 24px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.button:hover { color: var(--on-accent); background: var(--accent-hover); }
.cta .button { background: var(--lime); color: #14261C; }
.cta .button.soon { background: transparent; color: var(--on-forest); border: 1.5px solid var(--forest-line); }

/* Questions */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); margin-top: 24px; }
.foot-in { max-width: var(--page); margin: 0 auto; padding: 32px var(--gutter) 48px; font-size: 14px; color: var(--muted); }
.foot-in a { color: var(--muted); }
.foot-in a:hover { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 16px; padding: 0; list-style: none; font-weight: 600; }

/* Country switch in the header, and Australia's two calculators */
.countries { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--raised); }
.countries a { text-decoration: none; padding: 6px 11px; font-size: 13px; font-weight: 700; letter-spacing: 0.2px; color: var(--muted); border-radius: 999px; }
.countries a:hover { background: var(--card); color: var(--ink); }
.countries a[aria-current] { background: var(--ink); color: var(--bg); }
.modes { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: 8px; }
.modes a { padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.modes a:hover { color: var(--ink); }
.modes a[aria-current] { background: var(--ink); color: var(--bg); }

/* Tax band bar */
.bands { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 18px 14px; }
.bands h3 { margin: 0 0 14px; font-size: 16px; }
.band-row { position: relative; display: flex; gap: 3px; padding-top: 4px; }
.band { position: relative; min-width: 0; }
.band i { display: block; height: 12px; border-radius: 6px; background: var(--accent); }
.band::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px; border-radius: 6px; background: var(--line); z-index: -1; }
.band { z-index: 0; isolation: isolate; }
.band span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.band b { display: block; font-weight: 700; }
.band small { color: var(--muted); font-size: 12px; }
.band-row em { position: absolute; top: -2px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--card); }

/* Salary calculator */
.summary { min-width: 0; }
.summary h2 { margin-top: 40px; }
.money-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.prefix { position: relative; display: block; }
.prefix::before { content: '$'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 700; color: var(--muted); pointer-events: none; }
.prefix.pound::before { content: '£'; }
.prefix input { padding-left: 34px !important; font-size: 22px !important; font-weight: 700 !important; min-height: 60px !important; font-variant-numeric: tabular-nums; }
.money-row select { min-height: 60px; }
.slider { --fill: 25%; width: 100%; margin: 4px 0 2px; height: 28px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.slider::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--fill), var(--line) var(--fill)); }
.slider::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--fill), var(--line) var(--fill)); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 12px; background: var(--card); border: 2px solid var(--ink); box-shadow: var(--shadow); }
.slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 12px; background: var(--card); border: 2px solid var(--ink); }
.slider-scale { display: flex; justify-content: space-between; margin-top: 2px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 32px; margin: 10px 0 4px; }
.check { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check span { min-width: 0; }
.check b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.check small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.check input { order: 2; appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 13px; background: var(--border); cursor: pointer; transition: background 0.15s ease; }
.check input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 10px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease; }
.check input:checked { background: var(--ink); }
.check input:checked::after { transform: translateX(18px); }
@media (prefers-color-scheme: dark) { .check input:checked::after { background: var(--bg); } }
.check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.more { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 22px; }
.more summary { list-style: none; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more summary .step { margin: 0; }
.more summary .step::after { content: ''; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.15s ease; }
.more[open] summary .step::after { transform: rotate(-135deg) translateY(-3px); }
.more[open] summary { margin-bottom: 18px; }
.more summary .set { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.more summary .set:empty { display: none; }
.more[open] summary .set { display: none; }
.step.lead-step { margin-bottom: 14px; }
.segment { display: flex; padding: 4px; border-radius: 999px; background: var(--raised); gap: 2px; }
.segment button { flex: 1; border: none; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 6px; border-radius: 999px; min-width: 0; }
.segment button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.segment.dark { background: var(--forest-field); margin-bottom: 20px; }
.segment.dark button { color: var(--forest-muted); }
.segment.dark button[aria-pressed="true"] { background: var(--lime); color: #14261C; }
th small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.summary tr.total th, .summary tr.total td { font-weight: 700; font-size: 16px; background: var(--accent-soft); }
.summary tr.minor th, .summary tr.minor td { color: var(--muted); font-weight: 500; }
.summary td { text-align: right; }
.summary tbody th { position: sticky; left: 0; background: var(--card); z-index: 1; }
.summary thead th:first-child { position: sticky; left: 0; z-index: 1; }
.summary thead th:not(:first-child) { text-align: right; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 18px; }
.facts span { display: block; font-size: 14px; color: var(--muted); }
.facts strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.notes { margin: 16px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 14px; }
.notes li { margin: 4px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill { border: 1px solid var(--ink); background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 999px; }
.pill:hover { background: var(--raised); }
.pill.quiet { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.state-links { list-style: none; padding: 0; margin: 0; columns: 4 180px; column-gap: 24px; }
.state-links li { padding: 4px 0; break-inside: avoid; }
.state-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.state-links a:hover, .state-links a[aria-current] { color: var(--ink); text-decoration: underline; }
/* Salary pages */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums; }
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.chips a span { color: var(--muted); font-weight: 500; font-size: 13px; }
.salary-nav { margin-top: 48px; }
.salary-nav h2 { margin: 0 0 14px; font-size: 22px; }
.calc-link { margin-top: 20px; }
.periods { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.periods div { background: var(--raised); border-radius: var(--radius-card); padding: 16px 18px; }
.periods span { display: block; font-size: 14px; color: var(--muted); }
.periods strong { display: block; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
.periods small { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.result.static { position: static; }
.calc-form .table-wrap { border-radius: var(--radius); }
table.states td { text-align: right; }
table.states thead th:not(:first-child) { text-align: right; }
table.states tbody th a { color: var(--ink); text-decoration: none; }
table.states tbody th a:hover { text-decoration: underline; }
/* Desktop: use the width. The hero puts the headline beside the introduction, and longer
   sections (questions, results) spread into columns. Phones keep the single column below. */
@media (min-width: 1100px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 96px); align-items: end; padding-top: 16px; }
  .hero > .eyebrow, .hero > .modes { grid-column: 1 / -1; justify-self: start; }
  .hero h1 { grid-column: 1; grid-row: 2 / span 2; margin: 18px 0 0; max-width: none; }
  .hero .lead { grid-column: 2; grid-row: 2; margin: 0 0 14px; max-width: 560px; }
  .hero .trust { grid-column: 2; grid-row: 3; margin: 0; }
  .hero:not(:has(.trust)) .lead { grid-row: 2 / span 2; }
  .faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 72px); align-items: start; }
  .faq > h2 { grid-column: 1 / -1; }
  .lead { font-size: 20px; }
}
@media (min-width: 1600px) {
  h1 { font-size: 58px; letter-spacing: -1.8px; }
}
.sticky-take { display: none; }
@media (max-width: 900px) {
  .sticky-take { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: none; border-radius: 16px; background: var(--forest); color: var(--on-forest); font: inherit; text-align: left; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); transform: translateY(140%); transition: transform 0.25s ease; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.sticky-take:not(.show) { visibility: hidden; }
.sticky-take.show { transform: none; }
  .sticky-take span { font-size: 14px; color: var(--forest-muted); }
  .sticky-take strong { font-size: 22px; font-weight: 800; color: var(--lime); font-variant-numeric: tabular-nums; }
}
@media (prefers-reduced-motion: reduce) { .sticky-take { transition: none; } }

.skip-link { position: fixed; z-index: 30; top: 12px; left: 12px; transform: translateY(-150%); padding: 10px 16px; background: var(--bg); color: var(--ink); border-radius: 12px; }
.skip-link:focus { transform: none; }
#main { scroll-margin-top: 84px; }
@media print {
  .top, footer, .cta, .faq, .calc-form, .actions, .segment, .hero .trust, .eyebrow { display: none !important; }
  .calc { display: block; }
  .result { position: static; box-shadow: none; }
}
@media (max-width: 760px) {
  .checks { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .summary th, .summary td { padding: 12px 10px; font-size: 14px; }
}

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .result { position: static; }
}
@media (max-width: 760px) {
  .showcase { grid-template-columns: 1fr; gap: 20px; margin-top: 56px; padding: 28px 20px 8px; border-radius: 24px; }
  /* Phones: a swipeable row at a readable size. */
  .phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 -20px; padding: 4px 20px 28px; scrollbar-width: none; }
  .phone { flex: none; width: 240px; scroll-snap-align: center; }
  .phone:nth-child(2) { transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .calc-form { padding: 20px 16px; border-radius: 20px; }
  .calc-grid { grid-template-columns: 1fr; }
  .shift { grid-template-columns: 1fr 1fr; }
  .shift > .field:first-child { grid-column: 1 / -1; }
  .shift .field input { padding: 0 10px; font-size: 15px; }
  .result { padding: 24px 20px; border-radius: 20px; }
  .result-ring { width: 168px; }
  .top nav > a:not(.nav-cta):not(.narrow) { display: none; }
  .top nav { font-size: 14px; gap: 6px; }
  .top nav > a { padding: 8px 10px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand span { display: none; }
  .countries a { padding: 6px 9px; }
  .modes { display: flex; }
  .modes a { flex: 1; text-align: center; padding: 8px 10px; font-size: 14px; }
  .brand svg { width: 28px; height: 28px; }
  .top-in { gap: 12px; }
  .cta { padding: 24px; }
}
