/* =========================================================================
   Weiss & Co. — Private Investment Intelligence
   Design system stylesheet. Editorial / private-bank aesthetic.
   Tokens sourced from docs/design.md.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Palette */
  --obsidian:   #10100E;
  --graphite:   #1D1D1A;
  --charcoal:   #2B2A26;
  --ivory:      #F7F3EA;
  --paper:      #EFE7D8;
  --gold:       #B99A5B;
  --gold-soft:  #C9AE77;
  --green:      #133B32;
  --green-lit:  #1C5445;
  --oxide:      #8A4F2B;
  --stone:      #A9A397;
  --white:      #FFFFFF;

  /* Semantic */
  --bg:            var(--ivory);
  --bg-panel:      var(--paper);
  --ink:           #14130F;
  --ink-soft:      #4A473E;
  --ink-mute:      #7C776A;
  --line:          rgba(20, 19, 15, 0.12);
  --line-strong:   rgba(20, 19, 15, 0.22);

  /* Dark section semantics */
  --d-ink:         #EDE7D8;
  --d-ink-soft:    #B7B0A0;
  --d-ink-mute:    #7E7869;
  --d-line:        rgba(185, 154, 91, 0.18);
  --d-line-soft:   rgba(247, 243, 234, 0.08);

  /* Type */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, monospace;

  /* Metrics */
  --wrap: 1240px;
  --wrap-narrow: 940px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 5px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------------------
   2. Reset / base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--obsidian); }

/* -------------------------------------------------------------------------
   3. Typography primitives
   ------------------------------------------------------------------------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: 0.004em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.eyebrow.center { justify-content: center; }
.mono { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; }
.serif-italic { font-family: var(--serif); font-style: italic; }

/* -------------------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section.tight { padding-block: clamp(56px, 7vw, 96px); }
.center { text-align: center; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head.center { margin-inline: auto; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.dark .rule, .rule.gold { background: var(--d-line); }

/* Dark surfaces */
.dark {
  background: var(--obsidian);
  color: var(--d-ink);
  --ink: var(--d-ink);
  --ink-soft: var(--d-ink-soft);
  --ink-mute: var(--d-ink-mute);
  --line: var(--d-line-soft);
  --line-strong: var(--d-line);
  --bg-panel: var(--graphite);
}
.dark h1, .dark h2, .dark h3, .dark .display { color: var(--ivory); }
.dark .lede { color: var(--d-ink-soft); }

.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 1; }

/* -------------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.65em;
  font-family: var(--sans);
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.03em;
  padding: 0.95em 1.6em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn .arw { transition: transform .35s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn-gold { background: var(--gold); color: var(--obsidian); }
.btn-gold:hover { background: var(--gold-soft); }

.btn-ink { background: var(--ink); color: var(--ivory); }
.btn-ink:hover { background: var(--green); }
.dark .btn-ink { background: var(--ivory); color: var(--obsidian); }
.dark .btn-ink:hover { background: var(--white); }

.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.dark .btn-line { border-color: var(--d-line); color: var(--d-ink); }
.dark .btn-line:hover { border-color: var(--gold); color: var(--gold); }

.link-gold {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 0.6em;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.link-gold:hover { border-color: var(--gold); gap: 0.9em; }

/* -------------------------------------------------------------------------
   6. Top bar + Nav
   ------------------------------------------------------------------------- */
.topbar {
  background: var(--obsidian); color: var(--d-ink-soft);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 1px solid var(--d-line);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar .dot { color: var(--gold); margin-inline: 0.6em; }
.topbar a:hover { color: var(--gold); }
.topbar .tb-right { display: flex; gap: 1.8em; }
@media (max-width: 760px){ .topbar .tb-right span:not(:last-child){ display: none; } }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 234, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(247, 243, 234, 0.94); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .mark { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }
.brand .sub { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-mute); margin-top: 5px; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-links a.nl {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-soft);
  position: relative; padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav-links a.nl::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav-links a.nl:hover { color: var(--ink); }
.nav-links a.nl:hover::after, .nav-links a.nl.active::after { width: 100%; }
.nav-links a.nl.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 0.7em 1.25em; }

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); background: transparent; border-radius: 2px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.4px; background: var(--ink); transition: .3s var(--ease); }
.burger span:nth-child(1){ top: 14px; } .burger span:nth-child(2){ top: 19px; } .burger span:nth-child(3){ top: 24px; }
body.menu-open .burger span:nth-child(1){ top: 19px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ top: 19px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--obsidian); color: var(--ivory);
  transform: translateY(-100%); transition: transform .5s var(--ease); padding-top: 120px;
  visibility: hidden;
}
body.menu-open .mobile-menu { transform: translateY(0); visibility: visible; }
.mobile-menu a { display: block; font-family: var(--serif); font-size: 2rem; padding: 0.35em var(--gutter); border-bottom: 1px solid var(--d-line-soft); color: var(--ivory); }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .mm-cta { padding: 2rem var(--gutter); display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 940px){
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
}

/* -------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------- */
.hero { background: var(--obsidian); color: var(--d-ink); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(28,84,69,0.42) 0%, rgba(16,16,14,0) 55%),
    radial-gradient(90% 80% at 8% 100%, rgba(185,154,91,0.14) 0%, rgba(16,16,14,0) 50%),
    linear-gradient(180deg, #0C0C0A 0%, #10100E 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 72px); align-items: center;
  padding-block: clamp(64px, 9vw, 128px);
}
.hero h1 { color: var(--ivory); letter-spacing: 0.004em; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero .lede { color: var(--d-ink-soft); max-width: 40ch; margin-top: 1.5rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2.4rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2.6rem; }
.tag {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--d-ink-soft); border: 1px solid var(--d-line); border-radius: 999px; padding: 0.5em 0.95em;
}
.tag .g { color: var(--gold); }

/* Hero stat rail */
.hero-stats { border-top: 1px solid var(--d-line); display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 2; }
.hero-stats .stat { padding: clamp(20px, 2.4vw, 32px) 0; padding-right: 24px; border-right: 1px solid var(--d-line-soft); }
.hero-stats .stat:last-child { border-right: 0; }
.hero-stats .num { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.7rem); color: var(--ivory); line-height: 1; }
.hero-stats .num .g { color: var(--gold); }
.hero-stats .lab { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--d-ink-mute); margin-top: 0.7em; }
@media (max-width: 760px){ .hero-stats { grid-template-columns: repeat(2, 1fr); } .hero-stats .stat:nth-child(2){ border-right: 0; } }

@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; } .hero-cover-wrap { order: -1; } }

/* -------------------------------------------------------------------------
   8. Dossier cover (bespoke CSS "guide cover")
   ------------------------------------------------------------------------- */
.cover {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(160deg, #17171400 0%, rgba(16,16,14,0.35) 100%),
    linear-gradient(150deg, #21201B 0%, #14140F 60%, #0F0F0C 100%);
  border: 1px solid var(--d-line); border-radius: 3px;
  position: relative; overflow: hidden;
  padding: clamp(20px, 2.4vw, 30px);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.04);
}
.cover::before {
  content: ""; position: absolute; inset: 12px; border: 1px solid var(--d-line); border-radius: 2px; pointer-events: none;
}
.cover .c-top { display: flex; justify-content: space-between; align-items: flex-start; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--d-ink-mute); }
.cover .c-seal { width: 34px; height: 34px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 0.95rem; color: var(--gold); }
.cover .c-mid { }
.cover .c-year { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.28em; color: var(--gold); text-transform: uppercase; }
.cover .c-title { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 500; color: var(--ivory); line-height: 1.02; margin-top: 0.35em; }
.cover .c-title span { display: block; }
.cover .c-kicker { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--d-ink-soft); margin-top: 0.7em; }
.cover .c-foot { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--d-line); padding-top: 14px; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--d-ink-mute); }
.cover .c-grade { color: var(--gold); }

.hero-cover-wrap { position: relative; }
.hero-cover-wrap .cover { max-width: 380px; margin-inline: auto; }
.hero-cover-wrap .cover.behind {
  position: absolute; inset: 0; transform: rotate(-6deg) translate(-9%, 4%) scale(0.94);
  filter: brightness(0.6); z-index: -1; max-width: 380px; margin-inline: auto;
}

/* -------------------------------------------------------------------------
   9. Marquee credential strip
   ------------------------------------------------------------------------- */
.marquee { background: var(--graphite); color: var(--d-ink-mute); border-block: 1px solid var(--d-line); overflow: hidden; }
.marquee .track { display: flex; gap: 0; white-space: nowrap; animation: slide 42s linear infinite; }
.marquee .item { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 22px 40px; display: inline-flex; align-items: center; gap: 40px; }
.marquee .item::after { content: "◆"; color: var(--gold); font-size: 0.6rem; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .track { animation-play-state: paused; }

/* -------------------------------------------------------------------------
   10. Feature / editorial columns
   ------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } }

.value-list { list-style: none; margin: 0; padding: 0; }
.value-list li { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.value-list li:last-child { border-bottom: 1px solid var(--line); }
.value-list .vn { font-family: var(--mono); font-size: 0.72rem; color: var(--gold); letter-spacing: 0.1em; padding-top: 6px; }
.value-list h3 { font-size: 1.35rem; margin-bottom: 0.35em; }
.value-list p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* -------------------------------------------------------------------------
   11. Tier system (Country -> Region -> City)
   ------------------------------------------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 820px){ .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--bg); padding: clamp(28px, 3vw, 44px); position: relative; transition: background .4s var(--ease); }
.tier:hover { background: var(--bg-panel); }
.dark .tier { background: var(--obsidian); } .dark .tier:hover { background: var(--graphite); }
.tier .tn { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.tier h3 { font-size: 1.7rem; margin: 0.5em 0 0.1em; }
.tier .q { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1.2em; }
.tier ul { list-style: none; margin: 0 0 1.6em; padding: 0; }
.tier ul li { font-size: 0.92rem; color: var(--ink-soft); padding: 8px 0 8px 20px; position: relative; border-top: 1px solid var(--line); }
.tier ul li:first-child { border-top: 0; }
.tier ul li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.tier .signoff { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }

/* -------------------------------------------------------------------------
   12. Guide catalogue cards
   ------------------------------------------------------------------------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(20px, 2.4vw, 30px); }
.guide-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  padding: 26px; display: flex; flex-direction: column; gap: 18px;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.guide-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(20,19,15,0.28); }
.dark .guide-card { background: var(--graphite); }
.guide-card .gc-head { display: flex; justify-content: space-between; align-items: baseline; }
.guide-card .region { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }
.guide-card .edition { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--gold); }
.guide-card .cname { font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; }
.guide-card .thesis { font-size: 0.9rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.guide-card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.guide-card .chip { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); border: 1px solid var(--line); border-radius: 999px; padding: 0.4em 0.7em; }
.guide-card .gc-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; margin-top: auto; }
.guide-card .price { font-family: var(--serif); font-size: 1.5rem; }
.guide-card .price small { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--ink-mute); text-transform: uppercase; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 40px; }
.filter-btn {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.6em 1.1em; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft);
  border-radius: 999px; transition: .3s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* -------------------------------------------------------------------------
   13. Methodology / grade ladder
   ------------------------------------------------------------------------- */
.grades { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grade-row { display: grid; grid-template-columns: 80px 130px 1fr; gap: 24px; align-items: center; background: var(--bg); padding: 22px 28px; transition: background .3s var(--ease); }
.dark .grade-row { background: var(--obsidian); }
.grade-row:hover { background: var(--bg-panel); }
.dark .grade-row:hover { background: var(--graphite); }
.grade-row .g { font-family: var(--serif); font-size: 2.2rem; color: var(--gold); }
.grade-row .conf { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.grade-row .src { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 680px){ .grade-row { grid-template-columns: 56px 1fr; } .grade-row .conf { grid-column: 2; } .grade-row .src { grid-column: 1 / -1; } }

.process { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.process .step { background: var(--bg); padding: 30px 26px; position: relative; }
.dark .process .step { background: var(--obsidian); }
.process .step .sn { font-family: var(--mono); font-size: 0.7rem; color: var(--gold); letter-spacing: 0.12em; }
.process .step h3 { font-size: 1.25rem; margin: 0.6em 0 0.3em; }
.process .step p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* -------------------------------------------------------------------------
   14. Pricing
   ------------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan { background: var(--bg); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; }
.dark .plan { background: var(--obsidian); }
.plan.feat { background: var(--obsidian); color: var(--d-ink); position: relative; }
.plan.feat h3, .plan.feat .amount { color: var(--ivory); }
.plan.feat .plan-sub, .plan.feat li { color: var(--d-ink-soft); }
.plan.feat .flag { position: absolute; top: 22px; right: 22px; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 0.35em 0.7em; }
.plan .pname { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.plan h3 { font-size: 1.5rem; margin: 0.5em 0 0.2em; }
.plan .plan-sub { font-size: 0.88rem; color: var(--ink-soft); min-height: 2.4em; }
.plan .amount { font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 3rem); line-height: 1; margin: 0.5em 0 0.1em; }
.plan .amount small { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.plan ul { list-style: none; margin: 1.4em 0 2em; padding: 0; flex-grow: 1; }
.plan ul li { font-size: 0.9rem; color: var(--ink-soft); padding: 9px 0 9px 24px; position: relative; border-top: 1px solid var(--line); }
.plan.feat ul li { border-top-color: var(--d-line-soft); }
.plan ul li::before { content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 6px; border-left: 1.4px solid var(--gold); border-bottom: 1.4px solid var(--gold); transform: rotate(-45deg); }

/* -------------------------------------------------------------------------
   15. Regions
   ------------------------------------------------------------------------- */
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.region-card { background: var(--bg); padding: clamp(26px, 3vw, 40px); transition: background .4s var(--ease); }
.dark .region-card { background: var(--obsidian); }
.region-card:hover { background: var(--bg-panel); }
.dark .region-card:hover { background: var(--graphite); }
.region-card .rn { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.region-card h3 { font-size: 1.7rem; margin: 0.4em 0 0.3em; }
.region-card p { font-size: 0.9rem; color: var(--ink-soft); }
.region-card .rmeta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }

/* -------------------------------------------------------------------------
   16. Quote / testimonial
   ------------------------------------------------------------------------- */
.quote-block { max-width: 900px; margin-inline: auto; text-align: center; }
.quote-block .q { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.3; color: var(--ivory); font-weight: 400; }
.quote-block .q .g { color: var(--gold-soft); }
.quote-block .attr { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--d-ink-mute); margin-top: 2rem; }

/* -------------------------------------------------------------------------
   17. CTA band
   ------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .seal { width: 62px; height: 62px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; color: var(--gold); margin: 0 auto 28px; }
.cta-band h2 { color: var(--ivory); max-width: 16ch; margin-inline: auto; }
.cta-band .lede { margin: 1.4rem auto 2.4rem; max-width: 52ch; }
.cta-band .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* -------------------------------------------------------------------------
   18. Footer
   ------------------------------------------------------------------------- */
.footer { background: var(--obsidian); color: var(--d-ink-soft); padding-top: clamp(56px, 7vw, 88px); }
.footer .f-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--d-line-soft); }
@media (max-width: 900px){ .footer .f-top { grid-template-columns: 1fr 1fr; } .footer .f-brand { grid-column: 1 / -1; } }
.footer .f-brand .mark { font-family: var(--serif); font-size: 1.7rem; color: var(--ivory); }
.footer .f-brand p { font-size: 0.88rem; max-width: 32ch; margin-top: 1em; color: var(--d-ink-mute); }
.footer .f-loc { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-top: 1.6em; }
.footer h4 { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--d-ink-mute); margin: 0 0 1.4em; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 0.75em; }
.footer ul a { font-size: 0.86rem; color: var(--d-ink-soft); transition: color .3s var(--ease); }
.footer ul a:hover { color: var(--gold); }
.footer .f-legal { padding: 30px 0 44px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .f-legal p { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--d-ink-mute); margin: 0; max-width: 70ch; line-height: 1.7; }
.footer .f-legal .copy { white-space: nowrap; }

/* -------------------------------------------------------------------------
   19. Page hero (interior pages)
   ------------------------------------------------------------------------- */
.page-hero { background: var(--obsidian); color: var(--d-ink); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 120% at 85% 0%, rgba(28,84,69,0.35) 0%, rgba(16,16,14,0) 55%); }
.page-hero .wrap { position: relative; z-index: 2; padding-block: clamp(60px, 8vw, 110px); }
.page-hero h1 { color: var(--ivory); max-width: 18ch; }
.page-hero .lede { margin-top: 1.4rem; max-width: 58ch; }
.crumb { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem; }

/* -------------------------------------------------------------------------
   20. Forms
   ------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px){ .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.7em; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 0.7em 0; transition: border-color .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field textarea { resize: vertical; min-height: 90px; }
.field select { appearance: none; cursor: pointer; }

/* -------------------------------------------------------------------------
   21. Reveal animation
   ------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee .track { animation: none; }
}

/* -------------------------------------------------------------------------
   22. Small utilities
   ------------------------------------------------------------------------- */
.stack-sm > * + * { margin-top: 0.6rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.muted { color: var(--ink-mute); }
.maxw-60 { max-width: 60ch; }
.disc { font-size: 0.78rem; color: var(--ink-mute); font-family: var(--mono); letter-spacing: 0.04em; line-height: 1.7; }
