.hp-hero {
  padding: clamp(58px, 6vw, 72px) 24px 0;
  color: var(--mr-ink, var(--text-1));
  background: var(--mr-page, var(--bg-page));
}
.hp-copy {
  width: min(100%, 1080px);
  margin: 0 auto;
  text-align: center;
}
.hp-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--mr-muted, var(--text-2));
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.hp-eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border: 4px solid var(--mr-gold-ink, var(--be-color-primary));
  border-radius: 2px;
}
.hp-title {
  max-width: 1080px;
  margin: 0 auto;
  color: var(--mr-ink, var(--text-1));
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 6.5vw, 5.5rem);
  font-weight: 600;
  font-stretch: 96%; /* CD-83 A2: Instrument Sans wdth 96 keeps each hero sentence on one line (wdth 75..100 is loaded) */
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hp-title-sentence { display:block; color:inherit; }
.hp-title em { color:var(--mr-gold-ink, var(--be-color-primary)); font-style:normal; }
.hp-summary {
  max-width: 78ch;
  margin: 16px auto 0;
  color: var(--mr-muted, var(--text-2));
  font-size: clamp(1.0625rem, 1.99vw, 1.375rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.hp-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.hp-primary,
.hp-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.hp-primary { min-width: 160px; color: #101828; background: #6c9bff; }
.hp-primary:hover { background: #82aaff; }
.hp-secondary {
  min-width: 210px;
  color: var(--mr-ink, var(--text-1));
  background: var(--mr-surface, var(--surface-solid));
  border-color: var(--mr-line, var(--border));
}
.hp-secondary:hover { background: var(--mr-raised, var(--surface-hover)); }
.hp-free-note {
  margin: 7px 0 0;
  color: var(--mr-muted, var(--text-3));
  font-size: 14px;
  line-height: 1.5;
}
.hp-primary:focus-visible,
.hp-secondary:focus-visible,
.hp-toggle:focus-visible {
  outline: 3px solid var(--mr-blue-ink, #1d4ed8);
  outline-offset: 3px;
}

/* CD-84 A1 F9: the picture runs up to 1100px wide, centred under the heading (world scale is uncapped, see hero-prototype.mjs). */
.hp-figure { width: min(100%, 1100px); margin: 9px auto 0; }
.hp-frame { position: relative; }
.hp-stage {
  position: relative;
  border-radius: 32px;
  width: 100%;
  aspect-ratio: 1054 / 690;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  --hp-scale: calc(100cqw / 1054px);
  --hp-crop: 1054; /* world px shown across the frame width; the phone block narrows it (F3) */
}
.hp-world {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1054px;
  height: 690px;
  transform: translate(-50%, -50%) scale(calc(var(--hp-scale, 1) * var(--hp-camera, 1))) translate(var(--hp-dx, 0px), var(--hp-dy, 0px));
  transform-origin: 50% 50%;
  will-change: transform;
}
.hp-poster {
  position: absolute;
  inset: 0;
  width: 1054px;
  height: 690px;
  background-color: var(--mr-page, #f5f3ee);
  background-image: url('/assets/marketing-revamp/approved-panels/01-hero-light.png');
  background-repeat: no-repeat;
  background-position: 0 -500px;
  background-size: 1054px 1492px;
  pointer-events: none;
}
html[data-theme="dark"] .hp-poster {
  background-image: url('/assets/marketing-revamp/approved-panels/01-hero-dark.png');
}

.hp-arrows {
  position: absolute;
  inset: 0;
  width: 1054px;
  height: 690px;
  z-index: 2;
  pointer-events: none;
}
.hp-world {
  /* Stage-space corners after the poster y=-500px crop: TL(304,112), TR(771,149), BR(767,438), BL(303,419). */
  --hp-screen-transform: matrix3d(1.0779818150,0.0854075528,0,0.0001343992,-0.0031468702,0.9660891663,0,0.0000218702,0,0,1,0,0,0,0,1);
}
.hp-screen,
.hp-native-card,
.hp-telegram {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  color: #182230;
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 2px 6px rgb(25 33 46 / 10%);
}
[data-hero-prototype]:not([data-prototype-ready]) .hp-world > :not(.hp-poster) {
  visibility: hidden;
}
.hp-screen {
  top: 112px;
  left: 304px;
  width: 460px;
  height: 320px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  border: 1px solid #d8dde5;
  border-radius: 7px;
  background: #fff;
  transform: var(--hp-screen-transform, none);
  transform-origin: 0 0;
}
.hp-screen-sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 9px;
  color: #667085;
  background: #f7f8fa;
  border-right: 1px solid #e7e9ee;
  font-size: 9px;
}
.hp-screen-sidebar img { flex: 0 0 auto; border-radius: 6px; }
.hp-side-item { width: 100%; padding: 5px 5px; border-radius: 4px; }
.hp-side-active { color: #1d4ed8; background: #eaf1ff; font-weight: 600; }
.hp-screen-main { min-width: 0; padding: 15px 15px 9px; }
.hp-panel-heading { display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; }
.hp-panel-heading > div { display: grid; gap: 4px; }
.hp-panel-heading strong { color: #172033; font-size: 14px; font-weight: 650; }
.hp-overline { color: #667085; font-size: 7px; font-weight: 700; letter-spacing: .11em; }
.hp-date { color: #667085; font-size: 8px; white-space: nowrap; }
.hp-filter-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: 12px 0 7px; font-size: 9px; font-weight: 600; }
.hp-filter-chip { padding: 4px 6px; border: 1px solid #e4e7ec; border-radius: 5px; color: #475467; font-size: 8px; font-weight: 500; white-space: nowrap; }
.hp-sample-table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 9px; text-align: left; }
.hp-sample-table th { padding: 5px 3px; border-bottom: 1px solid #e4e7ec; color: #667085; font-size: 7px; font-weight: 600; white-space: nowrap; }
.hp-sample-table td { padding: 8px 3px; border-bottom: 1px solid #edf0f2; color: #344054; white-space: nowrap; }
.hp-sample-table td:nth-child(2) { color: #244d9a; font-weight: 650; }
.hp-sample-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hp-check { display: block; width: 11px; height: 11px; border: 1px solid #c5cad3; border-radius: 3px; background: white; }
.hp-sample-table [data-prototype-row] { transition: opacity 260ms ease, transform 260ms ease, background-color 260ms ease; }
.hp-sample-table tr[data-prototype-row-state="selected"] { background: #f3f6fb; }
.hp-sample-table tr[data-prototype-row-state="selected"] .hp-check { border-color: #5078b8; background: #5078b8; }
.hp-sample-table tr[data-prototype-row-state="selected"] .hp-check::after {
  display: block;
  width: 5px;
  height: 3px;
  margin: 2px 0 0 2px;
  border-bottom: 1px solid #fff;
  border-left: 1px solid #fff;
  content: "";
  transform: rotate(-45deg);
}
.hp-selection { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; color: #667085; font-size: 8px; }
.hp-selection [data-prototype-selected] { color: #344054; font-weight: 600; }
.hp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hp-native-card {
  padding: 11px 12px 8px;
  border: 1px solid #e6e1d8;
  border-radius: 8px;
  background: #fffefa;
}
.hp-hero[data-prototype-stage="calculator"] .hp-calculator,
.hp-hero[data-prototype-stage="journal"] .hp-journal,
.hp-hero[data-prototype-stage="saved-scan"] .hp-telegram {
  box-shadow: 0 0 0 2px rgb(217 169 63 / 42%), 0 6px 20px rgb(25 33 46 / 10%);
}
.hp-native-card, .hp-telegram { transition: box-shadow 400ms ease; }
.hp-calculator { top: 70px; left: 840px; width: 175px; height: 150px; }
.hp-journal { top: 305px; left: 840px; width: 175px; height: 146px; }
.hp-card-title { display: flex; justify-content: space-between; align-items: center; gap: 5px; color: #354052; font-size: 10px; font-weight: 650; }
.hp-card-mark { color: #697586; font-size: 15px; font-weight: 400; }
.hp-calc-row { display: flex; justify-content: space-between; align-items:center; gap: 5px; margin-top: 6px; color: #737b86; font-size: 9px; }
.hp-calc-row strong { min-width:64px; min-height:18px; padding:2px 5px; border:1px solid #e4e7ec; border-radius:4px; color: #344054; font-size: 9px; font-weight: 500; font-variant-numeric: tabular-nums; }
.hp-calc-total { display: flex; justify-content: space-between; gap: 5px; margin-top: 7px; padding-top: 6px; border-top: 1px solid #ece7de; color: #596273; font-size: 9px; }
.hp-calc-total strong { color: #182230; font-size: 10px; font-weight: 700; white-space: nowrap; }
.hp-calc-foot { margin-top: 5px; color: #969185; font-size: 7px; }
.hp-ui-action { display:flex; align-items:center; justify-content:center; min-height:22px; margin-top:8px; border-radius:5px; color:white; background:#4e87ff; font-size:9px; font-weight:500; }
.hp-journal-action { position:absolute; left:12px; right:12px; bottom:10px; }
.hp-journal[data-saved="true"] [data-prototype-journal-saved] { color:white; }
.hp-journal-date { color: #8b8170; font-size: 7px; letter-spacing: .08em; }
.hp-journal-code { margin-top: 13px; color: #244d9a; font-size: 10px; font-weight: 700; }
.hp-journal-code span { margin-left: 4px; color: #8b8170; font-size: 8px; font-weight: 500; }
.hp-journal-note { min-height: 28px; margin: 5px 0 8px; color: #616a77; font-size: 8px; line-height: 1.45; }
.hp-save-state { display: flex; align-items: center; gap: 5px; color: #777f89; font-size: 8px; }
.hp-save-dot { width: 6px; height: 6px; border-radius: 50%; background: #c8bca5; }
.hp-journal[data-saved="true"] .hp-save-dot { background: #53836c; }
.hp-journal[data-saved="true"] .hp-ui-action [data-prototype-journal-saved] { color: #fff; }

.hp-telegram {
  top: 538px;
  left: 804px;
  width: 211px;
  height: 86px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  column-gap: 10px;
  padding: 0 14px;
  border: 1px solid #e1e6eb;
  border-radius: 9px;
  background: #fff;
}
.hp-telegram-mark {
  width:36px; height:36px;
  border-radius:50%; overflow:hidden;
  /* Phase D item 1: drawn icon replaces the PNG sprite crop, whose baked circle sat off-centre in the card. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2337aee2'/%3E%3Cstop offset='1' stop-color='%231e96c8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='18' cy='18' r='18' fill='url(%23g)'/%3E%3Cpath fill='%23fff' d='M7.5 17.4 28 9.6 24.6 26.4 18.8 22 15.6 25 15 20.2 25 12.8 13 19.2z'/%3E%3C/svg%3E") center / 36px 36px no-repeat;
}
.hp-telegram-mark, .hp-telegram-copy, .hp-telegram-time {
  opacity: var(--hp-alert, 1);
  transform: translateY(calc((1 - var(--hp-alert, 1)) * 7px));
}
.hp-telegram-copy { display: grid; gap: 4px; min-width: 0; }
.hp-telegram-copy strong { color: #253449; font-size: 10px; font-weight: 650; }
.hp-telegram-copy span { color: #667085; font-size: 8px; line-height: 1.4; }
.hp-telegram-time { color: #8a94a2; font-size: 7px; white-space: nowrap; align-self: start; margin-top: 12px; }
/* The blue progress strip made the Telegram card differ from the calculator and journal cards (founder review, 14 Nov); hidden. */
.hp-alert-progress { display: none; }
.hp-toggle {
  position: absolute;
  z-index: 3;
  bottom: 4%;
  left: 2.6%;
  min-width: 136px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 999px;
  color: #253449;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 3px 14px rgb(16 24 40 / 15%);
  font: 600 11px/1.2 var(--font);
  cursor: pointer;
}
.hp-toggle:hover { background: #fff; }
.hp-replay { left: calc(2.6% + 144px); min-width: 88px; }
html[data-theme="dark"] .hp-toggle { color:#f2ede3; background:#1b1813; border-color:#40382d; }
html[data-theme="dark"] .hp-toggle:hover { background:#221e17; }
.hp-toggle[hidden] { display: none; }
.hp-caption {
  max-width: 76%;
  margin: 10px 4px 0;
  color: var(--mr-muted, var(--text-3));
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.hp-status { margin-left: 5px; color: var(--mr-ink, var(--text-1)); font-weight: 600; }

html[data-theme="dark"] .hp-screen,
html[data-theme="dark"] .hp-native-card,
html[data-theme="dark"] .hp-telegram {
  color: #f2ede3;
  box-shadow: 0 3px 10px rgb(0 0 0 / 38%);
}
html[data-theme="dark"] .hp-screen {
  border-color: #40382d;
  background: #14120e;
  height: 324px;
}
html[data-theme="dark"] .hp-screen-sidebar {
  color: #a79d8b;
  border-color: #2e2820;
  background: #0c0b09;
}
html[data-theme="dark"] .hp-side-active {
  color: #8fb3ff;
  background: #19243a;
}
html[data-theme="dark"] .hp-panel-heading strong { color: #f2ede3; }
html[data-theme="dark"] .hp-overline,
html[data-theme="dark"] .hp-date { color: #a79d8b; }
html[data-theme="dark"] .hp-filter-chip {
  color: #f2ede3;
  border-color: #40382d;
  background: #1b1813;
}
html[data-theme="dark"] .hp-sample-table th {
  color: #a79d8b;
  border-color: #40382d;
}
html[data-theme="dark"] .hp-sample-table td {
  color: #e6dfd2;
  border-color: #2e2820;
}
html[data-theme="dark"] .hp-sample-table td:nth-child(2),
html[data-theme="dark"] .hp-journal-code { color: #8fb3ff; }
html[data-theme="dark"] .hp-check {
  border-color: #40382d;
  background: #14120e;
}
html[data-theme="dark"] .hp-sample-table tr[data-prototype-row-state="selected"] {
  background: #1b1813;
}
html[data-theme="dark"] .hp-sample-table tr[data-prototype-row-state="selected"] .hp-check {
  border-color: #4f83f4;
  background: #4f83f4;
}
html[data-theme="dark"] .hp-selection { color: #a79d8b; }
html[data-theme="dark"] .hp-selection [data-prototype-selected] { color: #f2ede3; }
html[data-theme="dark"] .hp-native-card,
html[data-theme="dark"] .hp-telegram {
  border-color: #40382d;
  background: #1b1813;
}
/* Extend dark faces slightly past the light raster seams without changing the light composition. */
html[data-theme="dark"] .hp-calculator { top: 68px; left: 838px; width: 179px; height: 152px; border-radius: 10px; }
html[data-theme="dark"] .hp-journal { top: 303px; left: 838px; width: 179px; height: 150px; border-radius: 10px; }
html[data-theme="dark"] .hp-telegram { top: 536px; left: 802px; width: 215px; height: 90px; border-radius: 11px; }
html[data-theme="dark"] .hp-card-title,
html[data-theme="dark"] .hp-calc-row strong,
html[data-theme="dark"] .hp-calc-total strong { color: #f2ede3; }
html[data-theme="dark"] .hp-card-mark,
html[data-theme="dark"] .hp-calc-row,
html[data-theme="dark"] .hp-journal-code span { color: #a79d8b; }
html[data-theme="dark"] .hp-calc-row strong {
  border-color: #40382d;
  background: #14120e;
}
html[data-theme="dark"] .hp-calc-total {
  color: #a79d8b;
  border-color: #2e2820;
}
html[data-theme="dark"] .hp-calc-foot,
html[data-theme="dark"] .hp-journal-note,
html[data-theme="dark"] .hp-save-state { color: #a79d8b; }
html[data-theme="dark"] .hp-save-dot { background: #6b6252; }
html[data-theme="dark"] .hp-journal[data-saved="true"] .hp-save-dot { background: #6da887; }
html[data-theme="dark"] .hp-ui-action { background: #315fba; }
html[data-theme="dark"] .hp-telegram-copy strong { color: #f2ede3; }
html[data-theme="dark"] .hp-telegram-copy span,
html[data-theme="dark"] .hp-telegram-time { color: #a79d8b; }

@media (max-width: 767px) {
  .hp-stage { border-radius: 20px; }
  .hp-hero { padding: 40px 16px 0; }
  .hp-eyebrow { margin-bottom: 12px; font-size: 12px; }
  .hp-title { max-width: 100%; font-size: clamp(2.5rem, 11.3vw, 2.75rem); line-height: 1.1; }
  .hp-summary { margin-top: 14px; font-size: 16px; line-height: 1.55; }
  .hp-actions { gap: 10px; margin-top: 16px; }
  .hp-primary, .hp-secondary { min-height: 48px; min-width: 0; padding-inline: 23px; }
  .hp-figure { width: calc(100% + 32px); margin: 8px -16px 0; }
  .hp-caption { max-width: 70%; margin: 8px 18px 0; font-size: 12px; }
}
/* F3: phone picture = a larger crop of the same artwork (screener panel + the Calculator card) in a shorter frame;
   Pause/Replay become 44px icon buttons in a row under the picture instead of sitting on it. */
@media (max-width: 759px) {
  .hp-stage { aspect-ratio: 722 / 420; --hp-crop: 722; }
  .hp-world { --hp-dx: -133px; --hp-dy: 135px; }
  .hp-controls { display: flex; justify-content: center; gap: 12px; }
  .hp-toggle, .hp-replay {
    position: static; display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; width: 44px; height: 44px; min-height: 44px; margin-top: 10px; padding: 0;
    font-size: 0; line-height: 0; overflow: hidden;
  }
  .hp-toggle::before, .hp-replay::before { content: ""; display: block; box-sizing: border-box; color: currentColor; }
  /* pause: two bars */
  .hp-toggle[aria-label="Pause motion"]::before, .hp-toggle[aria-label="Pause animation"]::before { width: 14px; height: 16px; border-left: 4px solid; border-right: 4px solid; }
  /* resume: triangle */
  .hp-toggle[aria-label="Resume motion"]::before { width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
  /* replay: open ring */
  .hp-toggle[aria-label="Replay motion"]::before, .hp-replay::before { width: 16px; height: 16px; border: 2.5px solid; border-top-color: transparent; border-radius: 50%; }
  .hp-caption { max-width: none; margin: 8px 18px 0; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-primary, .hp-secondary, .hp-sample-table [data-prototype-row] { transition: none; }
}
