/* =========================================================================
   Birth Craft — Claire Eccleston · Brand Positioning Guide
   Design system + components
   Palette: deep burgundy, rose, cream  ·  Type: Cormorant Garamond + Public Sans
   ========================================================================= */

:root {
  /* Brand colour tokens */
  --burg-900: #37081f;   /* darkest plum */
  --burg-800: #4e0b2e;   /* primary burgundy */
  --burg-700: #5e1a3c;   /* card-on-dark */
  --rose-600: #9e3f54;   /* deep rose accent */
  --rose-500: #b8566b;   /* rose */
  --rose-400: #c96b82;   /* mid rose */
  --rose-300: #e8a3a5;   /* light pink */
  --rose-200: #f3d9de;   /* pale pink */

  --cream-050: #fdf9f7;
  --cream-100: #fcf7f4;
  --cream-200: #f7efea;
  --cream-300: #f3e7e3;
  --pinkcream: #f6e7e8;

  --ink-900: #3d0a24;    /* plum heading */
  --ink-700: #4a3038;    /* body dark */
  --ink-500: #6b4a54;    /* body mauve-grey */
  --ink-400: #9e7a82;    /* muted */
  --ink-300: #b08a92;    /* faint */

  --line: #e7d5d2;       /* hairline border */
  --line-strong: #d9bfc0;

  /* Semantic */
  --bg: var(--cream-100);
  --bg-alt: var(--cream-200);
  --surface: var(--cream-050);
  --text: var(--ink-700);
  --heading: var(--ink-900);
  --muted: var(--ink-500);
  --accent: var(--rose-600);
  --accent-soft: var(--rose-300);

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Scale */
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.7rem + 1.8vw, 3.2rem);
  --step-4:  clamp(2.8rem, 2rem + 3.6vw, 5rem);
  --step-5:  clamp(3.4rem, 2.2rem + 6vw, 7.5rem);

  /* Layout */
  --sidebar-w: 300px;
  --maxw: 1180px;
  --topbar-h: 64px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --gutter: clamp(18px, 5vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;

  --shadow-sm: 0 1px 2px rgba(61,10,36,.06), 0 2px 8px rgba(61,10,36,.05);
  --shadow-md: 0 6px 20px rgba(61,10,36,.10), 0 2px 6px rgba(61,10,36,.06);
  --shadow-lg: 0 18px 50px rgba(61,10,36,.18);
}

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

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 3px solid var(--rose-500); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--heading); font-weight: 600; line-height: 1.04; }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }

/* skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--burg-800); color: var(--cream-050);
  padding: 10px 18px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Reading progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 250;
  background: transparent; pointer-events: none;
}
.progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--rose-500), var(--rose-300));
  transform-origin: left; transition: width .1s linear;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
  z-index: 200; display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(14px, 3vw, 28px);
  background: rgba(78, 11, 46, 0.86);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid rgba(232,163,165,.22);
  color: var(--cream-050);
}
.topbar__logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.topbar__logo img { height: 40px; width: auto; }
.topbar__logo .lede { display: flex; flex-direction: column; line-height: 1.05; }
.topbar__logo .lede b { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; letter-spacing: .5px; }
.topbar__logo .lede span { font-size: .62rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--rose-300); }

.topbar__crumb {
  display: none; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--rose-300); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 900px) { .topbar__crumb { display: block; } }

.iconbtn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: 12px;
  color: var(--cream-050); border: 1px solid rgba(232,163,165,.28);
  background: rgba(255,255,255,.04); transition: background .25s, border-color .25s, transform .2s;
}
.iconbtn:hover { background: rgba(232,163,165,.16); border-color: rgba(232,163,165,.5); }
.iconbtn:active { transform: scale(.96); }
.iconbtn svg { width: 19px; height: 19px; }
.iconbtn .label { font-size: .85rem; font-weight: 600; }
.iconbtn--search .kbd {
  font-size: .7rem; padding: 2px 6px; border-radius: 6px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(232,163,165,.3); color: var(--rose-200);
}
@media (max-width: 620px) { .iconbtn .label, .iconbtn--search .kbd { display: none; } }
.menu-toggle { display: inline-flex; }
@media (min-width: 1080px) { .menu-toggle { display: none; } }

/* ---------- Shell / sidebar ---------- */
.shell { display: block; }
@media (min-width: 1080px) {
  .shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; }
}

.sidebar {
  position: fixed; top: var(--topbar-h); bottom: 0; left: 0; width: min(86vw, 340px);
  z-index: 190; background: var(--burg-900); color: var(--cream-100);
  transform: translateX(-102%); transition: transform .4s var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 22px 0 60px;
  box-shadow: var(--shadow-lg);
}
.sidebar.open { transform: translateX(0); }
@media (min-width: 1080px) {
  .sidebar {
    transform: none; width: var(--sidebar-w); box-shadow: none;
    border-right: 1px solid rgba(232,163,165,.14);
  }
}
.sidebar__intro { padding: 4px 26px 18px; border-bottom: 1px solid rgba(232,163,165,.14); margin-bottom: 10px; }
.sidebar__intro p { font-size: .8rem; color: var(--rose-300); line-height: 1.5; }
.navgroup { padding: 10px 14px 6px; }
.navgroup__title {
  font-size: .68rem; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--rose-400); padding: 8px 12px 6px; font-weight: 700;
}
.navlink {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border-radius: 10px; color: var(--rose-200);
  font-size: .92rem; text-align: left; transition: background .2s, color .2s;
  border-left: 3px solid transparent;
}
.navlink:hover { background: rgba(232,163,165,.1); color: #fff; }
.navlink.active {
  background: linear-gradient(90deg, rgba(184,86,107,.3), rgba(184,86,107,.05));
  color: #fff; border-left-color: var(--rose-400);
}
.navlink .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45; flex: none; }
.navlink.active .dot { opacity: 1; background: var(--rose-300); }

.backdrop {
  position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 185;
  background: rgba(55,8,33,.5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
.backdrop.show { opacity: 1; visibility: visible; }
@media (min-width: 1080px) { .backdrop { display: none; } }

/* ---------- Main / sections ---------- */
.main { min-width: 0; }
@media (min-width: 1080px) { .main { grid-column: 2; } }
.section {
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  scroll-margin-top: var(--topbar-h);
  position: relative;
}
.section--inner { max-width: var(--maxw); margin: 0 auto; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--burg-800); color: var(--cream-100); }
.section.plum { background: var(--burg-900); color: var(--cream-100); }
.section.dark h1, .section.dark h2, .section.dark h3,
.section.plum h1, .section.plum h2, .section.plum h3 { color: var(--cream-050); }

.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: .78rem;
  letter-spacing: 3px; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.dark .eyebrow, .plum .eyebrow { color: var(--rose-300); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block; opacity: .7; }

.section__head { margin-bottom: clamp(26px, 4vw, 48px); max-width: 62ch; }
.section__head h2 { font-size: var(--step-3); margin: 14px 0 0; }
.section__head .lead { font-size: var(--step-1); color: var(--muted); margin-top: 16px; line-height: 1.45; }
.dark .section__head .lead, .plum .section__head .lead { color: var(--rose-200); }

.prose p { margin-bottom: 1em; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Buttons / CTA ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  letter-spacing: .3px; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
  will-change: transform; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn--primary { background: var(--burg-800); color: var(--cream-050); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--rose-600); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { border: 1.5px solid currentColor; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--cream-050); transform: translateY(-2px); }
.dark .btn--light, .plum .btn--light { background: var(--cream-050); color: var(--burg-800); box-shadow: var(--shadow-md); }
.dark .btn--light:hover, .plum .btn--light:hover { background: var(--rose-300); transform: translateY(-2px); }
.btn--light:hover svg { transform: translateX(4px); }
/* ripple */
.btn .ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255,255,255,.4); pointer-events: none; animation: ripple .6s var(--ease);
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { font-size: var(--step-2); margin-bottom: 8px; color: var(--burg-800); }
.card .kicker { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.card.on-dark { background: var(--burg-700); border-color: rgba(232,163,165,.18); color: var(--rose-200); }
.card.on-dark h3 { color: var(--cream-050); }
.card--spot::after {
  content:""; position:absolute; inset:0; border-radius: inherit; pointer-events:none; opacity:0;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,50%), rgba(184,86,107,.12), transparent 42%);
  transition: opacity .4s;
}
.card--spot:hover::after { opacity: 1; }

.pilltag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: var(--pinkcream); color: var(--rose-600);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* bento */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.bento > * { grid-column: span 2; }
.bento .b-wide { grid-column: span 4; }
.bento .b-tall { grid-row: span 2; }
@media (max-width: 760px) { .bento { grid-template-columns: 1fr; } .bento > * { grid-column: 1 / -1 !important; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--surface); }
table.data th {
  background: var(--burg-800); color: var(--cream-050); text-align: left;
  font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 16px 18px; position: sticky; top: 0;
}
table.data td { padding: 16px 18px; vertical-align: top; border-top: 1px solid var(--line); font-size: .95rem; }
table.data tr:nth-child(even) td { background: var(--cream-200); }
table.data .lead-cell { font-family: var(--serif); font-size: 1.3rem; color: var(--burg-800); font-weight: 600; }
table.data tr.dim { opacity: .35; }
.scroll-hint { font-size: .75rem; color: var(--muted); margin-top: 8px; display: none; }
@media (max-width: 640px) { .scroll-hint { display: block; } }

/* ---------- Stat counters ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 16px; }
.stat {
  background: var(--burg-800); color: var(--cream-050); border-radius: var(--radius);
  padding: 30px 22px; text-align: center; position: relative; overflow: hidden;
}
.stat .num { font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 3vw, 4rem); font-weight: 600; line-height: 1; color: var(--cream-050); }
.stat .cap { font-size: .86rem; color: var(--rose-300); margin-top: 10px; }
.stat::before { content:""; position:absolute; width:140px; height:140px; border-radius:50%; background: rgba(184,86,107,.3); top:-70px; right:-50px; filter: blur(30px); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content:""; position:absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--rose-400), var(--line)); }
.tl-item { position: relative; padding: 0 0 30px 6px; }
.tl-item::before {
  content:""; position:absolute; left: -31px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--rose-500);
}
.tl-item.done::before { background: var(--rose-500); }
.tl-item h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.tl-item .t-title { font-family: var(--serif); font-size: 1.5rem; color: var(--burg-800); margin-bottom: 4px; }

/* ---------- Accordion ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; text-align: left; font-family: var(--serif); font-size: 1.35rem; color: var(--burg-800); font-weight: 600;
  transition: background .2s;
}
.acc-head:hover { background: var(--cream-200); }
.acc-head .chev { width: 22px; height: 22px; flex: none; transition: transform .35s var(--ease); color: var(--accent); }
.acc-item.open .acc-head .chev { transform: rotate(180deg); }
.acc-panel { height: 0; overflow: hidden; transition: height .4s var(--ease); }
.acc-panel__inner { padding: 0 24px 24px; color: var(--text); }

/* ---------- Tabs ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab {
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  border: 1px solid var(--line-strong); color: var(--muted); transition: all .25s;
}
.tab:hover { border-color: var(--rose-400); color: var(--burg-800); }
.tab.active { background: var(--burg-800); color: var(--cream-050); border-color: var(--burg-800); }
.tabpanel { display: none; animation: fadeUp .5s var(--ease); }
.tabpanel.active { display: block; }

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  padding: 9px 18px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--line-strong); color: var(--muted); transition: all .25s;
}
.chip:hover { border-color: var(--rose-400); color: var(--burg-800); transform: translateY(-1px); }
.chip.active { background: var(--rose-600); color: var(--cream-050); border-color: var(--rose-600); }
.filterable { transition: opacity .35s, filter .35s; }
.filterable.hide { opacity: .22; filter: grayscale(.6); }

/* ---------- Value cards ---------- */
.value-card { cursor: default; }
.value-card .vc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.value-card h3 { color: var(--burg-800); }
.value-card .group-tag { font-size: .66rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--accent); white-space: nowrap; }
.value-card .vc-exp { margin: 12px 0; color: var(--ink-700); }
.value-card .vc-ev { font-style: italic; color: var(--muted); font-size: .92rem; border-left: 3px solid var(--rose-300); padding-left: 14px; }
.wordcloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.wordcloud span { font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--cream-200); color: var(--rose-600); border: 1px solid var(--line); }

/* ---------- Diagrams ---------- */
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px,3vw,40px); }
.venn text { font-family: var(--sans); }
.lens-legend { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 14px; margin-top: 24px; }
.lens-legend .ll { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--cream-100); }
.lens-legend .ll b { color: var(--burg-800); font-family: var(--serif); font-size: 1.3rem; display:block; }
.lens-legend .ll .ord { font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); font-weight: 700; }

/* method matrix */
.matrix { display: grid; gap: 10px; grid-template-columns: 150px repeat(3, 1fr); align-items: stretch; }
.matrix .mh { background: var(--burg-800); color: var(--cream-050); border-radius: var(--radius-sm); padding: 14px 18px; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; display: flex; align-items: center; }
.matrix .mr { display: flex; flex-direction: column; justify-content: center; }
.matrix .mr .r-title { font-family: var(--serif); font-size: 1.5rem; color: var(--burg-800); }
.matrix .mr .r-sub { font-size: .8rem; color: var(--accent); font-weight: 600; }
.matrix .cell { background: var(--cream-100); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; font-size: .92rem; color: var(--ink-700); transition: transform .3s, box-shadow .3s, border-color .3s; }
.matrix .cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--rose-400); }
.matrix .corner { background: transparent; }
@media (max-width: 860px) {
  .matrix { grid-template-columns: 1fr; }
  .matrix .corner, .matrix .mh.phase-head { display: none; }
  .matrix .mr { background: var(--burg-900); color: #fff; border-radius: var(--radius-sm); padding: 12px 16px; }
  .matrix .mr .r-title { color: #fff; }
  .matrix .cell::before { content: attr(data-phase); display:block; font-size:.66rem; letter-spacing:1.5px; text-transform:uppercase; color: var(--accent); font-weight:700; margin-bottom:6px; }
}

/* chain */
.chain { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; }
.chain .node { border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.chain .node.internal { background: var(--cream-200); }
.chain .node.public { background: var(--burg-800); color: var(--cream-100); }
.chain .node .tag { font-size: .66rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; }
.chain .node.internal .tag { color: var(--ink-500); }
.chain .node.public .tag { color: var(--rose-300); }
.chain .node h3 { font-size: 1.5rem; color: var(--burg-800); }
.chain .node.public h3 { color: var(--cream-050); }
@media (max-width: 840px) { .chain { grid-auto-flow: row; grid-auto-columns: auto; } }

/* decision tool */
.dtool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px,3vw,36px); }
.dfilter { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); margin-bottom: 12px; transition: background .25s, border-color .25s; cursor: pointer; }
.dfilter:hover { background: var(--cream-200); }
.dfilter.checked { border-color: var(--rose-500); background: var(--pinkcream); }
.dfilter .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--rose-500); flex: none; display: grid; place-items: center; transition: background .2s; margin-top: 2px; }
.dfilter .box svg { width: 16px; height: 16px; color: #fff; opacity: 0; transform: scale(.4); transition: all .2s; }
.dfilter.checked .box { background: var(--rose-600); }
.dfilter.checked .box svg { opacity: 1; transform: scale(1); }
.dfilter .q b { font-family: var(--serif); font-size: 1.3rem; color: var(--burg-800); display: block; }
.dfilter .q p { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.dresult { margin-top: 20px; padding: 22px 26px; border-radius: var(--radius); font-weight: 600; display: flex; align-items: center; gap: 14px; transition: background .3s; }
.dresult.pass { background: #e9f3ea; color: #2c6b3f; border: 1px solid #bcdcc2; }
.dresult.fail { background: var(--pinkcream); color: var(--rose-600); border: 1px solid var(--rose-300); }
.dresult .big { font-family: var(--serif); font-size: 1.5rem; }

/* callout / note */
.callout { border-left: 6px solid var(--rose-500); background: var(--cream-200); padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout.warn { border-left-color: #c58b2a; background: #fbf3e4; }
.callout.warn .c-title { color: #8a5a10; }
.callout .c-title { font-weight: 700; color: var(--accent); font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.quote { font-family: var(--serif); font-style: italic; font-size: var(--step-2); color: var(--burg-800); line-height: 1.3; }
.dark .quote, .plum .quote { color: var(--cream-050); }

/* key-value lines */
.kv { display: grid; gap: 10px; }
.kv .row { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 20px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); align-items: baseline; transition: transform .25s, box-shadow .25s; }
.kv .row:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.kv .row .name { font-family: var(--serif); font-size: 1.4rem; color: var(--burg-800); }
@media (max-width: 620px) { .kv .row { grid-template-columns: 1fr; gap: 4px; } }

/* words lists */
.wordset { display: flex; flex-wrap: wrap; gap: 10px; }
.wordset .w { padding: 8px 16px; border-radius: 999px; font-size: .95rem; }
.wordset.own .w { background: var(--burg-800); color: var(--cream-050); font-family: var(--serif); font-size: 1.1rem; }
.wordset.spare .w { background: var(--cream-200); color: var(--ink-500); border: 1px dashed var(--line-strong); text-decoration: line-through; text-decoration-color: var(--rose-400); }

/* two-up register example */
.register { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .register { grid-template-columns: 1fr; } }
.register .rcard { padding: 26px; border-radius: var(--radius); }
.register .rcard.cold { background: var(--cream-050); border: 1px solid var(--line); }
.register .rcard.warm { background: var(--burg-800); color: var(--cream-100); }
.register .rcard .rl { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.register .rcard.cold .rl { color: var(--accent); }
.register .rcard.warm .rl { color: var(--rose-300); }
.register .rcard p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; }
.register .rcard.cold p { color: var(--burg-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--topbar-h) + 40px) var(--gutter) 70px; overflow: hidden;
  background: radial-gradient(120% 120% at 80% 0%, var(--burg-700), var(--burg-900) 60%);
  color: var(--cream-100);
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; width: 100%; position: relative; z-index: 3; }
@media (min-width: 981px) { .hero__inner { padding-right: clamp(360px, 40vw, 520px); } }
.hero__eyebrow { color: var(--rose-300); letter-spacing: 4px; }
.hero h1 { font-size: var(--step-5); color: var(--cream-050); margin: 18px 0 6px; letter-spacing: -1px; }
.hero .sub { font-family: var(--serif); font-style: italic; font-size: var(--step-2); color: var(--rose-300); max-width: 24ch; }
.hero .intro { margin-top: 24px; font-size: var(--step-1); color: var(--rose-200); max-width: 52ch; line-height: 1.5; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__floral { position: absolute; z-index: 1; pointer-events: none; opacity: .5; filter: saturate(.8); will-change: transform; }
.hero__floral.f1 { width: 360px; right: -60px; bottom: -80px; }
.hero__floral.f2 { width: 230px; left: -70px; top: 10%; opacity: .32; }
.hero__portrait {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: min(38vw, 420px); aspect-ratio: 4/5; border-radius: 200px 200px 24px 24px;
  object-fit: cover; z-index: 2; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(232,163,165,.3);
}
@media (max-width: 980px) { .hero__portrait { display: none; } }
.hero__scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--rose-300); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3; }
.hero__scroll .mouse { width: 22px; height: 34px; border: 2px solid var(--rose-300); border-radius: 12px; position: relative; }
.hero__scroll .mouse::after { content:""; position:absolute; left:50%; top:6px; width:3px; height:7px; background: var(--rose-300); border-radius:2px; transform: translateX(-50%); animation: scrolldot 1.6s infinite; }
@media (max-width: 640px) {
  .hero__floral.f1 { opacity: .22; width: 260px; }
  .hero__floral.f2 { opacity: .2; }
}
@keyframes scrolldot { 0%{opacity:1;top:6px} 70%{opacity:0;top:16px} 100%{opacity:0} }

/* homepage example mock */
.mock { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.mock__bar { background: var(--burg-800); color: var(--cream-050); padding: 16px 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.mock__bar .b { font-family: var(--serif); font-size: 1.15rem; }
.mock__bar .n { font-size: .82rem; color: var(--rose-300); letter-spacing: .5px; }
.mock__hero { background: var(--cream-050); padding: clamp(24px,4vw,48px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 720px){ .mock__hero { grid-template-columns: 1fr; } }
.mock__hero img { border-radius: 16px; aspect-ratio: 5/4; object-fit: cover; width: 100%; }
.mock__scope { background: var(--pinkcream); padding: 16px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; font-size: .82rem; letter-spacing: 1.5px; color: var(--burg-800); }
.mock__usp { background: var(--cream-050); padding: 28px; text-align: center; }
.mock__usp .u1 { font-family: var(--serif); font-size: 1.4rem; color: var(--burg-800); }
.mock__usp .u2 { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--accent); margin-top: 6px; }
.mock__fam { background: var(--burg-800); color: var(--rose-300); padding: 14px; text-align: center; font-size: .88rem; }

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: start center;
  padding-top: 12vh; background: rgba(55,8,33,.55); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { width: min(640px, 92vw); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(-14px); transition: transform .3s var(--ease); }
.search-overlay.open .search-box { transform: translateY(0); }
.search-field { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.search-field svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.search-field input { flex: 1; border: none; background: none; font-size: 1.15rem; color: var(--heading); outline: none; font-family: var(--serif); }
.search-field input::placeholder { color: var(--ink-300); }
.search-results { max-height: 56vh; overflow-y: auto; padding: 8px; }
.sr-item { display: block; width: 100%; text-align: left; padding: 14px 18px; border-radius: 12px; transition: background .15s; }
.sr-item:hover, .sr-item.sel { background: var(--cream-200); }
.sr-item .sr-group { font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.sr-item .sr-title { font-family: var(--serif); font-size: 1.25rem; color: var(--burg-800); }
.sr-item .sr-snip { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.sr-empty { padding: 30px; text-align: center; color: var(--muted); }
.search-foot { padding: 12px 20px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.search-foot .kbd { padding: 2px 7px; border-radius: 6px; background: var(--cream-200); border: 1px solid var(--line); }

/* ---------- Mobile slide-up CTA ---------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 180;
  display: flex; gap: 10px; padding: 10px; border-radius: 18px;
  background: rgba(55,8,33,.92); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(232,163,165,.25);
  transform: translateY(160%); transition: transform .45s var(--ease);
  visibility: hidden; pointer-events: none;
}
.mobile-cta.show { transform: translateY(0); visibility: visible; pointer-events: auto; }
.mobile-cta .btn { flex: 1; justify-content: center; padding: 13px 16px; }
.mobile-cta .mc-search { flex: 0 0 auto; width: 50px; }
@media (min-width: 1080px) { .mobile-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }

/* ---------- Footer ---------- */
.footer { background: var(--burg-900); color: var(--rose-200); padding: clamp(50px,7vw,90px) var(--gutter) 40px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr; gap: 30px; } }
.footer h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: 2px; text-transform: uppercase; color: var(--rose-400); margin-bottom: 16px; font-weight: 700; }
.footer__brand .b { font-family: var(--serif); font-size: 1.8rem; color: var(--cream-050); }
.footer__brand p { font-size: .9rem; max-width: 36ch; margin-top: 10px; color: var(--rose-300); }
.footer__brand img { height: 56px; margin-bottom: 16px; }
.sitemap { columns: 2; column-gap: 24px; }
.sitemap a { display: block; padding: 6px 0; font-size: .92rem; color: var(--rose-200); transition: color .2s, padding-left .2s; break-inside: avoid; }
.sitemap a:hover { color: #fff; padding-left: 6px; }
.footer__bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(232,163,165,.18); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--rose-400); }
.footer__cta { background: var(--burg-700); border: 1px solid rgba(232,163,165,.2); border-radius: var(--radius); padding: 26px; margin-bottom: 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer__cta .fc-t { font-family: var(--serif); font-size: 1.6rem; color: var(--cream-050); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px);} to { opacity:1; transform:none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__scroll .mouse::after { animation: none; }
  .btn, .card, .kv .row, * { transition-duration: .001s !important; }
  .hero__floral { transform: none !important; }
}

/* utilities */
.mt-s{margin-top:16px}.mt-m{margin-top:28px}.mt-l{margin-top:44px}
.center{text-align:center}.maxw-60{max-width:60ch}
.hr-soft{height:1px;background:var(--line);border:0;margin:40px 0}
.text-accent{color:var(--accent)}
.flex-between{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
