/* Calculadoras de Datas e Tempo — design system v2
   - System fonts only (fast, private: no third-party requests)
   - Text colours are near-black; secondary text keeps ≥ 9:1 contrast on white */
:root {
  --bg: #f8f6fd;
  --surface: #ffffff;
  --surface-2: #f3f0fb;
  --surface-3: #e9e3f5;
  --text: #1f1235;          /* navy, ~17:1 on white */
  --text-2: #2e2342;        /* ~14:1 — secondary text, never light grey */
  --text-3: #43385a;        /* ~10:1 — hints and captions */
  --border: #e0d9ee;
  --border-strong: #a89cc4;
  --brand: #6d28d9;         /* white text on it: 6.7:1 */
  --brand-600: #5b21b6;
  --brand-700: #4c1d95;
  --brand-50: #f5f3ff;
  --brand-100: #e4dcff;
  --accent: #f59e0b;
  --accent-700: #92400e;
  --work: #10a37f;  --work-bg: #d9f5ec;
  --weekend: #72648b; --weekend-bg: #e9e5f0;
  --holiday: #c2185b; --holiday-bg: #fde4ee;
  --optional: #b45309; --optional-bg: #fff1d6;
  --state: #0f766e; --state-bg: #d5f2ee;
  --ok: #05603a; --ok-bg: #dcfce7;
  --err: #a8071a; --err-bg: #fde8ea;
  --focus: #7c3aed;
  --hero-1: #1f1235; --hero-2: #4c1d95; --hero-3: #6d28d9;
  --r-xl: 20px; --r-lg: 14px; --r: 10px; --r-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(31, 18, 53, .06);
  --shadow: 0 2px 6px rgba(31, 18, 53, .06), 0 10px 24px rgba(31, 18, 53, .07);
  --shadow-lg: 0 6px 16px rgba(46, 16, 101, .10), 0 24px 48px rgba(46, 16, 101, .14);
  --maxw: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-legacy: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--bg); overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--brand-600); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-700); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 200; font-weight: 700; }
.skip-link:focus { top: 8px; color: #fff; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
strong, b { font-weight: 700; }

/* ---------- Header ---------- */
.site-header { background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; font-size: 17px; line-height: 1.15; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r); padding: 8px 14px; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; min-height: 44px; align-items: center; gap: 8px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.primary-nav a { display: block; padding: 8px 11px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.primary-nav a:hover { background: var(--surface-2); color: var(--text); }
.primary-nav a[aria-current="page"] { color: #fff; background: var(--brand); }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; padding: 8px 16px 16px; gap: 4px; }
  .primary-nav a { padding: 12px 14px; font-size: 17px; border-radius: var(--r); }
}

/* ---------- Hero (full-bleed band via border-image, no horizontal scroll) ---------- */
.hero, .tool-hero {
  position: relative; color: #fff;
  border-image: linear-gradient(125deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%) fill 0 / / 0 100vw;
  padding: 18px 0 92px;
}
.hero::after, .tool-hero::after {
  content: ""; position: absolute; inset: 0 -50vw; pointer-events: none; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 85%); mask-image: linear-gradient(90deg, transparent 30%, #000 85%);
}
.hero > *, .tool-hero > * { position: relative; z-index: 1; }
.hero h1, .tool-hero h1 { color: #fff; }
.hero .lead, .tool-hero .lead { color: #f2f9fa; }
.tool-hero .breadcrumbs, .tool-hero .breadcrumbs a { color: #d5ebef; }
.tool-hero .breadcrumbs li + li::before { color: #9fd0d6; }
.hero-title-row { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.hero-icon { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.hero-icon svg { width: 32px; height: 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); padding: 4px 10px; border-radius: 999px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.trust-row li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(46, 16, 101, .35); border: 1px solid rgba(255,255,255,.22); padding: 5px 11px; border-radius: 999px; }
.trust-row svg { width: 16px; height: 16px; color: #7ff0d2; }
.today-pill { font-variant-numeric: tabular-nums; }

/* ---------- Typography ---------- */
main { display: block; padding-bottom: 56px; }
h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12; margin: 0; letter-spacing: -.02em; font-weight: 800; color: var(--text); }
h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; margin: 44px 0 12px; letter-spacing: -.01em; font-weight: 800; color: var(--text); }
h3 { font-size: 19px; line-height: 1.35; margin: 26px 0 8px; font-weight: 750; color: var(--text); }
p { color: var(--text); }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; max-width: 780px; margin: 12px 0 0; color: var(--text-2); }
.prose { max-width: 780px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: var(--text); }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.meta-line { font-size: 15px; color: var(--text-2); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.breadcrumbs { font-size: 14px; font-weight: 500; color: var(--text-2); margin: 6px 0 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; }
.breadcrumbs a { color: inherit; }
.page-plain { padding-top: 22px; }
main > .container > .breadcrumbs:first-child { margin-top: 20px; }
.page-head { margin: 14px 0 18px; }
article.prose > h1 { margin-top: 14px; }
article.prose > .lead { margin-bottom: 8px; }

/* ---------- Calculator card ---------- */
.calc { position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 24px; margin: -64px 0 28px; }
.calc.flat { margin-top: 16px; box-shadow: var(--shadow); }
.calc-section + .calc-section { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--border); }
.step { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.step-title { font-size: 17px; font-weight: 800; margin: 0; letter-spacing: 0; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field .label { font-weight: 700; font-size: 15px; color: var(--text); }
.hint { font-size: 14px; color: var(--text-3); line-height: 1.5; }
.input-row { display: flex; gap: 8px; }
.input, select, textarea {
  font: inherit; font-size: 18px; font-weight: 600; color: var(--text); background: #fff;
  border: 1.5px solid var(--border-strong); border-radius: var(--r); padding: 11px 14px; min-height: 52px; width: 100%;
  font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s;
}
select { font-weight: 600; font-size: 16px; }
textarea { min-height: 92px; font-size: 15px; font-weight: 500; font-family: var(--mono); }
.input::placeholder, textarea::placeholder { color: #72648b; font-weight: 500; }
.input:hover, select:hover, textarea:hover { border-color: var(--brand); }
.input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11,107,107,.18); outline: none; }
.input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); background: var(--err-bg); }
.icon-btn { flex: none; position: relative; width: 52px; min-height: 52px; border: 1.5px solid var(--border-strong); border-radius: var(--r); background: var(--brand-50); color: var(--brand-700); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--brand-100); border-color: var(--brand); }
.icon-btn svg { width: 22px; height: 22px; }
.picker-native { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.field-foot { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.small-btn { font: inherit; font-size: 14px; font-weight: 700; background: none; border: 0; color: var(--brand-600); padding: 2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.small-btn:hover { color: var(--brand-700); }
.weekday-tag { font-size: 14px; font-weight: 600; color: var(--text-2); }

/* Segmented control (styled radios) */
.segmented { display: inline-flex; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 4px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--text-2); cursor: pointer; min-height: 42px; display: inline-flex; align-items: center; gap: 6px; user-select: none; }
.segmented label:hover { color: var(--text); background: rgba(255,255,255,.7); }
.segmented input:checked + label { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* Switches (checkbox role=switch) */
.switch { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; cursor: pointer; font-size: 15.5px; color: var(--text); line-height: 1.45; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: #9f94b3; transition: background .18s; margin-top: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--focus); outline-offset: 2px; }
.switch .sub { display: block; font-size: 14px; color: var(--text-3); }
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 28px; }
.panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; }
.panel-title { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin: 0 0 4px; }

/* Chips (presets) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }
.chip { font: inherit; font-size: 14px; font-weight: 700; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 999px; padding: 7px 14px; cursor: pointer; min-height: 38px; }
.chip:hover { background: var(--brand-100); border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.btn { font: inherit; font-size: 16px; font-weight: 750; border-radius: var(--r); padding: 12px 22px; min-height: 50px; cursor: pointer; border: 1.5px solid transparent; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(180deg, #0d7a79, var(--brand-600)); color: #fff; box-shadow: 0 2px 0 var(--brand-700), var(--shadow-sm); }
.btn-primary:hover { background: linear-gradient(180deg, var(--brand), var(--brand-700)); color: #fff; }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--brand-700); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--text-3); color: var(--text); }
.btn-ghost { background: transparent; color: var(--brand-700); border-color: transparent; padding-left: 10px; padding-right: 10px; }
.btn-ghost:hover { background: var(--brand-50); }
.live-note { font-size: 14px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--work); box-shadow: 0 0 0 3px rgba(16,163,127,.2); }

.form-error { display: none; margin-top: 16px; padding: 12px 16px; border-radius: var(--r); background: var(--err-bg); color: var(--err); font-size: 15px; font-weight: 600; border: 1px solid #f5b5bd; }
.form-error.show { display: block; }

/* ---------- Results ---------- */
.result { display: none; margin-top: 22px; }
.result.show { display: block; animation: rise .28s ease-out; }
.result.stale { opacity: .45; filter: grayscale(.6); transition: opacity .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result-main { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 20px 22px; color: #fff; background: linear-gradient(125deg, var(--hero-1), var(--hero-2) 60%, var(--hero-3)); box-shadow: var(--shadow); outline: none; }
.result-main::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(rgba(255,255,255,.18), transparent 70%); }
.result-label { font-size: 14px; font-weight: 700; letter-spacing: .03em; color: #d7eef1; margin: 0; text-transform: uppercase; }
.result-value { font-size: clamp(34px, 6vw, 54px); font-weight: 850; line-height: 1.05; margin: 6px 0 6px; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.result-sub { margin: 0; font-size: 16px; color: #eaf6f7; }
.result-sub strong { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 14px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.stat.s-work::before { background: var(--work); } .stat.s-weekend::before { background: var(--weekend); } .stat.s-holiday::before { background: var(--holiday); }
.stat b { display: block; font-size: 22px; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--text-2); font-weight: 500; }
.result-note { font-size: 15px; color: var(--text-2); margin: 12px 0 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.result-actions .btn { font-size: 14px; padding: 8px 14px; min-height: 42px; }
.copy-status { font-size: 14px; font-weight: 700; color: var(--ok); }

table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; margin: 10px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
table.data th, table.data td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--text); }
table.data tr:last-child td { border-bottom: 0; }
table.data th { background: var(--surface-2); font-weight: 750; font-size: 14px; }
table.data tbody tr:hover td { background: #f8fbfc; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.badge { display: inline-block; font-size: 12.5px; font-weight: 750; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge-national { background: var(--holiday-bg); color: #8c0f40; }
.badge-optional { background: var(--optional-bg); color: var(--accent-700); }
.badge-state { background: var(--state-bg); color: #3f2287; }
.badge-custom { background: var(--surface-3); color: var(--text); }

.notice { border: 1px solid var(--brand-100); border-left: 5px solid var(--brand); background: var(--brand-50); padding: 12px 16px; border-radius: var(--r); margin: 14px 0; font-size: 15px; color: var(--text); }
.notice-warn { border-color: #f3d39a; border-left-color: var(--accent); background: var(--optional-bg); }
.dev-flag { background: #fff0f0; border: 2px dashed var(--err); color: var(--err); padding: 2px 8px; border-radius: var(--r-sm); font-weight: 700; }

/* ---------- Calendar visual ---------- */
.cal-wrap { margin: 18px 0 6px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; font-weight: 600; color: var(--text); margin: 8px 0 12px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.cal-month { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 10px 12px; }
.cal-month h4 { margin: 0 0 8px; font-size: 15px; font-weight: 800; display: flex; justify-content: space-between; color: var(--text); }
.cal-month h4 small { font-size: 13px; font-weight: 750; color: #046c4e; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-days .wd { font-size: 11.5px; font-weight: 800; color: var(--text-2); padding-bottom: 2px; }
.cal-days .d { font-size: 13px; font-weight: 650; line-height: 30px; height: 30px; border-radius: 6px; color: var(--text); font-variant-numeric: tabular-nums; position: relative; }
.d.out { color: #9f94b3; font-weight: 500; }
.d.work, .cal-legend .work { background: var(--work-bg); color: #064e3b; }
.cal-legend .work { border: 1px solid var(--work); }
.d.weekend, .cal-legend .weekend { background: var(--weekend-bg); color: #3f3355; }
.d.holiday, .cal-legend .holiday { background: var(--holiday); color: #fff; }
.d.wh::after { content: ""; position: absolute; right: 3px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--holiday); }
.cal-legend .wh { background: var(--weekend-bg); position: relative; }
.cal-legend .wh::after { content: ""; position: absolute; right: 2px; top: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--holiday); }
.d.endpoint { box-shadow: inset 0 0 0 2px var(--text); }
.d.today { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }

/* ---------- Countdown ---------- */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; margin: 14px 0; }
.countdown div { background: var(--hero-1); border-radius: var(--r); padding: 14px 4px; color: #fff; box-shadow: var(--shadow-sm); }
.countdown b { display: block; font-size: clamp(26px, 6vw, 42px); font-variant-numeric: tabular-nums; line-height: 1.1; font-weight: 850; }
.countdown span { font-size: 13px; font-weight: 700; color: #cfe7ea; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Home ---------- */
.home-hero { padding-bottom: 36px; }
.home-hero-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 28px; align-items: center; padding-top: 18px; }
@media (max-width: 860px) { .home-hero-grid { grid-template-columns: 1fr; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-light { background: #fff; color: var(--hero-1); }
.btn-light:hover { background: #e9f6f6; color: var(--hero-1); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.today-card { background: #ffffff; color: var(--text); border-radius: var(--r-xl); padding: 18px 18px 14px; box-shadow: var(--shadow-lg); }
.today-card h2 { font-size: 15px; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-700); }
.today-date { font-size: 26px; font-weight: 850; line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.today-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.today-stats div { background: var(--surface-2); border-radius: var(--r); padding: 9px 11px; }
.today-stats b { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.today-stats span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 10px 0 4px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--hero-3), var(--accent)); border-radius: inherit; }
.next-holiday { margin-top: 10px; font-size: 15px; padding: 10px 12px; border-radius: var(--r); background: var(--holiday-bg); color: #6b0a32; font-weight: 600; }
.next-holiday b { color: #6b0a32; }

/* Tool cards */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 34px 0 6px; }
.section-head h2 { margin: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin: 16px 0; }
.tool-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); color: var(--text); }
.tool-card h3 { margin: 0 0 4px; color: var(--text); font-size: 18px; }
.tool-card p { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.5; }
.tool-card .go { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 750; color: var(--brand-600); }
.tile { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.tile svg { width: 26px; height: 26px; }
.t1 { background: linear-gradient(135deg, #0b6b6b, #13a08a); }
.t2 { background: linear-gradient(135deg, #7c2d5b, #c2185b); }
.t3 { background: linear-gradient(135deg, #5b21b6, #8b5cf6); }
.t4 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.t5 { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.t6 { background: linear-gradient(135deg, #065f46, #10b981); }
.t7 { background: linear-gradient(135deg, #190f2a, #534769); }
.tool-card.featured { border-width: 2px; border-color: var(--brand-100); background: linear-gradient(180deg, #fff, var(--brand-50)); }
.related { margin-top: 44px; }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; padding: 0; list-style: none; }
.feature-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; }
.feature-list b { display: block; font-size: 16.5px; margin-bottom: 4px; }
.feature-list span { font-size: 15px; color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); margin: 10px 0; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 750; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 14px; }
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
details.advanced { margin-top: 14px; }
details.advanced summary { cursor: pointer; font-weight: 750; color: var(--brand-700); padding: 6px 0; }

/* ---------- Footer ---------- */
.site-footer { background: #071c24; color: #e6eef0; padding: 40px 0 26px; font-size: 15px; }
.site-footer p { color: #e6eef0; }
.site-footer a { color: #ffffff; text-decoration-color: rgba(255,255,255,.4); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
.site-footer h2 { font-size: 14px; margin: 0 0 10px; color: #8fe3d4; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.footer-bottom { border-top: 1px solid #1d3a44; margin-top: 26px; padding-top: 16px; font-size: 14px; }
.footer-bottom p { color: #cfdde1; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .breadcrumbs, .actions, .result-actions, .related, .faq, .no-print, .skip-link, .calc-section.opts { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .tool-hero, .hero { border-image: none; color: #000; padding: 0; }
  .tool-hero h1, .tool-hero .lead { color: #000; } .trust-row, .hero-icon { display: none; }
  .calc { box-shadow: none; border: 1px solid #999; margin: 8px 0; }
  .result-main { background: #fff; color: #000; border: 2px solid #000; } .result-main * { color: #000 !important; }
  .d.holiday { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (max-width: 560px) {
  .calc { padding: 18px 14px; border-radius: var(--r-lg); margin-top: -70px; }
  .hero-icon { width: 48px; height: 48px; } .hero-icon svg { width: 26px; height: 26px; }
  .segmented { display: flex; } .segmented label { flex: 1; justify-content: center; padding: 9px 10px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .countdown { gap: 6px; }
}
.tool-card:not(:has(.tile)) { display: block; }
.tool-card:not(:has(.tile)) h3 { color: var(--brand-700); }
@media (max-width: 560px) {
  .tool-hero { padding-bottom: 84px; }
  .tool-hero .trust-row { display: none; }
  .tool-hero .lead { font-size: 16px; margin-top: 10px; }
  .hero-title-row { gap: 12px; margin-top: 10px; }
  .eyebrow { font-size: 11.5px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat b { font-size: 19px; }
}

/* ---- Year pages: calendar, holidays, business days (generated by tools/year-pages.ps1) ---- */
.year-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 12px; }
.year-nav { display: flex; gap: 8px 18px; flex-wrap: wrap; font-weight: 700; margin-left: auto; }
.year-nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--r); background: var(--brand-50); color: var(--brand-700); }
.year-nav a:hover { background: var(--surface-3); }
.ycal { margin: 8px 0 28px; }
.ycal .cal-legend i { border: 1px solid var(--border-strong); }
.ycal .cal-legend .lg-hol { background: var(--holiday); border-color: var(--holiday); }
.ycal .cal-legend .lg-opt { background: var(--optional-bg); border-color: var(--optional); }
.ycal .cal-legend .lg-we { background: var(--weekend-bg); }
.ycal .cal-legend .lg-wk { background: var(--surface-2); }
.ycal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 14px; }
.ycal-month { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 12px 10px; break-inside: avoid; }
.ycal-month h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--text); }
.ycal-month h3 small { font-size: 12.5px; font-weight: 750; color: #046c4e; white-space: nowrap; }
table.mcal { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; font-variant-numeric: tabular-nums; }
table.mcal th { font-size: 11.5px; font-weight: 800; color: var(--text-2); padding: 2px 0; text-align: center; }
table.mcal abbr { text-decoration: none; }
table.mcal td { text-align: center; font-size: 13.5px; font-weight: 650; height: 30px; border-radius: 6px; color: var(--text); }
table.mcal td.wk, table.mcal th.wk { font-size: 11px; font-weight: 750; color: var(--text-3); background: var(--surface-2); width: 13%; }
table.mcal td.we { background: var(--weekend-bg); color: #3f3355; }
table.mcal td.opt { background: var(--optional-bg); color: #7a3a04; box-shadow: inset 0 0 0 1.5px var(--optional); }
table.mcal td.hol { background: var(--holiday); color: #fff; font-weight: 800; }
table.mcal td.today { outline: 2.5px solid var(--text); outline-offset: -2.5px; }
.ycal-list { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--border); font-size: 13.5px; }
.ycal-list li { padding: 2px 0; color: var(--text); }
.ycal-list li b { display: inline-block; min-width: 24px; padding: 0 5px; margin-right: 6px; border-radius: 5px; text-align: center; font-size: 12.5px; }
.ycal-list li.n b { background: var(--holiday); color: #fff; }
.ycal-list li.o b { background: var(--optional-bg); color: #7a3a04; }
td.lw-long { font-weight: 700; color: #046c4e; }
td.lw-bridge { color: #7a3a04; font-weight: 600; }
td.lw-weekend, td.lw-mid { color: var(--text-2); }
table.data.num td, table.data.num tfoot th { font-variant-numeric: tabular-nums; }
table.data tfoot th, table.data tfoot td { background: var(--surface-2); font-weight: 800; border-top: 2px solid var(--border-strong); }
/* Ad slots — only rendered when ads.enabled = true; fixed height prevents layout shift (CLS). */
.ad-slot { display: flex; align-items: center; justify-content: center; min-height: 280px; margin: 24px 0; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--r); }
.ad-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
@media (max-width: 560px) { .ycal-grid { grid-template-columns: 1fr; } .year-nav { margin-left: 0; } }
@media print {
  body:has(.ycal) :is(.site-header, .site-footer, .breadcrumbs, .year-actions, .related, .prose, .skip-link, .ad-slot) { display: none !important; }
  .ycal-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ycal-month { padding: 4px 6px; border-color: #999; }
  .ycal-month h3 { font-size: 11pt; margin-bottom: 2px; } .ycal-month h3 small { color: #000; }
  table.mcal td { height: auto; font-size: 8.5pt; padding: 1px 0; } table.mcal th { font-size: 7.5pt; }
  table.mcal td.hol, table.mcal td.we, table.mcal td.opt, .ycal-list b, .ycal .cal-legend i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ycal-list { font-size: 7.5pt; } .calc.year-tools .stats { display: none; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* =====================================================================
   v3 theme — light blue, based on the owner's reference mockup
   ===================================================================== */
h1, h2, h3 { letter-spacing: -.02em; }
.input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(109,40,217,.18); }
.btn { border-radius: 12px; }
.btn-primary { background: var(--brand); box-shadow: 0 6px 16px rgba(109,40,217,.28); }
.btn-primary:hover { background: var(--brand-600); }
.btn-primary:active { box-shadow: 0 2px 6px rgba(109,40,217,.3); }
.btn-outline { background: #fff; color: var(--brand); border: 2px solid var(--brand); border-radius: 999px; padding: 9px 22px; min-height: 46px; }
.btn-outline:hover { background: var(--brand-50); color: var(--brand-700); }

/* ---- Header ---- */
.site-header { background: #fff; border-bottom: 1px solid #eae3f5; backdrop-filter: none; }
.header-inner { min-height: 78px; gap: 20px; }
.brand { gap: 12px; }
.brand-mark { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 19px; font-weight: 850; color: var(--text); letter-spacing: -.02em; line-height: 1.15; }
.brand-tag { font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: 0; margin-top: 2px; }
.header-panel { display: flex; align-items: center; justify-content: flex-end; gap: 22px; flex: 1; }
.primary-nav > ul { gap: 4px; flex-wrap: nowrap; align-items: center; }
.primary-nav a, .sub-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 10px; color: var(--text); font: inherit; font-size: 15.5px; font-weight: 650; text-decoration: none; background: none; border: 0; cursor: pointer; position: relative; white-space: nowrap; }
.primary-nav a:hover, .sub-toggle:hover { background: var(--brand-50); color: var(--brand-700); }
.primary-nav > ul > li > a[aria-current="page"], .has-sub.is-current > .sub-toggle { color: var(--brand); background: var(--brand-50); }
.primary-nav > ul > li > a[aria-current="page"]::after, .has-sub.is-current > .sub-toggle::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 3px; border-radius: 3px; background: var(--brand); }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .15s; }
.has-sub { position: relative; }
.has-sub.open > .sub-toggle svg { transform: rotate(180deg); }
.primary-nav ul.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; flex-direction: column; gap: 2px; padding: 8px; margin-top: 6px; background: #fff; border: 1px solid #e4dbf3; border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 130; }
.primary-nav ul.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub.open > ul.sub { display: flex; }
@media (hover: hover) and (min-width: 1101px) { .has-sub:hover > ul.sub { display: flex; } }
.primary-nav .sub a { display: flex; width: 100%; padding: 10px 12px; font-weight: 600; }
.primary-nav .sub a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.site-search { position: relative; width: 240px; flex: none; margin: 0; }
.site-search input { width: 100%; min-height: 46px; border-radius: 999px; border: 1px solid #e0d9ee; background: #f7f3ff; padding: 0 46px 0 18px; font: inherit; font-size: 15px; font-weight: 500; color: var(--text); }
.site-search input::placeholder { color: #5b4a78; }
.site-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109,40,217,.15); background: #fff; }
.site-search button { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.site-search button:hover { background: var(--brand-50); color: var(--brand); }
.site-search button svg { width: 20px; height: 20px; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid #e4dbf3; border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 140; min-width: 280px; }
.search-results[hidden] { display: none; }
.search-results a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--text); font-weight: 650; font-size: 15px; line-height: 1.35; }
.search-results a span { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results a:hover, .search-results a.active { background: var(--brand-50); color: var(--brand-700); }
.search-results .none { padding: 9px 12px; font-size: 14px; color: var(--text-2); }
@media (min-width: 1101px) { .search-results { left: auto; width: 340px; } }
@media (max-width: 1100px) {
  .header-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px 18px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); max-height: calc(100vh - 78px); overflow-y: auto; }
  .header-panel.open { display: flex; }
  .primary-nav { display: block; position: static; box-shadow: none; border: 0; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; padding: 0; }
  .primary-nav a, .sub-toggle { width: 100%; padding: 12px 14px; font-size: 17px; }
  .primary-nav > ul > li > a[aria-current="page"]::after, .has-sub.is-current > .sub-toggle::after { display: none; }
  .sub-toggle { justify-content: space-between; }
  .primary-nav ul.sub { position: static; display: flex; box-shadow: none; border: 0; border-left: 3px solid var(--brand-100); border-radius: 0; margin: 0 0 6px 14px; padding: 0 0 0 8px; min-width: 0; }
  .sub-toggle svg { display: none; }
  .site-search { width: 100%; order: -1; }
}
@media (max-width: 420px) { .brand-tag { display: none; } .brand-name { font-size: 16.5px; } .brand-mark { width: 40px; height: 40px; } }

/* ---- Hero bands: light ---- */
.hero, .tool-hero { color: var(--text); border-image: linear-gradient(180deg, #ede9fe 0%, #f4edff 60%, var(--bg) 100%) fill 0 / / 0 100vw; }
.hero::after, .tool-hero::after { opacity: .55; background-image: radial-gradient(rgba(109,40,217,.22) 1px, transparent 1.5px); background-size: 24px 24px; }
.hero h1, .tool-hero h1 { color: var(--text); }
.hero .lead, .tool-hero .lead { color: var(--text-2); }
.tool-hero .breadcrumbs, .tool-hero .breadcrumbs a { color: var(--text-2); }
.tool-hero .breadcrumbs li + li::before { color: var(--text-3); }
.tool-hero .breadcrumbs a:hover { color: var(--brand); }
.hero-icon { background: #fff; border: 1px solid #dac9f8; color: var(--brand); box-shadow: 0 6px 18px rgba(109,40,217,.14); }
.eyebrow { color: var(--brand-700); background: #ede9fe; border: 1px solid #d5bffb; }
.trust-row li { color: var(--text); background: rgba(255,255,255,.9); border: 1px solid #e0d9ee; }
.trust-row svg { color: var(--brand); }

/* ---- Calculator card + result ---- */
.calc { border-color: #e2dbf0; border-radius: 20px; box-shadow: 0 10px 30px rgba(109,40,217,.10), 0 2px 6px rgba(31,18,53,.05); }
.result-main { color: var(--text); background: linear-gradient(180deg, #f5f3ff, #ebe4ff); border: 1px solid #d9cdfb; box-shadow: none; }
.result-main::after { background: radial-gradient(rgba(109,40,217,.12), transparent 70%); }
.result-label { color: var(--brand-700); }
.result-value { color: var(--text); }
.result-sub { color: var(--text-2); }
.result-sub strong { color: var(--text); }
.countdown div { background: var(--text); }
.countdown span { color: #ddd3f7; }
table.data tbody tr:hover td { background: #f9f6ff; }
.faq details[open] { border-color: #d5bffb; }

/* ---- Home ---- */
.home-hero { padding: 34px 0 54px; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 420px) minmax(0, 260px); gap: 30px; align-items: center; padding-top: 0; }
.home-hero h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.035em; font-weight: 850; }
.home-hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); margin-top: 16px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 550; color: var(--text); }
.check-list svg { flex: none; width: 26px; height: 26px; }
.quick-calc { background: #fff; border-radius: 20px; box-shadow: 0 18px 44px rgba(109,40,217,.18), 0 2px 6px rgba(31,18,53,.06); overflow: hidden; border: 1px solid #e2dbf0; position: relative; z-index: 2; }
.qc-head { display: flex; align-items: center; gap: 12px; background: var(--brand); color: #fff; padding: 16px 22px; }
.qc-head svg { width: 30px; height: 30px; flex: none; }
.qc-head h2 { margin: 0; font-size: 21px; color: #fff; letter-spacing: -.01em; }
.qc-body { padding: 18px 22px 20px; }
.qc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qc-fields label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.qc-input { position: relative; }
.qc-input svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--brand); pointer-events: none; }
.qc-input .input { padding-left: 40px; font-size: 16.5px; min-height: 50px; }
.qc-check { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: 15px; font-weight: 550; color: var(--text); cursor: pointer; }
.qc-check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.quick-calc .btn-primary { width: 100%; justify-content: center; font-size: 17px; }
.qc-result { margin-top: 14px; padding: 14px; border-radius: 14px; background: linear-gradient(180deg, #f5f3ff, #ebe4ff); border: 1px solid #d9cdfb; text-align: center; min-height: 92px; }
.qc-result b { display: block; font-size: 34px; line-height: 1.15; font-weight: 850; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.qc-result span { font-size: 16px; color: var(--text-2); font-weight: 550; }
.qc-result.err b { font-size: 17px; line-height: 1.4; color: var(--err); }
.qc-more { display: block; text-align: center; margin-top: 10px; font-size: 14.5px; font-weight: 700; }
.hero-art { display: block; width: 100%; height: auto; }
@media (max-width: 1100px) { .home-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); } .hero-art-wrap { display: none; } }
@media (max-width: 820px) { .home-hero-grid { grid-template-columns: 1fr; gap: 24px; } .home-hero { padding-top: 22px; } }
@media (max-width: 420px) { .qc-fields { grid-template-columns: 1fr; } .check-list li { font-size: 16.5px; } }

.section-title { display: flex; align-items: center; gap: 22px; margin: 34px 0 20px; }
.section-title::before, .section-title::after { content: ""; flex: 1; height: 1px; background: #ddd5ee; }
.section-title h2 { margin: 0; text-align: center; font-size: clamp(24px, 2.6vw, 30px); }
.pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.pop-card { display: flex; align-items: center; gap: 18px; padding: 18px 22px; min-height: 92px; background: linear-gradient(180deg, #ffffff, #f8f6fd); border: 1px solid #e2dbf0; border-radius: 16px; text-decoration: none; color: var(--text); box-shadow: 0 2px 8px rgba(31,18,53,.04); transition: transform .15s, box-shadow .15s, border-color .15s; }
.pop-card:hover { transform: translateY(-2px); border-color: #b9a2f2; box-shadow: 0 10px 24px rgba(109,40,217,.12); color: var(--text); }
.pop-ic { flex: none; width: 52px; height: 52px; display: grid; place-items: center; color: var(--brand); }
.pop-ic svg { width: 42px; height: 42px; }
.pop-card b { flex: 1; font-size: 18.5px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.pop-card small { display: block; font-size: 14px; font-weight: 500; color: var(--text-2); margin-top: 3px; letter-spacing: 0; line-height: 1.4; }
.pop-card .chev { flex: none; width: 22px; height: 22px; color: var(--brand); }

.today-strip { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; background: #fff; border: 1px solid #e2dbf0; border-radius: 18px; padding: 16px; box-shadow: 0 2px 8px rgba(31,18,53,.04); }
.today-strip .ts-date { padding: 4px 8px; align-self: center; }
.today-strip h2 { font-size: 13px; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-700); }
.today-strip .today-date { font-size: 21px; margin: 0; }
.today-strip .ts-stat { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.today-strip .ts-stat b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.today-strip .ts-stat span { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.today-strip .ts-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.today-strip .progress { flex: 1 1 220px; margin: 0; }
.today-strip .ts-foot .hint { margin: 0; }
.today-strip .next-holiday { margin: 0; flex: 1 1 100%; background: #fdeaf1; }
@media (max-width: 900px) { .today-strip { grid-template-columns: 1fr 1fr; } .today-strip .ts-date { grid-column: 1 / -1; } }

.home-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; margin-top: 26px; }
.howto-card { display: flex; align-items: center; gap: 18px; padding: 26px 28px; border-radius: 18px; background: linear-gradient(135deg, #ede9fe, #f7f2ff); border: 1px solid #e2dbf0; }
.howto-card h2 { margin: 0 0 8px; font-size: 22px; }
.howto-card p { margin: 0 0 16px; font-size: 16px; color: var(--text-2); }
.howto-card .mini-art { flex: none; width: 128px; height: auto; }
.info-card { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid #e2dbf0; border-radius: 18px; padding: 24px 0; }
.info-card > div { padding: 0 26px; }
.info-card > div + div { border-left: 1px solid #e2dbf0; }
.info-card h2 { font-size: 20px; margin: 0 0 12px; }
.tick-list, .res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tick-list li, .res-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; color: var(--text); }
.tick-list svg, .res-list svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.tick-list svg { color: #15803d; }
.res-list svg { color: var(--brand); }
.res-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.res-list a:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 960px) { .home-bottom { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .info-card { grid-template-columns: 1fr; gap: 20px; } .info-card > div + div { border-left: 0; border-top: 1px solid #e2dbf0; padding-top: 20px; } .howto-card .mini-art { display: none; } }

/* ---- Footer: navy ---- */
.site-footer { background: #1f1235; color: #efe8fc; }
.site-footer h2 { color: #c4b5fd; }
.site-footer p { color: #efe8fc; }
.footer-bottom { border-top-color: #38225e; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; }
.footer-bottom p { color: #dfd3f3; margin: 0; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; text-decoration: none; }
.site-footer a.footer-brand { text-decoration: none; }
.footer-brand svg { width: 34px; height: 34px; }
.footer-note { flex: 1 1 100%; }

/* =====================================================================
   Clock tools: clock, alarm, timer, stopwatch
   ===================================================================== */
.clock-app { --disp: #1f1235; position: relative; z-index: 2; display: grid; grid-template-columns: 112px minmax(0, 1fr); margin: -64px 0 28px; background: #fff; border: 1px solid #e2dbf0; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(109,40,217,.10), 0 2px 6px rgba(31,18,53,.05); }
.clock-nav { background: #1f1235; display: flex; flex-direction: column; }
.clock-nav a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 6px; color: #efe8fc; text-decoration: none; font-size: 14px; font-weight: 650; text-align: center; border-bottom: 1px solid #321c57; }
.clock-nav a:hover { background: #2e145c; color: #fff; }
.clock-nav a[aria-current="page"] { background: #6d28d9; color: #fff; }
.clock-nav svg { width: 30px; height: 30px; }
.clock-main { padding: 18px 26px 26px; min-width: 0; background: #fff; }
.clock-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; position: relative; min-height: 40px; }
.tb-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 650; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px; cursor: pointer; list-style: none; min-height: 38px; }
.tb-btn::-webkit-details-marker { display: none; }
.tb-btn:hover { background: var(--brand-50); border-color: #b9a2f2; }
.tb-btn svg { width: 18px; height: 18px; }
.tb-btn[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.tb-settings { position: relative; }
.tb-settings[open] > summary { background: var(--brand-50); border-color: var(--brand); }
.tb-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, 86vw); background: #fff; border: 1px solid #e2dbf0; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 16px; z-index: 50; }
.tb-panel .switch { padding: 6px 0; }
.set-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; }
.set-label { font-weight: 700; font-size: 15px; min-width: 64px; }
.set-row select { min-height: 42px; font-size: 15px; flex: 1; padding: 6px 10px; }
.set-row input[type="range"] { flex: 1; accent-color: var(--brand); min-width: 120px; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; padding: 0; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--brand); }
.btn-sm { min-height: 40px; padding: 7px 14px; font-size: 14px; }

/* Big display */
.clock-display { display: flex; align-items: flex-end; justify-content: center; gap: 10px; color: var(--disp); min-height: 1em; }
.clock-display .seg { height: clamp(70px, 12vw, 150px); width: auto; max-width: 100%; display: block; }
.clock-display .seg .on { fill: var(--disp); }
.clock-display .seg .off { fill: var(--disp); opacity: .06; }
.plain-digits { font-size: clamp(56px, 10vw, 128px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--disp); }
.disp-suffix { font-size: clamp(18px, 2.4vw, 28px); font-weight: 800; color: var(--disp); margin-bottom: .4em; }
.disp-big { margin: 14px 0 6px; }
.disp-date { text-align: center; font-size: clamp(17px, 2vw, 22px); font-weight: 650; color: var(--text); margin: 6px 0 0; }
.disp-note { text-align: center; font-size: 15px; color: var(--text-2); margin: 4px 0 0; }
.disp-dark .clock-main { background: #1f1235; }
.disp-dark .clock-main .disp-date, .disp-dark .clock-main .disp-note, .disp-dark .clock-main .disp-note b { color: #efe8fc; }
.disp-dark .clock-main .clock-display .seg .off { opacity: .1; }
.disp-dark .clock-main .tool-panel { background: #fff; }
.clock-main:fullscreen { display: flex; flex-direction: column; justify-content: center; padding: 4vh 4vw; overflow: auto; }
.clock-main:fullscreen .clock-display .seg { height: 32vh; }
.clock-main:fullscreen .plain-digits { font-size: 26vh; }
.clock-main:fullscreen .tool-panel, .clock-main:fullscreen .hide-fs { display: none; }
.clock-main:fullscreen .disp-date { font-size: 4vh; }

/* Panels inside the clock tool */
.tool-panel { margin-top: 22px; border-top: 1px solid #eae3f5; padding-top: 18px; }
.tool-panel h2 { font-size: 18px; margin: 0 0 10px; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 26px; }
.time-pick { display: flex; align-items: center; gap: 8px; }
.time-pick select { width: auto; min-width: 86px; font-size: 26px; font-weight: 800; padding: 6px 10px; text-align: center; }
.time-pick .colon { font-size: 28px; font-weight: 800; }
.chips.wrap { margin-top: 10px; }
.sub-label { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 12px 0 2px; }
.status-line { font-size: 15px; font-weight: 600; color: var(--ok); min-height: 1.4em; margin: 10px 0 0; }
.link-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; }
.link-box code { background: var(--surface-2); padding: 6px 10px; border-radius: 8px; word-break: break-all; font-size: 13.5px; }
.icon-sm { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1; }
.icon-sm:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.icon-sm.danger:hover { border-color: var(--err); color: var(--err); }
.icon-sm:disabled { opacity: .35; cursor: default; }

/* Alarm list */
.al-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.al-list .empty { color: var(--text-2); font-size: 15px; padding: 10px 0; }
.al-item { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: #fbf8ff; }
.al-item.off { background: #fff; }
.al-item.off .al-time { color: var(--text-3); }
.al-time { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 92px; color: var(--text); }
.al-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.al-info span { font-size: 14px; color: var(--text-2); }
.al-item .switch { padding: 0; }

/* Timer cards */
.tm-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 8px; }
.tm-card { border: 1.5px solid var(--border); border-radius: 16px; padding: 14px 16px 16px; background: #fff; }
.tm-card.sel { border-color: #b9a2f2; box-shadow: 0 0 0 3px rgba(109,40,217,.10); }
.tm-card.running { background: #fbf8ff; }
.tm-card.done { border-color: var(--err); background: #fff6f7; }
.tm-head { display: flex; gap: 8px; align-items: center; }
.tm-label { flex: 1; font: inherit; font-weight: 750; font-size: 16px; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; color: var(--text); background: transparent; min-width: 0; }
.tm-label:hover, .tm-label:focus { border-color: var(--border); background: #fff; outline: none; }
.tm-disp { margin: 10px 0 8px; }
.tm-disp .seg { height: clamp(60px, 8vw, 96px); }
.tm-disp .plain-digits { font-size: clamp(48px, 6vw, 80px); }
.tm-list:has(.tm-card:only-child) .tm-disp .seg { height: clamp(70px, 12vw, 150px); }
.tm-progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.tm-progress i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .25s linear; }
.tm-set { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tm-set label { font-size: 13px; font-weight: 700; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.tm-set .input { font-size: 18px; min-height: 46px; padding: 8px 10px; text-align: center; }
.tm-set .input:disabled { background: var(--surface-2); color: var(--text-2); }
.tm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.tm-actions .btn { min-height: 46px; padding: 10px 20px; }
.tm-note { font-size: 14px; font-weight: 600; color: var(--text-2); }
.tm-card.done .tm-note { color: var(--err); }
.tm-add-row { display: flex; justify-content: center; margin-top: 16px; }

/* Stopwatch */
.sw-days { text-align: center; font-weight: 800; color: var(--disp); min-height: 1.4em; margin: 0; }
.sw-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.sw-actions .btn { min-width: 130px; justify-content: center; min-height: 54px; font-size: 18px; }
.btn-stop { background: #b91c1c; box-shadow: 0 6px 16px rgba(185,28,28,.25); }
.btn-stop:hover { background: #991b1b; }
.sw-opts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; margin-top: 12px; font-size: 14.5px; color: var(--text-2); }
.sw-opts select { width: auto; min-height: 38px; font-size: 14.5px; padding: 4px 8px; }
kbd { font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--text); }
#sw-laps-wrap table.data td, #sw-laps-wrap table.data th { font-variant-numeric: tabular-nums; }
tr.best th, tr.best td { background: #ecfdf3; }
tr.worst th, tr.worst td { background: #fff1f2; }
.tag { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 6px; background: #fff; border: 1px solid var(--border); color: var(--text); }

/* Clock page: Brazil zones + world clock */
.brz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.brz { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; background: #fbf8ff; }
.brz b { font-size: 15.5px; }
.brz-time { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.brz-off { font-size: 12.5px; font-weight: 800; color: var(--brand-700); }
.brz small { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.world-add { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.world-add select { flex: 1 1 220px; width: auto; font-size: 16px; min-height: 46px; }
.world-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.world-list li[data-tz] { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; }
.wc-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wc-sub { font-size: 13.5px; color: var(--text-2); }
.wc-time { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wc-act { display: flex; gap: 4px; }
.clock-check { font-size: 15px; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ok-dot, .warn-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #15803d; margin-right: 6px; }
.warn-dot { background: #d97706; }
.zone-pick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 4px; }
.zone-pick select { width: auto; font-size: 15px; min-height: 40px; padding: 4px 10px; }

/* Alert dialog */
dialog.clock-alert { border: 0; border-radius: 22px; padding: 28px 26px 24px; width: min(420px, 92vw); text-align: center; box-shadow: 0 30px 80px rgba(31,18,53,.35); color: var(--text); }
dialog.clock-alert::backdrop { background: rgba(31,18,53,.55); }
.ca-icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; animation: ring .6s ease-in-out infinite alternate; }
.ca-icon svg { width: 36px; height: 36px; }
@keyframes ring { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
dialog.clock-alert h2 { margin: 0 0 6px; font-size: 24px; }
.ca-msg { margin: 0 0 18px; color: var(--text-2); }
.ca-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

@media (max-width: 760px) {
  .clock-app { grid-template-columns: 1fr; margin-top: -70px; }
  .clock-nav { flex-direction: row; }
  .clock-nav a { flex: 1; padding: 10px 2px; font-size: 12.5px; border-bottom: 0; border-right: 1px solid #321c57; }
  .clock-nav svg { width: 24px; height: 24px; }
  .clock-main { padding: 14px 14px 20px; }
  .tb-btn span { display: none; }
  .al-time { font-size: 22px; min-width: 76px; }
  .time-pick select { font-size: 22px; min-width: 76px; }
}

.pop-grid.pop-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* Dark display: panels become white cards, labels on the dark area turn light */
.disp-dark .clock-main .tool-panel { background: #fff; border-radius: 16px; padding: 16px 18px; border-top: 0; margin-top: 18px; }
.disp-dark .clock-main .zone-pick, .disp-dark .clock-main .zone-pick .hint, .disp-dark .clock-main .sw-opts, .disp-dark .clock-main > div:not(.tool-panel) .sub-label { color: #efe8fc; }
.disp-dark .clock-main .tm-card { border-color: #442a70; }

/* =====================================================================
   Compact tool heroes: the tool starts high on the screen
   ===================================================================== */
.tool-hero { padding: 10px 0 76px; }
.tool-hero .eyebrow { display: none; }
.tool-hero .hero-title-row { margin-top: 10px; gap: 14px; }
.tool-hero .hero-title-row h1 { margin-top: 0 !important; }
.tool-hero h1 { font-size: clamp(26px, 3.2vw, 36px); }
.tool-hero .hero-icon { width: 50px; height: 50px; border-radius: 14px; }
.tool-hero .hero-icon svg { width: 26px; height: 26px; }
.tool-hero .lead { font-size: 17px; margin-top: 8px; max-width: 820px; }
.tool-hero .trust-row { margin-top: 10px; }
.calc, .clock-app { margin-top: -62px; }
@media (max-width: 560px) {
  .tool-hero { padding: 6px 0 58px; }
  .tool-hero .breadcrumbs { font-size: 13px; }
  .tool-hero .hero-icon { display: none; }
  .tool-hero .hero-title-row { margin-top: 6px; }
  .tool-hero h1 { font-size: 24px; line-height: 1.15; }
  /* Keep the intro sentence in the page but show it in two lines at most */
  .tool-hero .lead { font-size: 14.5px; line-height: 1.45; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .calc, .clock-app { margin-top: -48px; }
}

/* Clock tools on phones: tighter panel */
@media (max-width: 760px) {
  .clock-main { padding: 8px 12px 18px; }
  .clock-toolbar { min-height: 0; gap: 4px; }
  .tb-btn { min-height: 34px; padding: 5px 9px; }
  .tb-btn svg { width: 17px; height: 17px; }
  .zone-pick { flex-wrap: nowrap; margin-top: 2px; }
  .zone-pick label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .zone-pick select { min-height: 36px; font-size: 14px; padding: 2px 8px; max-width: 72%; }
  .disp-big { margin: 6px 0 2px; }
  .disp-date { font-size: 16px; margin-top: 2px; }
  .disp-note { font-size: 13.5px; }
  .clock-nav a { padding: 8px 2px; gap: 3px; }
}

/* Stopwatch buttons: one row on phones; keyboard hint only where there is a keyboard */
@media (max-width: 560px) {
  .sw-actions { flex-wrap: nowrap; gap: 8px; margin-top: 12px; }
  .sw-actions .btn { min-width: 0; flex: 1 1 0; padding: 10px 6px; font-size: 17px; min-height: 52px; }
}
@media (hover: none), (max-width: 560px) { .sw-keys { display: none; } }

/* =====================================================================
   v0.5 Countdowns (faltamquantosdias.com): home cards, /para/ pages, hub
   ===================================================================== */
.section-title .section-more { flex: none; font-size: 15px; font-weight: 700; white-space: nowrap; order: 3; }
.section-title:has(.section-more)::after { flex: 1; }
.qc-chips { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.qc-chips .chip { min-height: 36px; padding: 6px 14px; font-size: 14.5px; }
.qc-cd { min-height: 84px; }
.qc-clock { margin: 12px 0 4px; gap: 8px; }
.qc-clock div { padding: 10px 2px; }
.qc-clock b { font-size: clamp(22px, 2.6vw, 30px); }
.qc-clock span { font-size: 11.5px; }
.qc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.qc-foot .hint { font-size: 14px; }

.cd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.cd-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: linear-gradient(180deg, #ffffff, #f8f6fd); border: 1px solid #e2dbf0; border-radius: 16px; text-decoration: none; color: var(--text); box-shadow: 0 2px 8px rgba(31,18,53,.04); transition: transform .15s, box-shadow .15s, border-color .15s; }
.cd-card:hover { transform: translateY(-2px); border-color: #b9a2f2; box-shadow: 0 10px 24px rgba(109,40,217,.12); color: var(--text); }
.cd-card-name { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.cd-card-n { font-size: 15px; font-weight: 650; color: var(--text-2); }
.cd-card-n b { font-size: 30px; font-weight: 850; color: var(--brand); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cd-card-date { font-size: 14px; color: var(--text-2); }
.cd-card[data-cd-status="today"] .cd-card-n b { color: var(--ok); }
.cd-card-all { justify-content: center; background: var(--brand); border-color: var(--brand); color: #fff; }
.cd-card-all:hover { color: #fff; background: #5b21b6; }
.cd-card-all .cd-card-n, .cd-card-all .cd-card-date { color: #ede9fe; }

.cd-hero .lead.cd-answer { font-size: 19px; }
.cd-hero .lead.cd-answer b { color: var(--brand); }
.cd-app { display: grid; gap: 18px; }
.cd-main { text-align: center; }
.cd-kicker { margin: 0; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.cd-big { margin: 2px 0 0; font-size: 22px; font-weight: 700; color: var(--text-2); }
.cd-big b { font-size: clamp(56px, 9vw, 88px); line-height: 1; font-weight: 900; color: var(--brand); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cd-target { margin: 6px 0 0; font-size: 17px; font-weight: 600; }
.cd-today { margin: 10px auto 0; padding: 10px 16px; max-width: 520px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-weight: 800; font-size: 18px; }
.cd-clock { max-width: 560px; margin: 16px auto 4px; }
.cd-app .stats { margin: 0; }
.cd-note { margin: 0; text-align: center; }
.cd-note .small-btn { margin-left: 6px; }
.cd-two { grid-template-columns: 1fr 1fr; }
.cd-two .cd-main { padding: 6px; }
.cd-two .cd-progress, .cd-two .stats, .cd-two .cd-note { grid-column: 1 / -1; }
.cd-progress p { margin: 4px 0 0; text-align: center; font-size: 15.5px; }
.cd-progress .progress { height: 12px; }
.cd-tbc .cd-big b { color: var(--text); }
.cd-alt { border-top: 1px solid var(--border); padding-top: 16px; text-align: center; }
.cd-alt p { margin: 0 0 10px; }
.cd-inmonth { display: block; margin-top: 6px; font-size: 16px; color: var(--text-2); }
.cd-year-calc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: #faf8fe; }
.cd-year-calc label { font-weight: 700; }
.cd-year-calc .input { width: 110px; min-height: 44px; }
.cd-year-calc output { font-size: 16px; }
.cd-hub h2.step-title { margin: 22px 0 10px; }
.cd-hub h2.step-title:first-child { margin-top: 0; }
.cd-table td:last-child, .cd-table th:last-child { text-align: right; }
.cd-table td:last-child b { font-size: 18px; color: var(--brand); font-variant-numeric: tabular-nums; }
.cd-month { max-width: 420px; }
.footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cd-two { grid-template-columns: 1fr; }
  .cd-hero .lead.cd-answer { font-size: 17px; -webkit-line-clamp: unset; line-clamp: unset; display: block; overflow: visible; }
  .cd-big b { font-size: 60px; }
  .section-title .section-more { display: none; }
}
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.label-like { margin: 0 0 6px; font-weight: 700; font-size: 15px; }
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.vs-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: #faf8fe; text-align: center; }
.vs-card b { display: block; font-size: 32px; font-weight: 850; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.vs-card span { display: block; font-weight: 700; margin-top: 4px; }
.vs-card small { display: block; color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.vs-card.vs-biz { background: var(--work-bg); border-color: #a7e3cf; }
.vs-card.vs-biz b { color: var(--ok); }
@media (max-width: 480px) { .vs-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Calendar date picker (datepicker.js): tap to pick, no typing
   ===================================================================== */
.picker-native { display: none !important; }
.input.dp-input, input.dp-input { cursor: pointer; background-color: #fff; caret-color: transparent; }
.input.dp-input:read-only { background-color: #fff; }
.dp-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.dp-input::placeholder { color: var(--text-3); opacity: 1; }
.icon-btn { cursor: pointer; }
.dp { position: absolute; z-index: 1000; width: 340px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 48px rgba(31,18,53,.22), 0 2px 8px rgba(31,18,53,.08); padding: 12px 14px 12px; font-family: var(--font); color: var(--text); }
.dp[hidden], .dp-backdrop[hidden] { display: none; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.dp-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--text-2); }
.dp-x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); font-size: 24px; line-height: 1; cursor: pointer; }
.dp-x:hover { background: var(--brand-100); }
.dp-nav { display: grid; grid-template-columns: 40px 1fr 92px 40px; gap: 6px; align-items: center; margin-bottom: 8px; }
.dp-arrow { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--brand); cursor: pointer; display: grid; place-items: center; }
.dp-arrow svg { width: 20px; height: 20px; }
.dp-arrow:hover { background: var(--brand-50); border-color: var(--brand); }
.dp-sel { height: 40px; border: 1px solid var(--border); border-radius: 10px; padding: 0 8px; font: 700 15.5px var(--font); color: var(--text); background: #fff; cursor: pointer; min-width: 0; }
.dp-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dp-grid th { font-size: 12.5px; font-weight: 800; color: var(--text-3); text-transform: uppercase; padding: 4px 0 6px; letter-spacing: .03em; }
.dp-grid th .dp-wd-rest { display: none; }
.dp-grid td { padding: 2px; text-align: center; }
.dp-day { position: relative; width: 100%; aspect-ratio: 1 / 1; min-height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: 650 16px var(--font); cursor: pointer; font-variant-numeric: tabular-nums; }
.dp-day:hover { background: var(--brand-50); color: var(--brand-700); }
.dp-day:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.dp-day.dp-we { color: var(--text-3); }
.dp-day.dp-is-today { box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand-700); font-weight: 800; }
.dp-day.dp-sel-day, .dp-day.dp-sel-day:hover { background: var(--brand); color: #fff; box-shadow: none; }
.dp-day.dp-hol::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--holiday); }
.dp-day.dp-sel-day.dp-hol::after { background: #fff; }
.dp-day:disabled { color: #c9c2d6; cursor: not-allowed; background: transparent; }
.dp-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.dp-btn { min-height: 38px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font: 700 14.5px var(--font); color: var(--brand-700); cursor: pointer; }
.dp-btn:hover { background: var(--brand-50); border-color: var(--brand); }
.dp-today { background: var(--brand-50); }
.dp-legend { margin-left: auto; font-size: 12.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.dp-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--holiday); }
.dp-legend[hidden] { display: none; }
.dp-backdrop { position: fixed; inset: 0; z-index: 999; background: rgba(31,18,53,.42); }
.dp.dp-sheet { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-width: none; border-radius: 22px 22px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(31,18,53,.25); }
.dp.dp-sheet .dp-day { min-height: 46px; font-size: 17px; }
.dp.dp-sheet .dp-nav { grid-template-columns: 46px 1fr 100px 46px; }
.dp.dp-sheet .dp-arrow { width: 46px; height: 46px; }
.dp.dp-sheet .dp-sel { height: 46px; font-size: 16px; }
.dp.dp-sheet .dp-btn { min-height: 44px; }
@media (min-width: 561px) { .dp-grid th .dp-wd-rest { display: inline; text-transform: none; } .dp-grid th { text-transform: none; } }
/* Custom holidays: add dates from the calendar */
.dp-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; position: relative; }
.dp-add .dp-add-name { flex: 1 1 200px; min-height: 44px; font-size: 15px; }
.dp-add-rep { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.dp-add-rep input { width: 18px; height: 18px; accent-color: var(--brand); }
.dp-add-btn { flex: 1 1 100%; justify-content: center; min-height: 44px; }
.dp-add-btn svg { width: 20px; height: 20px; }
.dp-add-proxy { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }

/* Hero = title + one keyword line; the tool starts right below */
.tool-hero .trust-row { display: none; }
.tool-hero .lead { font-size: 18px; line-height: 1.45; margin-top: 6px; max-width: 760px; display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.tool-hero .hero-title-row { margin-top: 6px; }
@media (max-width: 760px) {
  .tool-hero .lead { font-size: 15.5px; margin-top: 4px; }
  .home-hero .check-list { display: none; }
  .home-hero .lead { margin-bottom: 4px; }
}
/* Header: brand on one line; the small tagline only where there is room */
.brand-name { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1399px) { .brand-tag { display: none; } }

/* =====================================================================
   Ad slots (AdSense) and cookie banner (LGPD + Consent Mode v2)
   ===================================================================== */
/* Reserved space prevents layout shift (CLS); the label keeps ads clearly separate from content. */
.ad-slot { display: block; position: relative; min-height: 280px; margin: 28px auto; max-width: 970px; padding: 22px 0 0; background: none; border: 0; border-top: 1px solid var(--border); text-align: center; }
.ad-slot .ad-label { position: absolute; top: 4px; left: 0; right: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ad-slot ins.adsbygoogle { min-height: 250px; }
.ad-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, #f6f3fc, #f6f3fc 12px, #efeaf8 12px, #efeaf8 24px); border: 1px dashed var(--border-strong); border-radius: 12px; }
.ad-preview .ad-label { position: static; margin-bottom: 6px; }
.ad-preview-note { font-size: 13px; color: var(--text-3); }
@media (max-width: 560px) { .ad-slot { min-height: 300px; margin: 22px 0; } }
.clock-main:fullscreen ~ .ad-slot, :fullscreen .ad-slot { display: none !important; }
@media print { .ad-slot, .cc-banner { display: none !important; } }

.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.cc-banner { position: fixed; z-index: 1100; left: 12px; right: 12px; bottom: 12px; max-width: 980px; margin: 0 auto; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 48px rgba(31,18,53,.25); }
.cc-banner[hidden] { display: none; }
.cc-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; }
.cc-copy h2 { margin: 0 0 4px; font-size: 18px; }
.cc-copy p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.cc-prefs { margin-top: 12px; display: grid; gap: 4px; }
.cc-prefs .switch { margin: 0; }
.cc-actions { display: flex; flex-direction: column; gap: 8px; min-width: 190px; }
.cc-actions .btn { justify-content: center; min-height: 44px; }
@media (max-width: 760px) {
  .cc-banner { left: 0; right: 0; bottom: 0; border-radius: 18px 18px 0 0; max-height: 85vh; overflow-y: auto; }
  .cc-inner { grid-template-columns: 1fr; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .cc-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .cc-actions .btn { flex: 1 1 40%; }
}
.cc-banner [hidden] { display: none !important; }

/* =====================================================================
   Typography: Manrope (headings, numbers) + Inter (text and interface)
   Only font-family, font-weight, letter-spacing, line-height and numerals.
   No sizes, spacing, colours or layout are changed here.
   ===================================================================== */
strong, b { font-weight: 600; }

/* Headings: Manrope, 1.2 line height, -0.035em */
h1, h2, h3, h4, .home-hero h1, .step-title, .cal-month h4, .ycal-month h3, .brand-name { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.035em; }
h1, h2, .home-hero h1, .step-title { font-weight: 700; }
h3, h4, .cal-month h4, .ycal-month h3 { font-weight: 600; }
.brand-name { font-weight: 800; }

/* Countdown numbers and prominent figures: Manrope 700, tabular numerals, -0.04em */
.countdown b, .cd-big b, .cd-card-n b, .qc-result b, .result-value, .stat b, .vs-card b, .today-strip .ts-stat b,
.cd-table td:last-child b, .plain-digits, .al-time, .brz-time, .wc-time, .sw-days {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}

/* Navigation, buttons and labels: Inter 500 */
.primary-nav a, .primary-nav .sub a, .sub-toggle, .nav-toggle, .clock-nav a,
.btn, .chip, .small-btn, .tb-btn, .dp-btn, .dp-sel, .dp-day, .segmented label,
.field > label, .field .label, .qc-fields label, .set-label, .sub-label, .tm-set label, .cd-year-calc label, .label-like,
.result-label, .panel-title, .cd-kicker, .badge, .faq summary, .disp-date,
table.data th, table.mcal th, table.mcal td.wk, table.mcal th.wk, .dp-grid th, .cal-month h4 small, .ycal-month h3 small { font-weight: 500; }

/* Important text: Inter 600 */
.pop-card b, .cd-card-name, .dp-title, .dp-day.dp-is-today, table.data tfoot th, table.data tfoot td { font-weight: 600; }

/* Advertisements keep their existing styling, independent of the new site typography */
.ad-slot { font-family: var(--font-legacy); }
