/* RiseHearth marketing site - shared design system
   Warm & aspirational. Rise (dawn gradient) meets Hearth (ember glow).
   Display: Fraunces. Body: Hanken Grotesk. */

/* ---------- tokens ---------- */
:root {
  --ground: #faf5ee;
  --ground-2: #f3e9db;
  --surface: #ffffff;
  --panel: #f6eee2;
  --ink: #2a211b;
  --ink-soft: #4e4038;
  --muted: #897b6d;
  --line: #e7dbc9;
  --line-soft: #f0e7d8;

  --ember: #be4b2b;
  --ember-2: #a63c22;
  --glow: #e8912f;
  --learn: #c1741d;
  --learn-soft: #f6e4c6;
  --care: #b8543a;
  --care-soft: #f3dccf;

  --dawn-1: #f6b98c;
  --dawn-2: #f4c96c;
  --dawn-3: #f8db6e;
  --night: #33241e;

  --shadow-sm: 0 1px 2px rgba(74, 45, 30, .06), 0 2px 6px rgba(74, 45, 30, .05);
  --shadow-md: 0 4px 12px rgba(74, 45, 30, .08), 0 10px 30px rgba(74, 45, 30, .07);
  --shadow-lg: 0 12px 30px rgba(74, 45, 30, .12), 0 30px 60px rgba(74, 45, 30, .10);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --pill: 999px;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 56px);

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #17110d;
    --ground-2: #1f1712;
    --surface: #241a14;
    --panel: #2b201a;
    --ink: #f5ebe0;
    --ink-soft: #ddcfc1;
    --muted: #a1907f;
    --line: #3a2c23;
    --line-soft: #2c211a;

    --ember: #e4693f;
    --ember-2: #cf5530;
    --glow: #f0a94f;
    --learn: #e6a445;
    --learn-soft: #3a2a17;
    --care: #e07a5b;
    --care-soft: #3a221a;

    --dawn-1: #f6b98c;
    --dawn-2: #f4c96c;
    --dawn-3: #f8db6e;
    --night: #0f0b08;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .25);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, .35), 0 14px 34px rgba(0, 0, 0, .3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, .45), 0 34px 70px rgba(0, 0, 0, .4);
  }
}

:root[data-theme="dark"] {
  --ground: #17110d;
  --ground-2: #1f1712;
  --surface: #241a14;
  --panel: #2b201a;
  --ink: #f5ebe0;
  --ink-soft: #ddcfc1;
  --muted: #a1907f;
  --line: #3a2c23;
  --line-soft: #2c211a;

  --ember: #e4693f;
  --ember-2: #cf5530;
  --glow: #f0a94f;
  --learn: #e6a445;
  --learn-soft: #3a2a17;
  --care: #e07a5b;
  --care-soft: #3a221a;

  --dawn-1: #f6b98c;
  --dawn-2: #f4c96c;
  --dawn-3: #f8db6e;
  --night: #0f0b08;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .25);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, .35), 0 14px 34px rgba(0, 0, 0, .3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .45), 0 34px 70px rgba(0, 0, 0, .4);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2.5px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 132px); }
.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember);
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--ink-soft); line-height: 1.55; max-width: 60ch; }
.measure { max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85em 1.5em; border-radius: var(--pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--ember), var(--glow)); box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember); }
.btn-lg { font-size: 1.08rem; padding: 1em 1.8em; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6em; font-family: var(--font-display); font-weight: 500; font-size: 1.32rem; color: var(--ink); }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand b { font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-weight: 500; font-size: .98rem; color: var(--ink-soft);
  padding: .5em .85em; border-radius: var(--pill); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--panel); }
.nav-links a.active { color: var(--ember); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: var(--pill); border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.theme-toggle:hover { border-color: var(--ember); color: var(--ember); }
.nav-burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { padding: .8em 1em; font-size: 1.05rem; }
  .nav-burger { display: grid; place-items: center; }
  .nav .desktop-cta { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding-block: clamp(48px, 8vw, 104px); }
.hero h1 span.rise { background: linear-gradient(105deg, var(--ember), var(--glow) 55%, var(--dawn-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--muted); }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 100%; }
.hero-canvas { width: 100%; height: 100%; border-radius: var(--r-lg); display: block; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin-inline: auto; }
}

/* ---------- brand split (Learn / Care) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }
.brandcard {
  position: relative; border-radius: var(--r-lg); padding: clamp(26px, 3.5vw, 42px);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.brandcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.brandcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; }
.brandcard.learn::before { background: linear-gradient(90deg, var(--learn), var(--dawn-3)); }
.brandcard.care::before { background: linear-gradient(90deg, var(--care), var(--dawn-1)); }
.brandcard .tag { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.brandcard.learn .tag { color: var(--learn); }
.brandcard.care .tag { color: var(--care); }
.brandcard h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; }
.brandcard ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.brandcard li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 1rem; }
.brandcard li svg { flex: none; margin-top: 3px; }
.brandcard .go { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: .4em; }
.brandcard.learn .go { color: var(--learn); }
.brandcard.care .go { color: var(--care); }
.brandcard .go:hover { gap: .7em; }

/* ---------- generic feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.feature { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-soft); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--ember); box-shadow: var(--shadow-sm); }
.feature h3 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 700; }
.feature p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- mission band ---------- */
.mission { background: var(--night); color: #f6ece0; border-radius: var(--r-lg); padding: clamp(36px, 6vw, 76px); position: relative; overflow: hidden; }
.mission::after { content: ""; position: absolute; right: -12%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(232,145,47,.4), transparent 62%); pointer-events: none; }
.mission .eyebrow { color: var(--dawn-2); }
.mission h2 { color: #fdf6ec; font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.7rem); max-width: 20ch; }
.mission p { color: #e6d6c6; margin-top: 18px; max-width: 58ch; font-size: 1.12rem; }
.mission .quote { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.28; color: #fdf6ec; max-width: 24ch; }

/* ---------- demo shell ---------- */
.demo-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
@media (max-width: 880px) { .demo-wrap { grid-template-columns: 1fr; } }
.demo-frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; width: 100%;
}
.demo-badge { display: inline-flex; align-items: center; gap: .5em; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.demo-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #37a06a; box-shadow: 0 0 0 4px color-mix(in srgb, #37a06a 22%, transparent); }
.demo-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.demo-topbar .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.demo-topbar .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-display); }
.chip { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .35em .7em; border-radius: var(--pill); }
.chip.learn { color: var(--learn); background: var(--learn-soft); }
.chip.care { color: var(--care); background: var(--care-soft); }

/* chat */
.chat { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 300px; max-height: 420px; overflow-y: auto; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 16px; font-size: .98rem; line-height: 1.45; }
.msg.bot { align-self: flex-start; background: var(--panel); color: var(--ink); border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, var(--learn), var(--glow)); border-bottom-right-radius: 5px; }
.msg .tip { margin-top: 6px; font-size: .8rem; color: var(--muted); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 16px; }
.suggest button {
  font: inherit; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--pill);
  padding: .5em .9em; cursor: pointer; transition: border-color .15s, color .15s;
}
.suggest button:hover { border-color: var(--learn); color: var(--learn); }
.demo-input { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.demo-input input { flex: 1; font: inherit; padding: .7em 1em; border: 1.5px solid var(--line); border-radius: var(--pill); background: var(--ground); color: var(--ink); }
.demo-input input:focus { outline: none; border-color: var(--learn); }
.demo-input button { border: none; background: var(--ink); color: var(--ground); border-radius: 50%; width: 44px; height: 44px; cursor: pointer; flex: none; display: grid; place-items: center; }

/* care timeline */
.rhythm { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.rhythm .status { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: linear-gradient(120deg, var(--care-soft), transparent); border: 1px solid var(--line-soft); }
.rhythm .status .ring { width: 46px; height: 46px; flex: none; }
.rhythm .status b { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.rhythm .status span { color: var(--ink-soft); font-size: .92rem; }
.tl { display: flex; flex-direction: column; gap: 10px; }
.tl-item { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: background .2s, border-color .2s; }
.tl-item .time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); font-size: .9rem; }
.tl-item .what b { display: block; font-weight: 600; }
.tl-item .what span { font-size: .88rem; color: var(--muted); }
.tl-item .check { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: var(--ground); cursor: pointer; display: grid; place-items: center; color: transparent; transition: all .2s; }
.tl-item .check:hover { border-color: var(--care); }
.tl-item.done { background: color-mix(in srgb, #37a06a 8%, var(--surface)); border-color: color-mix(in srgb, #37a06a 30%, var(--line)); }
.tl-item.done .check { background: #37a06a; border-color: #37a06a; color: #fff; }
.tl-item.done .what b { color: var(--ink-soft); }

/* ---------- pricing ---------- */
.toggle-wrap { display: inline-flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--pill); padding: 5px; }
.toggle-wrap button { font: inherit; font-weight: 600; font-size: .95rem; border: none; background: transparent; color: var(--muted); padding: .55em 1.1em; border-radius: var(--pill); cursor: pointer; }
.toggle-wrap button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.toggle-wrap .save { font-size: .78rem; color: var(--care); font-weight: 700; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 940px) { .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.tier {
  display: flex; flex-direction: column; gap: 16px; padding: 30px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative;
}
.tier.featured { border-color: var(--ember); box-shadow: var(--shadow-lg); }
.tier.featured::before { content: "Most families"; position: absolute; top: -12px; left: 30px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--ember), var(--glow)); padding: .35em .8em; border-radius: var(--pill); }
.tier .tname { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.tier .price { display: flex; align-items: baseline; gap: 4px; }
.tier .price .amt { font-family: var(--font-display); font-size: 2.8rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.tier .price .per { color: var(--muted); font-size: .95rem; }
.tier .desc { color: var(--ink-soft); font-size: .96rem; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tier li { display: flex; gap: 10px; font-size: .96rem; color: var(--ink-soft); }
.tier li svg { flex: none; margin-top: 3px; color: var(--care); }
.tier .btn { margin-top: auto; justify-content: center; }

.placeholder-note { display: inline-flex; align-items: center; gap: .5em; font-size: .84rem; font-weight: 600; color: var(--ember-2); background: color-mix(in srgb, var(--ember) 12%, var(--ground)); border: 1px dashed color-mix(in srgb, var(--ember) 45%, var(--line)); padding: .5em .9em; border-radius: var(--pill); }

/* comparison + faq */
.cmp { width: 100%; border-collapse: collapse; font-size: .96rem; }
.cmp th, .cmp td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmp thead th { font-family: var(--font-body); font-weight: 700; }
.cmp td.mid, .cmp th.mid { text-align: center; }
.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--ember); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--ink-soft); padding-bottom: 18px; }

/* ---------- cta band + footer ---------- */
.ctaband { text-align: center; background: linear-gradient(135deg, var(--dawn-1), var(--dawn-2) 55%, var(--dawn-3)); border-radius: var(--r-lg); padding: clamp(40px, 6vw, 80px); color: #3a2a1e; }
.ctaband h2 { color: #40260f; font-weight: 400; }
.ctaband p { color: #6a4a2c; margin: 14px auto 26px; max-width: 46ch; font-size: 1.1rem; }
.ctaband .btn-primary { background: #33241e; color: #fff; }

.footer { background: var(--night); color: #d8c8b8; margin-top: 40px; }
.footer .wrap { padding-block: 56px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #b79c82; margin: 0 0 14px; }
.footer a { color: #e6d6c6; display: block; padding: 5px 0; font-size: .96rem; }
.footer a:hover { color: var(--dawn-2); }
.footer .brand { color: #fdf6ec; margin-bottom: 12px; }
.footer .brand svg { filter: none; }
.footer .tiny { color: #9c8570; font-size: .86rem; max-width: 34ch; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); }
.footer-base .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-block: 22px; font-size: .86rem; color: #9c8570; }

/* ---------- utilities ---------- */
.center { text-align: center; margin-inline: auto; }
.stack-sm > * + * { margin-top: 12px; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 30px; } .mt-l { margin-top: 52px; }
.pill-badge { display: inline-flex; align-items: center; gap: .5em; padding: .5em 1em; border-radius: var(--pill); background: var(--panel); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.grad-rule { height: 4px; border: 0; border-radius: 4px; background: linear-gradient(90deg, var(--ember), var(--glow), var(--dawn-3)); width: 64px; margin: 0; }
.two-col-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
@media (max-width: 780px) { .two-col-copy { grid-template-columns: 1fr; } }

/* ---------- nav login link ---------- */
.nav-links a.login { color: var(--ember); font-weight: 700; border: 1.5px solid color-mix(in srgb, var(--ember) 40%, var(--line)); }
.nav-links a.login:hover { background: color-mix(in srgb, var(--ember) 12%, transparent); color: var(--ember); }

/* ---------- mission page ---------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }
.value { display: flex; gap: 16px; padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.value .n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ember); line-height: 1.1; flex: none; }
.value h3 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 700; margin: 0 0 6px; }
.value p { color: var(--ink-soft); font-size: .97rem; }
.founder { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); }
@media (max-width: 620px) { .founder { grid-template-columns: 1fr; } }
.founder-portrait { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, var(--ember), var(--glow)); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; box-shadow: var(--shadow-md); }
.founder .note p { font-size: 1.08rem; color: var(--ink-soft); line-height: 1.62; }
.founder .note p + p { margin-top: 14px; }
.founder .sig { margin-top: 20px; }
.founder .sig b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); display: block; }
.founder .sig span { color: var(--muted); font-size: .92rem; }

/* ---------- portal page ---------- */
.portal-hero { position: relative; overflow: hidden; color: #f4e8db; background: radial-gradient(120% 90% at 50% 6%, #3a251a 0%, #241610 46%, #150d08 100%); padding-block: clamp(56px, 9vw, 116px); min-height: 74vh; display: flex; align-items: center; }
.portal-hero::before { content: ""; position: absolute; left: 50%; top: 4%; width: 680px; max-width: 92%; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(circle, rgba(232,145,47,.42), transparent 62%); pointer-events: none; }
.portal-intro { position: relative; }
.portal-intro .eyebrow { color: var(--dawn-2); }
.portal-intro h1 { color: #fdf3e6; font-weight: 400; }
.portal-intro h1 .rise { background: linear-gradient(105deg, var(--glow), var(--dawn-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portal-intro .lede { color: #e6d5c4; margin-inline: auto; }
.portal-doors { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
@media (max-width: 720px) { .portal-doors { grid-template-columns: 1fr; } }
.door { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 34px 30px; border-radius: var(--r-lg); background: rgba(255,247,238,.05); border: 1px solid rgba(255,214,150,.18); overflow: hidden; transition: transform .2s ease, border-color .2s ease, background .2s ease; text-decoration: none; }
.door:hover { transform: translateY(-5px); background: rgba(255,247,238,.09); }
.door.learn:hover { border-color: var(--dawn-2); }
.door.care:hover { border-color: #e07a5b; }
.door .door-glow { position: absolute; right: -28%; bottom: -42%; width: 72%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: .5; transition: opacity .2s ease; }
.door:hover .door-glow { opacity: .8; }
.door.learn .door-glow { background: radial-gradient(circle, rgba(244,201,108,.6), transparent 65%); }
.door.care .door-glow { background: radial-gradient(circle, rgba(224,122,91,.55), transparent 65%); }
.door .tag { position: relative; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.door.learn .tag { color: var(--dawn-2); }
.door.care .tag { color: #f0a98c; }
.door .tag small { text-transform: none; letter-spacing: .02em; font-weight: 600; opacity: .72; margin-left: 8px; }
.door h2 { position: relative; color: #fdf3e6; font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.door p { position: relative; color: #dccab8; font-size: 1rem; }
.door-enter { position: relative; margin-top: auto; display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: #fdf3e6; }
.door:hover .door-enter { gap: .8em; }
.portal-foot { position: relative; margin-top: 32px; color: #cbb8a6; font-size: .96rem; }
.portal-foot a { color: var(--dawn-2); text-decoration: underline; text-underline-offset: 3px; }
.portal-foot b { color: #fdf3e6; }
