:root {
  --paper: #f6f7f2;
  --surface: #ffffff;
  --ink: #17221b;
  --muted: #667169;
  --line: #dce2db;
  --soft: #edf0ea;
  --accent: #235c41;
  --accent-dark: #163e2b;
  --lime: #dfff72;
  --blue: #3757d5;
  --blue-soft: #e5eafe;
  --orange: #e8743b;
  --orange-soft: #fff0e7;
  --purple: #7b5aba;
  --purple-soft: #f0eafb;
  --shadow: 0 18px 55px rgba(26, 44, 34, .09);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  width: min(1160px, calc(100% - 40px));
  height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 820; letter-spacing: -.03em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--lime); font-size: 14px; letter-spacing: -.06em; }
.country-pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 650; background: rgba(255,255,255,.6); }

.hero { padding: 58px 0 92px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 78px; align-items: center; }
.eyebrow { color: var(--accent); margin: 0 0 14px; font-size: 12px; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 540px; margin: 0; font-size: clamp(48px, 6vw, 78px); line-height: .98; letter-spacing: -.065em; }
.hero h1 span { color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 span::after { content: ""; position: absolute; height: 10px; background: var(--lime); left: 1%; right: -2%; bottom: 2px; z-index: -1; border-radius: 6px; transform: rotate(-1deg); }
.hero-lede { margin: 28px 0 24px; max-width: 520px; font-size: 19px; line-height: 1.6; color: #506057; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; font-weight: 650; }
.hero-proof span { display: flex; align-items: center; gap: 6px; }
.hero-proof i { width: 19px; height: 19px; display: grid; place-items: center; background: #e1f1e6; color: var(--accent); border-radius: 50%; font-style: normal; font-size: 11px; }

.planner-card { padding: 30px; background: var(--surface); border: 1px solid rgba(31, 57, 42, .08); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 24px; }
.card-heading h2, .section-heading h2 { margin: 0; letter-spacing: -.035em; line-height: 1.2; }
.card-heading h2 { font-size: 22px; }
.card-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.step-number { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--lime); font-size: 12px; font-weight: 850; }
.step-number.muted { background: var(--soft); }

.balance-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--soft); border-radius: 12px; margin-bottom: 20px; }
.balance-switch label { cursor: pointer; }
.balance-switch input { position: absolute; opacity: 0; pointer-events: none; }
.balance-switch span { min-height: 40px; display: grid; place-items: center; padding: 7px 10px; border-radius: 9px; color: var(--muted); text-align: center; font-size: 12px; font-weight: 750; }
.balance-switch input:checked + span { background: white; color: var(--ink); box-shadow: 0 2px 7px rgba(22, 40, 29, .08); }

.field-block { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-block label, fieldset legend { font-size: 12px; font-weight: 760; color: #3d4a42; }
.big-number-input, .number-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: white; transition: border-color .2s, box-shadow .2s; }
.big-number-input:focus-within, .number-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35, 92, 65, .11); }
.big-number-input input, .number-input input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-weight: 760; }
.big-number-input input { padding: 11px 8px 11px 16px; font-size: 25px; }
.big-number-input span { padding-right: 16px; color: var(--muted); font-weight: 700; }
.number-input input { padding: 10px 5px 10px 12px; }
.number-input span { padding-right: 12px; color: var(--muted); font-size: 12px; }
.two-fields, .three-fields, .four-fields { display: grid; gap: 14px; }
.two-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.balance-preview { grid-column: 1 / -1; margin: -4px 0 4px; color: var(--accent); font-size: 12px; }
.date-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 11px; margin-top: 18px; }
.date-arrow { padding-bottom: 10px; color: #9aa39d; }
input[type="date"], select { min-width: 0; width: 100%; height: 43px; border: 1px solid var(--line); border-radius: 12px; padding: 0 11px; outline: 0; background: white; color: var(--ink); }
input[type="date"]:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35, 92, 65, .1); }

.strategy-fieldset { border: 0; padding: 0; margin: 20px 0 0; }
.strategy-fieldset legend { margin-bottom: 9px; }
.strategy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.strategy-option { cursor: pointer; }
.strategy-option input { position: absolute; opacity: 0; pointer-events: none; }
.strategy-inner { min-height: 64px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; transition: .2s ease; }
.strategy-inner > b { flex: 0 0 auto; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: var(--accent); background: #edf5f0; }
.strategy-inner > span { min-width: 0; display: flex; flex-direction: column; }
.strategy-inner strong { font-size: 12px; }
.strategy-inner small { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strategy-option input:checked + .strategy-inner { border-color: var(--accent); background: #f3f8f5; box-shadow: inset 0 0 0 1px var(--accent); }
.christmas-preference { margin-top: 11px; min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #efdbb9; border-radius: 12px; background: #fffaf0; cursor: pointer; }
.christmas-preference input { position: absolute; opacity: 0; pointer-events: none; }
.preference-check { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #c8b58e; border-radius: 8px; color: transparent; background: white; font-size: 12px; font-weight: 850; }
.christmas-preference input:checked + .preference-check { color: white; background: var(--accent); border-color: var(--accent); }
.christmas-preference > span:nth-of-type(2) { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.christmas-preference strong { font-size: 11px; }
.christmas-preference small { color: var(--muted); font-size: 9px; }
.popular-pill { padding: 4px 7px; color: #8a591c; background: #f8e6c7; border-radius: 999px; font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }

.advanced { margin: 19px 0 0; border-top: 1px solid var(--line); }
.advanced summary { padding: 17px 1px 2px; display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; font-size: 13px; font-weight: 750; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary b { margin-right: 5px; }
.advanced .chevron { transition: transform .2s; }
.advanced[open] .chevron { transform: rotate(180deg); }
.advanced-body { padding-top: 12px; }
.advanced-section { padding: 14px 0; border-top: 1px solid #edf0ec; }
.section-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 12px; font-weight: 760; }
.section-label small { color: var(--muted); font-weight: 500; }
.compact label { font-size: 11px; }
.weekday-picker { display: flex; gap: 7px; }
.weekday-picker label { flex: 1; cursor: pointer; }
.weekday-picker input { position: absolute; opacity: 0; }
.weekday-picker span { height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 780; }
.weekday-picker input:checked + span { color: white; background: var(--accent); border-color: var(--accent); }
.range-entry { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 7px; align-items: center; }
.add-range { height: 40px; padding: 0 12px; border: 1px solid var(--line); background: var(--soft); border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 760; }
.range-chips { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 8px; }
.range-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px 5px 10px; border-radius: 999px; background: var(--blue-soft); color: #2d4296; font-size: 11px; font-weight: 700; }
.range-chip.company { background: var(--purple-soft); color: #68499c; }
.range-chip button { width: 18px; height: 18px; padding: 0; border: 0; background: rgba(255,255,255,.65); border-radius: 50%; cursor: pointer; line-height: 1; }
select[multiple] { height: 98px; padding: 6px; }
select[multiple] option { padding: 4px 6px; border-radius: 5px; }
.field-help { color: var(--muted); font-size: 10px; }
.form-error, .notice { margin: 15px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff0ed; color: #9b3029; font-size: 12px; }
.notice { margin: 0 0 8px; background: #fff8dd; color: #695616; }
.primary-button { width: 100%; min-height: 52px; margin-top: 19px; border: 0; border-radius: 13px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: white; background: var(--accent); font-weight: 780; box-shadow: 0 8px 18px rgba(35,92,65,.18); transition: transform .15s, background .15s; }
.primary-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: .6; cursor: wait; transform: none; }
.form-note { margin: 9px 0 -4px; text-align: center; color: var(--muted); font-size: 10px; }

.loading { min-height: 160px; display: flex; flex-direction: column; place-items: center; justify-content: center; color: var(--muted); }
.loader { width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.results { padding: 18px 0 104px; }
.results-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.input-summary { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.results-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 49px); letter-spacing: -.05em; line-height: 1.05; }
.secondary-button { min-height: 40px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; background: white; cursor: pointer; font-size: 12px; font-weight: 750; }
.secondary-button:hover { border-color: #aeb9b1; }
.notices { margin-bottom: 12px; }
.score-card { overflow: hidden; display: grid; grid-template-columns: .85fr 1.65fr; color: white; background: var(--ink); border-radius: 25px; box-shadow: var(--shadow); }
.score-main { position: relative; padding: 34px; background: var(--accent); }
.score-main::after { content: ""; width: 90px; height: 90px; position: absolute; right: -35px; bottom: -35px; border: 20px solid rgba(223,255,114,.15); border-radius: 50%; }
.score-kicker { display: inline-flex; padding: 5px 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.score-main > strong { display: flex; align-items: baseline; gap: 10px; margin-top: 25px; font-size: clamp(58px, 7vw, 82px); line-height: .8; letter-spacing: -.06em; }
.score-main > strong small { font-size: 16px; letter-spacing: -.01em; }
.score-main p { margin: 16px 0 0; color: rgba(255,255,255,.72); font-size: 13px; }
.score-main p b { color: var(--lime); }
.score-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.1); }
.score-stats div { padding: 27px 30px; display: flex; flex-direction: column; background: var(--ink); }
.score-stats span { color: #aeb8b1; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.score-stats strong { margin: 3px 0; font-size: 28px; letter-spacing: -.04em; }
.score-stats small { color: #869189; font-size: 11px; }

.recommendations-section, .calendar-section, .alternatives-section { margin-top: 74px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-heading > div { display: flex; align-items: center; gap: 12px; }
.section-heading h2 { font-size: 25px; }
.section-heading > p { max-width: 380px; margin: 0; color: var(--muted); text-align: right; font-size: 12px; }
.recommendation-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.recommendation-card { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.recommendation-top { display: flex; justify-content: space-between; gap: 12px; }
.block-index { color: var(--accent); font-size: 10px; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.recommendation-card h3 { margin: 5px 0 4px; font-size: 21px; letter-spacing: -.03em; }
.recommendation-card .date-span { margin: 0; color: var(--muted); font-size: 12px; }
.block-score { flex: 0 0 auto; text-align: right; }
.block-score strong { display: block; font-size: 25px; letter-spacing: -.04em; }
.block-score small { color: var(--muted); font-size: 10px; }
.leave-date-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 17px 0 12px; }
.leave-date { padding: 6px 9px; border-radius: 8px; color: #243b95; background: var(--blue-soft); font-size: 11px; font-weight: 760; }
.explanation { border-top: 1px solid var(--line); }
.explanation summary { padding-top: 12px; cursor: pointer; color: var(--accent); font-size: 11px; font-weight: 780; }
.explanation ul { margin: 11px 0 0; padding: 0; list-style: none; }
.explanation li { position: relative; padding: 4px 0 4px 15px; color: var(--muted); font-size: 11px; }
.explanation li::before { content: ""; position: absolute; left: 1px; top: 10px; width: 5px; height: 5px; background: var(--line); border-radius: 50%; }
.empty-state { grid-column: 1 / -1; padding: 35px; text-align: center; border: 1px dashed #bdc7c0; border-radius: 18px; color: var(--muted); background: rgba(255,255,255,.45); }
.empty-state h3 { margin: 0 0 5px; color: var(--ink); }

.calendar-legend { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-bottom: 15px; color: var(--muted); font-size: 10px; font-weight: 650; }
.calendar-legend span { display: flex; align-items: center; gap: 5px; }
.calendar-legend i { width: 11px; height: 11px; border-radius: 3px; border: 1px solid transparent; }
.legend-recommended { background: var(--blue) !important; }
.legend-fixed { background: var(--blue-soft) !important; border-color: #a7b2ea !important; }
.legend-holiday { background: var(--orange-soft) !important; }
.legend-company { background: var(--purple-soft) !important; }
.legend-weekend { background: var(--soft) !important; }
.legend-block { background: white !important; border: 2px solid var(--accent) !important; }
.calendar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.month-card { padding: 16px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.month-card h3 { margin: 0 0 12px; font-size: 14px; text-transform: capitalize; }
.week-header, .month-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.week-header span { padding-bottom: 5px; color: #9aa39d; text-align: center; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.calendar-day { position: relative; aspect-ratio: 1; min-width: 0; border: 0; border-radius: 7px; display: grid; place-items: center; background: transparent; cursor: pointer; font-size: 9px; font-weight: 650; }
.calendar-day:hover { outline: 2px solid #9faa9f; z-index: 1; }
.calendar-day.outside { opacity: .25; }
.calendar-day.weekend { background: var(--soft); color: #69756d; }
.calendar-day.holiday { background: var(--orange-soft); color: #a2461e; }
.calendar-day.company { background: var(--purple-soft); color: #69459e; }
.calendar-day.fixed_leave { background: var(--blue-soft); color: #3148a5; }
.calendar-day.recommended { color: white; background: var(--blue); font-weight: 850; }
.calendar-day.in-block { box-shadow: inset 0 0 0 2px var(--accent); }
.calendar-day.recommended.in-block { box-shadow: inset 0 0 0 2px #172968, 0 0 0 1px white; }
.source-note { margin: 11px 0 0; color: var(--muted); font-size: 10px; }

.alternatives { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.alternative-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.alternative-card p { margin: 0 0 3px; color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.alternative-card h3 { margin: 0; font-size: 17px; }
.alternative-card small { color: var(--muted); }
.alternative-card button { grid-row: span 2; }

.how-it-works { padding: 92px 0 105px; border-top: 1px solid var(--line); }
.how-it-works > h2 { max-width: 560px; margin: 0 0 35px; font-size: clamp(30px, 4vw, 46px); line-height: 1.06; letter-spacing: -.05em; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.how-grid article { padding-top: 15px; border-top: 1px solid #bcc6bf; }
.how-grid article > span { color: var(--accent); font-size: 11px; font-weight: 800; }
.how-grid h3 { margin: 22px 0 7px; font-size: 17px; }
.how-grid p { margin: 0; color: var(--muted); font-size: 13px; }
footer { padding: 25px 0; color: white; background: var(--ink); }
footer .shell { display: flex; align-items: center; justify-content: space-between; }
footer .brand-mark { background: var(--lime); color: var(--ink); }
footer .small { font-size: 15px; }
footer .small .brand-mark { width: 30px; height: 30px; }
footer p { color: #9ba69e; font-size: 11px; }

.day-dialog { width: min(420px, calc(100% - 30px)); border: 0; border-radius: 20px; padding: 27px; box-shadow: 0 25px 80px rgba(10,25,16,.25); }
.day-dialog::backdrop { background: rgba(13, 27, 19, .55); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 15px; top: 13px; width: 31px; height: 31px; border: 0; border-radius: 50%; background: var(--soft); cursor: pointer; font-size: 19px; line-height: 1; }
.day-dialog h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.dialog-label { margin: 10px 0; font-weight: 720; }
.dialog-block { color: var(--muted); font-size: 12px; }
.day-dialog .secondary-button { margin-top: 9px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 42px; padding-top: 35px; }
  .hero-copy { text-align: center; }
  .hero h1, .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-proof { justify-content: center; }
  .calendar-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .shell, .site-header { width: min(100% - 24px, 1160px); }
  .site-header { height: 66px; }
  .country-pill { font-size: 11px; }
  .hero { padding: 35px 0 68px; gap: 34px; }
  .hero h1 { font-size: 49px; }
  .hero-lede { font-size: 16px; }
  .hero-proof { gap: 9px 14px; }
  .planner-card { padding: 21px 17px; border-radius: 19px; }
  .balance-switch span { font-size: 10px; }
  .popular-pill { display: none; }
  .strategy-grid, .recommendation-list, .alternatives, .calendar-grid, .how-grid { grid-template-columns: 1fr; }
  .strategy-inner { min-height: 58px; }
  .three-fields, .four-fields { grid-template-columns: 1fr 1fr; }
  .range-entry { grid-template-columns: 1fr auto 1fr; }
  .range-entry .add-range { grid-column: 1 / -1; }
  .results { padding-bottom: 75px; }
  .results-heading, .section-heading { align-items: flex-start; }
  .results-heading { flex-direction: column; }
  .section-heading > p { display: none; }
  .score-card { grid-template-columns: 1fr; }
  .score-main { padding: 28px; }
  .score-main > strong { font-size: 67px; }
  .score-stats div { padding: 20px; }
  .recommendations-section, .calendar-section, .alternatives-section { margin-top: 55px; }
  .calendar-grid { gap: 8px; }
  .month-card { padding: 14px; }
  .calendar-day { font-size: 11px; }
  .alternative-card { grid-template-columns: 1fr; }
  .alternative-card button { grid-row: auto; }
  .how-it-works { padding: 68px 0; }
  .how-grid { gap: 23px; }
  footer .shell { align-items: flex-start; flex-direction: column; gap: 10px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; }
}
