/* Static public pages (landing, public holidays). Colours match the app's brand palette in src/web/styles.css. */
:root {
  --brand-50: #edfaf7;
  --brand-100: #d2f2ea;
  --brand-300: #6fcfbc;
  --brand-600: #0d7a6b;
  --brand-700: #0c6258;
  --brand-800: #0d4e47;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --canvas: #f3f6f6;
  --bg: #ffffff;
  --amber-bg: #fef3c7;
  --amber: #92400e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand-700); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.5em; }
p { margin: 0 0 1em; }
main, .top, .foot { max-width: 64rem; margin: 0 auto; padding: 0 16px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.125rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--brand-600); color: #fff; }
.brand-mark svg { width: 36px; height: 36px; }
.brand-accent { color: var(--brand-600); }
.top-nav { display: flex; align-items: center; gap: 8px; }
.top-nav > a:first-child { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.9rem; margin-right: 8px; }
@media (max-width: 560px) { .top-nav > a:first-child { display: none; } .top-nav .btn { padding: 8px 10px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 0.9rem; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--canvas); }
.btn-primary { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-lg { padding: 12px 22px; font-size: 1rem; border-radius: 14px; }

.hero { padding: 40px 0 16px; }
.hero-landing { text-align: center; padding: 64px 0 48px; }
.hero-landing .lede { margin-left: auto; margin-right: auto; }
.lede { font-size: 1.125rem; color: var(--text); max-width: 46rem; }
.eyebrow { color: var(--brand-700); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5em; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.section { padding: 24px 0; }
.crumbs { padding-top: 16px; font-size: 0.85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { background: var(--canvas); border-radius: 16px; padding: 24px; }
.feature h2 { font-size: 1.1rem; }
.feature p { margin: 0; }
.promo { display: grid; gap: 16px; background: var(--brand-50); border-radius: 20px; padding: 28px; margin: 24px 0 48px; }
.promo p:last-child { margin-bottom: 0; }

.chips, .state-grid, .country-list, .bridges { list-style: none; margin: 0; padding: 0; }
.country-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--brand-100); font-weight: 600; text-decoration: none; }
.state-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.state-grid a { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.state-grid a:hover { border-color: var(--brand-300); background: var(--brand-50); }
.country { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); max-width: 28rem; }
.country:hover { border-color: var(--brand-300); }
.country .flag { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.04em; }
.country small { display: block; color: var(--muted); }

.year-switch { display: flex; gap: 8px; }
.year-switch a, .year-switch span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.year-switch span { background: var(--ink); border-color: var(--ink); color: #fff; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--canvas); color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
tbody tr:last-child td { border-bottom: 0; }
tr.replacement td { color: var(--muted); }
tr[data-weekend] td:nth-child(2) { color: var(--muted); }
td.where { color: var(--muted); font-size: 0.875rem; min-width: 12rem; }
.nowrap { white-space: nowrap; }
.tag { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--amber-bg); color: var(--amber); font-size: 0.72rem; font-weight: 600; vertical-align: 1px; }
.tag-state { background: var(--brand-50); color: var(--brand-700); }
.subscribe { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.subscribe .muted { margin: 0; }

.planner { background: var(--canvas); border-radius: 20px; padding: 24px; margin: 16px 0; }
.budget { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; font-weight: 600; color: var(--ink); }
.budget button { min-width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.budget button[aria-pressed="true"] { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.plan-total { font-size: 1.1rem; color: var(--ink); }
.plan-total strong { color: var(--brand-700); }

.bridges { display: grid; gap: 10px; }
.bridge { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.bridge-days { flex: none; width: 64px; text-align: center; background: var(--brand-50); border-radius: 12px; padding: 6px 0; color: var(--brand-800); }
.bridge-days strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.bridge-days span { font-size: 0.72rem; font-weight: 600; }
.bridge-body p { margin: 0; }
.bridge-range { font-weight: 700; color: var(--ink); }
.bridge-hol { color: var(--muted); font-size: 0.9rem; }
.bridge-take { margin-top: 4px !important; font-size: 0.92rem; }
.free { color: var(--brand-700); font-weight: 600; }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--brand-800); color: #d2f2ea; border-radius: 20px; padding: 28px; margin: 32px 0; }
.cta h2 { color: #fff; }
.cta p { margin: 0; max-width: 38rem; }
.cta .btn-primary { background: #fff; color: var(--brand-800); border-color: #fff; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; padding-bottom: 32px; font-size: 0.875rem; color: var(--muted); }
.foot-links { display: flex; gap: 16px; }
.foot a { color: var(--muted); }
.bridge-alt { margin-top: 4px !important; font-size: 0.85rem; color: var(--muted); }
.tag-muted { background: var(--canvas); color: var(--muted); }
tr.optional td { color: var(--muted); font-style: italic; }

/* ---- Landing page ---------------------------------------------------------------------------- */
.hero-landing { display: grid; gap: 40px; align-items: center; text-align: left; padding: 56px 0 40px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.hero-landing h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05; }
.hero-landing .lede { margin-left: 0; }
.strike { position: relative; color: var(--muted); white-space: nowrap; }
.strike::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 0.12em; background: #e0533d; border-radius: 4px; transform: rotate(-4deg); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; color: var(--muted); }
.ticks li::before { content: "✓"; color: var(--brand-600); font-weight: 800; margin-right: 6px; }
.hero-visual { display: flex; justify-content: center; }
.phone { width: 100%; max-width: 330px; padding: 22px 16px 28px; border-radius: 34px; background: linear-gradient(160deg, var(--brand-50), #fff 60%); border: 1px solid var(--brand-100); box-shadow: 0 30px 60px -30px rgba(13, 78, 71, 0.45); }
.msg { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; font-size: 0.88rem; }
.msg p { margin: 0 0 4px; }
.msg-from { color: var(--brand-700); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.msg-title { color: var(--ink); font-weight: 800; font-size: 1rem; }
.msg-note { color: var(--muted); font-size: 0.8rem; }
.msg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.msg-actions span { text-align: center; padding: 8px; border-radius: 10px; background: var(--canvas); font-weight: 700; color: var(--ink); }
.msg-actions .ok { background: var(--brand-600); color: #fff; }
.toast { display: flex; align-items: center; gap: 8px; margin-top: 10px; background: var(--ink); color: #fff; border-radius: 12px; padding: 9px 12px; font-size: 0.8rem; font-weight: 600; }
.toast-2 { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-300); flex: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 1.8rem; font-weight: 800; color: var(--brand-700); line-height: 1.1; }
.stats span { color: var(--muted); font-size: 0.88rem; }
.h2-lg { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -0.01em; max-width: 40rem; }
.pains { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 16px; }
.pain { border: 1px solid var(--line); border-left: 4px solid #e0533d; border-radius: 14px; padding: 18px 20px; }
.pain h3 { margin: 0 0 6px; }
.pain p { margin: 0; font-size: 0.95rem; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: var(--canvas); border-radius: 18px; padding: 22px; }
.step h3 { margin: 12px 0 6px; }
.step p { margin: 0; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--brand-600); color: #fff; font-weight: 800; }
.features { margin-top: 16px; }
.feature h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--brand-700); }
.feature-icon svg { width: 22px; height: 22px; }
section.why-free { background: var(--canvas); border-radius: 20px; padding: 28px; margin: 24px 0; }
section.why-free p:last-child { margin-bottom: 0; max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq details p { margin: 8px 0 0; max-width: 48rem; }
.cta-final { padding: 36px; }
@media (max-width: 820px) {
  .hero-landing { grid-template-columns: 1fr; padding-top: 32px; gap: 28px; }
}

/* ---- Holidays by month ------------------------------------------------------------------------ */
.hero-links { display: flex; flex-wrap: wrap; gap: 8px; }
.next-up { display: inline-block; line-height: 1.8; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-800); border-radius: 14px; padding: 10px 14px; font-weight: 600; }
.next-up[hidden] { display: none; }
.next-up strong { color: var(--ink); }
.next-up .when { margin-left: 4px; white-space: nowrap; background: var(--brand-600); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 0.8rem; }
.month-nav { position: sticky; top: 0; z-index: 2; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin-bottom: 8px; background: var(--bg); scrollbar-width: thin; }
.month-nav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: 0.85rem; color: var(--ink); text-decoration: none; }
.month-nav a small { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 0.7rem; }
.month-nav a.empty { color: var(--muted); }
.month-nav a.past { opacity: 0.55; }
.month-nav a[aria-current="true"] { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.month-nav a[aria-current="true"] small { background: #fff; }
.months { display: grid; gap: 14px; }
.month { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; scroll-margin-top: 64px; }
.month.is-current { border-color: var(--brand-300); box-shadow: 0 0 0 3px var(--brand-50); }
.month-empty { background: var(--canvas); border-style: dashed; }
.month-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.month-head h3 { margin: 0; font-size: 1.2rem; }
.month-head h3 span { color: var(--muted); font-weight: 600; }
.month-head h3 .now-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--brand-600); color: #fff; font-size: 0.7rem; font-weight: 700; vertical-align: 3px; }
.month-count { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.month-none { margin: 0; }
.hols { list-style: none; margin: 0; padding: 0; display: grid; }
.hol { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.hol:first-child { border-top: 0; }
.hol-date { flex: none; width: 54px; text-align: center; border-radius: 12px; background: var(--brand-50); color: var(--brand-800); padding: 6px 0; }
.hol-date strong { display: block; font-size: 1.35rem; line-height: 1.1; }
.hol-date span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.hol-body { min-width: 0; }
.hol-body p { margin: 0; }
.hol-name { font-weight: 700; color: var(--ink); }
.hol-meta { color: var(--muted); font-size: 0.88rem; }
.hol-plan { margin-top: 4px !important; font-size: 0.88rem; }
.hol-plan strong { color: var(--brand-700); }
.hol.replacement .hol-date, .hol.optional .hol-date { background: var(--canvas); color: var(--muted); }
.hol.optional .hol-name { color: var(--muted); font-style: italic; font-weight: 600; }
.hol.is-past { opacity: 0.6; }
.earlier { border: 1px dashed var(--line); border-radius: 18px; padding: 12px 18px; }
.earlier > summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.earlier[open] > summary { margin-bottom: 12px; }
