/* ============================================================
   BusinessDaysTool — Shared design system
   Clean light minimalist: white paper, near-black ink, one indigo accent (flat, no gradients).
   Fonts: Schibsted Grotesk (display), IBM Plex Sans (body), IBM Plex Mono (figures)
   ============================================================ */

:root {
  --bg: #ffffff;            /* clean white */
  --bg-soft: #f3f4f7;       /* soft neutral panel */
  --surface: #ffffff;       /* card background */
  --surface-2: #f7f8fa;     /* inset surface */
  --ink: #0f1115;           /* near-black ink */
  --ink-soft: #3f444e;      /* readable body ink */
  --muted: #6b7280;         /* faded ink */
  --line: #e6e8ec;          /* hairline rule */
  --line-strong: #d3d7de;   /* strong rule */
  --border: #d3d7de;        /* border fallback */
  --text: #0f1115;          /* text fallback */

  --accent: #4f46e5;        /* indigo */
  --accent-strong: #4338ca; /* indigo strong */
  --accent-soft: #eef0fe;   /* indigo wash */
  --accent-ink: #312e81;    /* indigo deep text */

  --indigo: #2563eb;        /* blue (weekend figures) */
  --amber: #b45309;         /* amber */
  --rose: #e11d48;          /* rose */
  --green: #0f766e;         /* teal green */

  --shadow-sm: 0 1px 2px rgba(15, 17, 21, .05);
  --shadow-md: 0 1px 2px rgba(15, 17, 21, .04), 0 8px 24px rgba(15, 17, 21, .07);
  --shadow-lg: 0 18px 48px rgba(15, 17, 21, .12);

  --radius: 8px;
  --radius-sm: 6px;

  --font-display: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* Global SVG reset to prevent unconstrained icon blowout */
svg {
  display: inline-block;
  vertical-align: middle;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
}
svg:not([fill]) {
  fill: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* very faint dot grid, fading out below the fold */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(15, 17, 21, .035) 1px, transparent 1.4px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 50% -10%, black, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 50% -10%, black, transparent 62%);
}

.layer { position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 600; letter-spacing: -.012em; line-height: 1.1; margin: 0; font-optical-sizing: auto; }

a { color: inherit; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(255, 255, 255, .82);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  display: grid; place-items: center; color: var(--surface);
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.brand .mark svg { width: 18px; height: 18px; color: var(--accent); }
.brand b { color: var(--accent-strong); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 2px; }

/* top-level links + dropdown triggers share one look */
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-body); font-weight: 600; font-size: .92rem; line-height: 1.4;
  color: var(--ink-soft); text-decoration: none; cursor: pointer;
  background: none; border: none; padding: 9px 13px; border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}
.nav-link:hover { background: var(--bg-soft); color: var(--ink); }
.nav-link.active { background: var(--accent-soft); color: var(--accent-ink); }
.nav-chev { width: 14px; height: 14px; opacity: .6; transition: transform .22s ease; }

.nav-item { position: relative; }
/* invisible bridge so the panel stays open while the cursor crosses the gap */
.nav-item::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }

.nav-panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 14px;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px) scale(.985); transform-origin: top left;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-panel--right { left: auto; right: 0; transform-origin: top right; }
.nav-item:hover > .nav-panel,
.nav-item.open > .nav-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.nav-item:hover > .nav-trigger .nav-chev,
.nav-item.open > .nav-trigger .nav-chev { transform: rotate(180deg); }

/* mega-menu (Tools) */
.mega { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; width: max-content; }
.mega-col { min-width: 244px; }
.mega-col + .mega-col { border-left: 1px solid var(--line); padding-left: 16px; }
.mega-label { margin: 0; padding: 6px 12px 8px; font-size: .67rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; text-decoration: none; transition: background .15s ease; }
.mega-item:hover { background: var(--surface-2); }
.mega-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.mega-ico svg { width: 20px; height: 20px; }
.ico-teal { background: var(--accent-soft); color: var(--accent-strong); }
.ico-amber { background: #fef3c7; color: #b45309; }
.mega-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mega-title { font-weight: 700; font-size: .9rem; color: var(--ink); letter-spacing: -.01em; }
.mega-desc { font-size: .76rem; font-weight: 500; color: var(--muted); }
.mega-item:hover .mega-title { color: var(--accent-strong); }

/* simple dropdown (Guides) */
.dropdown { display: flex; flex-direction: column; min-width: 232px; }
.dropdown a { padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--ink-soft); text-decoration: none; transition: background .15s ease, color .15s ease; }
.dropdown a:hover { background: var(--surface-2); color: var(--accent-strong); }
.mega-item.active { background: var(--accent-soft); }
.mega-item.active .mega-title { color: var(--accent-ink); }
.dropdown a.active { background: var(--accent-soft); color: var(--accent-ink); }

.lang-toggle {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 9px; cursor: pointer; font-size: 1.15rem; line-height: 1;
  transition: background .15s ease, border-color .15s ease;
  display: inline-flex; align-items: center; flex: none;
}
.lang-toggle:hover { background: var(--bg-soft); border-color: var(--accent); }

.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; color: var(--ink); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 16px; box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  .nav-item { width: 100%; }
  .nav-item::after { display: none; }
  .nav-link { width: 100%; justify-content: space-between; padding: 12px 14px; }

  /* dropdowns become inline accordions on mobile */
  .nav-panel {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0; padding: 2px 8px 8px;
    display: none;
  }
  .nav-item.open > .nav-panel { display: block; }
  .mega { grid-template-columns: 1fr; width: auto; gap: 0; }
  .mega-col { min-width: 0; }
  .mega-col + .mega-col { border-left: none; padding-left: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
  .dropdown { min-width: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem; letter-spacing: .005em;
  padding: 13px 22px; border-radius: 9px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: var(--surface); background: var(--accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 8px 20px rgba(79, 70, 229, .22); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* ---------- Cards & inputs ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.card-pad { padding: clamp(20px, 3vw, 34px); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .01em; }
.field .hint { font-size: .78rem; color: var(--muted); font-weight: 500; }

.input {
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line-strong); border-radius: 8px;
  padding: 13px 14px; width: 100%; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input:hover { border-color: var(--accent); }
.input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; padding: 5px; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: .92rem; color: var(--muted);
  padding: 10px 18px; border-radius: 10px; transition: all .18s ease; cursor: pointer; border: none; background: transparent;
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--ink); }
.tab.active { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-sm); }

/* ---------- Ad slots ---------- */
/* Remove display:none below once AdSense code is inserted into .ad-slot divs */
.ad-slot { display: none; margin: 0 auto; }
.ad-leaderboard { width: 100%; max-width: 728px; min-height: 90px; }
.ad-rectangle { width: 100%; max-width: 300px; min-height: 250px; }
.ad-footer { width: 100%; max-width: 728px; min-height: 90px; }
@media (max-width: 520px) { .ad-leaderboard, .ad-footer { height: 100px; } }

/* ---------- Visual Calendar ---------- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.cal-month {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.cal-month-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent-strong);
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.cal-dow-row span {
  text-align: center;
  font-size: .65rem;
  font-weight: 700;
  color: var(--muted);
  padding: 2px 0;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  border-radius: 5px;
  font-weight: 500;
  cursor: default;
}
.cal-empty { background: transparent; }
.cal-biz { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); }
.cal-weekend { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); }
.cal-holiday { background: color-mix(in srgb, #ef4444 15%, transparent); color: #dc2626; font-weight: 700; }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: .82rem;
  color: var(--ink-soft);
}
.cal-leg-item { display: flex; align-items: center; gap: 6px; }
.cal-leg-swatch {
  width: 20px !important;
  height: 20px !important;
  aspect-ratio: 1;
  font-size: 0 !important;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ---------- Misc ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-strong); }
.eyebrow .dot { width: 22px; height: 2px; border-radius: 0; background: var(--accent); box-shadow: none; }

.section-title { font-size: clamp(1.65rem, 3.6vw, 2.5rem); margin-top: 12px; letter-spacing: -.02em; }
.lede { color: var(--ink-soft); font-size: 1.08rem; max-width: 64ch; }

.figure { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.fade-up { opacity: 0; transform: translateY(14px); animation: fadeUp .7s cubic-bezier(.16,.84,.44,1) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-up { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--ink); margin-top: 72px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 48px 0 28px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.footer-grid a { display: block; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .92rem; padding: 5px 0; transition: color .15s ease; }
.footer-grid a:hover { color: var(--accent-strong); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; color: var(--muted); font-size: .85rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid .footer-brand { grid-column: 1 / -1; } }

/* ---------- Tool page layout ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .tool-layout { grid-template-columns: 1fr; } .tool-sidebar { order: 3; display: flex; justify-content: center; } }

.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .input-grid { grid-template-columns: 1fr; } }

.error-banner { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-weight: 600; font-size: .9rem; }

/* ---------- Business days results ---------- */
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 640px) { .result-grid { grid-template-columns: 1fr 1fr; } }

.tile { border-radius: 9px; padding: 18px 16px; border: 1px solid var(--line); background: var(--surface-2); }
.tile .tile-label { font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tile .tile-value { font-family: var(--font-mono); font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 600; margin-top: 6px; letter-spacing: -.03em; }
.tile.is-hero { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow-md); }
.tile.is-hero .tile-label { color: rgba(255,255,255,.66); }
.tile.is-hero .tile-value { color: #a5b4fc; }
.tile.is-weekend .tile-value { color: var(--indigo); }
.tile.is-holiday .tile-value { color: var(--amber); }

.summary-line { margin-top: 18px; padding: 14px 16px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-size: .96rem; border: 1px solid var(--line); }
.summary-line strong { font-family: var(--font-mono); }

.holiday-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.holiday-list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
#bd-holiday-list { margin-top: 18px; }

.empty-state { text-align: center; padding: 30px 16px; color: var(--muted); }

/* ---------- Date calculator ---------- */
.dc-op-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.dc-check { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.dc-check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex: none; }
.dc-result-card {
  border-radius: 10px; padding: 26px 22px; text-align: center;
  background: var(--accent);
  color: #fff; box-shadow: 0 12px 28px rgba(79,70,229,.22);
}
.dc-result-label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.82); }
.dc-result-date { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 5vw, 2.2rem); margin-top: 8px; letter-spacing: -.02em; line-height: 1.15; }
.dc-result-sub { font-family: var(--font-mono); font-size: .9rem; margin-top: 10px; color: rgba(255,255,255,.9); }

/* ---------- Age calculator ---------- */
.ag-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
@media (max-width: 480px) { .ag-totals { grid-template-columns: 1fr; } }
.ag-total-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.ag-total-row .figure { color: var(--ink); font-weight: 700; }
.ag-bday { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: .95rem; }
.ag-bday strong { font-family: var(--font-mono); }

/* ---------- Countdown / Days until ---------- */
.cd-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cd-chip {
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-soft);
  font-family: var(--font-body); font-weight: 700; font-size: .82rem;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cd-chip:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.cd-big-card {
  border-radius: 10px; padding: 30px 22px; text-align: center;
  background: var(--ink);
  color: #fff; box-shadow: var(--shadow-md);
}
.cd-big { font-family: var(--font-mono); font-weight: 600; font-size: clamp(3rem, 12vw, 5rem); line-height: 1; letter-spacing: -.04em; color: #a5b4fc; }
.cd-big-label { font-size: 1rem; font-weight: 700; margin-top: 10px; color: rgba(255,255,255,.92); }
.cd-date-line { font-size: .9rem; margin-top: 6px; color: rgba(255,255,255,.7); }

/* ---------- Time zone add bar ---------- */
.tz-add-bar { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.tz-add-select { font-size: .92rem; padding: 10px 12px; }
.tz-city-count { font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; flex: none; }

/* ---------- Time zone cards ---------- */
.tz-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.tz-controls .field { flex: 1 1 150px; }
.format-toggle { display: inline-flex; padding: 4px; gap: 3px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; }
.format-toggle button { border: none; background: transparent; font-family: var(--font-body); font-weight: 700; font-size: .85rem; color: var(--muted); padding: 9px 14px; border-radius: 8px; cursor: pointer; transition: all .16s ease; }
.format-toggle button.active { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-sm); }

.tz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 560px) { .tz-grid { grid-template-columns: 1fr; } }

.tz-card { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.tz-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.tz-card-top { display: flex; align-items: center; gap: 12px; }
.tz-flag { font-size: 1.7rem; line-height: 1; }
.tz-city { font-size: 1.12rem; }
.tz-region { margin: 2px 0 0; font-size: .76rem; color: var(--muted); font-weight: 600; }
.tz-badge { margin-left: auto; font-size: .7rem; font-weight: 800; letter-spacing: .03em; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.tz-badge.same { background: var(--accent-soft); color: var(--accent-ink); }
.tz-badge.next { background: #e0e7ff; color: #3730a3; }
.tz-badge.prev { background: #ffedd5; color: #9a3412; }
.tz-time { font-size: clamp(2.2rem, 7vw, 2.8rem); font-weight: 600; margin: 16px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.tz-suffix { font-size: 1rem; font-weight: 700; color: var(--muted); font-family: var(--font-body); }
.tz-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.tz-abbr { font-family: var(--font-mono); font-size: .72rem; color: var(--accent-strong); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; }

.tz-remove {
  margin-left: auto; flex: none; background: none; border: none;
  width: 26px; height: 26px; border-radius: 6px; cursor: pointer;
  font-size: 1.15rem; line-height: 1; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.tz-remove:hover { background: #fef2f2; color: var(--rose); }

/* ---------- SEO content blocks ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 36px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.prose p { color: var(--ink-soft); margin: 0 0 14px; }
.prose ul { color: var(--ink-soft); padding-left: 20px; margin: 0 0 14px; }
.prose li { margin: 6px 0; }

.faq-item { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-bottom: 10px; padding: 4px 18px; }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--accent); font-weight: 400; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); margin: 0 0 16px; }

/* ---------- Hero / feature cards (home) ---------- */
.hero { padding: clamp(44px, 7vw, 92px) 0 clamp(30px, 5vw, 56px); text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 500; max-width: 17ch; margin: 20px auto 0; letter-spacing: -.025em; }
.hero .lede { margin: 22px auto 0; text-align: center; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

.tool-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .tool-cards { grid-template-columns: 1fr; } }
.tool-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.tool-card .tc-icon { width: 50px; height: 50px; border-radius: 10px; display: grid; place-items: center; color: var(--surface); box-shadow: var(--shadow-sm); }
.tool-card .tc-icon svg { width: 25px; height: 25px; }
.tool-card h3 { font-size: 1.4rem; font-weight: 500; }
.tool-card p { color: var(--ink-soft); margin: 0; flex: 1; }
.tool-card .tc-link { color: var(--accent-strong); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 24px; }
.feature .f-ico { width: 42px; height: 42px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .94rem; }

.section { padding: clamp(36px, 6vw, 64px) 0; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 14px; }

/* ---------- Data tables (guide pages) ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; overflow: hidden; border-radius: 10px; border: 1px solid var(--line-strong); }
.data-table thead th { background: var(--bg-soft); text-align: right; font-family: var(--font-mono); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 13px 16px; }
.data-table thead th:first-child { text-align: left; }
.data-table tbody td { padding: 13px 16px; border-top: 1px solid var(--line); text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.data-table tbody td:first-child { text-align: left; font-family: var(--font-body); font-weight: 700; color: var(--ink); }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody td.biz { color: var(--accent-strong); font-weight: 700; }
.data-table tfoot td { padding: 14px 16px; border-top: 2px solid var(--line-strong); text-align: right; font-family: var(--font-mono); font-weight: 700; color: var(--ink); background: var(--surface-2); }
.data-table tfoot td:first-child { text-align: left; font-family: var(--font-display); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 6px 0 30px; }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--accent-strong); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

.cta-band { background: var(--ink); color: var(--surface); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); text-align: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 180px at 100% 0%, rgba(129,140,248,.30), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 600; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 12px auto 22px; }
.cta-band .btn-ghost { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.cta-band .btn-ghost:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--surface); }

.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .guide-cards { grid-template-columns: 1fr; } }
.guide-card { display: block; text-decoration: none; color: inherit; padding: 24px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.guide-card .gc-tag { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); }
.guide-card h3 { font-size: 1.12rem; margin: 8px 0; }
.guide-card p { color: var(--ink-soft); font-size: .9rem; margin: 0; }

/* ============================================================
   Lightweight visual polish — editorial precision
   CSS-only depth, light and micro-interactions. No extra assets.
   ============================================================ */
:root {
  --accent: #335cff;
  --accent-strong: #2948d8;
  --accent-soft: #edf1ff;
  --accent-ink: #20359e;
  --glow-indigo: rgba(51, 92, 255, .12);
  --glow-cyan: rgba(26, 180, 154, .08);
  --brand-lime: #b7f34a;
  --shadow-sm: 0 2px 7px rgba(15, 17, 21, .055);
  --shadow-md: 0 1px 2px rgba(15, 17, 21, .035), 0 12px 34px rgba(31, 35, 48, .075);
  --shadow-lg: 0 22px 60px rgba(24, 27, 40, .14);
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 540px at 8% -8%, var(--glow-indigo), transparent 66%),
    radial-gradient(760px 460px at 94% 8%, var(--glow-cyan), transparent 68%),
    linear-gradient(180deg, #fff 0, #fdfdff 46%, #f8faff 100%);
  background-attachment: fixed;
}

::selection { color: var(--accent-ink); background: rgba(165, 180, 252, .42); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(79, 70, 229, .28);
  outline-offset: 3px;
}

.site-header {
  background: rgba(255, 255, 255, .78);
  border-top-color: transparent;
  box-shadow: 0 1px 0 rgba(15, 17, 21, .055), 0 8px 28px rgba(35, 39, 56, .045);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #4568ff 50%, #18a88c 82%, var(--brand-lime));
}

.brand {
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 640;
}

.brand .mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  color: transparent;
  background: transparent;
  box-shadow: 0 6px 16px rgba(40, 65, 190, .2);
  transition: transform .22s ease, box-shadow .22s ease;
}

.brand .mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("logo-mark.svg") center / contain no-repeat;
}

.brand .mark svg { opacity: 0; }

.brand .mark::after {
  content: "";
  position: absolute;
  inset: -60% 45% -60% -70%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.24), transparent);
  transform: translateX(-70%) rotate(12deg);
  transition: transform .5s ease;
}

.brand:hover .mark { transform: translateY(-2px) rotate(-2deg); box-shadow: 0 10px 22px rgba(40,65,190,.27); }
.brand:hover .mark::after { transform: translateX(240%) rotate(12deg); }
.brand b { color: var(--accent); font-weight: 760; }

.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 5px;
  height: 2px; border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }

.nav-panel {
  border-color: rgba(211, 215, 222, .82);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px) saturate(135%);
}
.mega-item { transition: background .16s ease, transform .16s ease; }
.mega-item:hover { transform: translateX(2px); }
.mega-ico { transition: transform .2s ease, box-shadow .2s ease; }
.mega-item:hover .mega-ico { transform: scale(1.06) rotate(-2deg); box-shadow: var(--shadow-sm); }

.section-title { letter-spacing: -.035em; text-wrap: balance; }
.lede { text-wrap: pretty; }
.hero {
  position: relative;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(.2px);
}
.hero::before {
  width: clamp(180px, 24vw, 330px);
  height: 1px;
  left: 1%;
  top: 42%;
  background: linear-gradient(90deg, transparent, rgba(51,92,255,.3), transparent);
  transform: rotate(-18deg);
}
.hero::after {
  width: clamp(140px, 18vw, 260px);
  height: 1px;
  right: 3%;
  top: 62%;
  background: linear-gradient(90deg, transparent, rgba(24,168,140,.33), transparent);
  transform: rotate(16deg);
}
.hero h1 {
  letter-spacing: -.052em;
  text-wrap: balance;
  background: linear-gradient(115deg, var(--ink) 18%, #1d2f78 70%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  border: 1px solid rgba(51,92,255,.16);
  background: rgba(255,255,255,.72);
  box-shadow: 0 6px 22px rgba(51,92,255,.07);
}
.eyebrow .dot {
  background: var(--brand-lime);
  box-shadow: 0 0 0 4px rgba(183,243,74,.22);
}

.card {
  border-color: rgba(211, 215, 222, .78);
  box-shadow: var(--shadow-md);
}

.tool-card, .guide-card, .feature, .tz-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.tool-card::before, .guide-card::before, .feature::before, .tz-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px; height: 180px;
  top: -120px; right: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-indigo), transparent 70%);
  opacity: 0;
  transform: scale(.72);
  transition: opacity .28s ease, transform .35s ease;
}

.tool-card:hover::before, .guide-card:hover::before, .feature:hover::before, .tz-card:hover::before { opacity: 1; transform: scale(1); }
.tool-card:hover, .guide-card:hover, .tz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature { transition: transform .2s ease, box-shadow .24s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-3px); border-color: rgba(79,70,229,.35); box-shadow: var(--shadow-md); }

.tool-card .tc-icon, .feature .f-ico {
  transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease;
}
.tool-card:hover .tc-icon { transform: rotate(-4deg) scale(1.08); box-shadow: 0 10px 24px rgba(79,70,229,.2); }
.feature:hover .f-ico { transform: translateY(-2px) rotate(3deg); }
.tool-card .tc-link { transition: gap .2s ease, color .2s ease; }
.tool-card:hover .tc-link { gap: 10px; color: var(--accent-ink); }

.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5b45e7 55%, #4338ca);
  box-shadow: 0 8px 22px rgba(79,70,229,.2);
}
.btn-primary::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: -2px;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.25) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .55s ease;
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(79,70,229,.28); transform: translateY(-2px); }

.input {
  background: rgba(247,248,250,.82);
  box-shadow: inset 0 1px 2px rgba(15,17,21,.025);
}
.input:hover { background: rgba(255,255,255,.94); box-shadow: inset 0 1px 2px rgba(15,17,21,.02), 0 4px 12px rgba(79,70,229,.055); }
.input:focus { box-shadow: 0 0 0 4px rgba(79,70,229,.12), 0 8px 22px rgba(79,70,229,.08); }

.tile, .ag-total-row, .faq-item { transition: transform .18s ease, box-shadow .2s ease, border-color .18s ease, background .18s ease; }
.tile:hover, .ag-total-row:hover { transform: translateY(-2px); border-color: rgba(79,70,229,.3); box-shadow: var(--shadow-sm); }
.faq-item:hover { border-color: rgba(79,70,229,.28); box-shadow: var(--shadow-sm); }
.faq-item[open] { border-color: rgba(79,70,229,.34); box-shadow: var(--shadow-sm); }

.tabs { box-shadow: inset 0 1px 2px rgba(15,17,21,.03); }
.tab.active { box-shadow: 0 5px 16px rgba(31,35,48,.09); }
.summary-line { box-shadow: inset 3px 0 0 var(--accent); }

.prose h2 { position: relative; letter-spacing: -.025em; }
.prose h2::after {
  content: "";
  display: block;
  width: 38px; height: 3px;
  margin-top: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #0ea5e9);
}

.data-table { background: rgba(255,255,255,.82); box-shadow: var(--shadow-sm); }
.data-table tbody tr { transition: background .15s ease, transform .15s ease; }
.data-table tbody tr:hover { background: var(--accent-soft); }

.cta-band {
  background: linear-gradient(135deg, #11131a 0%, #18172e 58%, #17133a 100%);
  box-shadow: 0 24px 60px rgba(15,17,21,.18);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: auto -10% -80% 35%;
  height: 220px;
  background: radial-gradient(ellipse, rgba(14,165,233,.18), transparent 68%);
  pointer-events: none;
}

.site-footer {
  border-top: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.72), #f6f7fb);
  box-shadow: inset 0 1px 0 rgba(15,17,21,.09);
}
.footer-brand strong { color: var(--accent); }
.footer-grid a { transition: color .15s ease, transform .15s ease; }
.footer-grid a:hover { transform: translateX(3px); }

@media (max-width: 760px) {
  body { background-attachment: scroll; overflow-x: hidden; }
  .site-header { backdrop-filter: blur(14px) saturate(145%); }
  .nav-links { background: rgba(255,255,255,.97); backdrop-filter: blur(16px); }
  .nav-link::after { display: none; }
  .mega-item:hover { transform: none; }
  .brand { font-size: 1.05rem; gap: 9px; }
  .brand .mark { width: 36px; height: 36px; border-radius: 11px; }
  .hero::before, .hero::after { opacity: .5; }
}

@media (max-width: 480px) {
  .input-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
