/* ================================================================
   Cawthon Advisory — shared styles
   Editorial coastal calm: warm sand, deep sage, considered serifs
   ================================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..700;1,6..72,300..700&family=Geist:wght@300..600&family=JetBrains+Mono:wght@400..600&display=swap');

/* ---------- Tokens ---------- */
:root {
  --bg:           #fbf7ee;       /* lighter cream */
  --bg-deep:      #f0e6cf;       /* deeper sand */
  --paper:        #fdf8ed;       /* paper */
  --paper-bright: #fffaf0;       /* brightest cream */
  --ink:          #1d1a14;       /* warm near-black */
  --ink-2:        #4a463d;       /* warm muted */
  --ink-3:        #7a7468;       /* warm gray */
  --sage:         #2f5e3b;       /* punchier forest sage */
  --sage-2:       #1f4828;       /* darker sage (hover) */
  --sage-soft:    #6b8a6f;       /* soft sage */
  --terra:        #a85a32;       /* terracotta accent — sparing */
  --line:         rgba(29, 26, 20, 0.16);
  --line-strong:  rgba(29, 26, 20, 0.30);
  --line-faint:   rgba(29, 26, 20, 0.08);

  --serif:  'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans:   'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:   'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --max:    1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }

/* Subtle paper grain overlay on the whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11  0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Type ---------- */
.serif    { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.serif em { font-style: italic; font-feature-settings: "ss01"; }
.mono     { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--terra);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 1px;
}

.display {
  font-family: var(--serif);
  font-weight: 380;
  line-height: 1;
  letter-spacing: -0.022em;
  font-size: clamp(32px, 4.6vw, 68px);
}
.display em {
  font-style: italic;
  color: var(--sage);
  font-weight: 380;
}

.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.h1 em { font-style: italic; color: var(--sage); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.014em;
}
.h2 em { font-style: italic; color: var(--sage); }

.h3 {
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.3;
  letter-spacing: -0.006em;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.5;
  font-weight: 380;
  color: var(--ink-2);
  letter-spacing: -0.003em;
  max-width: 60ch;
}
.lede em { font-style: italic; color: var(--ink); }

.body { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.small { font-size: 12px; color: var(--ink-3); }

.figure {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "zero";
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-tight { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 6vw, 88px) 0; }

.hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.hr-strong { border-top-color: var(--line-strong); }
.hr-double {
  border: 0;
  height: 5px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex; align-items: center;
  font-family: var(--serif);
  letter-spacing: -0.012em;
  color: var(--ink);
}
.brand .brand-name {
  font-size: 19px;
  font-weight: 420;
  line-height: 1;
  white-space: nowrap;
}
.brand .brand-name em { font-style: normal; }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); background: var(--ink); }

.nav-cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 0;
  border: 0;
  color: var(--sage);
  transition: color .2s ease;
}
.nav-cta:hover { background: transparent; color: var(--sage-2); }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background .2s ease, color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--paper-bright); }
.btn .arrow {
  display: inline-block;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper-bright);
}
.btn-primary:hover { background: var(--sage); border-color: var(--sage); }

.btn-sage {
  background: var(--sage);
  color: var(--paper-bright);
  border-color: var(--sage);
}
.btn-sage:hover { background: var(--sage-2); border-color: var(--sage-2); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--paper-bright); background: var(--ink); }

/* ---------- Eyebrow row / section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 5vw, 72px);
}
.section-head .lhs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section-head .lhs .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Ledger row (key/value with hairline) ---------- */
.ledger { display: grid; gap: 0; }
.ledger-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.ledger-row:last-child { border-bottom: 1px solid var(--line); }
.ledger-row .key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 2px;
}
.ledger-row .val {
  font-family: var(--serif);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.4;
  color: var(--ink);
}
.ledger-row .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
@media (max-width: 720px) {
  .ledger-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
}

/* ---------- Cards / panels ---------- */
.panel {
  background: var(--paper-bright);
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 44px);
}
.panel-deep {
  background: var(--sage);
  color: var(--paper-bright);
}
.panel-deep .h2, .panel-deep .h1, .panel-deep .display { color: var(--paper-bright); }
.panel-deep .h2 em, .panel-deep .display em, .panel-deep .h1 em { color: #d3c79c; }
.panel-deep .eyebrow { color: rgba(245, 236, 215, 0.7); }
.panel-deep .lede { color: rgba(245, 236, 215, 0.85); }
.panel-deep .lede em { color: var(--paper-bright); }
.panel-deep .body { color: rgba(245, 236, 215, 0.78); }

/* ---------- Numbered step ---------- */
.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--sage);
  line-height: 1;
  letter-spacing: -0.02em;
}
.step .body-block .step-title {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin-bottom: 10px;
}
.step .body-block .step-copy {
  color: var(--ink-2);
  max-width: 64ch;
}

/* ---------- Footer ---------- */
.foot {
  background: var(--ink);
  color: rgba(245, 236, 215, 0.85);
  padding: clamp(60px, 7vw, 100px) 0 36px;
}
.foot .wrap { display: grid; gap: 48px; }
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.foot-monogram {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.95;
  color: var(--paper-bright);
  letter-spacing: -0.018em;
}
.foot-mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 236, 215, 0.55);
  margin-bottom: 16px;
  display: block;
}
.foot a {
  display: block;
  padding: 4px 0;
  color: rgba(245, 236, 215, 0.85);
  transition: color .2s ease;
}
.foot a:hover { color: var(--paper-bright); }
.foot-rule { height: 1px; background: rgba(245, 236, 215, 0.18); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(245, 236, 215, 0.55);
}
@media (max-width: 820px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Utility ---------- */
.grid { display: grid; }
.flex { display: flex; }
.col { flex-direction: column; }
.center { align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-ink { color: var(--ink); }
.text-sage { color: var(--sage); }
.text-mute { color: var(--ink-2); }

/* Two-column responsive */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(28px, 5vw, 96px);
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Hero-specific shared ---------- */
.page-title-stamp {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.page-title-stamp::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-3);
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
  contain: layout paint;
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  animation: marquee 38s linear infinite;
  will-change: transform;
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: -0.008em;
  color: var(--ink);
}
.marquee-track em { font-style: italic; color: var(--sage); padding: 0 4px; }
.marquee-track .sep {
  display: inline-flex;
  align-items: center;
  color: var(--terra);
  font-size: 0.6em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Tag pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-radius: 100px;
  background: transparent;
}

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-family: var(--serif);
  font-size: 17px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0 12px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); font-style: italic; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: var(--sage); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.4; }

/* ---------- Pricing cards (open, scannable) ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
  align-items: stretch;
}
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(28px, 2.4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.price-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px -16px rgba(29,26,20,0.18);
}
.price-card.is-featured {
  border-color: var(--sage);
  box-shadow: 0 0 0 1px var(--sage) inset;
}
.price-card .feature-tag {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--sage);
  color: var(--paper-bright);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
}
.price-tier-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}
.price-name {
  font-family: var(--serif);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.014em;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 20px);
  letter-spacing: -0.008em;
  color: var(--ink);
}
.price-amount .from { color: var(--ink-3); font-family: var(--sans); font-size: 14px; font-weight: 400; }
.price-amount .figure { font-family: var(--serif); font-weight: 500; }
.price-amount .per { color: var(--ink-3); font-family: var(--sans); font-size: 14px; font-weight: 400; }
.price-desc {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.price-incl-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.price-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink);
  align-items: start;
}
.price-list li::before {
  content: "";
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  margin-top: 6px;
}
.price-card .price-cta {
  margin-top: auto;
  padding-top: 8px;
}
