/* Shared styles for both test pages. Each product sets its own colours on <body>. */

:root {
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* A (today): blush paper, plum ink, persimmon energy */
body.p-today {
  --bg: #FFF5EF;
  --surface: #FFFFFF;
  --ink: #2A1730;
  --muted: #6B566D;
  --line: #EED9CD;
  --accent: #E8501C;
  --accent-ink: #FFFFFF;
  --accent-soft: #FFE1D2;
  --flow: #E8501C;
  --steady: #D9930F;
  --ebb: #6F84A0;
}

/* B (story): cool paper, navy ink, cobalt */
body.p-story {
  --bg: #F2F4F8;
  --surface: #FFFFFF;
  --ink: #121A2C;
  --muted: #55607A;
  --line: #D8DEEA;
  --accent: #2446E0;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCE3FF;
  --done: #2446E0;
  --moved: #F2A33A;
  --missed: #C5CCDA;
}

/* Studio / neutral pages */
body.p-studio {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --ink: #1C1C1C;
  --muted: #5E5E5E;
  --line: #E2E2DE;
  --accent: #1C1C1C;
  --accent-ink: #FFFFFF;
  --accent-soft: #ECECE8;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; }
.brand .beta { font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); vertical-align: 3px; }
.topbar a.quiet { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 560px) { .topbar a.quiet { display: none; } }

/* Type */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.04; margin: 0; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 36em; margin: 20px 0 0; }
p { margin: 0 0 1em; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 40px; padding-bottom: 120px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; padding-bottom: 64px; } }

/* Signup form */
.signup { margin-top: 32px; max-width: 30rem; }
.signup .row { display: flex; gap: 8px; }
.signup input[type=email] {
  flex: 1; min-width: 0; font: inherit; padding: 15px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.signup input[type=email]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.signup .note { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }
.signup .msg { font-size: 0.95rem; margin: 8px 0 0; }
.signup .msg:empty { display: none; }
.signup .msg.err { color: #B3261E; }
@media (max-width: 480px) { .signup .row { flex-direction: column; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
.btn.light { background: var(--surface); color: var(--ink); }

/* The card: the one bold object on each page */
.card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(40, 20, 40, 0.28);
}
.hero .card { transform: rotate(-1.6deg); }
@media (max-width: 900px) { .hero .card { transform: none; } }
.card .meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; color: var(--muted); }
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.card .move { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1.12; margin: 18px 0 16px; }
.card dl { margin: 0; display: grid; gap: 12px; }
.card dt { font-weight: 700; font-size: 0.85rem; }
.card dd { margin: 2px 0 0; color: var(--muted); font-size: 0.97rem; }
.card .rhythm { margin: 18px -6px 4px; }

/* Day-state colours (A) */
.st-flow { color: var(--flow); background: color-mix(in srgb, var(--flow) 12%, transparent); }
.st-steady { color: #A86F00; background: color-mix(in srgb, var(--steady) 16%, transparent); }
.st-ebb { color: #4F6684; background: color-mix(in srgb, var(--ebb) 16%, transparent); }

/* Week strip (B) */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 18px 0 6px; }
.week .d { text-align: center; font-size: 0.75rem; color: var(--muted); }
.week .b { height: 38px; border-radius: 10px; margin-top: 4px; }
.week .done { background: var(--done); }
.week .moved { background: var(--moved); }
.week .missed { background: transparent; border: 2px dashed var(--missed); }
.week .rest { background: color-mix(in srgb, var(--missed) 35%, transparent); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .l-done::before { background: var(--done); }
.legend .l-moved::before { background: var(--moved); }
.legend .l-missed::before { border: 2px dashed var(--missed); width: 6px; height: 6px; }

/* Sections */
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--ink); font-family: var(--font-display); font-weight: 800; margin-bottom: 16px;
}
.steps p { color: var(--muted); margin-top: 8px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

.promises { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.promises ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.promises li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.promises li:first-child { padding-top: 4px; }
.promises li span { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 2px; }
@media (max-width: 800px) { .promises { grid-template-columns: 1fr; gap: 24px; } }

/* Quiz band */
.band { background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin: 24px 0 72px; }
.band p { color: color-mix(in srgb, var(--bg) 78%, transparent); margin: 12px 0 0; max-width: 34em; }
.band .btn { background: var(--accent); }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; padding: 36px 24px; } }

.closing { text-align: left; padding: 24px 0 88px; }
.closing .signup { margin-top: 24px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 0.88rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Narrow pages (founding, privacy, result) */
.narrow { max-width: 640px; margin: 0 auto; padding: 24px 24px 88px; }
@media (max-width: 560px) { .narrow { padding: 16px 16px 72px; } }
.narrow h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.price { display: flex; align-items: baseline; gap: 14px; margin: 28px 0 8px; }
.price .now { font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; letter-spacing: -0.03em; }
.price .was { color: var(--muted); text-decoration: line-through; font-size: 1.2rem; }
.terms { list-style: none; padding: 0; margin: 24px 0 32px; }
.terms li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink); }

/* Quiz */
.quiz { max-width: 680px; margin: 0 auto; padding: 8px 24px 88px; }
@media (max-width: 560px) { .quiz { padding: 8px 16px 72px; } }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0 36px; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.q-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.q-title { font-size: clamp(1.7rem, 4.4vw, 2.5rem); margin-bottom: 8px; }
.q-hint { color: var(--muted); margin: 0 0 24px; }
.options { display: grid; gap: 10px; }
.opt {
  font: inherit; text-align: left; padding: 18px 20px; border-radius: var(--radius-md); cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); }
.opt small { color: var(--muted); font-size: 0.9rem; }
.stepper { display: flex; align-items: center; gap: 20px; margin: 8px 0 24px; }
.stepper button { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font-size: 1.6rem; cursor: pointer; color: var(--ink); }
.stepper button:hover { border-color: var(--ink); }
.stepper output { font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; min-width: 2ch; text-align: center; }
.q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.linkbtn { background: none; border: 0; padding: 8px 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.result-head { margin: 8px 0 24px; }
.result-head p { color: var(--muted); margin-top: 12px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.after { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.disclaimer { font-size: 0.85rem; color: var(--muted); margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ===================== Photo + device layer ===================== */

/* Hero with a photo and the app on a phone */
.hero-visual { position: relative; min-height: 640px; }
.hero-img {
  position: absolute; right: 0; top: 0; width: 88%; height: 600px;
  object-fit: cover; border-radius: var(--radius-lg); background: var(--accent-soft);
}
.hero-visual .phone { position: absolute; left: -8px; bottom: -64px; transform: scale(.86); transform-origin: bottom left; }
.hero-visual .watch { position: absolute; right: -14px; top: 36px; }
@media (max-width: 900px) {
  .hero-visual { min-height: 0; display: grid; justify-items: center; }
  .hero-img { position: relative; width: 100%; height: 380px; }
  .hero-visual .phone { position: relative; margin-top: -150px; left: auto; bottom: auto; transform: none; }
  .hero-visual .watch { top: 16px; right: 12px; transform: scale(.82); transform-origin: top right; }
}

/* iPhone */
.phone {
  width: 286px; padding: 11px; border-radius: 48px; background: #16131A;
  box-shadow: 0 0 0 2px #3a3540 inset, 0 40px 70px -28px rgba(20, 10, 25, .55);
}
.phone .screen {
  position: relative; border-radius: 38px; overflow: hidden; background: var(--bg);
  min-height: 560px; padding: 14px 16px 76px; color: var(--ink);
}
.phone .island { width: 92px; height: 26px; border-radius: 20px; background: #16131A; margin: 0 auto 6px; }
.phone .status { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin: -26px 8px 18px; }
.phone .apphead { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 12px; }
.phone .apphead b { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; }
.phone .apphead span { font-size: 12px; color: var(--muted); }
.phone .card { padding: 16px; border-radius: 22px; box-shadow: none; }
.phone .card .move { font-size: 1.22rem; margin: 12px 0 10px; }
.phone .card dt { font-size: 0.74rem; }
.phone .card dd { font-size: 0.8rem; line-height: 1.4; }
.phone .card dl { gap: 8px; }
.phone .tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 10px 0 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.phone .tabbar i { display: block; width: 20px; height: 20px; border-radius: 6px; margin: 0 auto 3px; background: var(--line); }
.phone .tabbar .on { color: var(--accent); font-weight: 700; }
.phone .tabbar .on i { background: var(--accent); }
.phone .cta { display: block; text-align: center; background: var(--accent); color: var(--accent-ink); border-radius: 14px; padding: 12px; font-weight: 700; font-size: 0.9rem; margin-top: 14px; }

/* Apple Watch */
.watch { width: 132px; padding: 9px; border-radius: 38px; background: #16131A; box-shadow: 0 24px 40px -18px rgba(20, 10, 25, .55); }
.watch .face { border-radius: 30px; background: #000; color: #fff; height: 150px; padding: 16px 13px; display: flex; flex-direction: column; justify-content: space-between; }
.watch .t { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; text-align: right; }
.watch .comp { font-size: 11px; line-height: 1.25; }
.watch .comp b { display: block; color: var(--accent); font-size: 12px; }
.p-today .watch .comp b { color: #F7B23B; }

/* Check-in screen (A) */
.chk h4 { font-size: 0.78rem; font-weight: 700; margin: 12px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 0.78rem; padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.chips .sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Progress screen (B) */
.bars { display: flex; align-items: flex-end; gap: 5px; height: 120px; margin: 10px 0 6px; padding: 10px; background: var(--surface); border-radius: 16px; border: 1px solid var(--line); }
.bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--accent); }
.bars i.lo { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.02em; }
.stat span { font-size: 0.72rem; color: var(--muted); }

/* Photo grids */
.photo-grid { display: grid; gap: 20px; margin-top: 40px; }
.photo-grid.three { grid-template-columns: repeat(3, 1fr); }
.photo-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .photo-grid.three { grid-template-columns: 1fr; } .photo-grid.four { grid-template-columns: 1fr 1fr; gap: 12px; } }
.tile { margin: 0; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; background: var(--accent-soft); }
.photo-grid.three .tile img { aspect-ratio: 4 / 4.4; }
.tile figcaption { padding: 14px 4px 0; }
.tile .pill { margin-bottom: 10px; }
.tile strong { display: block; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.2; }
.tile p { color: var(--muted); font-size: 0.95rem; margin: 6px 0 0; }
.tile .tag { position: relative; }
.tile .imgwrap { position: relative; }
.tile .imgwrap .badge { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 12px; padding: 8px 12px; font-size: 0.82rem; line-height: 1.25; }
.tile .imgwrap .badge b { display: block; font-size: 1rem; font-family: var(--font-display); }

/* How it works: steps beside a phone */
.how { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.how .steps { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; gap: 40px; justify-items: center; } .how > div { justify-self: stretch; } }

/* Promise photo */
.promise-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; margin-top: 28px; background: var(--accent-soft); }

/* Quiz intro photo */
.intro-img { width: 100%; height: 260px; object-fit: cover; border-radius: 22px; margin-bottom: 28px; background: var(--accent-soft); }

.credit { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 900px) { .photo-grid.three .tile img { aspect-ratio: 16 / 10; } }

/* ===== B: understanding / long-term / options components ===== */
.phone .sect { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; margin-bottom: 8px; }
.phone .sect h5 { margin: 0 0 4px; font-size: 0.7rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.phone .sect p { margin: 0; font-size: 0.86rem; line-height: 1.35; }
.phone .sect .big { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.2; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 54px; margin: 8px 0 4px; }
.spark i { flex: 1; border-radius: 3px 3px 1px 1px; background: var(--accent); }
.spark i.lo { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.eg { font-size: 0.66rem; color: var(--muted); font-style: italic; }
.phone .sect.link { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.82rem; color: var(--accent); }

/* Floating note beside the hero photo (B uses this where A shows the Watch) */
.float-note { position: absolute; right: -14px; bottom: 150px; width: 196px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; box-shadow: 0 24px 40px -18px rgba(20, 20, 40, .35); font-size: 0.85rem; line-height: 1.35; }
.float-note b { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 2px; }
@media (max-width: 900px) { .float-note { top: 16px; left: 12px; right: auto; bottom: auto; width: 160px; font-size: 0.8rem; padding: 10px 12px; } }

/* Status marks on activity tiles */
.status { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; }
.status.done { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.status.planned { background: transparent; color: var(--muted); border: 1.5px dashed var(--missed, var(--line)); }
.status.moved { background: color-mix(in srgb, #F2A33A 22%, transparent); color: #8A5300; }

/* Options card (plan changes) */
.options-card { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.options-card .oc-title { font-weight: 700; margin: 0 0 10px; }
.oc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.oc-list div { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 0.85rem; line-height: 1.35; color: var(--muted); }
.oc-list b { display: block; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 640px) { .oc-list { grid-template-columns: 1fr; } }

.fine { font-size: 0.82rem; color: var(--muted); margin: 10px 0 0; }
.signup .note a { color: inherit; }

/* B-only editorial visual refresh: A is intentionally unchanged */
.p-story {--bg:#F8F6F0;--surface:#FFFEFB;--ink:#1D2925;--muted:#59655D;--line:#E4E5DA;--accent:#1D5B49;--accent-soft:#E6F1DF;--accent-ink:#fff;}
.p-story .topbar {padding-top:26px;padding-bottom:26px;}
.p-story .hero {grid-template-columns:.94fr 1.06fr;gap:36px;padding-top:38px;padding-bottom:108px;}
.p-story .hero h1 {font-size:clamp(3.2rem,5.5vw,5.1rem);max-width:9.6em;}
.p-story .hero-visual {min-height:655px;}
.p-story .hero-img {width:100%;height:625px;border-radius:8px 110px 8px 8px;object-position:center 35%;filter:saturate(1.08);}
.p-story .hero-visual .phone {left:-24px;bottom:-55px;transform:scale(.63);transform-origin:bottom left;}
.p-story .hero .note {max-width:450px;}
.p-story .photo-grid.editorial-grid {grid-template-columns:1.4fr 1fr 1fr;gap:14px;align-items:stretch;}
.p-story .editorial-grid .tile:first-child {grid-row:span 2;}
.p-story .editorial-grid .tile:last-child {grid-column:span 2;}
.p-story .editorial-grid .tile {display:flex;flex-direction:column;min-width:0;}
.p-story .editorial-grid .tile .imgwrap {position:relative;flex:1 1 auto;min-height:215px;border-radius:8px;overflow:hidden;}
.p-story .editorial-grid .tile img {position:absolute;inset:0;width:100%;height:100%;min-height:0;aspect-ratio:auto;object-fit:cover;border-radius:0;}
.p-story .editorial-grid .tile:first-child .imgwrap {min-height:470px;}
.p-story .editorial-grid .tile figcaption {flex:none;}
.p-story .editorial-grid .tile figcaption {padding:10px 3px 0;}
.p-story .editorial-grid .tile figcaption p {font-size:.84rem;}
.p-story .block {padding-top:82px;padding-bottom:88px;}
.p-story .story-chapters {background:#EAEDE4;padding:95px 0 100px;}
.p-story .eyebrow,.p-story .chapter-num {font-size:.75rem;font-weight:800;letter-spacing:.15em;color:#4B765C;}
.p-story .chapter-intro {max-width:850px;text-align:center;margin-bottom:40px;}
.p-story .chapter-intro h2 {margin:14px auto 18px;}
.p-story .chapter-intro p {color:var(--muted);}
.p-story .chapter-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.p-story .chapter {min-width:0;}
.p-story .chapter-photo {height:260px;overflow:hidden;border-radius:8px 65px 8px 8px;}
.p-story .chapter:nth-child(2) .chapter-photo {border-radius:8px;}
.p-story .chapter:nth-child(3) .chapter-photo {border-radius:65px 8px 8px 8px;}
.p-story .chapter-photo img {width:100%;height:100%;object-fit:cover;}
.p-story .chapter-copy {padding:22px 4px 0;}
.p-story .chapter-copy h3 {font-size:clamp(1.6rem,2.5vw,2.2rem);margin:11px 0 13px;}
.p-story .chapter-copy p {color:var(--muted);font-size:.96rem;}
.p-story .chapter-evidence {border-top:1px solid #B9C8B8;margin-top:22px;padding-top:16px;display:grid;gap:5px;font-size:.88rem;}
.p-story .chapter-evidence span,.p-story .chapter-evidence small {color:var(--muted);}
.p-story .chapter-evidence .spark {max-width:240px;}
.p-story .promises {grid-template-columns:1.2fr 1fr;align-items:center;}
.p-story .promises h2 {font-size:clamp(2.4rem,4vw,3.5rem);max-width:12em;margin:12px 0 0;}
.p-story .promise-photo {height:360px;aspect-ratio:auto;border-radius:8px 85px 8px 8px;}
.p-story .promises li {font-size:1rem;}
.p-story .band {background:#234A3C;}
@media(max-width:900px){
 .p-story .hero {grid-template-columns:1fr;padding-top:18px;padding-bottom:80px;gap:28px;}
 .p-story .hero h1 {font-size:clamp(2.7rem,10vw,4.5rem);}
 .p-story .hero-visual {min-height:440px;display:block;}
 .p-story .hero-img {height:440px;}
 .p-story .hero-visual .phone {position:absolute;left:0;bottom:-70px;margin:0;transform:scale(.45);transform-origin:bottom left;}
 .p-story .chapter-grid {grid-template-columns:1fr;gap:48px;max-width:680px;}
 .p-story .chapter-photo {height:340px;}
 .p-story .promises {grid-template-columns:1fr;}
}
@media(max-width:600px){
 .p-story .hero-visual {min-height:370px;}
 .p-story .hero-img {height:370px;border-radius:6px 70px 6px 6px;}
 .p-story .hero-visual .phone {transform:scale(.34);bottom:-62px;left:0;}
 .p-story .photo-grid.editorial-grid {grid-template-columns:1fr 1fr;gap:12px;}
 .p-story .editorial-grid .tile:first-child {grid-column:span 2;grid-row:auto;}
 .p-story .editorial-grid .tile:last-child {grid-column:span 2;}
 .p-story .editorial-grid .tile:first-child .imgwrap {min-height:300px;}
 .p-story .editorial-grid .tile .imgwrap {min-height:185px;}
 .p-story .story-chapters {padding:70px 0;}
 .p-story .chapter-photo {height:245px;}
 .p-story .promise-photo {height:280px;}
}

/* A-only editorial refresh: same structure and visual weight as B v3, A's own palette */
.p-today {--bg:#FBF4EE;--surface:#FFFDFB;--ink:#2A1730;--muted:#6B566D;--line:#EEDDD2;--accent:#C2410C;--accent-soft:#FBE3D6;--accent-ink:#fff;--flow:#C2410C;}
.p-today .topbar {padding-top:26px;padding-bottom:26px;}
.p-today .hero {grid-template-columns:.94fr 1.06fr;gap:36px;padding-top:38px;padding-bottom:108px;}
.p-today .hero h1 {font-size:clamp(2.6rem,4.1vw,3.7rem);max-width:none;}
.p-today .hero h1 .line {display:block;white-space:nowrap;}
.p-today .hero-visual {min-height:655px;}
.p-today .hero-img {width:100%;height:625px;border-radius:110px 8px 8px 8px;object-position:center 28%;}
.p-today .hero-visual .phone {left:-24px;bottom:-55px;transform:scale(.63);transform-origin:bottom left;}
.p-today .hero .note {max-width:450px;}
.p-today .photo-grid.editorial-grid {grid-template-columns:1.4fr 1fr 1fr;gap:14px;align-items:stretch;}
.p-today .editorial-grid .tile:first-child {grid-row:span 2;}
.p-today .editorial-grid .tile:last-child {grid-column:span 2;}
.p-today .editorial-grid .tile {display:flex;flex-direction:column;min-width:0;}
.p-today .editorial-grid .tile .imgwrap {position:relative;flex:1 1 auto;min-height:215px;border-radius:8px;overflow:hidden;}
.p-today .editorial-grid .tile img {position:absolute;inset:0;width:100%;height:100%;min-height:0;aspect-ratio:auto;object-fit:cover;border-radius:0;}
.p-today .editorial-grid .tile:first-child .imgwrap {min-height:470px;}
.p-today .editorial-grid .tile figcaption {flex:none;padding:12px 3px 0;}
.p-today .editorial-grid .tile .pill {margin-bottom:8px;}
.p-today .editorial-grid .tile figcaption p {font-size:.84rem;}
.p-today .st-short {color:#7A3E8C;background:color-mix(in srgb,#7A3E8C 12%,transparent);}
.p-today .block {padding-top:82px;padding-bottom:88px;}
.p-today .story-chapters {background:#F3E4DA;padding:95px 0 100px;}
.p-today .eyebrow,.p-today .chapter-num {font-size:.86rem;font-weight:700;color:#9A3412;}
.p-today .chapter-intro {max-width:850px;text-align:center;margin-bottom:40px;}
.p-today .chapter-intro h2 {margin:12px auto 16px;}
.p-today .chapter-intro p {color:var(--muted);}
.p-today .chapter-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.p-today .chapter {min-width:0;}
.p-today .chapter-photo {height:260px;overflow:hidden;border-radius:65px 8px 8px 8px;}
.p-today .chapter:nth-child(2) .chapter-photo {border-radius:8px;}
.p-today .chapter:nth-child(3) .chapter-photo {border-radius:8px 65px 8px 8px;}
.p-today .chapter-photo img {width:100%;height:100%;object-fit:cover;}
.p-today .chapter-copy {padding:22px 4px 0;}
.p-today .chapter-copy h3 {font-size:clamp(1.6rem,2.5vw,2.2rem);margin:11px 0 13px;}
.p-today .chapter-copy p {color:var(--muted);font-size:.96rem;}
.p-today .chapter-evidence {border-top:1px solid #DDBFAE;margin-top:22px;padding-top:16px;display:grid;gap:6px;font-size:.88rem;}
.p-today .chapter-evidence span,.p-today .chapter-evidence small {color:var(--muted);}
.p-today .chapter-evidence .chips span {color:var(--ink);}
.p-today .chapter-evidence .chips .sel {color:var(--accent-ink);}
.p-today .promises {grid-template-columns:1.2fr 1fr;align-items:center;}
.p-today .promises h2 {font-size:clamp(2.4rem,4vw,3.5rem);max-width:12em;margin:12px 0 0;}
.p-today .promise-photo {height:360px;aspect-ratio:auto;border-radius:85px 8px 8px 8px;}
.p-today .promises li {font-size:1rem;}
.p-today .band {background:#3B1D3F;}
@media(max-width:900px){
 .p-today .hero {grid-template-columns:1fr;padding-top:18px;padding-bottom:80px;gap:28px;}
 .p-today .hero h1 {font-size:clamp(2.3rem,10.5vw,4.5rem);}
 .p-today .hero-visual {min-height:440px;display:block;}
 .p-today .hero-img {height:440px;}
 .p-today .hero-visual .phone {position:absolute;left:0;bottom:-70px;margin:0;transform:scale(.45);transform-origin:bottom left;}
 .p-today .chapter-grid {grid-template-columns:1fr;gap:48px;max-width:680px;}
 .p-today .chapter-photo {height:340px;}
 .p-today .promises {grid-template-columns:1fr;}
}
@media(max-width:600px){
 .p-today .hero-visual {min-height:370px;}
 .p-today .hero-img {height:370px;border-radius:70px 6px 6px 6px;}
 .p-today .hero-visual .phone {transform:scale(.34);bottom:-62px;left:0;}
 .p-today .photo-grid.editorial-grid {grid-template-columns:1fr 1fr;gap:12px;}
 .p-today .editorial-grid .tile:first-child {grid-column:span 2;grid-row:auto;}
 .p-today .editorial-grid .tile:last-child {grid-column:span 2;}
 .p-today .editorial-grid .tile:first-child .imgwrap {min-height:300px;}
 .p-today .editorial-grid .tile .imgwrap {min-height:185px;}
 .p-today .story-chapters {padding:70px 0;}
 .p-today .chapter-photo {height:245px;}
 .p-today .promise-photo {height:280px;}
}
