/* Common Chair — styles.css
   Sections: tokens · base · layout · header · buttons · hero · sections · footer · motion · responsive */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("assets/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2"); }

:root {
  --cream: #fbf8f1;
  --cream-2: #f3ecdf;
  --cream-3: #e9dfcd;
  --green: #1b2d18;
  --green-2: #24391f;
  --ink: #1e2a1b;
  --muted: #566050;
  --terra: #a05b38;
  --terra-deep: #874626;
  --terra-soft: #d68a62;
  --line: rgba(27, 45, 24, 0.14);
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-deep); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--green); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }
[id] { scroll-margin-top: 110px; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- crisis bar ---------- */
.crisis {
  background: var(--green);
  color: #e9e4d6;
  font-size: 0.875rem;
  text-align: center;
  padding: 0.45rem 1rem;
  line-height: 1.4;
}
.crisis a { color: #fff; font-weight: 600; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(27, 45, 24, 0.5); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.8rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--green); }
.brand img { width: 46px; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--terra-deep); }
.nav .nav-quiet { color: var(--muted); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--green); margin: 4px auto; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--terra); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 1.0625rem;
  padding: 0.95rem 1.7rem; border-radius: 999px; border: 2px solid var(--terra);
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  box-shadow: 0 10px 22px -14px rgba(135, 70, 38, 0.9);
}
.btn:hover { background: var(--terra-deep); border-color: var(--terra-deep); color: #fff; transform: translateY(-2px); }
.btn-small { padding: 0.6rem 1.2rem; font-size: 1rem; box-shadow: none; }
.btn-light { background: var(--cream); color: var(--green); border-color: var(--cream); box-shadow: none; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--green); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: transparent; color: var(--terra-deep); border-color: var(--terra); }
.cta-note { font-size: 0.975rem; color: var(--muted); margin: 0.9rem 0 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eyebrow { font-family: var(--serif); font-style: italic; color: var(--terra-deep); font-size: 1.2rem; margin: 0 0 1.1rem; }
.hero h1 { max-width: 17ch; font-size: clamp(2.3rem, 4.7vw, 3.7rem); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink); max-width: 34rem; margin: 1.4rem 0 2rem; }
.hero-art { position: relative; aspect-ratio: 4 / 4.6; max-width: 440px; width: 100%; margin-inline: auto; }
.hero-art::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--cream-3), var(--cream-2));
  border-radius: 999px 999px 26px 26px;
}
.hero-art img { position: absolute; left: 50%; bottom: 9%; width: 86%; transform: translateX(-50%); }

/* ---------- generic sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--cream-2); }
.section-dark { background: var(--green); color: #e9e4d6; }
.section-dark h2, .section-dark h3 { color: #fbf8f1; }
.kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra-deep); margin: 0 0 0.9rem; }
.section-dark .kicker { color: var(--terra-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head p:last-child { margin-bottom: 0; }
.section-head h2 + p { margin-top: 1.1rem; font-size: 1.2rem; color: var(--muted); }

/* who it's for */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.reasons li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.7rem 1.6rem 1.9rem; position: relative;
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; color: var(--green);
}
.reasons li::before { content: ""; position: absolute; left: 0; top: 1.5rem; bottom: 1.5rem; width: 4px; border-radius: 4px; background: var(--terra); }
.after-note { max-width: 720px; margin: 2.2rem 0 0; font-size: 1.15rem; }

/* first 30 days */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; max-width: 800px; }
.steps::before { content: ""; position: absolute; left: 27px; top: 14px; bottom: 14px; width: 2px; background: var(--cream-3); }
.steps li { counter-increment: step; position: relative; padding: 0 0 2.1rem 5rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--terra); color: var(--terra-deep);
  font-family: var(--serif); font-weight: 600; font-size: 1.45rem;
  display: grid; place-items: center;
}
.section-tint .steps li::before { background: var(--cream-2); }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--ink); }

/* guides */
.guides-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.guides-grid p { font-size: 1.2rem; }
.chairs { display: flex; align-items: flex-end; justify-content: center; gap: 4%; }
.chairs img { width: 30%; opacity: 0.28; }
.chairs img:nth-child(1) { transform: scaleX(-1); }
.chairs img:nth-child(2) { width: 36%; opacity: 1; }

/* is / isn't */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.card h3 { margin-bottom: 0.9rem; }
.card ul { margin: 0; padding-left: 1.2rem; }
.card li { margin-bottom: 0.4rem; }
.card li::marker { color: var(--terra); }
.plain-promise { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--green); max-width: 760px; margin: 2.4rem 0 0; }

/* price */
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(2rem, 4vw, 3.2rem); max-width: 760px; margin-inline: auto; text-align: center;
  box-shadow: 0 30px 60px -45px rgba(27, 45, 24, 0.55);
}
.price { font-family: var(--serif); font-weight: 600; color: var(--green); font-size: clamp(3.2rem, 7vw, 4.6rem); line-height: 1; margin: 0.6rem 0 0.4rem; }
.price-sub { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.8rem; }
.includes { list-style: none; padding: 0; margin: 0 auto 2rem; text-align: left; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 2rem; max-width: 600px; }
.includes li { position: relative; padding-left: 1.7rem; font-size: 1.05rem; line-height: 1.4; }
.includes li::before { content: ""; position: absolute; left: 0; top: 0.38em; width: 0.95rem; height: 0.5rem; border-left: 2.5px solid var(--terra); border-bottom: 2.5px solid var(--terra); transform: rotate(-45deg); }

/* faq */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.35rem 3rem 1.35rem 0; position: relative;
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--green); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 400; font-size: 1.9rem; color: var(--terra); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 1.4rem; max-width: 62ch; }

/* closing */
.closing { text-align: center; }
.closing h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18ch; margin-inline: auto; }
.closing .btn { margin-top: 2rem; }
.closing .cta-note { color: #c9c4b4; }
.closing .chairs { max-width: 420px; margin: 0 auto 2.2rem; }

/* programs page */
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { max-width: 18ch; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; max-width: 760px; }
.checks li { position: relative; padding-left: 2.2rem; font-size: 1.15rem; }
.checks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 1.05rem; height: 0.55rem; border-left: 2.5px solid var(--terra); border-bottom: 2.5px solid var(--terra); transform: rotate(-45deg); }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.principles .card p { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.split h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 1rem; }
.linkbox { display: inline-block; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--green); background: #fff; border: 1px dashed var(--terra); border-radius: 12px; padding: 0.5rem 1rem; margin: 0.3rem 0 1rem; text-decoration: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-2); color: #d9d4c4; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: 1rem; }
.section-dark + .site-footer { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-grid { display: grid; grid-template-columns: 0.8fr 1.2fr 0.8fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.footer-logo { width: 190px; }
.site-footer h3 { color: #fbf8f1; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.8rem; }
.site-footer p { margin: 0 0 1rem; line-height: 1.55; }
.site-footer a { color: #fbf8f1; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-base { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.9rem; color: #b9b5a6; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.js .hero-art img { animation: settle 1.2s var(--ease) 0.15s both; }
@keyframes settle { from { opacity: 0; transform: translateX(-50%) translateY(18px); } to { opacity: 1; transform: translateX(-50%); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem 1.25rem 1.5rem; display: none;
    box-shadow: 0 24px 30px -24px rgba(27, 45, 24, 0.5);
  }
  .nav-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav .btn { margin-top: 1.2rem; }
}
@media (max-width: 860px) {
  .hero-grid, .guides-grid, .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 300px; order: -1; aspect-ratio: 4 / 3.9; }
  .hero { padding-top: 1.8rem; }
  .guides-grid .chairs { max-width: 380px; margin-inline: auto; order: -1; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 1.0625rem; }
  .reasons, .two-col, .principles, .includes { grid-template-columns: 1fr; }
  .reasons li { font-size: 1.2rem; }
  .hero .btn, .price-card .btn, .closing .btn { width: 100%; }
  .steps li { padding-left: 4.2rem; }
  .steps li::before { width: 48px; height: 48px; font-size: 1.25rem; }
  .steps::before { left: 23px; }
  .brand span { font-size: 1.3rem; }
  .brand img { width: 40px; }
}
