:root {
  --ink: #14202e;
  --ink-soft: #4a5666;
  --paper: #f7f5f0;
  --white: #ffffff;
  --rule: #d9d4c7;
  --accent: #8a6d3b;
  --navy: #14202e;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
main { flex: 1; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.site-header .inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 36px; align-items: center; }
nav a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s;
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a.login {
  border: 1px solid var(--ink);
  padding: 9px 18px;
  color: var(--ink);
}
nav a.login:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(20,32,46,.86), rgba(20,32,46,.92)),
    radial-gradient(circle at 80% 20%, #2d4058 0%, var(--navy) 60%);
  color: var(--paper);
}
.hero .inner { max-width: 1160px; margin: 0 auto; padding: 120px 32px; width: 100%; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #c9b48a;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  max-width: 820px;
}
.hero .rule { width: 64px; height: 1px; background: #c9b48a; margin: 40px 0; }
.hero p { max-width: 560px; font-size: 18px; color: #c8ced6; font-weight: 300; }

/* Content pages */
.page { max-width: 1160px; margin: 0 auto; padding: 110px 32px 140px; }
.page-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.1;
}
.page .lead {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.4;
  font-weight: 400;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}

/* Login */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 120px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 52px 44px;
}
.auth-card h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  margin-bottom: 6px;
}
.auth-card .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 34px; }
label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
input[type=email], input[type=password] {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  border: 1px solid var(--rule);
  background: var(--paper);
  margin-bottom: 22px;
  outline: none;
  transition: border-color .2s;
}
input:focus { border-color: var(--ink); background: var(--white); }
button {
  width: 100%;
  padding: 15px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
button:hover { background: #22344a; }
.alert {
  border-left: 2px solid #9b3b3b;
  background: #f7eeee;
  color: #6e2a2a;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 24px;
}
.auth-card .help { margin-top: 26px; font-size: 13px; color: var(--ink-soft); text-align: center; }

/* Portal */
.portal-bar { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--rule); padding-bottom: 24px; margin-bottom: 48px; flex-wrap: wrap; gap: 12px; }
.portal-bar h1 { font-size: 40px; }
.portal-bar form button { width: auto; padding: 10px 20px; background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.portal-bar form button:hover { background: var(--ink); color: var(--paper); }
.empty { border: 1px dashed var(--rule); padding: 64px 32px; text-align: center; color: var(--ink-soft); background: var(--white); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--paper); }
.site-footer .inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 32px;
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer .disclaimer { max-width: 680px; line-height: 1.7; }

@media (max-width: 760px) {
  .site-header .inner { flex-direction: column; align-items: flex-start; padding: 20px 16px; gap: 14px; }
  nav ul { gap: 20px; flex-wrap: wrap; }
  .wordmark { font-size: 20px; }
  .hero .inner, .page { padding-left: 16px; padding-right: 16px; }
  .hero .inner { padding-top: 80px; padding-bottom: 80px; }
  .page { padding-top: 64px; padding-bottom: 80px; }
  .page-grid { grid-template-columns: 1fr; gap: 28px; }
  .page h1 { font-size: 40px; }
  .page .lead { font-size: 24px; }
  .auth-card { padding: 40px 24px; }
  .site-footer .inner { padding: 28px 16px; }
}

/* CTA + contact */
.hero .cta { margin-top: 36px; }
.hero .cta a {
  display: inline-block;
  border: 1px solid #c9b48a;
  color: var(--paper);
  padding: 13px 26px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.hero .cta a:hover { background: #c9b48a; color: var(--navy); }
.contact-list { list-style: none; border-top: 1px solid var(--rule); }
.contact-list li { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.contact-list .k {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.contact-list a { font-family: var(--serif); font-size: 28px; border-bottom: 1px solid var(--rule); }
.contact-list a:hover { border-color: var(--ink); }
.contact-list p { color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 760px) { .contact-list a { font-size: 22px; } }

/* ===== Product and comparison pages ===== */
.hero.compact { min-height: 0; }
.hero.compact .inner { padding: 96px 32px 88px; }
.hero .lede { max-width: 620px; font-size: 18px; color: #c8ced6; font-weight: 300; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.btn {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid #c9b48a;
  transition: background .2s, color .2s;
}
.btn-solid { background: #c9b48a; color: var(--navy); }
.btn-solid:hover { background: var(--paper); border-color: var(--paper); }
.btn-line { color: var(--paper); }
.btn-line:hover { background: rgba(201,180,138,.14); }
.hero-link { display: inline-block; margin-top: 8px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #c9b48a; border-bottom: 1px solid rgba(201,180,138,.5); padding-bottom: 4px; }
.hero-link:hover { color: var(--paper); border-color: var(--paper); }

.section { border-top: 1px solid var(--rule); }
.section .inner { max-width: 1160px; margin: 0 auto; padding: 96px 32px; }
.section.white { background: var(--white); }
.section.wide .inner { max-width: 1320px; }
.section h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.12; margin-bottom: 20px; }
.section h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.section .label { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.section p { max-width: 640px; }
.section .intro { color: var(--ink-soft); max-width: 640px; margin-bottom: 36px; }
.section a.text-link { border-bottom: 1px solid var(--accent); color: var(--ink); }
.section a.text-link:hover { color: var(--accent); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }

/* Flow diagram */
.flow svg { width: 100%; height: auto; display: block; }
.flow svg text { font-family: var(--sans); }
.flow figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 16px; line-height: 1.6; max-width: 520px; }

/* Steps (a real sequence) */
ol.steps { list-style: none; counter-reset: step; display: grid; gap: 30px; }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; }
ol.steps li::before { content: counter(step); font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent); grid-row: span 2; }
ol.steps p { color: var(--ink-soft); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
caption { text-align: left; font-size: 13px; color: var(--ink-soft); padding-bottom: 16px; }
th, td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--rule); }
thead th { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); border-bottom: 1px solid var(--ink); white-space: nowrap; }
tbody th { font-weight: 500; width: 28%; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
.note { font-size: 13px; color: var(--ink-soft); margin-top: 18px; max-width: 720px; line-height: 1.7; }

.compare-table { min-width: 1080px; font-size: 14px; }
.compare-table tbody th { width: 170px; position: sticky; left: 0; background: var(--white); }
.compare-table tr.ours th, .compare-table tr.ours td { background: #f3eee3; }
.compare-table tr.ours th { box-shadow: inset 2px 0 0 var(--accent); padding-left: 14px; }

/* Pairs and fit lists */
.pair article { border-top: 1px solid var(--ink); padding-top: 22px; }
.pair article p { color: var(--ink-soft); margin-bottom: 12px; }
.fit ul { list-style: none; }
.fit li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
.fit h3 { margin-bottom: 10px; }

/* Decision list */
dl.choose { display: grid; grid-template-columns: 1fr 1.6fr; border-top: 1px solid var(--rule); }
dl.choose dt, dl.choose dd { padding: 20px 0; border-bottom: 1px solid var(--rule); }
dl.choose dt { font-family: var(--serif); font-size: 22px; line-height: 1.3; padding-right: 40px; }
dl.choose dd { color: var(--ink-soft); }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 760px) {
  .hero.compact .inner { padding: 64px 16px; }
  .section .inner { padding: 64px 16px; }
  .section h2 { font-size: 32px; }
  .two-col, .split { grid-template-columns: 1fr; gap: 40px; }
  dl.choose { grid-template-columns: 1fr; }
  dl.choose dt { border-bottom: 0; padding-bottom: 4px; font-size: 20px; }
  tbody th { width: auto; }
}
.two-col > *, .split > * { min-width: 0; }
thead th { white-space: normal; }
.compare-table thead th { white-space: nowrap; }
thead th.num { padding-left: 16px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Guide */
ul.guide-list { list-style: none; border-top: 1px solid var(--rule); margin-top: 10px; }
ul.guide-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
ul.guide-toc { list-style: none; margin-top: 10px; columns: 2; column-gap: 40px; }
ul.guide-toc li { padding: 6px 0; break-inside: avoid; }
.section .split p + p { margin-top: 16px; }
[id] { scroll-margin-top: 24px; }
@media (max-width: 760px) { ul.guide-toc { columns: 1; } }
nav a { white-space: nowrap; }
nav ul { gap: 28px; flex-wrap: wrap; row-gap: 12px; justify-content: flex-end; }
@media (max-width: 1080px) { nav ul { gap: 20px; } nav a { letter-spacing: 0.14em; } }
@media (max-width: 760px) { nav ul { justify-content: flex-start; } }

/* FAQ */
.faq-item { padding: 26px 0; border-bottom: 1px solid var(--rule); }
.faq-item:first-child { padding-top: 0; }
.faq-item h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
.faq-item h3 a:hover { color: var(--accent); }
.faq-item p { color: var(--ink-soft); }
.faq-item p + p { margin-top: 12px; }
@media (max-width: 760px) { .faq-item h3 { font-size: 21px; } }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.calc-form fieldset { border: 0; border-top: 1px solid var(--ink); padding: 18px 0 8px; margin-bottom: 18px; }
.calc-form legend { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); padding-right: 12px; }
.field { margin-bottom: 14px; }
.field label { margin-bottom: 6px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-wrap { display: flex; align-items: stretch; border: 1px solid var(--rule); background: var(--paper); }
.input-wrap:focus-within { border-color: var(--ink); background: var(--white); }
.input-wrap input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 12px; font: inherit; font-variant-numeric: tabular-nums; outline: none; }
.input-wrap .unit { padding: 11px 12px 11px 0; color: var(--ink-soft); font-size: 13px; white-space: nowrap; align-self: center; }
.field .hint { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 5px; }
.calc-results { position: sticky; top: 24px; }
.calc-results .headline { font-family: var(--serif); font-size: 26px; line-height: 1.3; margin-bottom: 24px; max-width: none; }
.results-table th, .results-table td { padding: 12px 10px 12px 0; }
.results-table tbody th { width: auto; }
.btn-dark { border-color: var(--ink); color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--paper); }
.calc-chart { margin-top: 24px; }
.calc-chart .legend { display: flex; gap: 24px; font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; flex-wrap: wrap; }
.calc-chart .key i, .tip i { display: inline-block; width: 12px; height: 3px; vertical-align: middle; margin-right: 8px; }
.chart-box { position: relative; background: var(--white); border: 1px solid var(--rule); padding: 12px; }
.chart-box svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.tip { position: absolute; background: var(--white); border: 1px solid var(--rule); padding: 8px 12px; font-size: 13px; line-height: 1.6; pointer-events: none; min-width: 150px; }
.table-view { margin-top: 14px; font-size: 13px; }
.table-view summary { cursor: pointer; color: var(--ink-soft); }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; gap: 40px; } .calc-results { position: static; } }
.calc-form fieldset { min-width: 0; }
.input-wrap input { width: 100%; }
nav ul { gap: 22px; }
nav a { font-size: 11px; letter-spacing: 0.13em; }
nav a.login { padding: 8px 14px; }
@media (max-width: 1160px) { nav ul { gap: 16px; } nav a { letter-spacing: 0.1em; } }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.kpi { padding: 18px 16px 18px 0; }
.kpi + .kpi { padding-left: 16px; border-left: 1px solid var(--rule); }
.kpi-label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.kpi-value { display: block; font-family: var(--sans); font-size: 30px; font-weight: 400; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.kpi-fin { border-bottom: 2px solid #b07a28; display: inline-block; padding-bottom: 4px; }
.kpi-sale { border-bottom: 2px solid #2a62a6; display: inline-block; padding-bottom: 4px; }
.verdict { font-size: 16px; color: var(--ink); margin-bottom: 26px; max-width: none; }
@media (max-width: 760px) { .kpi-value { font-size: 22px; } .kpis { grid-template-columns: 1fr 1fr 1fr; } }
.kpi-label { white-space: nowrap; }
@media (max-width: 760px) { .kpi-value { font-size: 19px; } .kpi { padding-right: 8px; } .kpi + .kpi { padding-left: 10px; } .kpi-label { font-size: 10px; letter-spacing: 0.08em; } }

/* Privacy note + prose */
.site-footer .privacy-note { flex-basis: 100%; }
.site-footer .privacy-note a, .prose a { border-bottom: 1px solid var(--rule); }
.site-footer .privacy-note a:hover, .prose a:hover { border-color: var(--ink); }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 40px 0 12px; }
.prose p { margin-bottom: 16px; color: var(--ink); max-width: 680px; }
.prose p.lead { margin-bottom: 8px; }

/* Nav: Resources dropdown (CSS only; on touch screens the link opens resources.html) */
nav li { position: relative; }
nav .sub { display: none; position: absolute; top: 100%; left: -18px; z-index: 30; list-style: none; flex-direction: column; gap: 0; min-width: 170px; padding: 14px 0 10px; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 8px 24px rgba(20,32,46,.08); }
nav .sub a { display: block; padding: 8px 18px; }
@media (hover: hover) and (min-width: 761px) {
  nav .has-sub:hover > .sub, nav .has-sub:focus-within > .sub { display: flex; }
}
/* Footer links */
.site-footer .footer-links { flex-basis: 100%; }
.site-footer .footer-links a { border-bottom: 1px solid var(--rule); }
.site-footer .footer-links a:hover { border-color: var(--ink); }
.site-footer .disclaimer-extra { margin-top: 10px; }
/* Calculator */
.fieldset-note { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin: 4px 0 18px; }
/* Home sections */
.value-points { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value-points li { border-top: 1px solid var(--ink); padding-top: 22px; font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.audience article h2 { font-size: 32px; margin-bottom: 12px; }
.audience article p { font-size: 17px; }
.teaser h2 { max-width: 760px; }
.teaser .btn { margin-top: 8px; }
/* Contact + resources */
.contact-help { margin-top: 48px; }
.contact-help h2 { margin-top: 0; }
.checklist { list-style: none; border-top: 1px solid var(--rule); margin-bottom: 20px; }
.checklist li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.resource-list p { color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 760px) {
  .value-points { grid-template-columns: 1fr; gap: 24px; }
  .value-points li { font-size: 22px; }
  .audience article h2 { font-size: 28px; }
}
