:root {
  /* reha•bit Root (design system: claude.ai/artifact/X2xX3WmHVmxM3qpPQfQSGA). Daylight here; Nocturne below for dark mode. */
  --bg: #fcf9f3; --surface: #ffffff; --sunk: #eee8dd; --ink: #13232f; --muted: #58637e; --line: #ced3de; --line-strong: #7d879c;
  --accent: #b42318; --accent-ink: #ffffff; --accent-soft: #fce9e6; --accent-deep: #7a1a12; --root: #d92d20; --navy: #00174d;
  --sea: #7a1a12; --sea-soft: #fce9e6;
  --ok: #1f7a3d; --ok-soft: #e3f1e6; --warn: #8a5a00; --warn-soft: #f8ecd2; --info: #1d5fae; --info-soft: #e2ecf8; --off: #58637e; --off-soft: #eee8dd;
  --gold: #d9a545; --header-ground: rgba(252, 249, 243, 0.75); --header-rule: rgba(180, 35, 24, 0.15);
  --radius: 12px; --radius-md: 8px; --shadow: 0 2px 4px rgba(0, 0, 0, 0.05); --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
  --serif: 'Sora', 'Manrope', system-ui, sans-serif; --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 64px;
  color-scheme: light;
}
@media (min-width: 1024px) { :root { --header-h: 80px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c141c; --surface: #13202b; --sunk: #0a1016; --ink: #f4efe6; --muted: #a3adbf; --line: #253445; --line-strong: #6a7a90;
    --accent: #ff7a6b; --accent-ink: #1b0806; --accent-soft: #3b1714; --accent-deep: #ff9a8e; --root: #e5483b; --navy: #00174d;
    --sea: #ffb4ab; --sea-soft: #3b1714;
    --ok: #7dd897; --ok-soft: #12301c; --warn: #f0c46a; --warn-soft: #3a2e14; --info: #9cc3ff; --info-soft: #142843; --off: #a3adbf; --off-soft: #1b2733;
    --header-ground: rgba(12, 20, 28, 0.75); --header-rule: rgba(255, 122, 107, 0.18);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.35); --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c141c; --surface: #13202b; --sunk: #0a1016; --ink: #f4efe6; --muted: #a3adbf; --line: #253445; --line-strong: #6a7a90;
  --accent: #ff7a6b; --accent-ink: #1b0806; --accent-soft: #3b1714; --accent-deep: #ff9a8e; --root: #e5483b; --navy: #00174d;
  --sea: #ffb4ab; --sea-soft: #3b1714;
  --ok: #7dd897; --ok-soft: #12301c; --warn: #f0c46a; --warn-soft: #3a2e14; --info: #9cc3ff; --info-soft: #142843; --off: #a3adbf; --off-soft: #1b2733;
  --header-ground: rgba(12, 20, 28, 0.75); --header-rule: rgba(255, 122, 107, 0.18);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.35); --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; padding-top: var(--header-h); background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code, pre { font: 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.section, .hero, .site-footer { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .section, .hero, .site-footer { padding-inline: 32px; } }
/* App header: identical layout to the rehabit.app sub-apps (measured from prime.rehabit.app), Daylight Root colours */
.rh-header { position: fixed; inset: 0 0 auto; z-index: 50; background-color: var(--header-ground); border-bottom: 1px solid var(--header-rule); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); }
.rh-header__inner { margin: 0 auto; display: flex; height: 64px; width: 100%; max-width: 1400px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 16px; }
.rh-header__start { display: flex; min-width: 0; align-items: center; }
.rh-logo { display: flex; flex-shrink: 0; align-items: center; border-radius: 2px; transition: opacity .15s cubic-bezier(0.4, 0, 0.2, 1); }
.rh-logo:hover { opacity: .8; }
.rh-logo__lockup { display: flex; align-items: center; gap: 7.2px; }
.rh-logo__icon, .rh-logo__word { display: block; flex-shrink: 0; background-color: var(--accent); }
.rh-logo__icon { width: 33.143px; height: 33.75px; transform: translateY(0.26px); -webkit-mask: url("/brand/rehabit-icon.svg") center / contain no-repeat; mask: url("/brand/rehabit-icon.svg") center / contain no-repeat; }
.rh-logo__word { width: 111.466px; height: 23.906px; transform: translateY(-3.24px); -webkit-mask: url("/brand/rehabit-wordmark.png") center / contain no-repeat; mask: url("/brand/rehabit-wordmark.png") center / contain no-repeat; }
.rh-header__rule { margin: 0 12px; height: 20px; width: 1px; flex-shrink: 0; background-color: var(--header-rule); }
.rh-header__tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px/20px var(--sans); color: var(--muted); }
.rh-header__tag--long { display: none; }
.rh-header__nav { display: none; align-items: center; gap: 32px; }
.rh-header__link { white-space: nowrap; border-radius: 2px; font: 500 14px/20px var(--sans); color: var(--ink); opacity: .8; text-decoration: none; transition: opacity .15s cubic-bezier(0.4, 0, 0.2, 1); }
.rh-header__link:hover, .rh-header__link[aria-current="page"] { opacity: 1; }
.rh-header__end { display: flex; flex-shrink: 0; align-items: center; gap: 16px; }
.rh-header__signin { display: inline-flex; height: 40px; min-width: 40px; align-items: center; justify-content: center; }
.rh-header__signin svg { width: 20px; height: 20px; }
.rh-header__signin span { display: none; }
.rh-header__cta { display: none; align-items: center; border-radius: 999px; padding: 8px 24px; font: 600 14px/20px var(--sans); background-color: var(--accent); color: var(--accent-ink); text-decoration: none; transition: opacity .15s cubic-bezier(0.4, 0, 0.2, 1); }
.rh-header__cta:hover { opacity: .9; }
/* Four links need more room than the sub-apps' three: the nav joins the bar from 1152px. */
@media (min-width: 1152px) { .rh-header__nav { display: flex; } }
@media (min-width: 640px) { .rh-header__tag--short { display: none; } .rh-header__tag--long { display: block; } }
@media (min-width: 1024px) {
  .rh-header__inner { height: 80px; padding: 0 32px; }
  .rh-logo__lockup { gap: 10.8px; }
  .rh-logo__icon { width: 38.667px; height: 39.375px; transform: translateY(0.3px); }
  .rh-logo__word { width: 124.583px; height: 26.719px; transform: translateY(-3.621px); }
  .rh-header__signin { height: auto; min-width: 0; }
  .rh-header__signin svg { display: none; }
  .rh-header__signin span { display: inline; }
  .rh-header__cta { display: inline-flex; }
}
.footer-brand { font: 700 1.1rem/1.2 'Comfortaa', var(--sans); color: var(--ink); margin: 0; }
.footer-brand span { color: var(--root); }

.hero { padding-block: 56px 40px; }
.hero h1 { max-width: 14ch; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .6em; }
.subtle { color: var(--muted); font-size: .92em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 24px; border-radius: var(--radius-md); border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 500 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.wide { width: 100%; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; max-width: 640px; border-top: 1px solid var(--line); padding-top: 18px; }
.stats dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stats dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.15rem; }

.section { padding-block: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-link { display: flex; gap: 16px; padding: 18px; color: inherit; text-decoration: none; height: 100%; }
.card-link:hover h3 { color: var(--accent); }
.event-card h3 { margin-bottom: .3em; }
.date-block { flex: 0 0 64px; height: 76px; border-radius: 10px; background: var(--sea-soft); color: var(--sea); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.date-block .mon { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.date-block .day { font-family: var(--serif); font-size: 1.7rem; }
.date-block .yr { font-size: 11px; opacity: .8; }
.card-body { min-width: 0; }
.meta { color: var(--muted); font-size: 14.5px; margin-bottom: .6em; }
.meta-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; margin: 0; }
.price { font-weight: 600; } .dur { color: var(--muted); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--off-soft); color: var(--off); }
.s-open { background: var(--ok-soft); color: var(--ok); }
.s-limited { background: var(--warn-soft); color: var(--warn); }
.s-coming-soon { background: var(--info-soft); color: var(--info); }
.s-sold-out, .s-waitlist, .s-cancelled { background: var(--off-soft); color: var(--off); }
.past .card { opacity: .7; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 20px; }
.filters input[type="search"] { flex: 1 1 260px; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; }
.chips, .examples { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-deep); border-color: var(--accent); }
.toggle { display: inline-flex; gap: 8px; align-items: center; font-size: 14.5px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.empty { color: var(--muted); }

.ask { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ask { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.ask-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.ask-form label, .form label { font-size: 14px; font-weight: 500; display: grid; gap: 6px; }
textarea, .form input, .form select { width: 100%; padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; min-height: 44px; }
.ask-form .btn.primary { justify-self: start; }
.ask-out:empty { display: none; }
.ask-out { border-top: 1px solid var(--line); padding-top: 14px; font-size: 15px; }
.ask-out ol { padding-left: 1.2em; margin: 0; display: grid; gap: 12px; }
.ask-out .why { color: var(--muted); font-size: 13.5px; }
.ask-out .handoff { background: var(--sea-soft); border-radius: 10px; padding: 14px; }

.tier { font-size: 1.1rem; margin-top: 28px; } .tier span { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.person-card .card-link { align-items: flex-start; }
.avatar { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; }
.mentor-open { padding: 20px; display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; border-style: dashed; box-shadow: none; }
.mentor-open h4 { font-size: 1.15rem; margin-bottom: .3em; } .mentor-open p { margin: 0; color: var(--muted); max-width: 60ch; }

.two-sided { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.two-sided .card { padding: 24px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 75ch; }

.detail { max-width: 1000px; } .narrow { max-width: 760px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.detail-grid { display: grid; gap: 24px; margin: 28px 0 36px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .detail-grid { grid-template-columns: 1.5fr 1fr; } }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; } .facts dd { margin: 0; }
.book { padding: 18px; display: grid; gap: 10px; align-content: start; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--sea-soft); color: var(--sea); }
.about-person { border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: 32px; }
.empty-card { padding: 20px; }
.checks { padding-left: 1.2em; } .checks li { margin-bottom: 8px; }
.steps li { margin-bottom: 10px; }
.form { display: grid; gap: 14px; }
.form .row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form .btn { justify-self: start; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.table th, .table td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.table th { white-space: nowrap; font-weight: 600; }

.site-footer { border-top: 1px solid var(--line); padding-block: 32px 48px; margin-top: 40px; display: grid; gap: 18px; color: var(--muted); font-size: 14.5px; }
@media (min-width: 820px) { .site-footer { grid-template-columns: 1fr 1.4fr; } .site-footer .fine { grid-column: 1 / -1; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-links a { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The brand is lowercase everywhere, even inside uppercase labels. */
.brandcase { text-transform: none; letter-spacing: 0.02em; }

/* rehabit.us tie-in: a window into the Crown portal, in rehabit.us's own palette (same in both themes) */
.fs { --us-navy: #00174d; --us-navy-deep: #00123d; --us-cyan: #00e6bf; --us-purple: #6b4ce6; --us-purple-hover: #5c3be3; --us-text: #ffffff; --us-muted: #c9d1e6;
  display: grid; gap: 32px; align-items: center; padding: 24px; border-radius: 20px; background: var(--us-navy); color: var(--us-text); }
@media (min-width: 900px) { .fs { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; padding: 32px; } }
.fs__visual { position: relative; min-height: 300px; aspect-ratio: 1 / 1; max-height: 440px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(0, 230, 191, 0.25);
  background: radial-gradient(circle at 50% 42%, #003a4a 0%, var(--us-navy-deep) 55%, #000a1f 100%); }
.fs__glow { position: absolute; left: 50%; top: 42%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(0, 240, 216, 0.45) 0%, rgba(0, 240, 216, 0.12) 45%, transparent 70%); }
.fs__torus { position: absolute; left: 50%; top: 42%; width: 34%; aspect-ratio: 712 / 725; transform: translate(-50%, -50%); background-color: var(--us-cyan);
  -webkit-mask: url("/brand/rehabit-icon.svg") center / contain no-repeat; mask: url("/brand/rehabit-icon.svg") center / contain no-repeat; }
.fs__orb { position: absolute; border-radius: 50%; background: var(--us-cyan); opacity: .35; filter: blur(1px); }
.fs__orb--a { width: 14px; height: 14px; left: 18%; top: 20%; }
.fs__orb--b { width: 22px; height: 22px; right: 16%; top: 30%; opacity: .25; }
.fs__orb--c { width: 10px; height: 10px; left: 26%; top: 64%; opacity: .45; }
.fs__quote { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  background: rgba(0, 18, 61, 0.85); border: 1px solid rgba(0, 230, 191, 0.25); font: italic 400 14px/1.45 var(--sans); color: var(--us-text); }
.fs__quote b { font-style: normal; font-weight: 600; color: var(--us-cyan); white-space: nowrap; }
.fs__live { flex: 0 0 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--us-cyan); }
.fs__eyebrow { margin: 0 0 12px; font: 700 12px/16px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--us-cyan); }
.fs h2 { margin: 0 0 16px; color: var(--us-text); font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; text-wrap: balance; }
.fs h2 span { display: block; color: var(--us-cyan); }
.fs__lede { color: var(--us-muted); max-width: 52ch; margin: 0 0 16px; }
.fs__points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.fs__points li { position: relative; padding-left: 22px; color: var(--us-text); }
.fs__points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--us-cyan); }
.fs__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.fs__cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px; border-radius: 999px; background: var(--us-purple); color: #ffffff; font: 600 16px/1 var(--sans); text-decoration: none; }
.fs__cta:hover { background: var(--us-purple-hover); }
.fs__cta:focus-visible { outline: 2px solid var(--us-cyan); outline-offset: 3px; }
.fs__meta { font-size: 14px; color: var(--us-muted); }

/* rehabit.shop teaser (8 · Star): gold is a mark here, never text */
.shop-tease__card { padding: 28px; display: grid; gap: 16px; }
@media (min-width: 720px) { .shop-tease__card { padding: 36px 40px; } }
.shop-tease__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.shop-tease__head .eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.star-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.shop-tease h2 { margin: 0; }
.shop-tease__lede { color: var(--muted); max-width: 62ch; margin: 0; }
.shop-tease__grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.shop-tease__grid li { padding: 16px 0 0; border-top: 2px solid var(--gold); }
.shop-tease__grid h3 { font-size: 1.05rem; margin: 0 0 6px; }
.shop-tease__grid p { margin: 0; color: var(--muted); font-size: 15px; }
.shop-tease__foot { margin: 4px 0 0; }

/* Embody: in-habit · in-habitat · in-community */
.embody__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.embody__item { padding: 24px; display: grid; gap: 8px; align-content: start; }
.embody__word { margin: 0; font: 700 1.5rem/1.1 'Comfortaa', var(--sans); color: var(--accent); letter-spacing: 0; }
.embody__item h3 { margin: 4px 0 0; font-size: 1.1rem; }
.embody__item p { margin: 0; color: var(--muted); }
.embody__item a { margin-top: 8px; font-weight: 600; }

/* Anchored sections land below the fixed header. */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
