/* ============================================================
   Rekindle — Shared Stylesheet
   A real person to start with, when you don't have one.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..700,0..100&family=Inter:wght@300..700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --canvas:  #FAF6EE;
  --ink:     #0F1B2D;
  --ember:   #E26A3F;
  --hearth:  #B43A2A;
  --sage:    #7C8C6F;
  --mist:    #EAE3D6;
  --slate:   #5A6172;
  --white:   #FFFFFF;
  --line:    rgba(15, 27, 45, 0.08);
  --line-strong: rgba(15, 27, 45, 0.16);
  --shadow-sm: 0 1px 2px rgba(15,27,45,0.04);
  --shadow-md: 0 6px 24px -12px rgba(15,27,45,0.18);

  /* Type */
  --f-display: 'Fraunces', Georgia, serif;
  --f-body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;

  --fs-display-1: 4.5rem;
  --fs-display-2: 3.5rem;
  --fs-display-3: 2.75rem;
  --fs-h1: 2.25rem;
  --fs-h2: 1.75rem;
  --fs-h3: 1.375rem;
  --fs-h4: 1.125rem;
  --fs-body: 1.0625rem;
  --fs-body-sm: 1rem;
  --fs-caption: 0.875rem;
  --fs-micro: 0.75rem;

  --lh-display: 1.05;
  --lh-heading: 1.2;
  --lh-body: 1.6;

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

  /* Layout */
  --container: 1280px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; cursor: pointer; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ember); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--f-display); font-weight: 500; line-height: var(--lh-heading); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
::selection { background: var(--ember); color: white; }

/* ---------- Type utilities ---------- */
.display-1 { font-family: var(--f-display); font-size: var(--fs-display-1); line-height: var(--lh-display); letter-spacing: -0.025em; font-weight: 400; }
.display-2 { font-family: var(--f-display); font-size: var(--fs-display-2); line-height: var(--lh-display); letter-spacing: -0.02em; font-weight: 400; }
.display-3 { font-family: var(--f-display); font-size: var(--fs-display-3); line-height: var(--lh-display); letter-spacing: -0.015em; font-weight: 400; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); font-weight: 600; font-family: var(--f-body); letter-spacing: 0; }
.eyebrow { font-family: var(--f-body); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--slate); }
.caption { font-size: var(--fs-caption); color: var(--slate); }
.muted { color: var(--slate); }
.ember { color: var(--ember); }

/* serif italic accent for warmth */
em.warm { font-family: var(--f-display); font-style: italic; font-weight: 400; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.section { padding: var(--s-9) 0; }
.section-sm { padding: var(--s-7) 0; }
@media (max-width: 900px) { .section { padding: var(--s-8) 0; } }
@media (max-width: 600px) { .section { padding: var(--s-7) 0; } }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-5); }
.row { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.divider { height: 1px; background: var(--line); width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--ember); color: var(--white); }
.btn-primary:hover { background: var(--hearth); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); padding-left: 6px; padding-right: 6px; }
.btn-ghost:hover { color: var(--ember); }
.btn-ghost .underline { border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.btn-sm { padding: 10px 16px; font-size: 0.9375rem; }
.btn-lg { padding: 18px 28px; font-size: 1.0625rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.btn .ic { width: 18px; height: 18px; }

/* ---------- Chips / Tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: 500;
  background: var(--mist);
  color: var(--ink);
  border: 1px solid transparent;
  line-height: 1.2;
}
.chip-outline { background: transparent; border-color: var(--line-strong); color: var(--slate); }
.chip-ember { background: rgba(226,106,63,0.12); color: var(--hearth); }
.chip-sage { background: rgba(124,140,111,0.18); color: #485440; }
.chip-ink { background: var(--ink); color: var(--canvas); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); color: var(--canvas); }
.chip.is-clickable { cursor: pointer; transition: background 200ms ease, color 200ms ease, border-color 200ms ease; }
.chip.is-clickable:hover { border-color: var(--ink); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--s-5);
}
.card-mist { background: var(--mist); border-color: transparent; }
.card-flush { padding: 0; overflow: hidden; }
.card-hover { transition: border-color 200ms ease, transform 200ms ease; }
.card-hover:hover { border-color: var(--line-strong); }

/* Guide card */
.guide-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: border-color 200ms ease; }
.guide-card:hover { border-color: var(--line-strong); }
.guide-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.guide-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-card .body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.guide-card .title { font-family: var(--f-display); font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; }
.guide-card .summary { color: var(--slate); font-size: var(--fs-body-sm); }
.guide-card .author { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: var(--fs-caption); color: var(--slate); }
.guide-card .author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* Buddy card */
.buddy-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: border-color 200ms ease; }
.buddy-card:hover { border-color: var(--line-strong); }
.buddy-card .portrait { aspect-ratio: 1 / 1; overflow: hidden; background: var(--mist); }
.buddy-card .portrait img { width: 100%; height: 100%; object-fit: cover; }
.buddy-card .body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.buddy-card .name { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em; }
.buddy-card .story { color: var(--slate); font-size: var(--fs-body-sm); line-height: 1.5; }
.buddy-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-caption); color: var(--slate); margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.buddy-card .price strong { color: var(--ink); font-weight: 600; }

/* Testimonial card */
.testimonial { background: var(--mist); border-radius: var(--radius-md); padding: var(--s-6); }
.testimonial .quote { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.testimonial .who { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.testimonial .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial .who-meta { display: flex; flex-direction: column; }
.testimonial .who-meta .name { font-weight: 600; }
.testimonial .who-meta .sub { font-size: var(--fs-caption); color: var(--slate); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-caption); font-weight: 500; color: var(--ink); }
.field .hint { font-size: var(--fs-caption); color: var(--slate); }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="search"],
.field input[type="tel"],
.field select,
.field textarea {
  font-family: var(--f-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  width: 100%;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(226,106,63,0.18);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(90,97,114,0.6); }
.field .error { color: var(--hearth); font-size: var(--fs-caption); }
.field-inline { display: flex; gap: var(--s-2); align-items: center; }

.checkbox, .radio { display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer; font-size: var(--fs-body-sm); }
.checkbox input, .radio input { width: 18px; height: 18px; accent-color: var(--ember); }

/* Search input */
.search { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--slate); pointer-events: none; }
.search input { padding-left: 42px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 246, 238, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.site-header .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.brand .mark { width: 32px; height: 32px; }
.brand:hover { color: var(--ink); }
.nav-primary { display: flex; gap: var(--s-5); align-items: center; }
.nav-primary a { font-size: 0.9375rem; font-weight: 500; color: var(--ink); padding: 6px 2px; }
.nav-primary a:hover, .nav-primary a.is-active { color: var(--ember); }
.nav-auth { display: flex; gap: var(--s-3); align-items: center; }
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nav-toggle .ic { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .nav-primary, .nav-auth .nav-auth-text { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0;
  background: var(--canvas);
  z-index: 100;
  padding: var(--s-5);
  display: none;
  flex-direction: column;
  gap: var(--s-5);
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer .drawer-head { display: flex; justify-content: space-between; align-items: center; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-5); }
.mobile-drawer nav a { font-family: var(--f-display); font-size: 2rem; color: var(--ink); }
.mobile-drawer .drawer-foot { margin-top: auto; display: flex; gap: var(--s-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250,246,238,0.8); padding: var(--s-9) 0 var(--s-6); margin-top: var(--s-9); }
.site-footer h4 { color: var(--white); font-family: var(--f-body); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s-4); }
.site-footer a { color: rgba(250,246,238,0.7); display: block; padding: 4px 0; font-size: var(--fs-body-sm); }
.site-footer a:hover { color: var(--ember); }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: var(--s-6); }
.site-footer .brand-block .brand { color: var(--white); }
.site-footer .brand-block p { color: rgba(250,246,238,0.6); max-width: 280px; margin-top: var(--s-3); font-size: var(--fs-body-sm); }
.site-footer .newsletter { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: var(--s-5); margin-bottom: var(--s-7); display: grid; grid-template-columns: 1fr auto; gap: var(--s-4); align-items: center; }
.site-footer .newsletter h3 { font-family: var(--f-display); font-size: 1.5rem; color: var(--white); }
.site-footer .newsletter p { color: rgba(250,246,238,0.7); margin: 4px 0 0; font-size: var(--fs-body-sm); }
.site-footer .newsletter form { display: flex; gap: var(--s-2); }
.site-footer .newsletter input { background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.16); color: var(--white); padding: 12px 16px; border-radius: var(--radius-pill); min-width: 280px; font-family: var(--f-body); }
.site-footer .newsletter input::placeholder { color: rgba(250,246,238,0.4); }
.site-footer .footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); font-size: var(--fs-caption); color: rgba(250,246,238,0.5); }
@media (max-width: 900px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .newsletter { grid-template-columns: 1fr; }
  .site-footer .newsletter input { min-width: 0; }
  .site-footer .newsletter form { flex-direction: column; align-items: stretch; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-9);
  align-items: center;
  padding: var(--s-9) 0 var(--s-9);
}
.hero h1 { font-family: var(--f-display); font-size: var(--fs-display-1); line-height: 1.02; letter-spacing: -0.03em; font-weight: 400; }
.hero h1 em { font-style: italic; color: var(--ember); }
.hero .sub { font-size: 1.25rem; color: var(--slate); margin-top: var(--s-5); max-width: 36ch; line-height: 1.45; }
.hero .ctas { display: flex; gap: var(--s-3); margin-top: var(--s-6); flex-wrap: wrap; }
.hero .photo { aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--mist); position: relative; }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero .photo .caption-overlay { position: absolute; bottom: var(--s-5); left: var(--s-5); right: var(--s-5); background: rgba(15,27,45,0.86); color: var(--canvas); padding: 14px 16px; border-radius: var(--radius-sm); font-size: var(--fs-caption); backdrop-filter: blur(8px); }
.hero .photo .caption-overlay strong { color: var(--white); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: var(--s-6); padding: var(--s-7) 0; }
  .hero h1 { font-size: 3rem; }
  .hero .photo { aspect-ratio: 4 / 3; }
}

/* ---------- Generic blocks ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); margin-bottom: var(--s-7); flex-wrap: wrap; }
.section-head h2 { font-family: var(--f-display); font-size: var(--fs-h1); line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; font-weight: 400; }
.section-head p { color: var(--slate); max-width: 50ch; }

.band { background: var(--mist); padding: var(--s-9) 0; }
.band-ink { background: var(--ink); color: var(--canvas); padding: var(--s-9) 0; }
.band-ink h2, .band-ink h3 { color: var(--white); }
.band-ink .muted { color: rgba(250,246,238,0.7); }

/* Pull-quote */
.pullquote { padding: var(--s-9) 0; }
.pullquote blockquote { font-family: var(--f-display); font-size: 2.75rem; line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; margin: 0 auto; text-align: center; font-weight: 400; }
.pullquote .author { text-align: center; margin-top: var(--s-5); color: var(--slate); }
@media (max-width: 700px) { .pullquote blockquote { font-size: 1.75rem; } }

/* ---------- Filter bar ---------- */
.filterbar { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.filterbar .group { display: flex; gap: 6px; align-items: center; }
.filterbar .group-label { font-size: var(--fs-caption); color: var(--slate); margin-right: 4px; }

/* ---------- Sticky rail ---------- */
.has-rail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-7); }
.rail { position: sticky; top: 96px; align-self: start; }
@media (max-width: 960px) { .has-rail { grid-template-columns: 1fr; } .rail { position: static; } }

/* ---------- Long-form article ---------- */
.article h2 { font-family: var(--f-display); font-size: 2rem; margin-top: var(--s-8); margin-bottom: var(--s-4); letter-spacing: -0.02em; font-weight: 400; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-family: var(--f-display); font-size: 1.375rem; margin-top: var(--s-6); margin-bottom: var(--s-3); font-weight: 500; }
.article p { font-size: 1.0625rem; line-height: 1.75; color: var(--ink); max-width: 64ch; }
.article ul { padding-left: 1.2em; line-height: 1.7; }
.article ul li { margin-bottom: 8px; }
.article blockquote { border-left: 3px solid var(--ember); padding: 4px 0 4px var(--s-5); font-family: var(--f-display); font-style: italic; font-size: 1.375rem; color: var(--ink); margin: var(--s-6) 0; }
.article .callout { background: var(--mist); border-radius: var(--radius-md); padding: var(--s-5); margin: var(--s-5) 0; }
.article .callout h4 { font-family: var(--f-body); font-weight: 600; margin-bottom: 8px; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; text-align: left; padding: var(--s-5) 0;
  background: transparent; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
}
.accordion-trigger .ic { width: 22px; height: 22px; transition: transform 200ms ease; color: var(--slate); }
.accordion-trigger[aria-expanded="true"] .ic { transform: rotate(45deg); color: var(--ember); }
.accordion-body { display: none; padding-bottom: var(--s-5); color: var(--slate); max-width: 64ch; line-height: 1.7; }
.accordion-item.is-open .accordion-body { display: block; }

/* ---------- Pricing ---------- */
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); height: 100%; }
.price-card.hero-card { background: var(--ink); color: var(--canvas); border-color: transparent; padding: var(--s-7); position: relative; overflow: hidden; }
.price-card.hero-card h3 { color: var(--white); font-family: var(--f-display); font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; }
.price-card.hero-card .muted { color: rgba(250,246,238,0.7); }
.price-card.hero-card .accent-mark { position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--ember), transparent 70%); opacity: 0.3; }
.price-card .price-line { font-family: var(--f-display); font-size: 2rem; font-weight: 400; letter-spacing: -0.01em; }
.price-card .price-line .unit { font-family: var(--f-body); font-size: 1rem; color: var(--slate); font-weight: 400; margin-left: 4px; }
.price-card .features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.price-card .features li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-body-sm); color: var(--ink); }
.price-card .features li .ic { width: 18px; height: 18px; flex-shrink: 0; color: var(--ember); margin-top: 2px; }
.price-card.hero-card .features li { color: rgba(250,246,238,0.9); }
.price-card.hero-card .features li .ic { color: var(--ember); }

/* ---------- Dashboard ---------- */
.dash {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 73px);
}
.dash-sidebar {
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: var(--s-5) var(--s-4);
  display: flex; flex-direction: column;
  gap: var(--s-2);
}
.dash-sidebar .user-pill { display: flex; align-items: center; gap: 10px; padding: var(--s-3); border-radius: var(--radius-sm); margin-bottom: var(--s-4); }
.dash-sidebar .user-pill img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.dash-sidebar .user-pill .name { font-weight: 600; font-size: var(--fs-body-sm); line-height: 1.2; }
.dash-sidebar .user-pill .role { font-size: var(--fs-micro); color: var(--slate); }
.dash-sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--slate); font-size: var(--fs-body-sm); font-weight: 500; }
.dash-sidebar a:hover { background: var(--mist); color: var(--ink); }
.dash-sidebar a.is-active { background: var(--ink); color: var(--canvas); }
.dash-sidebar a.is-active:hover { background: var(--ink); color: var(--white); }
.dash-sidebar a .ic { width: 18px; height: 18px; }
.dash-main { padding: var(--s-6) var(--s-7); max-width: 100%; }
.dash-section { display: none; }
.dash-section.is-active { display: block; }
.dash-section h1 { font-family: var(--f-display); font-size: 2.25rem; letter-spacing: -0.02em; font-weight: 400; margin-bottom: var(--s-2); }
.dash-section .sub { color: var(--slate); margin-bottom: var(--s-6); }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash-sidebar { flex-direction: row; overflow-x: auto; padding: var(--s-3); border-right: 0; border-bottom: 1px solid var(--line); }
  .dash-sidebar .user-pill { display: none; }
  .dash-sidebar a { white-space: nowrap; }
  .dash-main { padding: var(--s-5); }
}

/* ---------- Misc utilities ---------- */
.mt-1 { margin-top: var(--s-2); } .mt-2 { margin-top: var(--s-4); } .mt-3 { margin-top: var(--s-5); }
.mt-4 { margin-top: var(--s-6); } .mt-5 { margin-top: var(--s-7); } .mt-6 { margin-top: var(--s-8); }
.mb-1 { margin-bottom: var(--s-2); } .mb-2 { margin-bottom: var(--s-4); } .mb-3 { margin-bottom: var(--s-5); }
.mb-4 { margin-bottom: var(--s-6); } .mb-5 { margin-bottom: var(--s-7); }
.text-center { text-align: center; }
.full-width { width: 100%; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }

/* Avatar */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--mist); }
.avatar-sm { width: 28px; height: 28px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 120px; height: 120px; }

/* ic = icon helper */
.ic { width: 20px; height: 20px; stroke-width: 1.75; }

/* Fade-rise on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Skip link */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--s-4); top: var(--s-4); background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 200; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: var(--s-5); }
.tab { padding: 12px 16px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--slate); font-weight: 500; cursor: pointer; margin-bottom: -1px; }
.tab.is-active { color: var(--ink); border-bottom-color: var(--ember); }

/* Status dots */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-sage { background: var(--sage); }
.dot-ember { background: var(--ember); }
.dot-slate { background: var(--slate); }

/* Stat */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .value { font-family: var(--f-display); font-size: 2.25rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.stat .label { font-size: var(--fs-caption); color: var(--slate); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--s-5); position: relative; }
.step .num { font-family: var(--f-display); font-size: 1.125rem; color: var(--ember); margin-bottom: var(--s-3); display: flex; align-items: center; gap: 8px; }
.step .num::before { content: ""; width: 32px; height: 1.5px; background: var(--ember); display: inline-block; }
.step h3 { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -0.01em; font-weight: 500; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: var(--fs-body-sm); margin: 0; }
.step .ic-wrap { width: 44px; height: 44px; background: rgba(226,106,63,0.12); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--s-4); }
.step .ic-wrap .ic { color: var(--ember); width: 22px; height: 22px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Inline list with bullets */
.dotlist { display: flex; gap: var(--s-5); flex-wrap: wrap; color: var(--slate); font-size: var(--fs-body-sm); }
.dotlist > * { position: relative; }
.dotlist > * + *::before { content: "·"; position: absolute; left: calc(var(--s-5) / -2 - 2px); }

/* Booking calendar mockup */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar .day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: var(--fs-caption); border-radius: 6px; color: var(--slate); }
.calendar .day.is-available { background: rgba(124,140,111,0.18); color: #485440; font-weight: 600; cursor: pointer; }
.calendar .day.is-available:hover { background: var(--sage); color: white; }
.calendar .day.is-selected { background: var(--ember); color: white; }
.calendar .day.head { font-weight: 600; color: var(--ink); background: transparent; cursor: default; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.05em; }

/* Slots */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { padding: 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: white; font-size: var(--fs-caption); text-align: center; cursor: pointer; transition: border-color 200ms ease; }
.slot:hover { border-color: var(--ember); color: var(--ember); }
.slot.is-selected { background: var(--ember); border-color: var(--ember); color: white; }

/* Quiz */
.quiz { background: var(--mist); border-radius: var(--radius-lg); padding: var(--s-7); }
.quiz .step-indicator { display: flex; gap: 6px; margin-bottom: var(--s-5); }
.quiz .step-indicator span { height: 4px; flex: 1; background: rgba(15,27,45,0.12); border-radius: 2px; }
.quiz .step-indicator span.is-done { background: var(--ember); }
.quiz .options { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin-top: var(--s-5); }
.quiz .option { background: white; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: var(--s-4); cursor: pointer; text-align: left; font-size: var(--fs-body-sm); transition: border-color 200ms ease; }
.quiz .option:hover, .quiz .option.is-selected { border-color: var(--ember); }
.quiz .option.is-selected { background: rgba(226,106,63,0.06); }
@media (max-width: 600px) { .quiz .options { grid-template-columns: 1fr; } .quiz { padding: var(--s-5); } }

/* Inbox layout */
.inbox { display: grid; grid-template-columns: 320px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; height: 600px; background: white; }
.inbox .threads { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox .thread-item { padding: var(--s-4); border-bottom: 1px solid var(--line); display: flex; gap: var(--s-3); cursor: pointer; }
.inbox .thread-item:hover, .inbox .thread-item.is-active { background: var(--mist); }
.inbox .thread-item img { width: 40px; height: 40px; border-radius: 50%; }
.inbox .thread-item .name { font-weight: 600; font-size: var(--fs-body-sm); display: flex; justify-content: space-between; }
.inbox .thread-item .preview { color: var(--slate); font-size: var(--fs-caption); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox .thread-item .time { color: var(--slate); font-size: var(--fs-micro); font-weight: 400; }
.inbox .active-thread { display: flex; flex-direction: column; }
.inbox .thread-head { padding: var(--s-4); border-bottom: 1px solid var(--line); display: flex; gap: var(--s-3); align-items: center; }
.inbox .messages { flex: 1; padding: var(--s-5); overflow-y: auto; display: flex; flex-direction: column; gap: var(--s-3); }
.inbox .msg { max-width: 70%; padding: 10px 14px; border-radius: var(--radius-md); font-size: var(--fs-body-sm); line-height: 1.5; }
.inbox .msg.them { background: var(--mist); align-self: flex-start; border-bottom-left-radius: 4px; }
.inbox .msg.me { background: var(--ink); color: var(--canvas); align-self: flex-end; border-bottom-right-radius: 4px; }
.inbox .compose { border-top: 1px solid var(--line); padding: var(--s-3); display: flex; gap: var(--s-2); }
.inbox .compose input { flex: 1; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); padding: 10px 16px; }
.inbox .compose input:focus { outline: none; border-color: var(--ember); }
@media (max-width: 800px) { .inbox { grid-template-columns: 1fr; height: auto; } .inbox .threads { display: none; } }

/* Legal page layout */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-7); }
.legal .toc { position: sticky; top: 96px; align-self: start; font-size: var(--fs-caption); }
.legal .toc h4 { font-family: var(--f-body); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-micro); color: var(--slate); margin-bottom: var(--s-3); font-weight: 600; }
.legal .toc a { display: block; padding: 6px 0; color: var(--slate); line-height: 1.3; }
.legal .toc a:hover, .legal .toc a.is-active { color: var(--ember); }
.legal .doc h2 { font-family: var(--f-display); font-size: 1.75rem; letter-spacing: -0.02em; margin-top: var(--s-7); margin-bottom: var(--s-3); font-weight: 500; }
.legal .doc h2:first-child { margin-top: 0; }
.legal .doc .plain { background: var(--mist); border-radius: var(--radius-sm); padding: var(--s-4); margin-bottom: var(--s-4); font-size: var(--fs-body-sm); }
.legal .doc .plain strong { font-weight: 600; }
.legal .doc p { color: var(--ink); line-height: 1.7; max-width: 64ch; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal .toc { position: static; } }

/* Sticky bottom CTA (mobile) */
.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: var(--s-3) var(--s-4); background: var(--white); border-top: 1px solid var(--line); z-index: 40; }
@media (max-width: 700px) { .sticky-cta.show-mobile { display: flex; gap: var(--s-2); } .sticky-cta .btn { flex: 1; justify-content: center; } }

/* Sign-up path chooser */
.path-chooser { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-7); }
.path { padding: var(--s-5); border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); cursor: pointer; background: white; text-align: left; transition: border-color 200ms ease, background 200ms ease; }
.path:hover { border-color: var(--ember); }
.path.is-selected { border-color: var(--ember); background: rgba(226,106,63,0.04); }
.path h3 { font-family: var(--f-display); font-size: 1.5rem; margin-bottom: 6px; font-weight: 500; }
.path p { color: var(--slate); font-size: var(--fs-body-sm); margin: 0; }
.path .ic-wrap { width: 40px; height: 40px; background: rgba(226,106,63,0.12); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--s-3); color: var(--ember); }
@media (max-width: 600px) { .path-chooser { grid-template-columns: 1fr; } }

/* Auth layout */
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-shell .auth-left { padding: var(--s-7); display: flex; flex-direction: column; }
.auth-shell .auth-right { background: var(--ink); color: var(--canvas); padding: var(--s-9); display: flex; flex-direction: column; justify-content: space-between; }
.auth-shell .auth-right h2 { color: var(--white); font-family: var(--f-display); font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; max-width: 18ch; }
.auth-shell .auth-right .muted { color: rgba(250,246,238,0.7); }
.auth-shell .auth-form-wrap { max-width: 420px; width: 100%; margin: auto; }
.auth-divider { display: flex; align-items: center; gap: var(--s-3); color: var(--slate); font-size: var(--fs-caption); margin: var(--s-4) 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); background: white; font-weight: 500; font-size: var(--fs-body-sm); cursor: pointer; transition: border-color 200ms ease; }
.social-btn:hover { border-color: var(--ink); }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-shell .auth-right { display: none; }
}

/* For-Buddies CTA band */
.buddies-band { background: var(--mist); border-radius: var(--radius-lg); padding: var(--s-9) var(--s-7); display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7); align-items: center; }
.buddies-band h2 { font-family: var(--f-display); font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; max-width: 16ch; }
.buddies-band .benefits { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-direction: column; gap: 10px; }
.buddies-band .benefits li { display: flex; gap: 12px; align-items: flex-start; }
.buddies-band .benefits li .ic { color: var(--sage); flex-shrink: 0; margin-top: 2px; }
.buddies-band .visual { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.buddies-band .visual img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-md); }
.buddies-band .visual img:nth-child(2) { transform: translateY(var(--s-5)); }
@media (max-width: 800px) { .buddies-band { grid-template-columns: 1fr; padding: var(--s-6); } .buddies-band .visual img:nth-child(2) { transform: none; } .buddies-band h2 { font-size: 1.875rem; } }

/* Become-a-buddy hero */
.cta-block { background: var(--ink); color: var(--canvas); border-radius: var(--radius-lg); padding: var(--s-8); text-align: center; }
.cta-block h2 { font-family: var(--f-display); font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--white); max-width: 22ch; margin: 0 auto var(--s-3); font-weight: 400; }
.cta-block p { color: rgba(250,246,238,0.7); max-width: 50ch; margin: 0 auto var(--s-5); }
