/* One navigation drawer and footer across the public site. */
.site-header { backdrop-filter: none; background: var(--wash); }
.site-menu-open { overflow: hidden; }
.site-menu summary { list-style: none; }
.site-menu summary::-webkit-details-marker { display: none; }
.menu-trigger { gap: 8px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
.header-cta { height: var(--control-h); min-height: var(--control-h); padding: 0 14px; font-size: .88rem; }
.site-menu[open]::before { content: ''; position: fixed; inset: 0; z-index: 41; background: rgba(6, 18, 31, .48); }
.menu-panel { position: fixed; z-index: 42; top: 0; right: 0; width: min(420px, 100%); height: 100dvh; overflow-y: auto; overscroll-behavior: contain; padding: 28px 28px calc(28px + env(safe-area-inset-bottom, 0px)); border-left: 1px solid var(--line); background: var(--paper); box-shadow: -20px 0 60px rgba(0,0,0,.2); }
.menu-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.menu-heading strong { display: block; margin-top: 3px; color: var(--ink); font-size: 1.35rem; line-height: 1.2; }
.menu-eyebrow { color: var(--teal); font-size: .73rem; font-weight: 850; letter-spacing: .12em; }
.menu-close { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--wash); cursor: pointer; }
.menu-sections { padding: 8px 0 16px; }
.menu-sections section { padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
.menu-sections h2, .menu-sections .menu-section-label { margin: 0 0 8px; color: var(--muted); font: inherit; font-size: .76rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.menu-sections ul { list-style: none; padding: 0; margin: 0; }
.menu-sections a { display: block; margin: 1px -10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 750; text-decoration: none; }
.menu-sections a:hover, .menu-sections a:focus-visible { background: var(--teal-soft); color: var(--teal); }
.menu-trigger:focus-visible, .menu-close:focus-visible, .menu-sections a:focus-visible, .menu-cta:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.menu-cta { width: 100%; }
.site-footer { display: block; padding-top: 32px; text-align: left; }
.footer-layout { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 32px; width: 100%; }
.site-footer .footer-intro p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.footer-intro .footer-brand { color: var(--ink); font-size: 1.3rem; letter-spacing: -.02em; }
.footer-intro .footer-brand span { color: var(--teal); }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: left; }
.footer-group h2 { margin: 0 0 9px; color: var(--ink); font: inherit; font-size: .86rem; font-weight: 850; }
.footer-group .footer-links { display: grid; justify-content: start; gap: 4px; }
.footer-group .footer-links li { white-space: normal; }
.footer-group .footer-links li + li::before { content: none; }
.footer-group .footer-links a { padding: 2px 0; }
.site-footer .footer-note { display: flex; justify-content: flex-start; gap: 10px; margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .82rem; }
#hero-title .hero-title-line { display: block; white-space: nowrap; }
@media (min-width: 1100px) {
  #pricing .section-heading { width: 100%; max-width: none; }
  #pricing-title { white-space: nowrap; }
}
.story-controls { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 12px; }
.story-track { margin-bottom: 0; padding-bottom: 12px; }
.story-control { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); cursor: pointer; }
.story-control:hover:not(:disabled) { color: var(--teal); background: var(--teal-soft); }
.story-control:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.story-control:disabled { opacity: .4; cursor: default; }
.story-position { min-width: 92px; text-align: center; color: var(--muted); font-size: .85rem; font-weight: 750; }
@media (min-width: 921px) {
  .story { --story-h: min(calc(var(--frame-avail) - 178px), calc((min(100vw, var(--shell-max)) - 2 * var(--shell-gutter) - 200px) * 2 / 3)); }
}
html:has(.feature-page) { scroll-snap-type: none; }
.feature-page .feature-main { padding-bottom: 32px; }
.feature-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 80px); align-items: center; padding: clamp(52px, 8vw, 100px) 0 clamp(72px, 9vw, 120px); }
.feature-hero .hero-soft { max-width: 45ch; }
.feature-hero-media img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.feature-price { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 16px 0 0; }
.feature-explainer { padding: 20px 0 clamp(75px, 9vw, 120px); }
.feature-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.feature-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.feature-card p, .feature-related p, .feature-cta p { color: var(--muted); line-height: 1.6; }
.feature-card p { margin-bottom: 0; }
.feature-related { border-top: 1px solid var(--line); padding: 48px 0 60px; }
.feature-related ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.feature-related a { display: inline-block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 750; text-decoration: none; }
.feature-related a:hover { color: var(--teal); }
.feature-cta { border: 1px solid var(--line); border-radius: 14px; padding: clamp(32px, 5vw, 60px) 24px; background: var(--paper); text-align: center; }
.feature-cta p { margin: 12px 0 22px; }
.feature-page > .site-footer { padding-top: 12px; padding-bottom: 28px; }
@media (max-width: 920px) {
  .story { --story-h: min(calc(var(--frame-avail) - 180px), calc(82vw * 16 / 9)); }
  .feature-hero { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .feature-hero .hero-copy { align-items: center; }
  .feature-hero .hero-soft { max-width: 58ch; }
  .feature-hero-media { max-width: 680px; margin: auto; }
}
@media (max-width: 640px) {
  .site-header { gap: 8px; }
  .nav-links { gap: 6px; }
  .menu-trigger { padding-inline: 10px; }
  .feature-cards { grid-template-columns: 1fr; }
  .feature-hero { padding: 52px 0 72px; }
  .header-cta { font-size: .84rem; padding-inline: 10px; }
  .footer-layout { grid-template-columns: 1fr; gap: 16px; }
  .site-footer .footer-intro p { margin-top: 4px; }
  .footer-nav { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .footer-group { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: start; gap: 8px; }
  .footer-group h2 { margin: 2px 0 0; }
  .footer-group .footer-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 3px 14px; }
  .site-footer .footer-note { margin-top: 18px; }
}
@media (max-width: 920px) {
  #faq.panel-auto { min-height: calc(100dvh - var(--header-h)); }
  #waitlist.panel-viewport-end { height: auto; max-height: none; min-height: calc(100dvh - var(--header-h)); padding-bottom: env(safe-area-inset-bottom, 0px); overflow: visible; scroll-snap-stop: normal; }
  #waitlist .final-cta-inner { flex: 1 1 auto; min-height: auto; padding: 32px 0; }
  #waitlist .site-footer { margin-top: 0; }
  #waitlist.keyboard-open.panel-viewport-end { padding-bottom: calc(12px + var(--keyboard-inset, 0px) + env(safe-area-inset-bottom, 0px)); }
  #waitlist.keyboard-open .site-footer { display: block; }
}
@media (max-width: 420px) {
  .site-header .brand span { display: none; }
  .site-header .nav-links { flex-wrap: nowrap; }
}

/* Short, readable captions replace the headings baked into the story images. */
.story-slide { position: relative; }
.story-caption { position: absolute; z-index: 1; inset: 1px 1px auto; height: 16%; display: flex; align-items: center; justify-content: center; padding: 0 4%; border-radius: 17px 17px 0 0; background: #e5f3fc; color: #18425a; font-size: clamp(16px, 3.3vw, 42px); font-weight: 800; line-height: 1.15; text-align: center; }
[data-theme="dark"] .story-caption { background: #0c1c29; color: #e6f5ff; }
.footer-toggle { display: none; }
.footer-nav[hidden] { display: none !important; }
@media (max-width: 920px) { .story-caption { height: 12%; background: #e5f4fa; font-size: clamp(16px, 5vw, 26px); } [data-theme="dark"] .story-caption { background: #0c1c29; } }
@media (max-width: 640px) {
  .footer-toggle.is-ready { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 750; cursor: pointer; }
  .footer-toggle span { color: var(--teal); font-size: 1.3rem; line-height: 1; }
  .footer-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
  .footer-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
}

/* SHE-84: Mira hero, contrast, and Shelf it layout */
.hero-lead {
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  max-width: none;
}
.hero-block {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  font-weight: 650;
  line-height: 1.45;
}
@media (max-width: 920px) {
  .hero.panel-viewport {
    height: auto;
    max-height: none;
    min-height: calc(100svh - var(--header-h));
    overflow: visible;
    scroll-snap-stop: normal;
    padding-top: 32px;
    padding-bottom: 40px;
  }
}
.hero-price a,
#faq .faq-item a,
#pricing .price-fine a,
.privacy-more a {
  color: var(--ink);
  text-decoration: underline;
  font-weight: 750;
}
.story-lead {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 62ch;
}
.shelf-it-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}
.shelf-it-chip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
  box-shadow: var(--shadow);
  width: fit-content;
}
@media (min-width: 921px) {
  .shelf-it-layout { grid-template-columns: minmax(0, 1.1fr) auto; }
}

/* SHE-84: homepage See it. Shelf it. panel visual (Privacy panel layout). */
.shelf-it-media {
  position: relative;
  margin: 0;
  min-width: 0;
}
.shelf-it-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.shelf-it-media .shelf-it-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
}
@media (min-width: 921px) {
  .shelf-it-layout.kinny-layout { grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.2fr); }
}
@media (max-width: 640px) {
  .shelf-it-media .shelf-it-chip { position: static; margin-top: 12px; }
}

/* SHE-84: /shelf-it feature page (four cards, 2 x 2). */
.shelf-it-page .feature-hero .hero-soft { color: var(--ink); }
.shelf-it-page .feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-page .feature-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin: 0 0 16px;
}
.feature-page .feature-card .shelf-it-chip { margin: 0 0 16px; }
@media (max-width: 640px) {
  .shelf-it-page .feature-cards { grid-template-columns: 1fr; }
}

/* SHE-50 / SHE-84: alpha stage pill and slim banner (existing tokens only). */
.alpha-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--wash);
  border: 1px solid var(--teal-bright);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.alpha-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }
.alpha-pill--sm { height: 24px; font-size: 13px; padding: 0 10px; }
.hero-copy > .alpha-pill-row { margin: 0 0 12px; }
.hero > .alpha-banner-wrap {
  grid-column: 1 / -1;
  align-self: start;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: calc(-1 * var(--panel-pad-y, 8px));
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  z-index: 1;
}
.alpha-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
}
.alpha-banner--landing {
  width: min(var(--shell-max, 1280px), calc(100% - (2 * var(--shell-gutter, 32px))));
  margin: 0 auto;
  padding: 6px 0;
  box-sizing: border-box;
}
.alpha-banner__body { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 650; }
@media (max-width: 920px) {
  .alpha-banner--landing { width: min(100% - 24px, var(--shell-max, 1280px)); }
  .hero.hero-viewport:has(> .alpha-banner-wrap) { align-content: start; }
}

/* SHE-84: alpha price lines. Off in production until Terms MR !276 is merged and the
   lawyer's questions are cleared: the markup carries data-alpha-price + hidden, and the
   production Worker strips it (see ALPHA_PRICE_LINES in worker/src/index.ts). */
[data-alpha-price][hidden] { display: none !important; }
.price-alpha-lead {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 650;
  margin: 10px auto 0;
  max-width: 46ch;
  text-align: center;
}
.price-lock-details {
  margin: 14px auto 0;
  max-width: 60ch;
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.price-lock-details > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.price-lock-details > summary::-webkit-details-marker { display: none; }
.price-lock-details > summary::after { content: " \25BE"; color: var(--teal); }
.price-lock-details[open] > summary::after { content: " \25B4"; }
.price-alpha-fine {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px auto 0;
  max-width: 60ch;
  font-weight: 650;
}
