/* ═══════════════════════════════════════════════════════════
   Fakturette — calculators and policy pages, charcoal & blue.
   Loads after charcoal.css and landing.css, reusing their tokens
   and grid shim. Only adds what those two do not already cover.
   ═══════════════════════════════════════════════════════════ */

/* Legacy aliases: these pages carry inline styles that reference the
   old palette by name. Pointing the old names at the new tokens keeps
   any straggler on-theme instead of leaving it bright blue. */
:root {
  --primary-blue: var(--accent);
  --dark-blue:    var(--accent-2);
  --light-blue:   var(--bg-2);
  --accent-blue:  var(--accent);
}

/* ─── grid additions ───────────────────────────────────── */
.justify-content-center { justify-content: center; }
.g-0 { row-gap: 0; column-gap: 0; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.me-2 { margin-right: .5rem; }
@media (min-width: 992px) {
  .col-lg-3 { grid-column: span 3; }
  .col-lg-8 { grid-column: span 8; }
}

/* ─── calculator hero ──────────────────────────────────── */
.hero-calc {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
}
.hero-calc h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-variation-settings: "wdth" 110;
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 1.1rem;
}
.hero-calc .lead { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 56ch; margin: 0 auto; }

/* ─── the calculator itself ────────────────────────────── */
.calc-card {
  background: var(--bg-2);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.calc-inputs { display: grid; gap: 1.1rem; }
.calc-label, .label {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.calc-input, .calc-select {
  width: 100%;
  font: inherit;
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  padding: .75rem .9rem;
  transition: border-color .18s ease;
}
.calc-select {
  appearance: none;
  /* a plain chevron, drawn rather than loaded */
  background-image: linear-gradient(45deg, transparent 49%, var(--muted) 50%),
                    linear-gradient(-45deg, transparent 49%, var(--muted) 50%);
  background-size: 6px 6px, 6px 6px;
  background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.calc-input:focus, .calc-select:focus { border-color: var(--accent); outline: none; }
.calc-input:focus-visible, .calc-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.calc-results {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-2);
}
.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .6rem;
  border-bottom: 1px solid var(--rule);
}
.result-label { color: var(--muted); font-size: var(--t-small); }
.result-value { font-variant-numeric: tabular-nums; color: var(--fg); font-size: var(--t-small); }

/* the answer the visitor came for */
.result-highlight {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 3px double var(--accent);
  border-bottom: 0;
}
.result-highlight .result-label { color: var(--fg); }
.result-highlight .result-value,
.result-highlight .amount,
.amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-variation-settings: "wdth" 100;
  letter-spacing: -.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.info-card {
  padding: 1.2rem 0 1.2rem 1.15rem;
  border-left: 2px solid var(--rule-2);
  color: var(--muted);
  font-size: var(--t-small);
}
.info-card strong, .info-card h3 { color: var(--fg); }
.info-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  font-variation-settings: "wdth" 100;
  letter-spacing: -.012em;
  margin: 0 0 .4rem;
}

/* ─── FAQ, now native <details> ────────────────────────── */
.faq-d {
  border-bottom: 1px solid var(--rule);
}
.faq-d > summary {
  list-style: none;
  cursor: pointer;
  padding-block: 1.15rem;
  padding-right: 2rem;
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  font-variation-settings: "wdth" 100;
  letter-spacing: -.014em;
  color: var(--fg);
  transition: color .18s ease;
}
.faq-d > summary::-webkit-details-marker { display: none; }
.faq-d > summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform .22s ease, color .18s ease;
}
.faq-d[open] > summary::after { transform: translateY(-50%) rotate(45deg); color: var(--accent); }
.faq-d > summary:hover { color: var(--accent); }
.faq-d__body {
  padding-bottom: 1.3rem;
  color: var(--muted);
  font-size: var(--t-small);
  max-width: 70ch;
}

/* ─── closing CTA on the calculators ───────────────────── */
.cta-section {
  background: var(--bg-2);
  border-block: 1px solid var(--rule);
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem);
}
.cta-feature { color: var(--muted); font-size: var(--t-small); padding-block: .3rem; }
.cta-feature strong { color: var(--fg); }
.cta-bottom { color: var(--muted); font-size: var(--t-small); margin-top: 1rem; }

/* ─── privacy policy ───────────────────────────────────── */
.policy-header {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--rule);
}
.policy-header h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-variation-settings: "wdth" 108;
  letter-spacing: -.03em;
  line-height: 1.03;
  margin: 0;
}
.updated {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .9rem;
}
.policy-content {
  padding-block: clamp(2rem, 4vw, 3.25rem);
  max-width: 74ch;
}
.policy-content h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-variation-settings: "wdth" 104;
  letter-spacing: -.018em;
  margin: 2.4rem 0 .8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.policy-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.policy-content h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  font-variation-settings: "wdth" 100;
  margin: 1.5rem 0 .5rem;
}
.policy-content p, .policy-content li { color: var(--muted); }
.policy-content p { margin-bottom: 1rem; }
.policy-content ul, .policy-content ol { padding-left: 1.2rem; margin-bottom: 1.2rem; }
.policy-content li { margin-bottom: .4rem; }
.policy-content a { color: var(--accent); }
.policy-content strong { color: var(--fg); }
.policy-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.policy-content th, .policy-content td {
  text-align: left; padding: .65rem .8rem;
  border-bottom: 1px solid var(--rule); color: var(--muted); font-size: var(--t-small);
}
.policy-content th { color: var(--fg); font-weight: 600; }

.back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color .18s ease;
}
.back-link:hover { color: var(--accent); }

.footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.25rem;
  color: var(--muted);
  font-size: var(--t-small);
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }
