/* ============================================================
   Everyday Tools UK — design system
   Editorial / Swiss. Paper, ink, one gold accent.
   ============================================================ */

:root {
  --ink:        #0c1c2e;
  --ink-soft:   #162c45;
  --ink-line:   #27405c;
  --paper:      #f6f4ee;
  --paper-2:    #fffefa;
  --white:      #ffffff;
  --muted:      #5d6b7a;
  --muted-2:    #8592a0;
  --border:     #dfe3e2;
  --border-2:   #c9d1d4;
  --gold:       #b5842f;
  --gold-soft:  #f2e8d4;
  --blue:       #17467a;
  --blue-soft:  #e8f0f7;
  --green:      #2f6d58;
  --green-soft: #e5f1ec;
  --radius:     3px;
  --radius-lg:  5px;
  --shadow:     0 18px 50px rgba(12, 28, 46, .08);
  --shadow-sm:  0 6px 20px rgba(12, 28, 46, .06);
  --maxw:       1180px;
  --gutter:     clamp(20px, 5vw, 64px);
  --serif:      "Newsreader", Georgia, serif;
  --sans:       "DM Sans", system-ui, sans-serif;
  --mono:       "IBM Plex Mono", ui-monospace, monospace;
  --ease:       cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold-soft); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 16px; color: #fff; }

.container { width: min(100% - (var(--gutter) * 2), var(--maxw)); margin-inline: auto; }
.narrow { max-width: 780px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.06; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.15rem; }
em { font-style: italic; color: var(--blue); }
p { margin: 0 0 1.1em; }
strong { font-weight: 700; }
small { font-size: .82rem; }

.eyebrow {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.eyebrow.plain::before { display: none; }
.eyebrow.on-dark { color: #d8b877; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); line-height: 1.65; max-width: 62ch; }
.meta-line { font-family: var(--mono); font-size: .72rem; color: var(--muted-2); letter-spacing: .04em; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2em; margin-bottom: .7em; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.prose h3 { margin-top: 1.8em; margin-bottom: .5em; }
.prose h4 { margin-top: 1.5em; margin-bottom: .4em; font-family: var(--sans); font-weight: 700; font-size: .98rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }
.prose blockquote {
  margin: 2rem 0; padding: 1.1rem 1.4rem; border-left: 3px solid var(--gold);
  background: var(--paper-2); color: var(--ink-soft);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.5); }
.prose tr:hover td { background: rgba(255,255,255,.6); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--paper); padding: .12em .35em; border-radius: 3px; }
.prose a, .text-link { text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--gold); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #966c22; color: #fff; }
.btn-outline { border-color: var(--border-2); background: transparent; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: rgba(255,255,255,.6); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .82rem; }
.btn svg { width: 17px; height: 17px; flex: none; }
.text-link { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 238, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 2px;
  display: grid; place-items: center; font-family: var(--mono); font-size: .95rem; font-weight: 600;
  position: relative;
}
.brand-mark::after { content: ""; position: absolute; width: 7px; height: 7px; background: var(--gold); right: -4px; top: -4px; border-radius: 50%; }
.brand-text { font-family: var(--serif); font-size: 1.22rem; line-height: 1; letter-spacing: -.02em; }
.brand-text span { color: var(--muted); }
.brand-text small { display: block; font-family: var(--mono); font-size: .53rem; letter-spacing: .16em; color: var(--muted-2); margin-top: 5px; }
.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.main-nav a { font-size: .88rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--gold); transition: right .22s var(--ease); }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--ink); }
.nav-cta { border: 1px solid var(--ink) !important; padding: 8px 14px !important; border-radius: var(--radius); }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--ink); color: #fff !important; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border-2); width: 42px; height: 42px; border-radius: var(--radius); align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: var(--muted); padding: 30px 0 4px; text-transform: uppercase; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--border-2); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(181,132,47,.09), transparent 34%),
    radial-gradient(circle at 12% 82%, rgba(23,70,122,.07), transparent 38%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 90px); align-items: center; position: relative; }
.hero h1 { margin: 26px 0 24px; }
.hero h1 em { color: var(--blue); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.hero-proof svg { width: 15px; height: 15px; color: var(--green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* hero visual — a paper "result slip" */
.hero-visual { position: relative; }
.slip {
  background: var(--paper-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 30px; transform: rotate(1.2deg);
}
.slip::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--border); border-radius: 2px; pointer-events: none;
}
.slip-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .65rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.slip-title { font-family: var(--serif); font-size: 1.5rem; margin: 20px 0 22px; }
.slip-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--border-2); font-size: .9rem; color: var(--muted); }
.slip-row b { font-family: var(--mono); color: var(--ink); font-weight: 500; }
.slip-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; }
.slip-total span { font-family: var(--mono); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.slip-total b { font-family: var(--mono); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; color: var(--blue); }
.slip-seal {
  position: absolute; right: -52px; bottom: -52px; width: 88px; height: 88px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; text-align: center;
  font-family: var(--mono); font-size: .56rem; line-height: 1.5; letter-spacing: .1em;
  box-shadow: 0 12px 30px rgba(12,28,46,.2); border: 5px solid var(--paper);
}
.hero-sticker { position: absolute; left: -26px; top: -26px; font-family: var(--serif); font-size: 4rem; color: var(--gold); opacity: .3; line-height: 1; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 42px; }
.section-head h2 { margin-top: 18px; max-width: 20ch; }
.section-head p { color: var(--muted); max-width: 42ch; margin: 0; }
.rule { height: 1px; background: var(--border); border: 0; margin: 0; }
.band { background: var(--ink); color: #f2f3f1; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #d8b877; }
.band .lede { color: #b7c3cf; }
.band .text-link { color: #fff; }
.band-dark-blue { background: var(--ink-soft); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--paper-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: block; position: relative; overflow: hidden;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--border-2); color: var(--ink); }
.card-num { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--gold); }
.card-icon { width: 34px; height: 34px; color: var(--blue); margin: 10px 0 16px; }
.card-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; font-size: .82rem; font-weight: 600; }
.card-foot svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
a.card:hover .card-foot svg { transform: translate(3px, -3px); }
.card-accent { border-top: 3px solid var(--gold); }
.card-blue { background: var(--blue-soft); border-color: #cbdceb; }
.card-blue .card-icon { color: var(--blue); }

.bento { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.bento .card:first-child { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; background: var(--ink); color: #fff; border-color: var(--ink); }
.bento .card:first-child h3, .bento .card:first-child .card-num { color: #fff; }
.bento .card:first-child p { color: #b7c3cf; }
.bento .card:first-child .card-icon { color: #d8b877; }
.bento .card:first-child:hover { border-color: var(--gold); }
.bento .big-symbol { font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--gold); }

.category-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.category-strip a { padding: 26px 20px; border-right: 1px solid var(--border); display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.category-strip a:last-child { border-right: 0; }
.category-strip a:hover { background: rgba(255,255,255,.6); }
.category-strip svg { width: 18px; height: 18px; color: var(--gold); }

/* ---------- Tool index ---------- */
.tool-search-wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 34px 0 26px; }
.search-field { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; background: var(--paper-2); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 0 14px; min-height: 52px; }
.search-field svg { width: 18px; height: 18px; color: var(--muted); }
.search-field input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--border-2); background: transparent; border-radius: 100px; padding: 8px 15px; font-size: .78rem; color: var(--muted); transition: all .2s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.results-count { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .06em; margin-bottom: 18px; }
.no-results { padding: 40px; border: 1px dashed var(--border-2); text-align: center; color: var(--muted); }

/* ---------- Calculator ---------- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 26px; align-items: start; }
.calc-card { background: var(--paper-2); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.calc-head { padding: 22px 28px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.calc-head h2 { font-size: 1.5rem; }
.calc-body { padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; background: #fff;
  border: 1px solid var(--border-2); border-radius: var(--radius); color: var(--ink); font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(181,132,47,.14); }
.field .hint { font-size: .76rem; color: var(--muted-2); }
.field-money { position: relative; }
.field-money span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-family: var(--mono); color: var(--muted); pointer-events: none; }
.field-money input { padding-left: 30px; }
.segmented { display: flex; border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; }
.segmented button { flex: 1; min-height: 46px; border: 0; background: #fff; font-size: .85rem; color: var(--muted); border-right: 1px solid var(--border); }
.segmented button:last-child { border-right: 0; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.result { background: var(--ink); color: #fff; padding: 28px; border-radius: var(--radius-lg); margin-top: 22px; }
.result-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .17em; text-transform: uppercase; color: #d8b877; }
.result-value { font-family: var(--mono); font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 500; line-height: 1.15; margin: 12px 0 4px; word-break: break-word; }
.result-sub { color: #b7c3cf; font-size: .88rem; margin-bottom: 18px; }
.result-lines { border-top: 1px solid var(--ink-line); margin-top: 16px; padding-top: 8px; }
.result-line { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: .86rem; color: #b7c3cf; }
.result-line b { font-family: var(--mono); color: #fff; font-weight: 500; }
.result-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.result-tools button { background: transparent; border: 1px solid var(--ink-line); color: #fff; border-radius: var(--radius); padding: 7px 12px; font-size: .78rem; }
.result-tools button:hover { border-color: #d8b877; color: #d8b877; }
.result.is-empty { background: var(--ink-soft); }
.result.is-empty .result-value { font-size: 1.15rem; font-family: var(--sans); color: #b7c3cf; font-weight: 400; }

.how-card { background: var(--paper-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.how-card h3 { font-size: 1.4rem; margin-bottom: 20px; }
.how-step { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); font-size: .9rem; }
.how-step b { font-family: var(--mono); color: var(--gold); font-size: .78rem; }
.how-step p { margin: 0; color: var(--muted); }
.how-card .fact { margin-top: 20px; padding: 16px; background: var(--blue-soft); border-radius: var(--radius); font-size: .84rem; color: var(--ink-soft); }
.how-card .fact b { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }

/* ---------- Explainer blocks ---------- */
.example-band { background: var(--ink-soft); color: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); }
.example-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.example-band p { color: #b7c3cf; }
.example-lines { font-family: var(--mono); font-size: .9rem; background: rgba(0,0,0,.2); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 20px; margin-top: 20px; overflow-x: auto; }
.example-lines div { padding: 5px 0; }
.example-lines b { color: #d8b877; font-weight: 500; }
.two-col-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.note { background: var(--paper-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.note h3 { font-size: 1.3rem; margin-bottom: 14px; }
.note ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.note li { margin-bottom: .5em; }
.note li::marker { color: var(--gold); }
.formula-note { border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; margin: 26px 0; max-width: 76ch; color: var(--muted); }
.formula-note b { color: var(--ink); }

/* ---------- FAQ / details ---------- */
.faq-list { border-top: 1px solid var(--border); }
details.faq { border-bottom: 1px solid var(--border); padding: 4px 0; }
details.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--serif); font-size: 1.18rem; font-weight: 500;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.25rem; color: var(--gold);
}
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); padding-right: 30px; margin-bottom: 20px; }

/* ---------- Guides ---------- */
.guide-card { display: flex; flex-direction: column; min-height: 100%; }
.guide-card .card-num { margin-bottom: 12px; }
.guide-card h3 { font-size: 1.55rem; }
.guide-card .read { margin-top: auto; padding-top: 24px; }
.article-head { padding: clamp(50px, 7vw, 90px) 0 36px; border-bottom: 1px solid var(--border); }
.article-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 22ch; margin: 22px 0; }
.article-body { padding: clamp(40px, 5vw, 70px) 0; }
.article-aside { border-left: 1px solid var(--border); padding-left: 24px; }
.toc { position: sticky; top: 104px; }
.toc h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { padding: 6px 0; font-size: .84rem; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--gold); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: clamp(30px, 6vw, 80px); align-items: start; }
.article-grid > .prose { grid-column: 1; }
.article-grid > .article-aside { grid-column: 2; grid-row: 1; }
.about-box { margin-top: 50px; padding: 24px; background: var(--paper-2); border: 1px solid var(--border); border-left: 3px solid var(--gold); font-size: .9rem; color: var(--muted); }
.about-box b { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(54px, 7vw, 90px) 0; text-align: center; }
.cta-band h2 { max-width: 22ch; margin: 0 auto 18px; }
.cta-band p { color: #b7c3cf; max-width: 55ch; margin: 0 auto 28px; }
.cta-band .eyebrow::before { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c5d0da; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 54px; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: #fff; display: inline-block; margin-bottom: 14px; }
.footer-brand span { color: #d8b877; }
.footer-intro { font-size: .9rem; color: #9fb0c0; max-width: 30ch; }
.footer-col h4 { font-family: var(--mono); font-size: .67rem; letter-spacing: .15em; text-transform: uppercase; color: #d8b877; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: .87rem; color: #c5d0da; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--ink-line); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: .78rem; color: #8fa1b2; }
.footer-bottom a { color: #8fa1b2; }
.footer-bottom a:hover { color: #fff; }
.footer-note { font-family: var(--mono); font-size: .72rem; color: #6f8495; letter-spacing: .02em; padding-bottom: 26px; }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 90; max-width: 720px; margin: auto;
  background: var(--paper-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(12,28,46,.22); padding: 22px 24px;
}
.consent[hidden] { display: none; }
.consent h3 { font-size: 1.2rem; margin-bottom: 8px; }
.consent p { font-size: .86rem; color: var(--muted); margin-bottom: 16px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Icons / misc ---------- */
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tag { display: inline-block; font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--border-2); border-radius: 100px; color: var(--muted); }
.tag.gold { border-color: var(--gold); color: var(--gold); }
.last-checked { font-family: var(--mono); font-size: .7rem; color: var(--muted); letter-spacing: .03em; margin-top: 18px; }
.last-checked a { text-decoration: underline; text-underline-offset: 3px; }
.grid-divide { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid-divide > div { padding: 34px 26px; border-right: 1px solid var(--border); }
.grid-divide > div:last-child { border-right: 0; }
.grid-divide b { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--blue); line-height: 1; margin-bottom: 8px; }
.grid-divide p { font-size: .88rem; color: var(--muted); margin: 0; }
.helpful { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .82rem; color: var(--muted); }
.helpful button { border: 1px solid var(--border-2); background: transparent; border-radius: 100px; padding: 5px 12px; font-size: .78rem; }
.helpful button:hover { border-color: var(--gold); color: var(--ink); }
.a-z { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 30px; }
.a-z a { font-family: var(--mono); font-size: .76rem; border: 1px solid var(--border); padding: 5px 9px; border-radius: 3px; }
.a-z a:hover { background: var(--ink); color: #fff; }
.dictionary dt { font-family: var(--serif); font-size: 1.25rem; margin-top: 22px; scroll-margin-top: 100px; }
.dictionary dd { margin: 6px 0 0; color: var(--muted); font-size: .94rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { grid-column: 1; grid-row: auto; border-left: 0; border-top: 1px solid var(--border); padding: 24px 0 0; margin-top: 10px; }
  .toc { position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--border); padding: 12px var(--gutter) 20px;
    flex-direction: column; align-items: stretch; gap: 4px; box-shadow: var(--shadow-sm);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 0; border-bottom: 1px solid var(--border); }
  .main-nav a::after { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .calc-layout { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .card:first-child { grid-row: span 1; grid-column: 1 / -1; }
  .category-strip { grid-template-columns: 1fr 1fr; }
  .category-strip a:nth-child(2) { border-right: 0; }
  .category-strip a:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 620px) {
  h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .grid-2, .grid-3, .grid-4, .two-col-notes, .form-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; gap: 16px; }
  .bento, .grid-divide { grid-template-columns: 1fr; }
  .grid-divide > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .grid-divide > div:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .slip { transform: none; }
  .slip-seal { display: none; }
  .hero-sticker { display: none; }
  .consent { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .result-value { font-size: 1.9rem; }
}

/* ---------- Trading course ---------- */
.disclaimer {
  border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: var(--radius);
  padding: 18px 22px; margin: 24px 0; max-width: 76ch;
}
.disclaimer b { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: #7d5a1c; margin-bottom: 6px; }
.disclaimer p { margin: 0; font-size: .88rem; color: #5b4a2b; line-height: 1.6; }
.progress-box {
  margin-top: 34px; padding: 24px 26px; background: var(--paper-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); display: grid; grid-template-columns: auto 1fr; gap: 10px 26px; align-items: center;
}
.progress-box > div:first-child { display: flex; flex-direction: column; }
.progress-box b { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.progress-box span { font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.progress-box p { grid-column: 1 / -1; margin: 6px 0 0; font-size: .78rem; color: var(--muted-2); }
.progress-track { height: 6px; background: var(--border); border-radius: 100px; overflow: hidden; }
.progress-track > div { height: 100%; background: var(--gold); transition: width .35s var(--ease); }
.module-card { display: flex; flex-direction: column; }
.module-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; font-family: var(--mono); font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.module-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink); }
.module-check input { width: 16px; height: 16px; accent-color: var(--gold); }
.module-card .card-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.steps { border-top: 1px solid var(--border); margin: 20px 0 32px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.step-num { font-family: var(--mono); font-size: .8rem; color: var(--gold); padding-top: 6px; }
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
.tool-box { background: var(--blue-soft); border: 1px solid #cbdceb; border-radius: var(--radius-lg); padding: 24px; margin: 26px 0; }
.tool-box b { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.tool-box p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 12px; }
.exercise { border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; margin: 26px 0; }
.exercise p { margin: 8px 0 0; color: var(--muted); }
.module-complete { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 34px 0 20px; padding: 20px 0; border-top: 1px solid var(--border); }
.module-complete span { font-size: .8rem; color: var(--muted); }
.module-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .consent, .calc-actions, .result-tools, .helpful, .no-print { display: none !important; }
  body { background: #fff; }
  .calc-card, .note, .card { box-shadow: none; border-color: #bbb; }
}
