/* ==========================================================================
   hub.in — Design System
   Palette: white + neutral warm greys, terracotta accent, deep ink
   No external fonts, no CDN dependencies.
   ========================================================================== */

:root {
  --white: #ffffff;
  --paper: #fbfaf7;
  --sand-50: #f7f4ef;
  --sand-100: #f1ece4;
  --sand-200: #e6dfd4;
  --sand-300: #d6ccbd;
  --ink: #16150f;
  --ink-soft: #3b3931;
  --muted: #6f6a5f;
  --muted-light: #8d887c;
  --accent: #a94a24;
  --accent-dark: #8a3a1a;
  --accent-soft: #f6e9e2;
  --gold: #b98a2f;
  --green: #2f6b52;
  --line: #e6dfd4;
  --line-strong: #cfc5b5;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-xs: 0 1px 2px rgba(22, 21, 15, .05);
  --shadow-sm: 0 2px 8px rgba(22, 21, 15, .06);
  --shadow-md: 0 8px 28px rgba(22, 21, 15, .08);
  --shadow-lg: 0 18px 50px rgba(22, 21, 15, .12);

  --wrap: 1160px;
  --wrap-narrow: 780px;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg { max-width: 100%; display: block; }

img { height: auto; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.012em;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem); }
h3 { font-size: clamp(1.18rem, 1.03rem + .6vw, 1.4rem); }
h4 { font-size: 1.06rem; font-family: var(--sans); letter-spacing: 0; font-weight: 650; }

p { margin: 0 0 1.15em; }

ul, ol { margin: 0 0 1.3em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.6rem 0;
}

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

::selection { background: #f3d9cc; color: var(--ink); }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.wrap-narrow {
  max-width: var(--wrap-narrow);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--sand { background: var(--sand-50); }
.section--paper { background: var(--paper); }

.section-head {
  max-width: 660px;
  margin-bottom: 40px;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.13rem;
  color: var(--muted);
  line-height: 1.65;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--ink) 0%, #3d3a30 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: 0;
}
.brand-tm {
  font-family: var(--sans);
  font-size: .42em;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-weight: 550;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.nav-link:hover { background: var(--sand-100); color: var(--ink); }
.nav-link[aria-expanded="true"] { background: var(--sand-100); color: var(--ink); }

.nav-item { position: relative; }

.caret {
  width: 9px; height: 9px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .18s ease;
}
.nav-link[aria-expanded="true"] .caret { transform: rotate(-135deg) translateY(-2px); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 300px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 10px;
  display: none;
}
.dropdown.is-open { display: block; }

.dropdown-link {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .92rem;
  line-height: 1.4;
}
.dropdown-link strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
}
.dropdown-link span {
  display: block;
  color: var(--muted-light);
  font-size: .8rem;
  margin-top: 2px;
}
.dropdown-link:hover { background: var(--sand-50); }

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 8px;
  transition: background .18s ease, transform .18s ease;
}
.header-cta:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 1040px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: grid; }
  .site-header { position: sticky; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 12px 20px 22px;
}
.mobile-menu.is-open { display: block; }

.mobile-menu a {
  display: block;
  padding: 11px 4px;
  border-bottom: 1px solid var(--sand-100);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .98rem;
  font-weight: 550;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .sub {
  padding-left: 14px;
  font-weight: 450;
  font-size: .9rem;
  color: var(--muted);
}
.mobile-menu .mobile-cta {
  margin-top: 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  text-align: center;
  border: 0;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }

.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover { background: var(--accent-dark); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--white); color: var(--ink); }

.btn--light {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--sm { padding: 9px 16px; font-size: .86rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 420px at 82% -8%, #f6ede6 0%, rgba(246, 237, 230, 0) 62%),
    linear-gradient(180deg, var(--sand-50) 0%, var(--white) 100%);
  padding: 64px 0 68px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: .5em; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 30em;
  margin-bottom: 1.6em;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .02em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.badge--accent { background: var(--accent-soft); border-color: #ecd4c8; color: var(--accent-dark); }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 58%;
  height: 58%;
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.hero-note {
  position: absolute;
  left: -22px;
  bottom: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  max-width: 230px;
}
.hero-note strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.1;
}
.hero-note span { font-size: .78rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero { padding: 42px 0 52px; }
  .hero-media { order: -1; }
  .hero-note { left: 12px; bottom: -18px; }
  .hero-media::after { display: none; }
}

/* ---------- Search ---------- */
.search-block { max-width: 620px; }

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-form:focus-within {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

.search-form svg { flex-shrink: 0; color: var(--muted-light); }

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}
.search-form input::placeholder { color: var(--muted-light); }

.search-form button {
  flex-shrink: 0;
  border: 0;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease;
}
.search-form button:hover { background: var(--accent); }

.search-hint {
  font-size: .82rem;
  color: var(--muted-light);
  margin: 12px 0 0;
}
.search-hint a { color: var(--muted); text-decoration: underline; }

.search-results {
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-height: 380px;
  overflow-y: auto;
}
.search-results[hidden] { display: none; }

.search-result {
  display: block;
  padding: 13px 18px;
  border-bottom: 1px solid var(--sand-100);
  text-decoration: none;
  color: var(--ink-soft);
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover { background: var(--sand-50); }
.search-result strong {
  display: block;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 620;
}
.search-result em {
  display: block;
  font-style: normal;
  font-size: .8rem;
  color: var(--muted-light);
  margin-top: 2px;
}
.search-empty {
  padding: 20px 18px;
  font-size: .9rem;
  color: var(--muted);
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.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)); }

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sand-300);
  color: inherit;
}
.card h3 { margin-bottom: .35em; font-size: 1.16rem; }
.card p { font-size: .92rem; color: var(--muted); margin-bottom: 1em; }
.card .card-link {
  margin-top: auto;
  font-size: .85rem;
  font-weight: 650;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--sand-100);
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.card-icon svg { width: 22px; height: 22px; }

.card--photo { padding: 0; overflow: hidden; }
.card--photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--sand-100);
}
.card--photo .card-body { padding: 22px 24px 24px; }

.list-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.list-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--sand-300);
  color: inherit;
}
.list-card img {
  width: 132px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.list-card h3 { font-size: 1.1rem; margin-bottom: .3em; }
.list-card p { font-size: .91rem; color: var(--muted); margin-bottom: .5em; }
.list-card .meta { font-size: .78rem; color: var(--muted-light); }

@media (max-width: 560px) {
  .list-card { flex-direction: column; gap: 14px; }
  .list-card img { width: 100%; height: 150px; }
}

/* ---------- Tags / meta ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tag {
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.tag--neutral {
  background: var(--sand-100);
  color: var(--muted);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: .8rem;
  color: var(--muted-light);
  margin-bottom: 18px;
}
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Page hero (inner) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--sand-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 52px;
}

.breadcrumbs {
  font-size: .8rem;
  color: var(--muted-light);
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs .sep { color: var(--line-strong); }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); }

.page-hero h1 { max-width: 20em; }
.page-hero .lede { max-width: 44em; }

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.page-hero-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-hero-grid img { aspect-ratio: 16 / 9; }
}

/* ---------- Article ---------- */
.article-body {
  padding: 56px 0 20px;
}
.article-body h2 {
  margin-top: 2em;
  padding-top: .2em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 1.7em; }
.article-body p, .article-body ul, .article-body ol { max-width: var(--wrap-narrow); }
.article-body > .wrap > p { }

.article-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 2rem;
  max-width: var(--wrap-narrow);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--sand-50);
}
.toc h4 {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted-light);
  margin-bottom: 12px;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  font-size: .87rem;
}
.toc li { margin: 0 0 8px; counter-increment: toc; }
.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  display: flex;
  gap: 8px;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--muted-light);
  font-size: .74rem;
  font-weight: 700;
  padding-top: 2px;
}
.toc a:hover { color: var(--accent); }

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--sand-50);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 2rem 0;
  max-width: var(--wrap-narrow);
}
.callout h4 { margin-bottom: .4em; color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.callout--accent { border-left-color: var(--accent); }
.callout--green { border-left-color: var(--green); }

.checklist {
  list-style: none;
  padding: 0;
  max-width: var(--wrap-narrow);
}
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: .7em;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .38em;
  width: 17px; height: 17px;
  border-radius: 4px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
}
.checklist--checked li::before {
  background: var(--green);
  border-color: var(--green);
}
.checklist--checked li::after {
  content: "";
  position: absolute;
  left: 5.6px; top: .62em;
  width: 5px; height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(40deg);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 2rem 0;
  background: var(--white);
}

.article-figure {
  margin: 2.4rem 0;
  max-width: var(--wrap-narrow);
}
.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--sand-100);
}
.article-figure figcaption {
  font-size: .78rem;
  color: var(--muted-light);
  margin-top: 10px;
  line-height: 1.5;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 520px;
}
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sand-100);
  vertical-align: top;
}
th {
  background: var(--sand-50);
  font-weight: 650;
  color: var(--ink);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
tbody tr:last-child td { border-bottom: 0; }

blockquote {
  margin: 2rem 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--ink);
  max-width: var(--wrap-narrow);
}

/* ---------- Lead magnet / signup ---------- */
.lead-band {
  background: linear-gradient(150deg, #1d1c16 0%, #2c2a21 55%, #3a3529 100%);
  color: #e9e5dc;
  border-radius: var(--radius-lg);
  padding: 46px 44px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.lead-band::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -140px; top: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 138, 47, .28) 0%, rgba(185, 138, 47, 0) 68%);
}
.lead-band h2 { color: #fff; }
.lead-band p { color: #c8c3b7; font-size: .96rem; }
.lead-band .eyebrow { color: #d9b877; }
.lead-band form { position: relative; z-index: 1; }

@media (max-width: 860px) {
  .lead-band { grid-template-columns: 1fr; gap: 26px; padding: 34px 26px; }
}

.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-row input[type="email"],
.form-row input[type="text"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font: inherit;
  font-size: .94rem;
}
.form-row input::placeholder { color: #9c968a; }
.form-row input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .12);
}
.form-note {
  font-size: .76rem;
  color: #9c968a;
  margin: 12px 0 0;
  line-height: 1.5;
}
.form-status {
  font-size: .86rem;
  margin: 12px 0 0;
  min-height: 1.2em;
}
.form-status.is-ok { color: #9ed9b6; }
.form-status.is-err { color: #f0b2a0; }

/* ---------- Light form panel ---------- */
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 7px;
  letter-spacing: .01em;
}
.field .optional { color: var(--muted-light); font-weight: 450; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: .94rem;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(22, 21, 15, .07);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .hint { font-size: .76rem; color: var(--muted-light); margin: 6px 0 0; }

.check-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .84rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.check-field input { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }

/* ---------- How it works / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  counter-reset: step;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.step {
  counter-increment: step;
  padding-top: 26px;
  border-top: 2px solid var(--sand-200);
  position: relative;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}
.step h3 { font-size: 1.1rem; margin-bottom: .4em; }
.step p { font-size: .92rem; color: var(--muted); margin-bottom: 0; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--white);
  padding: 26px 22px;
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.85rem;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat span { font-size: .8rem; color: var(--muted); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA panel ---------- */
.cta-panel {
  border: 1px solid var(--line);
  background: var(--sand-50);
  border-radius: var(--radius-lg);
  padding: 42px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
.cta-panel h2 { margin-bottom: .3em; }
.cta-panel p { margin-bottom: 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 700px) { .cta-panel { padding: 30px 24px; } }

/* ---------- Footer ---------- */
.site-footer {
  background: #17160f;
  color: #b6b1a5;
  padding: 60px 0 0;
  margin-top: 0;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-mark { background: #fff; color: #17160f; }
.footer-brand p { color: #948e82; font-size: .88rem; max-width: 34ch; }

.footer-col h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: #b6b1a5;
  text-decoration: none;
  font-size: .88rem;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-email {
  margin-top: 16px;
  font-size: .84rem;
}
.email-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #e2ded3;
  font: inherit;
  font-size: .84rem;
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.email-reveal-btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .34); }
.email-reveal-btn svg { width: 15px; height: 15px; }

.footer-email-output {
  margin-top: 10px;
  font-size: .88rem;
  word-break: break-all;
}
.footer-email-output a { color: #e8c98c; }

.footer-cookie {
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0;
  font-size: .79rem;
  color: #8f8a7e;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.6;
}
.footer-cookie svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: #b9985a; }
.footer-cookie a { color: #c4bda9; }

.footer-bottom {
  padding: 22px 0 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: .8rem;
  color: #7f7a6e;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: #8f8a7e; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

.footer-disclaimer {
  font-size: .74rem;
  color: #6f6a5f;
  padding-bottom: 22px;
  max-width: 88ch;
  line-height: 1.6;
}

/* ---------- Misc components ---------- */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
}
.pill-list a,
.pill-list span {
  display: inline-block;
  font-size: .84rem;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  text-decoration: none;
}
.pill-list a:hover { border-color: var(--ink); color: var(--ink); background: var(--sand-50); }

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.feature-split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.feature-split--reverse .feature-split-media { order: 2; }
@media (max-width: 860px) {
  .feature-split { grid-template-columns: 1fr; gap: 30px; }
  .feature-split--reverse .feature-split-media { order: 0; }
}

.download-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.download-item:hover { box-shadow: var(--shadow-sm); border-color: var(--sand-300); }
.download-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.download-icon svg { width: 20px; height: 20px; }
.download-item h3 { font-size: 1.05rem; margin-bottom: .3em; }
.download-item p { font-size: .89rem; color: var(--muted); margin-bottom: .7em; }
.download-item .meta { font-size: .76rem; color: var(--muted-light); }

.calc-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
}
@media (max-width: 820px) { .calc-panel { grid-template-columns: 1fr; padding: 24px; } }

.calc-result {
  background: linear-gradient(160deg, #1d1c16, #332f24);
  border-radius: var(--radius);
  padding: 28px;
  color: #e9e5dc;
}
.calc-result h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1em; }
.calc-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: .9rem;
}
.calc-line:last-of-type { border-bottom: 0; }
.calc-line span { color: #a8a294; }
.calc-line strong { color: #fff; font-variant-numeric: tabular-nums; }
.calc-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}
.calc-total span { font-size: .82rem; color: #b9b3a4; text-transform: uppercase; letter-spacing: .08em; }
.calc-total strong { font-family: var(--serif); font-size: 1.7rem; color: #fff; font-variant-numeric: tabular-nums; }
.calc-note { font-size: .74rem; color: #8b8577; margin: 16px 0 0; line-height: 1.5; }

.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.range-val {
  min-width: 58px;
  text-align: right;
  font-size: .86rem;
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.faq { max-width: var(--wrap-narrow); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq details[open] { padding-bottom: 20px; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted-light);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: .8em 0 0; font-size: .93rem; color: var(--muted); }

.notice {
  border: 1px solid #ecd4c8;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: .86rem;
  color: var(--accent-dark);
  margin-bottom: 2rem;
}
.notice strong { color: var(--accent-dark); }

/* ---------- 404 ---------- */
.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}
.error-page .code {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--sand-200);
  line-height: 1;
  margin-bottom: 0;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .lead-band, .cta-panel, .nav { display: none; }
}
