/* Sweatlist landing — tokens mirror Sweatlist/Theme (DESIGN.md §10): NORTH STAR light/editorial.
   Cream canvas · white cards · dusty-rose blush · deep pine primary · coral pop · amber stars ·
   Fraunces (serif display) + Inter (sans body). Never fork hex — keep in sync with Color+Sweat.swift. */
:root {
  --cream: #FBF5EE;        /* app background — warm bone paper */
  --linen: #F2E9DF;        /* deeper cream — gradient bottom / sections */
  --card: #FFFFFF;         /* cards, sheets, rows */
  --blush: #F3DBD5;        /* dusty-rose: icon circles, promo, selected chips, #1 row */
  --blush-deep: #E2C6BD;
  --hairline: #ECE2D8;     /* 1px dividers / strokes */
  --pine: #2C3D32;         /* signature: wordmark, primary buttons, dark headings */
  --pine-deep: #1F2C25;
  --coral: #E08A6E;        /* warm pop, sparing: accents, links, active */
  --coral-deep: #CF6F51;
  --star: #E8B04B;         /* amber star fill / scores */
  --sage: #8FA08C;         /* calm/positive accent */
  --ink: #2E2730;          /* primary text */
  --stone: #8B807A;        /* secondary text */
  --mist: #B9B0A8;         /* tertiary / placeholders */
  --maxw: 1080px;
  --r: 22px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--coral-deep); font-weight: 500; }
.heat { color: var(--coral-deep); }   /* legacy hook: editorial coral accent */

/* serif display roles */
h1, h2, h3, .brand-word, .band-big, .board-title { font-family: var(--serif); }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--pine); color: #fff;
  padding: 10px 16px; border-radius: 0 0 12px 0; z-index: 100; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 40px);
  background: rgba(251,245,238,.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; }
.brand-word { font-weight: 600; font-size: 1.42rem; letter-spacing: -.01em; color: var(--pine); }
.nav-cta {
  font-family: var(--sans); font-weight: 600; font-size: .92rem; padding: 9px 18px; border-radius: 999px;
  background: var(--pine); color: #fff; transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--pine-deep); transform: translateY(-1px); }

/* ---- HERO ---- */
.hero {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(56px, 11vw, 120px) clamp(18px, 5vw, 40px) clamp(40px, 8vw, 72px);
  max-width: var(--maxw); margin: 0 auto;
}
.hero > * { position: relative; z-index: 1; }
.hero > .hero-glow {
  position: absolute; inset: -14% 8% auto 8%; height: 460px; z-index: 0;
  background: radial-gradient(closest-side, rgba(224,138,110,.22), rgba(243,219,213,.30) 50%, transparent 74%);
  filter: blur(22px); pointer-events: none;
}
.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--coral-deep);
  padding: 7px 15px; border: 1px solid var(--blush-deep); border-radius: 999px;
  background: var(--blush); margin-bottom: 24px;
}
h1 {
  font-size: clamp(2.7rem, 9vw, 5.2rem); font-weight: 600; line-height: 1.0;
  letter-spacing: -.02em; margin-bottom: 22px; color: var(--pine);
}
.lede {
  max-width: 620px; margin: 0 auto 32px; color: var(--stone);
  font-size: clamp(1.04rem, 2.4vw, 1.24rem); font-weight: 400; line-height: 1.6;
}
.cta-row { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 1.02rem; padding: 15px 28px; border-radius: 999px;
  border: none; transition: transform .18s, box-shadow .18s;
}
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--pine), var(--pine-deep));
  box-shadow: 0 14px 34px -12px rgba(44,61,50,.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 46px -12px rgba(44,61,50,.62); }
.cta-note { color: var(--mist); font-size: .9rem; font-weight: 500; }

.cat-strip {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px;
  margin-top: 44px; color: var(--stone); font-weight: 600; font-size: .95rem;
}
.cat-strip li { display: flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-heat { background: var(--coral); }
.dot-ember { background: var(--star); }
.dot-success { background: var(--sage); }

/* ---- WEDGE BAND ---- */
.band {
  text-align: center; padding: clamp(54px, 9vw, 96px) clamp(18px, 5vw, 40px);
  background: linear-gradient(180deg, var(--cream), var(--linen));
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.band-big {
  max-width: 880px; margin: 0 auto; font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(1.7rem, 5vw, 3rem); line-height: 1.14; color: var(--pine);
}

/* ---- SECTIONS ---- */
.section-h {
  text-align: center; font-weight: 600; letter-spacing: -.01em; color: var(--pine);
  font-size: clamp(1.9rem, 5vw, 2.8rem); margin-bottom: clamp(28px, 5vw, 48px);
}
.how { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 9vw, 96px) clamp(18px, 5vw, 40px); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r);
  padding: 32px 28px; position: relative; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 18px 40px -28px rgba(44,61,50,.28);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px -28px rgba(44,61,50,.36); }
.card-num {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 50%; font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  color: var(--pine); margin-bottom: 18px; background: var(--blush);
}
.card h3 { font-size: 1.32rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -.01em; color: var(--ink); }
.card p { color: var(--stone); font-weight: 400; }

/* ---- FAIR ---- */
.fair {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) clamp(18px, 5vw, 40px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 56px); align-items: center;
}
.fair .section-h { text-align: left; margin-bottom: 18px; }
.fair-copy p { color: var(--stone); font-size: 1.08rem; font-weight: 400; }
.fair-copy strong { color: var(--ink); font-weight: 600; }
.board {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r);
  padding: 26px; box-shadow: 0 30px 60px -34px rgba(44,61,50,.4);
}
.board-title { font-weight: 600; font-size: 1.18rem; margin-bottom: 18px; letter-spacing: -.01em; color: var(--pine); }
.board ol { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.board li {
  display: flex; align-items: center; gap: 14px; padding: 13px 15px;
  background: var(--cream); border-radius: 14px; border: 1px solid var(--hairline);
}
.board li:first-child { background: var(--blush); border-color: var(--blush-deep); }
.rk { font-family: var(--serif); font-weight: 600; color: var(--pine); width: 18px; font-size: 1.05rem; }
.bn { flex: 1; font-weight: 600; color: var(--ink); }
.sc { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--star); }
.board-foot { margin-top: 18px; color: var(--mist); font-size: .85rem; font-weight: 500; }

/* ---- DISCIPLINES ---- */
.disc { text-align: center; padding: clamp(48px, 8vw, 90px) clamp(18px, 5vw, 40px); }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 760px; margin: 0 auto; }
.chips li {
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--hairline);
}
.disc-note { max-width: 560px; margin: 30px auto 0; color: var(--stone); font-weight: 400; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 90px) clamp(18px, 5vw, 40px); }
.faq details {
  border: 1px solid var(--hairline); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px;
  background: var(--card);
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.08rem; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral); font-size: 1.5rem; font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--stone); font-weight: 400; padding: 0 0 20px; }

/* ---- FINAL CTA ---- */
.final {
  text-align: center; padding: clamp(64px, 11vw, 130px) clamp(18px, 5vw, 40px);
  background: radial-gradient(120% 90% at 50% 0%, var(--blush), transparent 62%), var(--linen);
  border-top: 1px solid var(--hairline);
}
.final h2 {
  font-size: clamp(2.1rem, 6vw, 3.5rem); font-weight: 600; letter-spacing: -.01em;
  line-height: 1.1; margin-bottom: 32px; color: var(--pine);
}
.final .cta-note { margin-top: 14px; }

/* ---- FOOTER ---- */
.foot {
  max-width: var(--maxw); margin: 0 auto;
  padding: 48px clamp(18px, 5vw, 40px); display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between; border-top: 1px solid var(--hairline);
}
.foot-brand .brand-word { font-size: 1.2rem; }
.foot-brand p { color: var(--mist); font-weight: 400; font-size: .92rem; margin-top: 4px; }
.foot-links { display: flex; gap: 24px; font-weight: 600; }
.foot-links a { color: var(--stone); transition: color .2s; }
.foot-links a:hover { color: var(--coral-deep); }
.foot-copy { width: 100%; color: var(--mist); font-size: .85rem; font-weight: 400; text-align: center; }

/* ---- RESPONSIVE ---- */
@media (max-width: 760px) {
  .fair { grid-template-columns: 1fr; }
  .fair .section-h { text-align: center; }
  .foot { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Generic legal-page typography (privacy / terms) */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 8vw, 80px) clamp(18px, 5vw, 40px); }
.legal h1 { font-size: clamp(2.1rem, 6vw, 3rem); margin-bottom: 8px; letter-spacing: -.01em; font-weight: 600; color: var(--pine); }
.legal .updated { color: var(--mist); font-weight: 500; margin-bottom: 30px; }
.legal h2 { font-size: 1.4rem; font-weight: 600; margin: 32px 0 10px; letter-spacing: -.01em; color: var(--ink); }
.legal p, .legal li { color: var(--stone); font-weight: 400; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--coral-deep); }
.legal .back { display: inline-block; margin-top: 36px; font-weight: 600; color: var(--coral-deep); }
