/* Calc Tools Base — calm precision design system */
:root {
  --bg: #FAFAF6;
  --surface: #FFFFFF;
  --surface-2: #F4F2EC;
  --ink: #0E1A2B;
  --ink-soft: #2A3A52;
  --muted: #5E6E83;
  --muted-soft: #8B98A8;
  --line: #DDE2E9;
  --line-soft: #ECEEF1;
  --accent: #0D7377;
  --accent-2: #095658;
  --accent-tint: #E6F3F2;
  --warm: #E6A22B;
  --warm-tint: #FBF1DC;
  --danger: #B43F47;
  --danger-tint: #F6E5E6;
  --green: #2D6A4F;
  --serif: 'Newsreader', 'Georgia', serif;
  --sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'Menlo', 'Consolas', monospace;
  --serif-hindi: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', Georgia, serif;
  --sans-hindi: 'Hind', 'Noto Sans Devanagari', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-feature-settings: "tnum" 1, "ss01" 1;
}
body.hindi { font-family: var(--sans-hindi); }
body.hindi h1, body.hindi h2 { font-family: var(--serif-hindi); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; display: block; }

/* Subtle grid background — math/graph paper hint */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

/* ===== Header ===== */
.site-header {
  background: rgba(250,250,246,0.96);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--ink); font-family: var(--serif); font-size: 1.35rem;
  font-weight: 500; letter-spacing: -0.015em;
}
.site-logo:hover { text-decoration: none; color: var(--ink); }
.site-logo-mark {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg);
  border-radius: 8px;
  font-family: var(--mono); font-size: 1.15rem; font-weight: 600;
  letter-spacing: -0.04em;
}
.site-logo em { color: var(--accent); font-style: italic; font-weight: 500; }
.site-nav { display: flex; gap: 1.4rem; align-items: center; }
.site-nav a {
  color: var(--muted); font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  max-width: 1200px; margin: 0 auto; padding: 0.85rem 1.5rem 0;
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.breadcrumb-sep { margin: 0 0.5rem; opacity: 0.5; }

/* ===== Tool head ===== */
.tool-head {
  padding: 2.5rem 0 1.5rem;
  max-width: 820px; margin: 0 auto;
  text-align: left;
}
.tool-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.7rem; color: var(--accent);
  letter-spacing: 0.15em; text-transform: uppercase;
  background: var(--accent-tint);
  padding: 0.35rem 0.7rem; border-radius: 4px;
  margin-bottom: 1rem;
}
.tool-eyebrow::before {
  content: '/'; color: var(--accent); font-weight: 700; opacity: 0.55;
}
.tool-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 0.75rem;
}
.tool-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.tool-subtitle {
  font-size: 1.05rem; color: var(--muted); max-width: 680px;
  line-height: 1.55;
}

/* ===== Workspace card — the calculator ===== */
.workspace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem;
  margin: 0 auto 2rem;
  max-width: 820px;
  box-shadow: 0 1px 0 var(--line-soft), 0 6px 24px -8px rgba(14,26,43,0.04);
}
@media (max-width: 640px) {
  .workspace { padding: 1.25rem; border-radius: 0; border-left: none; border-right: none; }
}
.workspace-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.workspace-head h2 {
  font-family: var(--serif); font-weight: 500; font-size: 1.15rem;
  letter-spacing: -0.005em; color: var(--ink);
}
.workspace-head-tag {
  font-family: var(--mono); font-size: 0.7rem; color: var(--muted);
  background: var(--surface-2); padding: 0.3rem 0.55rem; border-radius: 3px;
  letter-spacing: 0.06em;
}

/* ===== Input fields ===== */
.fields { display: grid; gap: 0.95rem; margin-bottom: 1.5rem; }
.field-row {
  display: grid; gap: 0.95rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label {
  font-family: var(--mono); font-size: 0.7rem; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}
.field input[type="text"], .field input[type="number"],
.field input[type="date"], .field input[type="time"],
.field input[type="email"], .field input[type="password"],
.field select, .field textarea {
  width: 100%; padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--mono); font-size: 0.95rem;
  transition: all 0.15s;
  font-feature-settings: "tnum" 1;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field textarea { resize: vertical; min-height: 80px; font-family: var(--mono); font-size: 0.88rem; }
.field-hint { font-size: 0.78rem; color: var(--muted); font-family: var(--sans); }
.field-inline { display: flex; gap: 0.5rem; align-items: center; }
.field-check { display: flex; gap: 0.5rem; align-items: center; cursor: pointer; }
.field-check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.field-check label {
  font-family: var(--sans); font-size: 0.88rem;
  color: var(--ink); text-transform: none; letter-spacing: 0; margin: 0; cursor: pointer;
}

/* ===== Buttons ===== */
.actions { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
button.primary, .button-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--ink); color: var(--bg);
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500;
  padding: 0.8rem 1.5rem; border: none; border-radius: 4px;
  cursor: pointer; transition: background 0.15s;
  letter-spacing: -0.005em;
}
button.primary:hover { background: var(--accent-2); color: var(--bg); text-decoration: none; }
button.secondary {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  padding: 0.75rem 1.3rem; border-radius: 4px; cursor: pointer;
}
button.secondary:hover { border-color: var(--accent); color: var(--accent); }
button.primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Result panel ===== */
.result-panel {
  margin-top: 1.5rem; padding: 1.5rem;
  background: var(--ink); color: var(--bg);
  border-radius: 5px;
  position: relative; overflow: hidden;
}
.result-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
}
.result-label {
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted-soft);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.result-main {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400; line-height: 1; letter-spacing: -0.015em;
  color: var(--bg); margin-bottom: 0.5rem;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.result-main em { font-style: italic; color: var(--warm); font-weight: 400; }
.result-detail {
  font-family: var(--mono); font-size: 0.88rem; color: var(--muted-soft);
  margin-top: 0.65rem; line-height: 1.65;
}
.result-detail strong { color: var(--bg); font-weight: 500; }
.result-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: var(--mono); font-size: 0.88rem;
}
.result-row:last-child { border-bottom: none; }
.result-row span:first-child { color: var(--muted-soft); }
.result-row span:last-child { color: var(--bg); font-weight: 500; }
.result-empty {
  font-family: var(--mono); font-size: 0.85rem;
  color: var(--muted-soft); text-align: center; padding: 1rem 0;
}

/* ===== Notices ===== */
.notice {
  padding: 0.85rem 1rem; border-radius: 4px; margin: 1rem 0;
  font-size: 0.88rem; line-height: 1.55;
}
.notice.info {
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  color: var(--accent-2);
}
.notice.warn {
  background: var(--warm-tint);
  border-left: 3px solid var(--warm);
  color: #6F4F0E;
}
.notice.danger {
  background: var(--danger-tint);
  border-left: 3px solid var(--danger);
  color: var(--danger);
}
.notice strong { font-weight: 600; }
.notice ul { padding-left: 1.2rem; margin: 0.4rem 0; }
.notice li { margin-bottom: 0.2rem; }
.hidden { display: none !important; }

/* ===== SEO sections ===== */
.seo {
  max-width: 820px; margin: 2.5rem auto 2rem;
  padding: 0 1.5rem;
}
.seo-card {
  background: var(--surface); border: 1px solid var(--line);
  padding: 1.85rem; margin-bottom: 1.1rem; border-radius: 5px;
}
@media (max-width: 640px) {
  .seo-card { padding: 1.4rem; border-radius: 0; border-left: none; border-right: none; }
}
.seo-card h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  letter-spacing: -0.012em; line-height: 1.18;
  margin-bottom: 0.9rem; color: var(--ink);
}
.seo-card h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
.seo-card h3 {
  font-family: var(--sans); font-weight: 600; font-size: 1.02rem;
  margin: 1.2rem 0 0.45rem; color: var(--ink);
}
.seo-card p {
  color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7;
  margin-bottom: 0.8rem;
}

.seo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem; margin-top: 0.85rem;
}
.seo-mini {
  background: var(--surface-2); border: 1px solid var(--line-soft);
  padding: 0.95rem 1.05rem; border-radius: 4px;
}
.seo-mini strong {
  display: block; font-family: var(--mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--accent); margin-bottom: 0.4rem; font-weight: 500;
}
.seo-mini p { margin: 0; font-size: 0.84rem; color: var(--muted); line-height: 1.5; }

.steps {
  counter-reset: step; list-style: none;
  display: grid; gap: 0.55rem; margin-top: 0.85rem;
}
.steps li {
  counter-increment: step;
  background: var(--surface-2); border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem 0.85rem 3rem;
  position: relative; border-radius: 0 4px 4px 0;
  color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--accent); font-weight: 600;
  letter-spacing: 0.03em;
}

.faq-item {
  border-top: 1px solid var(--line-soft);
  padding: 1rem 0;
}
.faq-item:first-child { border-top: none; padding-top: 0; }
.faq-item h3 {
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  margin: 0 0 0.4rem; color: var(--ink);
}
.faq-item p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

.related { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.related a {
  display: inline-block; padding: 0.45rem 0.85rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em;
  border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 3px; transition: all 0.15s; background: var(--surface);
}
.related a:hover {
  border-color: var(--accent); color: var(--accent); text-decoration: none;
  background: var(--accent-tint);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.85);
  padding: 2.5rem 0 1.85rem; margin-top: 4rem;
  border-top: 3px solid var(--accent);
}
.site-footer .wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
}
@media (max-width: 700px) {
  .site-footer .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
}
.site-footer h4 {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bg); margin-bottom: 0.85rem;
  font-weight: 600; opacity: 0.85;
}
.site-footer a {
  color: rgba(255,255,255,0.78); display: inline-block;
  font-size: 0.88rem; padding: 0.2rem 0;
}
.site-footer a:hover { color: var(--bg); text-decoration: none; }
.site-footer-about {
  font-size: 0.88rem; line-height: 1.65;
  opacity: 0.72; max-width: 380px;
}
.site-footer-brand {
  font-family: var(--serif); font-style: italic;
  font-size: 1.25rem; color: var(--bg);
  margin-bottom: 0.65rem; font-weight: 500;
}
.site-footer-links { display: flex; flex-direction: column; }
.site-footer-bottom {
  max-width: 1200px; margin: 2.5rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.55);
  text-align: center;
}

/* ===== Homepage ===== */
.hero {
  padding: 4rem 0 2rem; text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.74rem; color: var(--accent);
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--accent-tint); padding: 0.4rem 0.85rem;
  border-radius: 4px; margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500; line-height: 1.04;
  letter-spacing: -0.025em;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  color: var(--ink); margin-bottom: 1rem;
  max-width: 920px; margin-left: auto; margin-right: auto;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero p {
  color: var(--muted); font-size: 1.08rem; line-height: 1.6;
  max-width: 620px; margin: 0 auto 1.85rem;
}
.hero-stats {
  display: flex; gap: 1.5rem; justify-content: center;
  flex-wrap: wrap; margin-top: 1.5rem;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block; font-family: var(--serif); font-size: 2rem;
  font-weight: 500; color: var(--accent); line-height: 1;
  letter-spacing: -0.015em;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.hero-stat span {
  font-family: var(--mono); font-size: 0.7rem; color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase;
}

.search-box {
  max-width: 680px; margin: 2.25rem auto;
  padding: 0 1.5rem; position: relative;
}
.search-box input {
  width: 100%; padding: 1rem 1.25rem 1rem 3rem;
  background: var(--surface); border: 1.5px solid var(--line);
  font-family: var(--sans); font-size: 1rem; border-radius: 5px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235E6E83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
  background-repeat: no-repeat; background-position: 1.05rem center;
  transition: all 0.15s;
}
.search-box input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.search-meta {
  font-family: var(--mono); font-size: 0.7rem; color: var(--muted);
  text-align: center; margin-top: 0.55rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.search-meta span { color: var(--accent); font-weight: 600; }

.section-head {
  max-width: 1200px; margin: 2.5rem auto 1.25rem;
  padding: 0 1.5rem;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.015em; line-height: 1.15;
  color: var(--ink); margin-bottom: 0.35rem;
}
.section-head h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
.section-head p { color: var(--muted); font-size: 0.93rem; }

.category-strip {
  display: flex; gap: 0.5rem; overflow-x: auto;
  max-width: 1200px; margin: 1rem auto;
  padding: 0 1.5rem 0.5rem;
}
.category-pill {
  flex: 0 0 auto;
  padding: 0.5rem 0.95rem;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 999px; background: var(--surface);
  cursor: pointer; transition: all 0.15s;
}
.category-pill:hover { border-color: var(--accent); color: var(--accent); }
.category-pill.active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

.tool-grid {
  max-width: 1200px; margin: 0 auto 2rem;
  padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 0.75rem;
}
.tool-card {
  background: var(--surface); border: 1px solid var(--line);
  padding: 1.1rem 1.2rem; border-radius: 4px;
  display: flex; flex-direction: column;
  transition: all 0.15s; min-height: 115px; color: var(--ink);
}
.tool-card:hover {
  border-color: var(--accent); transform: translateY(-1px);
  text-decoration: none; color: var(--ink);
  box-shadow: 0 4px 12px rgba(13,115,119,0.06);
}
.tool-card .tool-cat {
  font-family: var(--mono); font-size: 0.65rem; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.4rem; font-weight: 500;
}
.tool-card .tool-name {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 500;
  color: var(--ink); line-height: 1.2; margin-bottom: 0.35rem;
  letter-spacing: -0.008em;
}
.tool-card .tool-desc {
  font-size: 0.8rem; color: var(--muted); line-height: 1.5; flex: 1;
}
.tool-card.hindi .tool-name { font-family: var(--serif-hindi); }

.tool-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--surface-2); border: 1px dashed var(--line);
  color: var(--muted); font-family: var(--mono); font-size: 0.9rem;
  border-radius: 4px;
}
.tool-empty strong { color: var(--accent); display: block; margin-bottom: 0.5rem; }

.features-strip {
  background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 2rem 0; margin: 2.5rem 0;
}
.features-strip .wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature { text-align: center; }
.feature strong {
  display: block; font-family: var(--serif); font-size: 1.1rem;
  font-weight: 500; color: var(--ink); margin-bottom: 0.3rem;
}
.feature p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ===== Policy pages ===== */
.policy-page {
  background: var(--surface); border: 1px solid var(--line);
  padding: 2.5rem 2.25rem; border-radius: 5px;
  margin: 2.5rem auto; max-width: 820px;
}
@media (max-width: 640px) {
  .policy-page { padding: 1.5rem 1.25rem; border-radius: 0; border-left: none; border-right: none; }
}
.policy-page h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 0.5rem; color: var(--ink);
}
.policy-page h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.policy-page > p.lead {
  color: var(--muted); font-size: 1rem; margin-bottom: 2rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-soft);
}
.policy-page h2 {
  font-family: var(--serif); font-weight: 500; font-size: 1.45rem;
  margin: 1.85rem 0 0.85rem; color: var(--ink); letter-spacing: -0.01em;
}
.policy-page h3 {
  font-family: var(--sans); font-weight: 600; font-size: 1.02rem;
  margin: 1.3rem 0 0.5rem; color: var(--ink);
}
.policy-page p {
  font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft);
  margin-bottom: 0.8rem;
}
.policy-page ul, .policy-page ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.policy-page li { font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 0.35rem; }
.policy-page strong { font-weight: 600; }
.policy-page code {
  font-family: var(--mono); font-size: 0.85rem;
  background: var(--surface-2); padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.loading {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   HOMEPAGE + POLICIES additions
   ============================================================ */

/* Homepage hero */
.home-main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.hero { text-align: center; padding: 4rem 0 3rem; }
.hero-kicker {
  display: inline-block; font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent);
  padding: 0.45rem 1rem; border: 1px solid var(--accent-tint);
  background: var(--accent-tint); border-radius: 999px; margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15; color: var(--ink); margin: 0 auto 1.25rem;
  max-width: 22ch; font-weight: 500; letter-spacing: -0.01em;
}
.hero-em { color: var(--accent); font-style: italic; font-weight: 600; }
.hero-lede {
  font-size: 1.05rem; line-height: 1.65; color: var(--muted);
  max-width: 38rem; margin: 0 auto 2.5rem;
}
.hero-stats {
  display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap;
  padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 0 auto 2.5rem; max-width: 38rem;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--mono); font-size: 2rem; color: var(--accent);
  font-weight: 500; line-height: 1;
}
.stat-lbl {
  font-size: 0.78rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.12em; margin-top: 0.4rem;
}
.hero-search {
  display: flex; gap: 0.5rem; max-width: 36rem; margin: 0 auto;
}
.hero-search input[type="search"] {
  flex: 1; padding: 0.85rem 1rem; font-size: 1rem;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 8px; font-family: var(--sans);
}
.hero-search input[type="search"]:focus {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.btn-primary {
  padding: 0.85rem 1.5rem; background: var(--accent); color: white;
  border: none; border-radius: 8px; font-weight: 600; cursor: pointer;
  font-family: var(--sans); font-size: 0.95rem;
}
.btn-primary:hover { background: var(--accent-2); }
.search-meta {
  text-align: center; font-family: var(--mono); font-size: 0.85rem;
  color: var(--muted); margin-top: 1rem; min-height: 1.2rem;
}

/* Section titles */
.section-title {
  font-family: var(--serif); font-size: 1.75rem; color: var(--ink);
  margin: 3rem 0 1.5rem; font-weight: 500; letter-spacing: -0.01em;
}

/* Category pills */
.pills-section { margin: 3rem 0; }
.pills {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; font-size: 0.9rem; color: var(--ink-soft);
  text-decoration: none; transition: all 0.15s;
}
.pill:hover {
  background: var(--accent-tint); border-color: var(--accent);
  color: var(--accent);
}
.pill-count {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
  background: var(--surface-2); padding: 0.1rem 0.5rem; border-radius: 99px;
}

/* Category section */
.cat-section { margin-bottom: 3rem; }
.cat-header {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; margin-bottom: 1rem;
}
.cat-header h2 {
  font-family: var(--serif); font-size: 1.5rem; color: var(--ink);
  margin: 0; font-weight: 500;
}
.cat-count {
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
}

/* Tool cards */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}
.card {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; text-decoration: none;
  transition: all 0.15s;
}
.card:hover {
  border-color: var(--accent); background: var(--accent-tint);
  transform: translateY(-1px);
}
.card-name {
  font-size: 0.92rem; font-weight: 500; color: var(--ink); line-height: 1.3;
}
.card-kw {
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  text-transform: lowercase;
}

/* Trust + FAQ on homepage */
.trust { margin: 4rem 0; }
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.trust-card {
  padding: 1.4rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px;
}
.trust-card h3 {
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
  margin: 0 0 0.6rem; font-weight: 500;
}
.trust-card p {
  font-size: 0.93rem; line-height: 1.6; color: var(--ink-soft); margin: 0;
}
.trust-card a { color: var(--accent); text-decoration: none; }
.trust-card a:hover { text-decoration: underline; }

.faq { margin: 4rem 0; max-width: 48rem; }
.faq details {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0.85rem 1.1rem; margin-bottom: 0.6rem; background: var(--surface);
}
.faq summary {
  cursor: pointer; font-weight: 500; color: var(--ink); font-size: 0.97rem;
}
.faq details[open] summary { margin-bottom: 0.6rem; }
.faq p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; line-height: 1.6; }
.faq a { color: var(--accent); }

/* Footer extended */
.foot-cols {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem;
  max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 1.5rem;
}
@media (max-width: 720px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
.foot-col p { margin: 0 0 0.5rem; font-size: 0.88rem; color: var(--muted); }
.foot-col a {
  display: block; color: var(--ink-soft); text-decoration: none;
  font-size: 0.88rem; margin-bottom: 0.35rem;
}
.foot-col a:hover { color: var(--accent); }
.foot-brand {
  font-family: var(--serif); font-size: 1.1rem; color: var(--ink) !important;
  font-weight: 500; margin-bottom: 0.5rem !important;
}
.foot-brand .logo-mark {
  display: inline-block; font-family: var(--mono); color: var(--accent);
  padding: 0.1rem 0.4rem; background: var(--accent-tint); border-radius: 4px;
  margin-right: 0.3rem; font-size: 0.95rem;
}
.foot-h {
  font-family: var(--mono); font-size: 0.7rem !important; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--muted) !important; margin-bottom: 0.75rem !important;
}
.foot-bottom {
  text-align: center; font-size: 0.82rem; color: var(--muted);
  border-top: 1px solid var(--line); padding: 1.5rem 0;
  max-width: 1200px; margin: 0 auto;
}

/* Country selector row (tool pages) */
.country-row {
  margin-bottom: 1.5rem; padding: 1rem; background: var(--accent-tint);
  border-radius: 8px; border: 1px solid var(--accent);
}
.country-row .field { margin: 0; }
.country-row .hint {
  font-size: 0.8rem; color: var(--ink-soft); margin: 0.5rem 0 0;
  font-style: italic;
}

/* Legal page (policy pages) */
.legal-page {
  max-width: 48rem; margin: 0 auto; padding: 2rem 1.5rem 4rem;
}
.legal h1 {
  font-family: var(--serif); font-size: 2.25rem; color: var(--ink);
  margin: 1rem 0 0.5rem; font-weight: 500;
}
.legal .updated {
  font-family: var(--mono); font-size: 0.82rem; color: var(--muted);
  margin-bottom: 2rem;
}
.legal h2 {
  font-family: var(--serif); font-size: 1.4rem; color: var(--ink);
  margin: 2rem 0 0.75rem; font-weight: 500;
}
.legal h3 {
  font-family: var(--sans); font-size: 1.05rem; color: var(--ink);
  margin: 1.5rem 0 0.6rem; font-weight: 600;
}
.legal p {
  font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 0.9rem;
}
.legal ul, .legal ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.legal li {
  font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 0.4rem;
}
.legal strong { color: var(--ink); font-weight: 600; }
.legal em { font-style: italic; }
.legal a { color: var(--accent); }
.legal code {
  font-family: var(--mono); font-size: 0.85rem;
  background: var(--surface-2); padding: 0.1rem 0.4rem; border-radius: 3px;
}

/* Cookie table */
.cookie-table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem;
  font-size: 0.88rem;
}
.cookie-table th, .cookie-table td {
  text-align: left; padding: 0.6rem; border: 1px solid var(--line);
  vertical-align: top;
}
.cookie-table th {
  background: var(--surface-2); color: var(--ink); font-weight: 600;
}
.cookie-table td { color: var(--ink-soft); }
.cookie-table code { background: var(--surface); }
