/* ================================================================
   AUTHENTICO — STYLES
   Merged from colors_and_type.css + site.css. No build step.
   ================================================================ */

:root {
  /* -------- Brand palette ------------------------------------- */
  --terracotta-red:    #D46D52;
  --terracotta-red-ink:#B8573E;
  --terracotta-red-50: #F7DDD3;

  --terracotta-green:    #6D8D69;
  --terracotta-green-ink:#556F52;
  --terracotta-green-50: #D9E2D5;

  --antique-white:   #FAF3E3;
  --cream-sink:      #F2E9D2;
  --cream-line:      #E8DFC5;

  --smokey-charcoal:   #4B4B4B;
  --charcoal-soft:     #6A6A68;
  --charcoal-muted:    #8A8A86;
  --charcoal-line:     #2F2F2F;

  /* -------- Semantic surfaces --------------------------------- */
  --bg:                var(--antique-white);
  --bg-sink:           var(--cream-sink);
  --bg-dark:           var(--smokey-charcoal);
  --fg:                var(--smokey-charcoal);
  --fg-soft:           var(--charcoal-soft);
  --fg-muted:          var(--charcoal-muted);
  --fg-on-dark:        var(--antique-white);
  --fg-on-dark-soft:   #CFC7B3;
  --accent:            var(--terracotta-red);
  --accent-2:          var(--terracotta-green);
  --line:              var(--cream-line);
  --line-dark:         var(--charcoal-line);

  /* -------- Typography families ------------------------------- */
  --font-display: 'Instrument Serif', 'Hagrid', 'Cormorant Garamond',
                  'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI',
                  Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular,
                  Menlo, Consolas, monospace;
  --font-wordmark:'Inter', system-ui, sans-serif;

  /* -------- Type scale ---------------------------------------- */
  --fs-display: clamp(3.25rem, 6vw + 1rem, 6.5rem);
  --fs-h1:      clamp(2.5rem, 4vw + 1rem, 4.75rem);
  --fs-h2:      clamp(2rem, 2.4vw + 1rem, 3.25rem);
  --fs-h3:      clamp(1.25rem, 0.5vw + 1rem, 1.5rem);
  --fs-lede:    clamp(1.15rem, 0.3vw + 1rem, 1.375rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;
  --fs-num:     1rem;

  --lh-tight:   1.06;
  --lh-snug:    1.2;
  --lh-body:    1.55;
  --lh-loose:   1.7;

  --tracking-tight:  -0.015em;
  --tracking-normal: 0;
  --tracking-wide:   0.08em;
  --tracking-xwide:  0.16em;

  /* -------- Spacing ------------------------------------------- */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;
  --sp-11: 160px;

  /* -------- Radius -------------------------------------------- */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* -------- Borders & elevation ------------------------------- */
  --border: 1px solid var(--line);
  --border-strong: 1px solid rgba(75,75,75,0.18);

  --shadow-sm: 0 1px 0 rgba(75,75,75,0.04),
               0 1px 2px rgba(75,75,75,0.05);
  --shadow-md: 0 2px 4px rgba(75,75,75,0.06),
               0 8px 20px rgba(75,75,75,0.06);
  --shadow-lg: 0 10px 30px rgba(75,75,75,0.10);

  /* -------- Motion -------------------------------------------- */
  --ease-out:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out:cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   140ms;
  --dur-med:    220ms;
  --dur-slow:   440ms;

  /* -------- Layout -------------------------------------------- */
  --container: 1200px;
  --container-narrow: 840px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* ========== Base ============================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

/* ========== Typography ======================================== */
.h-display, h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 400;
  color: var(--fg);
  text-wrap: balance;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  font-weight: 400;
  color: var(--fg);
  text-wrap: balance;
}

h3, .h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: -0.005em;
  font-weight: 600;
  color: var(--fg);
}

.lede {
  font-family: var(--font-body);
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--fg-soft);
  font-weight: 400;
  max-width: 62ch;
  text-wrap: pretty;
}

p, .p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg);
  text-wrap: pretty;
  max-width: 66ch;
}

small, .small, .caption {
  font-size: var(--fs-sm);
  color: var(--fg-soft);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-block;
  margin-bottom: 20px;
}

.section-numeral {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  display: inline-block;
  margin-bottom: 28px;
  text-transform: none;
}

.num, .mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' 1;
  color: var(--fg);
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(75,75,75,0.35);
  transition: text-decoration-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
a:hover {
  text-decoration-color: var(--accent);
  color: var(--accent);
}

.on-dark {
  background: var(--bg-dark);
  color: var(--fg-on-dark);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark p, .on-dark .lede {
  color: var(--fg-on-dark);
}
.on-dark .lede { color: var(--fg-on-dark-soft); }
.on-dark .eyebrow,
.on-dark .section-numeral { color: var(--accent-2); }
.on-dark a { color: var(--fg-on-dark); text-decoration-color: rgba(250,243,227,0.35); }
.on-dark a:hover { color: var(--accent); text-decoration-color: var(--accent); }

::selection { background: var(--accent); color: var(--antique-white); }

/* ========== Layout ============================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sp-10) 0; }

/* ========== Buttons =========================================== */
.btn {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  border-radius: 999px; padding: 14px 26px;
  border: 0; cursor: pointer; letter-spacing: 0.005em; line-height: 1;
  display: inline-block; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-in-out),
              color var(--dur-fast) var(--ease-in-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--terracotta-red-ink); color: #fff; text-decoration: none; }
.btn-primary:active { background: var(--terracotta-red-ink); transform: scale(0.97); }
.btn-secondary { background: transparent; color: var(--fg); border: 1px solid rgba(75,75,75,0.25); padding: 13px 25px; }
.btn-secondary:hover { background: rgba(75,75,75,0.04); border-color: var(--fg); }
.on-dark .btn-secondary { color: var(--fg-on-dark); border-color: rgba(250,243,227,0.25); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ========== Top nav =========================================== */
.topnav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gutter);
  background: rgba(250, 243, 227, 0);
  transition: background var(--dur-med) var(--ease-in-out), border-color var(--dur-med);
  border-bottom: 1px solid transparent;
}
.topnav--scrolled {
  background: rgba(250,243,227, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topnav .wordmark { display: block; }
.topnav__links { display: flex; gap: 24px; margin-left: 8px; }
.topnav__links a { text-decoration: none; color: var(--fg); font-size: 14.5px; font-weight: 500; cursor: pointer; }
.topnav__links a:hover { color: var(--accent); }
.topnav__phone { margin-left: auto; font-size: 13.5px; color: var(--fg-soft); }

/* ========== Hero ============================================== */
.hero { position: relative; min-height: 88vh; color: var(--fg-on-dark); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(75,75,75,0.2) 0%, rgba(75,75,75,0.55) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 100px; max-width: 900px; }
.hero .eyebrow { color: #E8DFC5; }
.hero h1 { color: var(--fg-on-dark); margin: 0 0 24px 0; font-size: clamp(3rem, 6vw + 1rem, 5.5rem); line-height: 1.02; }
.hero .lede { color: #F4E9D0; max-width: 620px; }
.hero__actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.hero__sub { color: #E8DFC5; font-size: 13.5px; max-width: 320px; line-height: 1.5; }

/* ========== Problem (dark) ==================================== */
.problem__inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 80px; align-items: center; }
.problem h2 { margin: 0 0 56px 0; max-width: 16ch; }
.problem .lede { color: #E0D7BF; margin-bottom: 28px; max-width: 50ch; }
.symptoms { list-style: none; padding: 0; margin: 0 0 28px 0; max-width: 58ch; }
.symptoms li {
  font-size: 16px; padding: 14px 0; border-top: 1px solid rgba(250,243,227,0.12);
  color: var(--fg-on-dark); line-height: 1.5;
}
.symptoms li:last-child { border-bottom: 1px solid rgba(250,243,227,0.12); }
.normalization { font-family: var(--font-display); font-size: 26px; line-height: 1.25; color: var(--fg-on-dark); max-width: 20ch; margin: 0; }
.problem__sketch { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.problem__sketch img {
  width: 100%; max-width: 360px; height: auto; background: var(--bg);
  border-radius: 14px; padding: 24px; mix-blend-mode: normal;
}
.problem__sketch-plate {
  background: var(--bg);
  border-radius: 14px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 360px;
  width: 100%;
  aspect-ratio: 1.15 / 1;
}
.problem__sketch-plate svg { width: 100%; height: auto; display: block; }
.problem__sketch-icon { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
.problem__lede { white-space: normal; }
.problem__sketch figcaption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: #CFC7B3; text-transform: uppercase; }

/* ========== Pillars =========================================== */
.way h2 { max-width: 18ch; margin: 0 0 96px 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); position: relative; }
.pillar__icon {
  display: flex; align-items: flex-end; justify-content: flex-start;
  margin-bottom: 20px;
}
.pillar__icon-img {
  width: 250px;
  height: 250px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.pillar__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent-2); }
.pillar h3 { font-family: var(--font-display); font-size: 28px; font-weight: 400; margin: 8px 0 4px; }
.pillar p { color: var(--fg-soft); font-size: 16px; margin: 0; max-width: 36ch; }

/* ========== Outcomes ========================================== */
.outcomes h2 { max-width: 18ch; margin: 0 0 80px 0; }
.outcome-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.outcome { padding-top: 20px; }
.outcome__rule { display: block; width: 28px; height: 2px; background: var(--accent); margin-bottom: 16px; }
.outcome h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.outcome p { font-size: 14.5px; color: var(--fg-soft); margin: 0; line-height: 1.55; }

/* ========== How / steps ======================================= */
.how { background: var(--cream-sink); }
.how h2 { max-width: 22ch; margin: 0 0 80px 0; }
.how__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: stretch;
  margin-top: var(--sp-7);
}
.how__grid > .steps { margin: 0; }
.how__photo { margin: 0; height: 100%; min-height: 100%; }
.how__photo img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r-lg); display: block;
}
.steps { list-style: none; padding: 0; margin: 0; }
.step {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 32px; padding: 28px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-size: 20px; color: var(--accent-2); letter-spacing: 0.14em; padding-top: 6px; }
.step h3 { font-family: var(--font-display); font-size: 28px; font-weight: 400; margin: 0 0 6px; line-height: 1.15; }
.step p { color: var(--fg-soft); font-size: 16px; margin: 0; max-width: 58ch; line-height: 1.55; }

.tm-inline {
  font-family: var(--font-mono);
  font-size: 0.5em;
  vertical-align: super;
  opacity: 0.6;
  margin-left: 2px;
  font-weight: 400;
}

/* ========== Pre-Trusted ======================================= */
.pretrust__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.pretrust__photo { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; }
.pretrust__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pretrust h2 { margin: 18px 0 40px; max-width: 22ch; }
.pretrust .lede { max-width: 48ch; margin-bottom: 28px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 28px; }
.feature-list li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--fg); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-bullet { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; transform: translateY(-2px); }
.anchor { font-family: var(--font-display); font-size: 22px; line-height: 1.3; color: var(--fg); margin: 0; max-width: 30ch; }

.tag-green { display: inline-flex; align-items: center; gap: 4px;
  background: var(--terracotta-green-50); color: #3F5B3C;
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em;
}
.tm { font-family: var(--font-mono); font-size: 10px; opacity: 0.6; }

/* ========== Why =============================================== */
.why h2 { max-width: 20ch; margin: 0 0 80px 0; }
.why-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why-item { padding-top: 20px; border-top: 2px solid var(--accent); }
.why-item h3 { font-family: var(--font-display); font-size: 26px; font-weight: 400; line-height: 1.15; margin: 0 0 8px; }
.why-item p { font-size: 15px; color: var(--fg-soft); margin: 0; }

/* ========== FAQ =============================================== */
.faq h2 { max-width: 18ch; margin: 0 0 64px 0; }
.faq__list { border-top: 1px solid var(--line); max-width: 820px; }
.faq-item {
  display: grid; grid-template-columns: 48px 1fr 28px; gap: 18px;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background var(--dur-fast) var(--ease-in-out);
}
.faq-item:hover { background: var(--cream-sink); }
.faq-item--open { background: var(--cream-sink); }
.faq__num { font-size: 13px; color: var(--accent-2); letter-spacing: 0.14em; padding-top: 3px; }
.faq__q { font-size: 17px; font-weight: 600; color: var(--fg); line-height: 1.35; }
.faq__a { font-size: 15px; line-height: 1.6; color: var(--fg-soft); margin: 10px 0 0 0; max-width: 58ch; display: none; }
.faq-item--open .faq__a { display: block; }
.faq__plus { font-family: var(--font-mono); font-size: 22px; color: var(--fg-muted); text-align: right; }
.faq-item--open .faq__plus::before { content: '—'; }
.faq-item:not(.faq-item--open) .faq__plus::before { content: '+'; }

/* ========== Final CTA / footer ================================ */
.final__inner { text-align: center; max-width: 780px; margin: 0 auto; }
.final h2 { margin: 0 0 64px 0; }
.final__meta { font-size: 13px; color: #CFC7B3; margin-top: 28px; letter-spacing: 0.04em; }

.site-footer { padding: 28px 0; border-top: 1px solid rgba(250,243,227,0.08); background: #3B3B3B; }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.site-footer__addr { font-size: 12.5px; color: #CFC7B3; line-height: 1.7; }
.site-footer__fine { font-size: 11px; color: #9A9385; letter-spacing: 0.1em; }

/* ========== Sticky mobile ===================================== */
.sticky-cta { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; box-shadow: var(--shadow-md); }
.sticky-cta .btn { width: 100%; padding: 16px; }

/* ========== 404 =============================================== */
.notfound {
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: var(--sp-9) var(--gutter);
}
.notfound h1 { font-size: clamp(2.5rem, 4vw + 1rem, 4rem); margin: 0 0 18px; max-width: 18ch; }
.notfound p { color: var(--fg-soft); margin: 0 0 28px; }

/* ========== Responsive ======================================== */
@media (max-width: 1024px) {
  .pillar__icon-img { width: 200px; height: 200px; }
}
@media (max-width: 900px) {
  .topnav__links, .topnav__phone { display: none; }
  .problem__inner, .pretrust__inner { grid-template-columns: 1fr; gap: 40px; }
  .pillars, .outcome-grid, .why-list { grid-template-columns: 1fr 1fr; gap: 32px; }
  .step { grid-template-columns: 60px 1fr; gap: 18px; }
  .hero__inner { padding-top: 100px; padding-bottom: 80px; }
  .how__grid { grid-template-columns: 1fr; gap: 32px; }
  .how__photo { aspect-ratio: 4/5; height: auto; min-height: 0; }
  .how__photo img { border-radius: var(--r-md); }
  .sticky-cta { display: block; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 768px) {
  .pillar__icon-img { width: 160px; height: 160px; }
}
@media (max-width: 560px) {
  .pillars, .outcome-grid, .why-list { grid-template-columns: 1fr; }
}
