/* Hero prototypes: site tokens, nav and copy, plus Eastward card parts at hero scale. */
:root {
  --orange: #ff4f00;
  --orange-press: #e84700;
  --ink: #110e1b;
  --cream: #fef8ec;
  --white: #ffffff;
  --grey: #55535e;
  --line: #ebe4d7;
  --frame: #e8e2d6;
  --display: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;

  /* Eastward product parts */
  --card: #ffffff;
  --hairline: #e6e6e6;
  --chip-line: #cccccc;
  --t1: #1f1f1f;
  --t2: #4d4d4d;
  --t3: #666666;
  --violet-fill: #f0ecf8;
  --violet-line: #d0c4e8;
  --violet-strong: #e3dcf2;
  --violet-strong-line: #b5a3d9;
  --blue-fill: #eefaff;
  --blue-line: #b8d8ee;
  --blue-strong: #def3ff;
  --blue-strong-line: #90cdf4;
  --signal: #ff4f00;
  --signal-ink: #c43400;
  --signal-soft: #fff1e8;
  --signal-ring: rgba(255, 79, 0, 0.16);
  --shadow: 0 1px 2px rgba(17, 14, 27, 0.05), 0 12px 26px -10px rgba(17, 14, 27, 0.14), 0 40px 80px -30px rgba(17, 14, 27, 0.24);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--signal-soft); color: var(--signal-ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: calc(var(--container) + 64px); margin: 0 auto; padding: 0 32px; position: relative; }

/* ---------- Site nav ---------- */
.site-header { position: relative; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand img { height: 24px; width: auto; display: block; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 6px; font: 500 15px/1 var(--sans); color: #3a3745; text-decoration: none; }
.menu a:hover { color: var(--ink); background: rgba(17, 14, 27, 0.05); }
.menu svg { width: 10px; height: 10px; }
.nav-cta { display: flex; align-items: center; gap: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 8px; font: 600 16px/1 var(--sans); letter-spacing: -0.005em; text-decoration: none; border: 1px solid transparent; transition: background-color 0.15s, border-color 0.15s; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.15s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 1px 2px rgba(17, 14, 27, 0.12); }
.btn-primary:hover { background: var(--orange-press); }
.btn-secondary { border-color: rgba(17, 14, 27, 0.28); color: var(--ink); background: rgba(254, 248, 236, 0.7); }
.btn-secondary:hover { border-color: var(--ink); background: var(--white); }
.btn-ghost { color: var(--ink); background: none; }
.btn-ghost:hover { background: rgba(17, 14, 27, 0.05); }
.nav-cta .btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; }

/* ---------- Hero copy (unchanged) ---------- */
.hero { position: relative; overflow: hidden; min-height: max(760px, 100vh); }
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: 600px; position: relative; z-index: 5; }
.display { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5.2vw, 76px); line-height: 0.98; letter-spacing: -0.042em; text-wrap: balance; max-width: 11ch; }
.hl { color: var(--orange); }
.lead { margin: 0; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--grey); max-width: 30em; text-wrap: pretty; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Eastward parts at hero scale ---------- */
.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.14em; }
.risk { position: relative; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--card); box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.risk.high { background: var(--violet-fill); border-color: var(--violet-line); }
.risk.medium { background: var(--blue-fill); border-color: var(--blue-line); }
.risk .cat { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t3); }
.risk h3 { margin: 6px 0 12px; font-size: 17px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--t1); text-wrap: balance; }
.strip { display: flex; border-radius: 9px; border: 1px solid var(--chip-line); background: var(--card); font-size: 14px; overflow: hidden; }
.strip > span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; color: var(--t2); white-space: nowrap; }
.strip > span + span { border-left: 1px solid var(--chip-line); }
.strip .total { flex: 1.15; font-weight: 600; color: var(--t1); }
.risk.high .strip, .risk.high .strip > span + span { border-color: var(--violet-strong-line); }
.risk.high .strip .total { background: var(--violet-strong); }
.risk.medium .strip, .risk.medium .strip > span + span { border-color: var(--blue-strong-line); }
.risk.medium .strip .total { background: var(--blue-strong); }
.change { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 10px; border-radius: 8px; background: var(--signal-soft); color: var(--signal-ink); font-size: 13px; font-weight: 600; }
.ring { box-shadow: 0 0 0 1.5px var(--signal), 0 0 0 6px var(--signal-ring); position: relative; z-index: 1; border-radius: 6px; }
.badge { position: absolute; top: -12px; right: -12px; width: 34px; height: 34px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--signal); font-size: 17px; box-shadow: 0 0 0 1px var(--signal), 0 0 0 5px var(--signal-ring), 0 6px 14px -4px rgba(255, 79, 0, 0.45); }
.cite { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--frame); color: var(--t2); font-size: 12px; font-weight: 500; white-space: nowrap; vertical-align: 1px; }
.cite .icon { color: var(--t3); }

@media (max-width: 900px) {
  .menu, .nav-cta .btn-ghost { display: none; }
  .wrap { padding: 0 16px; }
  .hero { min-height: 0; }
}

/* Smaller hero headline (mock, 6 Nov): about 25% under the original. */
html .hero .display { font-size: clamp(36px, 3.9vw, 56px); max-width: 13ch; line-height: 1.02; }
@media (max-width: 1180px) and (min-width: 901px) { html .hero .display { font-size: 46px; } }

/* Smaller hero visuals on laptops (mock, 6 Nov). The Newswire panel also sits higher. */
@media (min-width: 901px) {
  html #panel.panel { transform: scale(.86); transform-origin: 100% 0; top: clamp(72px, 9vh, 104px); }
  html #stage.stage { transform: scale(.86); transform-origin: 100% 0; }
  html #pods.pods { transform: scale(.86); transform-origin: 100% 0; }
}
@media (min-width: 901px) { html.armed #panel.panel.off { transform: translateY(18px) scale(.86); } }

/* Embedded in the site (?embed): the hero is exactly one screen tall. The copy sits in the vertical
   middle; type and visuals scale with the screen height (--s and --vtop come from shared.js). */
html.embed, html.embed body { background: transparent; }
html.embed .hero { height: 100vh; min-height: 0; }
html.embed .hero-inner { height: 100%; display: flex; align-items: center; padding-top: 0; padding-bottom: 56px; }
html.embed .hero .display { font-size: clamp(32px, min(3.9vw, 6.4vh), 56px); }
html.embed .hero .lead { font-size: clamp(16px, min(1.5vw, 2.4vh), 20px); }
html.embed .hero-copy { gap: clamp(14px, 3.2vh, 28px); }
@media (min-width: 901px) {
  html.embed #panel.panel, html.embed #pods.pods { top: var(--vtop, 72px); transform: scale(var(--s, .86)); }
  html.embed #stage.stage { top: var(--vtop, 0px); bottom: auto; height: var(--vh-nat, 760px); transform: scale(var(--s, .86)); }
  html.embed.armed #panel.panel.off { transform: translateY(18px) scale(var(--s, .86)); }
}
@media (max-width: 1180px) and (min-width: 901px) { html.embed .hero .display { font-size: clamp(32px, min(4.4vw, 6vh), 46px); } }
/* Phones and narrow tablets: copy first, then the top of the visual, faded where the screen ends. */
@media (max-width: 900px) {
  html.embed .hero { overflow: hidden; }
  html.embed .hero-inner { height: auto; display: block; padding-top: clamp(20px, 4vh, 40px); padding-bottom: 0; }
  html.embed #pods.pods { margin-top: 56px; }
  html.embed .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 8; pointer-events: none; background: linear-gradient(rgba(254, 248, 236, 0), var(--cream) 80%); }
}
