/* =========================================================
   ROASTED · marketing site
   Dark-mode, aiCooking energy, Roasted brand.
   - Body: warm-ink #1A1614 (not pure black)
   - Brand: roast orange #FF4E18 with glow
   - Display: Outfit (matches sibling app)
   - Body: Inter
   - Italic stings: Source Serif 4
========================================================= */

/* ---- TOKENS ---- */
:root {
  --ink-0: #0F0B09;     /* deepest */
  --ink-1: #1A1614;     /* body */
  --ink-2: #211C19;     /* card-on-paper */
  --ink-3: #2C2522;     /* hover surface */

  --fg: #F4EFEA;
  --fg-2: #E8E1D8;
  --fg-mute: rgba(244, 239, 234, 0.62);
  --fg-faint: rgba(244, 239, 234, 0.40);
  --fg-faintest: rgba(244, 239, 234, 0.18);

  /* Brand */
  --roast: #FF4E18;
  --roast-1: #FF6E40;
  --roast-deep: #E63F0F;
  --roast-soft: rgba(255, 78, 24, 0.16);
  --roast-glow: 0 0 24px rgba(255, 78, 24, 0.35);
  --roast-glow-hover: 0 0 40px rgba(255, 78, 24, 0.55), 0 0 0 1px rgba(255, 78, 24, 0.5);

  /* Semantic — match app tokens */
  --green: #5DBF85;
  --green-soft: rgba(93, 191, 133, 0.16);
  --red:   #E27272;
  --red-soft: rgba(226, 114, 114, 0.18);
  --amber: #E5B252;
  --plum:  #A876C9;
  --sky:   #4A95D0;
  --pink:  #E68FA8;
  --orange-sec: #FF7A4E;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-2: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-2: rgba(255, 255, 255, 0.18);

  /* Type */
  --f-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --f-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Source Serif 4', 'Times New Roman', Georgia, serif;
  --f-num: 'Inter', system-ui, sans-serif;

  /* Layout */
  --max-w: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--ink-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
em, i { font-style: italic; }

::selection { background: var(--roast); color: #fff; }

:focus-visible {
  outline: 2px solid var(--roast);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 0; top: -100px;
  background: var(--roast); color: #fff;
  padding: 12px 16px; border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--pad-x); }

/* ---- AMBIENT GLOW (the deep page background) ---- */
.bg-glow {
  position: fixed;
  inset: -10vh -10vw auto auto;
  width: 90vw; height: 90vh;
  background:
    radial-gradient(40% 50% at 70% 20%, rgba(255, 78, 24, 0.28), transparent 60%),
    radial-gradient(50% 40% at 30% 80%, rgba(168, 118, 201, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

main, .nav, .foot { position: relative; z-index: 1; }

/* ---- TYPE PRIMITIVES ---- */
.serif {
  font-family: var(--f-serif);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.005em;
}
.micro {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.micro--up { color: var(--fg-faint); margin-bottom: 12px; display: block; }
.micro--orange { color: var(--roast); }

.muted { color: var(--fg-mute); }

.num {
  font-family: var(--f-num);
  font-weight: 600;
  font-feature-settings: "tnum", "ss01";
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.num--big { font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.num--xl  { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.num--red   { color: var(--red); }
.num--green { color: var(--green); }

/* ---- BUTTONS / PILLS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 200ms ease-out, background-color 200ms, color 200ms, box-shadow 240ms, border-color 200ms;
  border: 1px solid transparent;
  position: relative;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; }

.btn--brand {
  background: var(--roast);
  color: #fff;
  box-shadow: var(--roast-glow);
}
.btn--brand:hover {
  background: var(--roast-1);
  box-shadow: var(--roast-glow-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--glass-border-2);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--glass-bg-2);
  border-color: var(--fg-mute);
}

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: 0.005em;
  backdrop-filter: blur(12px);
}
.pill--brand { color: var(--fg); }
.pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--roast);
  box-shadow: 0 0 0 4px rgba(255, 78, 24, 0.22), 0 0 14px rgba(255, 78, 24, 0.6);
  animation: ping 2.4s ease-in-out infinite;
}
@keyframes ping {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 78, 24, 0.22), 0 0 14px rgba(255, 78, 24, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(255, 78, 24, 0.0), 0 0 22px rgba(255, 78, 24, 0.8); }
}

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad-x);
  background: rgba(15, 11, 9, 0.55);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms, background-color 220ms;
}
.nav.is-scrolled { border-bottom-color: var(--glass-border); background: rgba(15, 11, 9, 0.78); }

.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav__mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  filter: drop-shadow(0 0 14px rgba(255, 78, 24, 0.55));
}
.nav__logo {
  width: 36px; height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 78, 24, 0.6));
}
.nav__amp,
.amp {
  color: var(--roast);
  font-style: normal;
  font-feature-settings: "ss01";
}

.nav__links {
  margin-left: auto;
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px);
  font-size: 13.5px; font-weight: 500;
  color: var(--fg-mute);
}
.nav__links a:hover { color: var(--fg); }

.nav__cta { padding: 0 18px; min-height: 40px; font-size: 13.5px; }

.nav__menu {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__menu span {
  display: block; width: 22px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 220ms, opacity 220ms;
}
.nav__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 64px 0 0 0;
  background: var(--ink-0);
  z-index: 99;
  padding: 32px var(--pad-x) 48px;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu[hidden] { display: none !important; }
@media (min-width: 901px) { .mobile-menu { display: none !important; } }
.mobile-menu a {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(26px, 5.4vw, 38px);
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--fg);
}
.mobile-menu__cta { margin-top: 24px; align-self: flex-start; padding: 0 22px; min-height: 50px; font-size: 16px; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(40px, 7vw, 96px) var(--pad-x) clamp(60px, 8vw, 120px);
  max-width: var(--max-w);
  margin-inline: auto;
  isolation: isolate;
}

.hero__inner { position: relative; z-index: 2; }

.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-top: 22px;
}
.hero__title em.serif {
  font-weight: 600;
  font-size: 0.96em;
  color: var(--roast);
}
.hero__strike {
  position: relative;
  color: var(--fg-faint);
  font-weight: 700;
}
.hero__strike::after {
  content: ""; position: absolute;
  left: -1%; right: -1%; top: 56%;
  height: 6px;
  background: var(--roast);
  border-radius: 999px;
  transform: rotate(-2deg);
  box-shadow: 0 0 16px rgba(255, 78, 24, 0.6);
}

.hero__sub {
  margin-top: 26px;
  font-family: var(--f-ui);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--fg-mute);
  max-width: 52ch;
}

.hero__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__pf {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 12.5px;
  color: var(--fg-mute);
}
.hero__pf li { display: inline-flex; align-items: center; gap: 8px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--fg-mute);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.dot--green  { background: var(--green);  box-shadow: 0 0 0 3px rgba(93, 191, 133, 0.18); }
.dot--orange { background: var(--roast);  box-shadow: 0 0 0 3px rgba(255, 78, 24, 0.22); }
.dot--blue   { background: var(--sky);    box-shadow: 0 0 0 3px rgba(74, 149, 208, 0.18); }

/* ---- HERO DEVICE (phone-framed dashboard) ---- */
.hero__device {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  isolation: isolate;
}
.hero__halo {
  position: absolute;
  inset: 8% 8% auto auto;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 78, 24, 0.45), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
.hero__phone {
  position: relative; z-index: 1;
  width: clamp(260px, 28vw, 360px);
  aspect-ratio: 320 / 652;
  border-radius: 44px;
  padding: 14px;
  background: linear-gradient(160deg, #2C2522 0%, #1A1614 60%, #0F0B09 100%);
  box-shadow:
    0 60px 120px -28px rgba(255, 78, 24, 0.32),
    0 0 0 1.5px rgba(255, 78, 24, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-3deg) translateY(0);
  animation: deviceFloat 9s ease-in-out infinite;
  overflow: hidden;
}
@keyframes deviceFloat {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(-10px); }
}
.hero__notch {
  position: absolute;
  top: 18px; left: 50%;
  width: 86px; height: 22px;
  transform: translateX(-50%);
  background: #0F0B09;
  border-radius: 999px;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.hero__phone img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 32px;
  background: #0F0B09;
  display: block;
}

.hero__chip {
  position: absolute; z-index: 3;
  background: rgba(15, 11, 9, 0.82);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fg);
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.6);
  max-width: 230px;
  display: flex; flex-direction: column; gap: 4px;
}
.hero__chip p { font-size: 13px; }
.hero__chip strong { color: var(--fg); font-weight: 700; }
.hero__chip--coach { top: 8%; left: -4%; transform: rotate(-2deg); animation: chipFloatA 7s ease-in-out infinite; }
.hero__chip--save  { bottom: 12%; right: -2%; transform: rotate(2deg); animation: chipFloatB 9s ease-in-out -2s infinite; }
@keyframes chipFloatA { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes chipFloatB { 0%,100% { translate: 0 0; } 50% { translate: 0 6px; } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero__device { min-height: 0; margin-top: 18px; }
  .hero__chip--coach { left: 0%; top: 0%; }
  .hero__chip--save  { right: 0%; bottom: 6%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__halo, .hero__phone, .hero__chip--coach, .hero__chip--save { animation: none; }
}

/* ============================================================
   STRIP — manifesto
============================================================ */
.strip {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background:
    linear-gradient(180deg, rgba(255,78,24,0.04) 0%, transparent 100%),
    var(--ink-0);
  padding: clamp(48px, 6vw, 88px) var(--pad-x);
  text-align: center;
}
.strip p {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--fg);
  max-width: 26ch;
  margin: 0 auto;
}
.strip em.serif { color: var(--roast); font-weight: 600; }

/* ============================================================
   SECTION HEAD
============================================================ */
.section__head {
  text-align: center;
  margin: 0 auto clamp(48px, 6vw, 88px);
  display: grid; gap: 14px;
  justify-items: center;
}
.section__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--fg);
  max-width: 22ch;
}
.section__title em.serif { color: var(--roast); font-weight: 600; font-size: 0.96em; }
.section__deck {
  font-family: var(--f-ui);
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--fg-mute);
  max-width: 60ch;
  line-height: 1.55;
}

/* ============================================================
   GALLERY
============================================================ */
.gallery {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 1.6vw, 22px);
}
.grid__cell { grid-column: span 2; }
.grid__cell--span-2 { grid-column: span 4; }

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .grid__cell { grid-column: span 2; }
  .grid__cell--span-2 { grid-column: span 4; }
}
@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .grid__cell, .grid__cell--span-2 { grid-column: span 1; }
}

.gallery__foot {
  margin-top: clamp(40px, 5vw, 64px);
  text-align: center;
}

/* ============================================================
   CARD — base, glass, dark variants
============================================================ */
.card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px;
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), border-color 240ms, background-color 240ms, box-shadow 240ms;
  min-height: 220px;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-2);
  background: var(--glass-bg-2);
}
.glass { background: var(--glass-bg); }
.glass-on-paper { background: linear-gradient(160deg, rgba(44, 36, 32, 0.94), rgba(26, 22, 20, 0.96)); border-color: rgba(255, 78, 24, 0.18); }
.card--dark { color: var(--fg); }

.card__id {
  font-family: var(--f-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.card__id--invert { color: rgba(255, 255, 255, 0.55); }

.card__top {
  display: flex; align-items: center; justify-content: space-between;
}
.card__row {
  display: flex; align-items: center; gap: 12px;
}
.card__row--between { justify-content: space-between; align-items: flex-end; }
.card__col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card__col strong { font-weight: 600; font-size: 15px; color: var(--fg); }
.card__col .muted { font-size: 11.5px; }

.card__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.card__title--lg {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
}
.card__title em.serif { color: var(--roast); font-weight: 600; }

.card__caption {
  margin-top: auto;
  font-family: var(--f-display);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-2);
  border-top: 1px solid var(--glass-border);
  padding-top: 12px;
}
.card__caption em.serif { color: var(--roast); font-weight: 600; }

.card__note {
  margin-top: auto;
  font-family: var(--f-ui);
  font-size: 12.5px;
  color: var(--fg-mute);
  line-height: 1.45;
  padding-top: 4px;
}
.card__note em.serif { color: var(--fg-2); font-weight: 500; }

.card__credit {
  margin-top: 8px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--fg-faint);
}

.card__body { font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
.card__body strong { color: var(--fg); font-weight: 700; }

.card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card__actions--row { gap: 8px; }

/* ---- TAG / PILL CHIPS inside cards ---- */
.rtag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rtag--green  { color: var(--green); background: var(--green-soft); }
.rtag--orange { color: var(--roast); background: var(--roast-soft); }
.rtag__last { font-family: var(--f-num); font-size: 11px; color: var(--fg-faint); font-feature-settings: "tnum"; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-family: var(--f-ui);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--glass-bg);
  color: var(--fg);
  border: 1px solid var(--glass-border);
  transition: background 200ms, border-color 200ms, color 200ms;
}
.chip:hover { background: var(--glass-bg-2); border-color: var(--glass-border-2); }
.chip--ghost { background: transparent; }
.chip--brand { background: var(--roast); color: #fff; border-color: transparent; box-shadow: var(--roast-glow); }
.chip--brand:hover { background: var(--roast-1); box-shadow: var(--roast-glow-hover); }
.chip--invert { background: rgba(255, 255, 255, 0.08); color: var(--fg); border-color: rgba(255, 255, 255, 0.14); }
.chip--invert:hover { background: rgba(255, 255, 255, 0.14); }
.chip--soft {
  --c: var(--fg-mute);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c);
  border-color: color-mix(in srgb, var(--c) 22%, transparent);
}

/* ---- ICON TILE (replaces emoji-tile) ---- */
.icon-tile {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--fg);
  font-size: 22px;        /* phosphor icons size with font-size */
  flex: 0 0 auto;
}
.icon-tile.is-tinted { background: var(--tile-bg, rgba(255,255,255,0.06)); color: var(--tile-fg, var(--fg)); border-color: var(--tile-bd, var(--glass-border)); }

/* Phosphor inline helpers — use color: currentColor inheritance */
.ic { font-size: 16px; line-height: 1; vertical-align: -2px; }
.ic--lg { font-size: 22px; vertical-align: -4px; }
.ic--xl { font-size: 32px; }
.ic--brand { color: var(--roast); }
.ic--green { color: var(--green); }
.ic--red   { color: var(--red); }
.ic--amber { color: var(--amber); }

.card-ic {
  position: absolute;
  top: 22px; right: 22px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--fg-2);
  font-size: 18px;
  pointer-events: none;
}
.card--accent-green   .card-ic { color: var(--green);    background: rgba(93, 191, 133, 0.10); border-color: rgba(93, 191, 133, 0.30); }
.card--accent-red     .card-ic { color: var(--red);      background: rgba(226, 114, 114, 0.10); border-color: rgba(226, 114, 114, 0.30); }
.card--accent-amber   .card-ic { color: var(--amber);    background: rgba(229, 178, 82, 0.10);  border-color: rgba(229, 178, 82, 0.30); }
.card--accent-roast   .card-ic { color: var(--roast);    background: var(--roast-soft);          border-color: rgba(255, 78, 24, 0.35); }
.card--accent-plum    .card-ic { color: var(--plum);     background: rgba(168, 118, 201, 0.10); border-color: rgba(168, 118, 201, 0.30); }

/* ---- See-the-library CTA card on the home grid ---- */
.card--cta {
  background: linear-gradient(160deg, rgba(255, 78, 24, 0.16), rgba(255, 78, 24, 0.04) 60%, rgba(255, 78, 24, 0.02));
  border: 1px solid rgba(255, 78, 24, 0.35);
  position: relative;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1), border-color 240ms, background 240ms, box-shadow 240ms;
}
.card--cta:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 78, 24, 0.65);
  background: linear-gradient(160deg, rgba(255, 78, 24, 0.22), rgba(255, 78, 24, 0.06) 60%, rgba(255, 78, 24, 0.02));
  box-shadow: 0 22px 60px -16px rgba(255, 78, 24, 0.5), 0 0 0 1px rgba(255, 78, 24, 0.22);
}
.card--cta::after {
  content: "";
  position: absolute;
  inset: -25% -25% 0 auto;
  width: 280px; height: 280px;
  background: radial-gradient(closest-side, rgba(255, 78, 24, 0.42), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}
.card--cta .card__title { color: var(--fg); position: relative; z-index: 1; }
.card--cta .card__title em.serif { color: var(--roast); }
.card--cta .card__note { color: var(--fg-mute); position: relative; z-index: 1; }
.card-cta__chev {
  position: absolute;
  bottom: 22px; right: 22px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--roast);
  color: #fff;
  font-size: 22px;
  box-shadow: var(--roast-glow);
  z-index: 2;
  transition: transform 240ms;
}
.card--cta:hover .card-cta__chev { transform: translate(2px, -2px) scale(1.06); }

/* ============================================================
   ACCENT CARD VARIANTS — the 20% accent tier
   Bold, semantic-washed glass. Used to make specific cards
   stand out without going full hero.
============================================================ */
.card--accent-green {
  background: linear-gradient(160deg, rgba(93, 191, 133, 0.14), rgba(93, 191, 133, 0.04) 60%, rgba(93, 191, 133, 0.02));
  border-color: rgba(93, 191, 133, 0.32);
  box-shadow:
    0 0 0 1px rgba(93, 191, 133, 0.10),
    0 14px 40px -16px rgba(93, 191, 133, 0.32);
}
.card--accent-green:hover {
  background: linear-gradient(160deg, rgba(93, 191, 133, 0.18), rgba(93, 191, 133, 0.06) 60%, rgba(93, 191, 133, 0.02));
  border-color: rgba(93, 191, 133, 0.50);
  box-shadow:
    0 0 0 1px rgba(93, 191, 133, 0.16),
    0 18px 48px -16px rgba(93, 191, 133, 0.45);
}
.card--accent-red {
  background: linear-gradient(160deg, rgba(226, 114, 114, 0.16), rgba(226, 114, 114, 0.05) 60%, rgba(226, 114, 114, 0.02));
  border-color: rgba(226, 114, 114, 0.34);
  box-shadow:
    0 0 0 1px rgba(226, 114, 114, 0.10),
    0 14px 40px -16px rgba(226, 114, 114, 0.32);
}
.card--accent-red:hover {
  border-color: rgba(226, 114, 114, 0.55);
  box-shadow: 0 0 0 1px rgba(226, 114, 114, 0.18), 0 18px 48px -16px rgba(226, 114, 114, 0.45);
}
.card--accent-amber {
  background: linear-gradient(160deg, rgba(229, 178, 82, 0.14), rgba(229, 178, 82, 0.04) 60%, rgba(229, 178, 82, 0.02));
  border-color: rgba(229, 178, 82, 0.34);
  box-shadow:
    0 0 0 1px rgba(229, 178, 82, 0.10),
    0 14px 40px -16px rgba(229, 178, 82, 0.30);
}
.card--accent-amber:hover {
  border-color: rgba(229, 178, 82, 0.55);
  box-shadow: 0 0 0 1px rgba(229, 178, 82, 0.18), 0 18px 48px -16px rgba(229, 178, 82, 0.42);
}
.card--accent-roast {
  background: linear-gradient(160deg, rgba(255, 78, 24, 0.18), rgba(255, 78, 24, 0.05) 60%, rgba(255, 78, 24, 0.02));
  border-color: rgba(255, 78, 24, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 78, 24, 0.14),
    0 16px 48px -16px rgba(255, 78, 24, 0.45);
}
.card--accent-roast:hover {
  border-color: rgba(255, 78, 24, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 78, 24, 0.22), 0 22px 60px -16px rgba(255, 78, 24, 0.6);
}
.card--accent-plum {
  background: linear-gradient(160deg, rgba(168, 118, 201, 0.16), rgba(168, 118, 201, 0.05) 60%, rgba(168, 118, 201, 0.02));
  border-color: rgba(168, 118, 201, 0.34);
  box-shadow:
    0 0 0 1px rgba(168, 118, 201, 0.10),
    0 14px 40px -16px rgba(168, 118, 201, 0.32);
}
.card--accent-plum:hover {
  border-color: rgba(168, 118, 201, 0.55);
  box-shadow: 0 0 0 1px rgba(168, 118, 201, 0.18), 0 18px 48px -16px rgba(168, 118, 201, 0.45);
}

/* Accent cards lean their .card__id badge into the accent color */
.card--accent-green .card__id { color: rgba(93, 191, 133, 0.85); }
.card--accent-red   .card__id { color: rgba(226, 114, 114, 0.85); }
.card--accent-amber .card__id { color: rgba(229, 178, 82, 0.85); }
.card--accent-roast .card__id { color: rgba(255, 78, 24, 1); }
.card--accent-plum  .card__id { color: rgba(168, 118, 201, 0.85); }

/* ---- DONUT / RING ---- */
.donut, .ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 240px;
  margin: 6px auto 8px;
}
.donut__center, .ring__center {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  gap: 2px;
}
.donut__center { gap: 4px; grid-auto-rows: min-content; align-content: center; }
.ring__center span:first-child { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- BAR ---- */
.bar {
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.bar__fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--roast) 0%, var(--roast-1) 100%);
  box-shadow: 0 0 18px rgba(255, 78, 24, 0.4);
  border-radius: inherit;
}

/* ---- RECURRING LIST ---- */
.rec-list { display: flex; flex-direction: column; gap: 12px; }
.rec-list li {
  display: grid; grid-template-columns: 8px 1fr auto; align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--glass-border);
}
.rec-list li:first-child { border-top: 0; padding-top: 4px; }
.rec__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--fg-mute)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--fg-mute)) 18%, transparent); }
.rec__col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rec__col strong { font-size: 14px; font-weight: 600; color: var(--fg); }
.rec__col .muted { font-size: 11.5px; }

/* ---- SPARKLINE ---- */
.spark { width: 60%; height: 50px; }

/* ---- WEEKDAY BARS ---- */
.weekdots {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 80px;
  padding: 8px 0;
}
.weekdots span {
  display: block;
  height: var(--h, 20%);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 78, 24, 0.7), rgba(255, 78, 24, 0.25));
  box-shadow: inset 0 0 0 1px rgba(255, 78, 24, 0.3);
}
.weekdots__labels {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-align: center;
  color: var(--fg-faint);
  margin-top: 2px;
}

/* ---- AVATAR (Jackie + cast) ---- */
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  overflow: hidden;
  flex: 0 0 auto;
}
.avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.avatar--jackie {
  background: linear-gradient(135deg, var(--roast) 0%, #FF9461 100%);
  box-shadow: 0 0 0 2px rgba(255, 78, 24, 0.35), 0 0 18px rgba(255, 78, 24, 0.4);
}
.avatar--lg { width: 72px; height: 72px; font-size: 30px; }
.avatar--xl { width: 120px; height: 120px; font-size: 48px; }

/* ---- CHAT BUBBLES (in-card) ---- */
.bubble {
  display: block;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 90%;
  position: relative;
}
.bubble--coach {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  border-top-left-radius: 4px;
}
.bubble--you {
  background: var(--roast);
  color: #fff;
  margin-left: auto;
  border-top-right-radius: 4px;
  font-weight: 600;
}
.bubble em.serif { font-weight: 500; opacity: 0.85; }

/* ---- IMPACT ---- */
.impact { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 6px; }
.impact__list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- CALENDAR ---- */
.cal { padding: 4px 0; }
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal__cell {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-mute);
  background: rgba(255, 255, 255, 0.025);
  font-feature-settings: "tnum";
}
.cal__cell:empty,
.cal__cell[data-d=""] { background: transparent; }
.cal__cell--today {
  background: var(--roast-soft);
  color: var(--roast);
  box-shadow: inset 0 0 0 1px rgba(255, 78, 24, 0.4), 0 0 14px rgba(255, 78, 24, 0.25);
}
.cal__d {
  position: absolute;
  bottom: 3px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--c, var(--fg-mute));
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 25%, transparent);
}

/* ============================================================
   ROAST BOARD — center spread (re-uses dark, no extra bg)
============================================================ */
.rb {
  padding: clamp(72px, 10vw, 140px) 0;
  text-align: center;
  position: relative;
}
.rb::before {
  content: "";
  position: absolute;
  inset: 10% 5% auto 5%;
  height: 60%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 78, 24, 0.12), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.rb > .container { position: relative; z-index: 1; }

.rb__title {
  margin-top: 14px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.rb__title em.serif { color: var(--roast); font-weight: 600; font-size: 0.95em; }

.rb__deck {
  margin: 22px auto 0;
  max-width: 56ch;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--fg-mute);
  line-height: 1.55;
}

.transcript {
  margin: clamp(40px, 5vw, 64px) auto 0;
  max-width: 720px;
  text-align: left;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 32px);
  backdrop-filter: blur(16px);
}
.transcript__head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.transcript .bubble {
  margin-bottom: 12px;
  max-width: 92%;
  position: relative;
  padding-left: 78px;
}
.transcript .bubble .who {
  position: absolute; left: 14px; top: 12px;
  font-family: var(--f-ui); font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; color: var(--fg-faint);
}
.transcript .bubble--coach { font-style: italic; }
.transcript .bubble--you {
  margin-left: auto;
  padding-left: 14px;
  padding-right: 78px;
}
.transcript .bubble--you .who { left: auto; right: 14px; color: rgba(255, 255, 255, 0.85); }
@media (max-width: 600px) {
  .transcript .bubble { padding-left: 14px; padding-top: 26px; }
  .transcript .bubble .who { top: 8px; left: 14px; }
  .transcript .bubble--you { padding-right: 14px; }
  .transcript .bubble--you .who { left: auto; right: 14px; }
}

/* ============================================================
   VOICE — won't say
============================================================ */
.voice {
  padding: clamp(72px, 10vw, 140px) 0;
  border-top: 1px solid var(--glass-border);
}
.voice .section__title { max-width: 28ch; margin-top: 8px; }

.wont {
  margin: clamp(40px, 5vw, 64px) auto 0;
  max-width: 980px;
  border-top: 1px solid var(--glass-border);
}
.wont li {
  display: grid;
  grid-template-columns: 80px 1fr;
  column-gap: clamp(18px, 2.4vw, 36px);
  row-gap: 6px;
  padding: clamp(24px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--glass-border);
  align-items: baseline;
  transition: padding 260ms cubic-bezier(.2,.7,.2,1);
}
.wont li:hover { padding-left: 12px; }
.wont__num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20px, 1.7vw, 26px);
  color: var(--roast);
  letter-spacing: -0.01em;
  font-feature-settings: "tnum";
}
.wont__line {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
  grid-column: 2;
  max-width: 24ch;
}
.wont__sting {
  font-family: var(--f-serif);
  font-size: clamp(13px, 1.1vw, 16px);
  color: var(--fg-mute);
  grid-column: 2;
  max-width: 60ch;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .wont li { grid-template-columns: 56px 1fr; }
}

/* ============================================================
   CTA
============================================================ */
.cta {
  padding: clamp(72px, 10vw, 140px) 0;
  text-align: center;
  position: relative;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -10% 0 -10% 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255, 78, 24, 0.12), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.cta__inner { position: relative; z-index: 1; max-width: 760px; }
.cta__title {
  margin-top: 14px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.cta__title em.serif { color: var(--roast); font-weight: 600; }
.cta__deck { margin-top: 16px; color: var(--fg-mute); font-size: 14px; letter-spacing: 0.01em; }

.cta__form { margin: 36px auto 0; max-width: 520px; }
.cta__row {
  display: flex; align-items: center; gap: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 18px;
  transition: border-color 200ms, box-shadow 200ms, background-color 200ms;
}
.cta__row:focus-within {
  border-color: var(--roast);
  background: var(--glass-bg-2);
  box-shadow: 0 0 0 4px rgba(255, 78, 24, 0.18), var(--roast-glow);
}
.cta__row input {
  flex: 1; min-height: 44px;
  border: 0; background: transparent;
  color: var(--fg);
  font-size: 15px;
  outline: 0;
}
.cta__row input::placeholder { color: var(--fg-faint); }
.cta__hint {
  margin-top: 14px;
  color: var(--fg-mute);
  font-size: 12.5px;
}
@media (max-width: 540px) {
  .cta__row { flex-direction: column; padding: 8px; gap: 8px; align-items: stretch; }
  .cta__row .btn { width: 100%; }
  .cta__row input { padding: 0 10px; }
}

/* ============================================================
   FOOTER (4-column with socials)
============================================================ */
.foot {
  background: var(--ink-0);
  border-top: 1px solid var(--glass-border);
  padding: clamp(56px, 7vw, 96px) 0 32px;
  position: relative;
  z-index: 1;
}
.foot__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--glass-border);
}
.foot__brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.025em;
  color: var(--fg);
}
.foot__logo {
  width: 32px; height: 32px;
  filter: drop-shadow(0 0 12px rgba(255, 78, 24, 0.55));
}
.foot__tag {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--fg-mute);
  justify-self: start;
  max-width: 38ch;
}
.socials {
  display: flex; gap: 8px;
  justify-self: end;
}
.socials li { display: inline-flex; }
.socials a {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--fg-mute);
  transition: color 220ms, background-color 220ms, border-color 220ms, transform 200ms, box-shadow 220ms;
}
.socials a:hover {
  color: var(--roast);
  background: var(--roast-soft);
  border-color: rgba(255, 78, 24, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 78, 24, 0.25);
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(32px, 4vw, 56px) 0 clamp(28px, 4vw, 48px);
}
.foot__col { display: flex; flex-direction: column; gap: 8px; }
.foot__h {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 4px;
}
.foot__col a {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--fg-2);
  transition: color 200ms;
  width: max-content;
}
.foot__col a:hover { color: var(--roast); }

.foot__legal {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  font-size: 12.5px;
  color: var(--fg-faint);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .foot__top { grid-template-columns: 1fr; justify-items: start; }
  .socials { justify-self: start; }
  .foot__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .foot__cols { grid-template-columns: 1fr; }
}

/* ============================================================
   SUB-PAGE LAYOUT (about, team, support, etc.)
============================================================ */
.page {
  padding: clamp(56px, 8vw, 120px) 0 clamp(72px, 9vw, 140px);
  position: relative;
}
.page__crumbs {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 24px;
  font-weight: 600;
}
.page__crumbs a { color: var(--fg-mute); }
.page__crumbs a:hover { color: var(--roast); }

.page__head {
  max-width: 880px;
  margin-bottom: clamp(48px, 6vw, 88px);
  display: flex; flex-direction: column; gap: 16px;
}
.page__h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.page__h1 em.serif { color: var(--roast); font-weight: 600; font-size: 0.96em; }
.page__deck {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--fg-mute);
  max-width: 56ch;
}

.page__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 72px);
  max-width: 880px;
}
.page__body--wide { max-width: var(--max-w); }

.page__sec {
  display: flex; flex-direction: column; gap: 14px;
}
.page__kicker {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--roast);
}
.page__h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  max-width: 28ch;
}
.page__h2 em.serif { color: var(--roast); font-weight: 600; }
.page__h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(17px, 1.4vw, 21px);
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-top: 12px;
}
.page__p {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.6;
  color: var(--fg-2);
  letter-spacing: -0.005em;
  max-width: 64ch;
}
.page__p em.serif { color: var(--roast-1); font-weight: 600; }
.page__p--mute { color: var(--fg-mute); }
.page__p strong { color: var(--fg); font-weight: 600; }
.page__p a {
  color: var(--fg);
  border-bottom: 1px solid var(--glass-border-2);
  padding-bottom: 1px;
  transition: color 200ms, border-color 200ms;
}
.page__p a:hover { color: var(--roast); border-color: var(--roast); }

.page__list {
  display: flex; flex-direction: column; gap: 8px;
}
.page__list li {
  font-family: var(--f-display);
  font-size: clamp(14.5px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--fg-2);
  letter-spacing: -0.005em;
  padding-left: 24px;
  position: relative;
}
.page__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 8px;
  background: var(--roast);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 78, 24, 0.6);
}

/* Two-column page body */
.page__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 760px) { .page__split { grid-template-columns: 1fr; } }

/* Cards used inside dummy pages (reuse glass card look) */
.page-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}
@media (max-width: 1080px) { .page-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .page-cards { grid-template-columns: 1fr; } }
.page-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  transition: border-color 220ms, background 220ms, transform 220ms;
}
.page-card:hover { border-color: var(--glass-border-2); background: var(--glass-bg-2); transform: translateY(-2px); }
.page-card__role {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--roast);
}
.page-card__name { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--fg); letter-spacing: -0.02em; }
.page-card__bio { font-size: 13.5px; color: var(--fg-mute); line-height: 1.5; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 0;
  transition: border-color 220ms, background 220ms;
}
.faq details[open] { border-color: rgba(255, 78, 24, 0.35); background: var(--glass-bg-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(15px, 1.25vw, 18px);
  letter-spacing: -0.015em;
  color: var(--fg);
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 14px;
  font-size: 24px;
  color: var(--roast);
  font-weight: 400;
  transition: transform 200ms;
  font-family: var(--f-ui);
}
.faq details[open] summary::after { content: "−"; }
.faq__a {
  padding: 0 22px 20px;
  color: var(--fg-mute);
  font-size: 15px;
  line-height: 1.6;
}
.faq__a a { color: var(--fg); border-bottom: 1px solid var(--glass-border-2); }
.faq__a a:hover { color: var(--roast); border-color: var(--roast); }

/* Page CTA */
.page__cta {
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(160deg, rgba(255, 78, 24, 0.12), rgba(255, 78, 24, 0.04) 60%, transparent);
  border: 1px solid rgba(255, 78, 24, 0.25);
  border-radius: var(--r-xl);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px;
}
.page__cta h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
  color: var(--fg);
}
.page__cta h3 em.serif { color: var(--roast); }
.page__cta p { color: var(--fg-mute); font-size: 14px; max-width: 50ch; }

/* ============================================================
   LIBRARY PAGE — paper surface for the React mount
============================================================ */
.library-page { padding: 0; }
.library-page__head {
  padding: clamp(56px, 8vw, 120px) var(--pad-x) clamp(40px, 5vw, 64px);
}
.library-paper {
  background: #F7F7F6;             /* cool, definitely not cream */
  position: relative;
  isolation: isolate;
  margin: 0 calc(50% - 50vw);
  border-top: 1px solid var(--glass-border-2);
  border-bottom: 1px solid var(--glass-border-2);
  box-shadow: 0 -40px 120px -32px rgba(255, 78, 24, 0.28);
  z-index: 1;
}
.library-paper::before {
  content: "";
  position: absolute;
  inset: -8% -5% auto -5%;
  height: 32%;
  background: radial-gradient(closest-side, rgba(255, 78, 24, 0.30), transparent 70%);
  filter: blur(36px);
  pointer-events: none;
  z-index: -1;
}
.library-paper__inner { color: #1A1614; min-height: 60vh; }
.library-paper__loading {
  padding: 120px 20px;
  text-align: center;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  color: #6B645B;
  font-size: 16px;
}

/* (legacy .ds-paper class removed — replaced by .library-paper) */
.ds-paper {
  position: relative;
  margin-top: clamp(28px, 4vw, 56px);
  background: #F7F7F6;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border-2);
  isolation: isolate;
}
.ds-paper::before {
  /* glow above the paper */
  content: "";
  position: absolute;
  inset: -8% -5% auto -5%;
  height: 32%;
  background: radial-gradient(closest-side, rgba(255, 78, 24, 0.30), transparent 70%);
  filter: blur(36px);
  pointer-events: none;
  z-index: -1;
}
.ds-paper__inner {
  position: relative;
  /* The bundled React tree handles its own layout; we just give it room. */
  min-height: 540px;
  /* Reset the dark-mode body styles so the cards inherit their own fonts/colors. */
  color: #1A1614;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.ds-paper__inner *::selection {
  background: rgba(255, 78, 24, 0.22);
  color: #1A1614;
}
.ds-paper__loading {
  padding: 80px 20px;
  text-align: center;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  color: #6B645B;
  font-size: 16px;
}

/* ============================================================
   DESIGN-SYSTEM CATALOG (legacy — kept for any pages that still want it)
============================================================ */
.system {
  padding: clamp(72px, 10vw, 140px) 0;
  border-top: 1px solid var(--glass-border);
  position: relative;
}
.catalog { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.catalog__loading { padding: 48px 0; text-align: center; }

.cat-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--glass-border);
}
.cat-section:first-child { border-top: 0; padding-top: 0; }
.cat-section__head { position: sticky; top: 80px; align-self: start; }
.cat-section__num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 4vw, 72px);
  line-height: 1;
  color: var(--roast);
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
}
.cat-section__title {
  margin-top: 8px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.02em;
  color: var(--fg);
}
.cat-section__count {
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 600;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 1080px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cat-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .cat-section { grid-template-columns: 1fr; }
  .cat-section__head { position: static; }
}

.cat-card {
  position: relative;
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
  border-radius: var(--r-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: transform 240ms cubic-bezier(.2,.7,.2,1), background 240ms, border-color 240ms, box-shadow 240ms;
  text-decoration: none;
  color: inherit;
  min-height: 124px;
}
.cat-card:hover {
  transform: translateY(-3px);
  background: var(--glass-bg-2);
  border-color: rgba(255, 78, 24, 0.4);
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 78, 24, 0.16);
}
.cat-card__top { display: flex; justify-content: space-between; align-items: center; }
.cat-card__id {
  display: inline-flex; align-items: center;
  font-family: var(--f-num);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--roast);
  background: var(--roast-soft);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 78, 24, 0.3);
  font-feature-settings: "tnum";
}
.cat-card__role {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 600;
}
.cat-card__role.is-hero { color: var(--roast); }
.cat-card__role.is-accent { color: var(--amber); }
.cat-card__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--fg);
  line-height: 1.2;
}
.cat-card__purpose {
  font-size: 13px;
  color: var(--fg-mute);
  line-height: 1.45;
  margin-top: auto;
  padding-top: 4px;
}

.system__foot {
  margin-top: clamp(48px, 6vw, 80px);
  text-align: center;
}

/* ============================================================
   FORMS — newsletter + contact (shared "ws-form" pattern)
============================================================ */
.newsletter, .contact {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}
.newsletter { border-top: 1px solid var(--glass-border); }
.newsletter::before {
  content: "";
  position: absolute;
  inset: -10% 0 -10% 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255, 78, 24, 0.10), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.newsletter__inner, .contact__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 920px) {
  .newsletter__inner, .contact__inner { grid-template-columns: 1fr; }
}

.newsletter__head, .contact__head { display: flex; flex-direction: column; gap: 16px; }

.cta__title, .contact__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.cta__title em.serif, .contact__title em.serif { color: var(--roast); font-weight: 600; }

.cta__deck, .contact__deck {
  color: var(--fg-mute);
  font-size: 15px;
  line-height: 1.55;
  max-width: 44ch;
}

.contact__list {
  margin-top: 6px;
  display: flex; flex-direction: column; gap: 10px;
}
.contact__list li { display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 14.5px; }
.contact__list a { color: var(--fg); border-bottom: 1px solid var(--glass-border-2); padding-bottom: 1px; transition: border-color 200ms, color 200ms; }
.contact__list a:hover { color: var(--roast); border-color: var(--roast); }

/* Form skin */
.ws-form {
  display: flex; flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(14px);
}

.ws-form__row { display: flex; flex-direction: column; gap: 16px; }
.ws-form__row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .ws-form__row--two { grid-template-columns: 1fr; } }

.ws-field { display: flex; flex-direction: column; gap: 6px; }
.ws-field__label {
  font-family: var(--f-ui);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.ws-field input,
.ws-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.45;
  font-family: var(--f-ui);
  outline: 0;
  transition: border-color 220ms, background-color 220ms, box-shadow 220ms;
  min-height: 46px;
}
.ws-field textarea { resize: vertical; min-height: 96px; font-family: var(--f-ui); }
.ws-field input::placeholder,
.ws-field textarea::placeholder { color: var(--fg-faint); }
.ws-field input:focus,
.ws-field textarea:focus {
  border-color: var(--roast);
  background: rgba(255, 78, 24, 0.06);
  box-shadow: 0 0 0 4px rgba(255, 78, 24, 0.18);
}
.ws-field input:invalid:not(:placeholder-shown),
.ws-field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(226, 114, 114, 0.45);
}

.ws-form__consent { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.ws-check {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-2);
  cursor: pointer;
  padding: 4px 0;
}
.ws-check input { position: absolute; opacity: 0; pointer-events: none; }
.ws-check__box {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--glass-border-2);
  position: relative;
  margin-top: 1px;
  transition: background 200ms, border-color 200ms;
}
.ws-check input:checked + .ws-check__box {
  background: var(--roast);
  border-color: var(--roast);
  box-shadow: var(--roast-glow);
}
.ws-check input:checked + .ws-check__box::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}
.ws-check input:focus-visible + .ws-check__box {
  outline: 2px solid var(--roast);
  outline-offset: 2px;
}
.ws-check a { border-bottom: 1px solid var(--glass-border); }
.ws-check a:hover { color: var(--roast); border-color: var(--roast); }

.ws-form__foot {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 4px;
}
.ws-form__hint { font-size: 12.5px; color: var(--fg-mute); flex: 1; min-width: 0; }
.ws-form__msg {
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  display: none;
}
.ws-form__msg.is-success {
  display: block;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(93, 191, 133, 0.35);
}
.ws-form__msg.is-error {
  display: block;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(226, 114, 114, 0.35);
}

.ws-form.is-submitting button[type="submit"] {
  opacity: 0.6; pointer-events: none;
}

/* ============================================================
   ENTRANCE
============================================================ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .card--float { animation: none; }
}
