/* ============================================================
   Alumnus — product site
   Page layout and components for index.html. Brand tokens
   (color, type, spacing, motion) come from colors_and_type.css.
   ============================================================ */

:root {
  --page-max: 1180px;
  --gutter: 20px;
  --section-y: 88px;
  --header-h: 68px;
  --ink-wash: #14110D;
  --bone-72: rgba(242, 237, 226, 0.72);
  --bone-56: rgba(242, 237, 226, 0.56);
  --bone-14: rgba(242, 237, 226, 0.14);
}
@media (min-width: 720px)  { :root { --gutter: 40px; --section-y: 120px; } }
@media (min-width: 1100px) { :root { --gutter: 64px; --section-y: 144px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.page { overflow-x: clip; }

.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--color-ivy); color: var(--color-bone);
  padding: 10px 16px; border-radius: var(--radius-md); text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--color-brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Type ─────────────────────────────────────────────────── */

.eyebrow {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-brass-dark);
  margin-bottom: 20px;
}
.on-dark .eyebrow { color: var(--color-brass-soft); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--fg-secondary);
  text-wrap: pretty;
}
.on-dark .lede { color: var(--bone-72); }

.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.5;
  padding-left: 20px;
  border-left: 2px solid var(--color-brass);
}

.fine {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-tertiary);
}
.on-dark .fine { color: var(--bone-56); }

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}
.btn i { font-size: 18px; }
.btn--brass { background: var(--color-brass); color: var(--color-ink); }
.btn--brass:hover { background: var(--color-brass-soft); }
.btn--ivy { background: var(--color-ivy); color: var(--color-bone); }
.btn--ivy:hover { background: var(--color-ivy-dark); }
.btn--ghost { border-color: var(--border-hairline); color: var(--fg-primary); }
.btn--ghost:hover { border-color: var(--color-ink); }
.on-dark .btn--ghost { border-color: rgba(242, 237, 226, 0.28); color: var(--color-bone); }
.on-dark .btn--ghost:hover { border-color: var(--color-bone); }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Header ───────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-ivy);
  color: var(--color-bone);
  transition: background var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease),
              box-shadow var(--dur-slow) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(242, 237, 226, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--color-ink);
  box-shadow: 0 1px 0 var(--border-hairline);
}
.site-header .bar {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.brand svg { width: 22px; height: 28px; }
.brand span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none;
  font-size: 14.5px;
  opacity: 0.78;
  transition: opacity var(--dur-fast) var(--ease);
}
.nav a:hover { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.site-header .btn--header { background: var(--color-brass); color: var(--color-ink); }
.site-header .btn--header:hover { background: var(--color-brass-soft); }
.site-header.is-scrolled .btn--header { background: var(--color-ivy); color: var(--color-bone); }
.site-header.is-scrolled .btn--header:hover { background: var(--color-ivy-dark); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; color: inherit;
  border: 1px solid currentColor; border-color: rgba(127, 127, 127, 0.35);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.menu-btn i { font-size: 20px; }
.menu-btn .ph-x { display: none; }
.menu-open .menu-btn .ph-list { display: none; }
.menu-open .menu-btn .ph-x { display: inline; }

.mobile-nav { display: none; }

@media (max-width: 959px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-open .mobile-nav {
    display: flex; flex-direction: column;
    padding: 8px var(--gutter) 24px;
    border-top: 1px solid rgba(127, 127, 127, 0.2);
  }
  .mobile-nav a:not(.btn) {
    padding: 14px 0;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 22px;
    border-bottom: 1px solid rgba(127, 127, 127, 0.18);
  }
  .mobile-nav .btn { margin-top: 20px; }
}
@media (max-width: 519px) {
  .header-actions .btn--header { display: none; }
}

/* ── Product shots (filled by src/site-shots.jsx) ─────────── */

.shot {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Size comes from the aspect ratio alone, never the native-size screen inside */
  contain: size layout paint;
  background: rgba(20, 24, 31, 0.06);
}
.on-dark .shot { background: rgba(242, 237, 226, 0.07); }
.shot.is-ready { background: transparent; }
.shot.is-ready > div { animation: shot-in 600ms var(--ease) both; }
@keyframes shot-in { from { opacity: 0; } to { opacity: 1; } }

.shot--member {
  aspect-ratio: 360 / 760;
  border-radius: 12.2% / 5.8%;
  box-shadow: 0 40px 70px -34px rgba(12, 16, 14, 0.5), 0 0 0 1px rgba(20, 24, 31, 0.08);
}
.shot--partner {
  aspect-ratio: 400 / 820;
  border-radius: 11% / 5.4%;
  box-shadow: 0 40px 70px -34px rgba(12, 16, 14, 0.5), 0 0 0 1px rgba(20, 24, 31, 0.08);
}
.shot--console {
  aspect-ratio: 1280 / 840;
  border-radius: 10px;
  box-shadow: 0 50px 90px -40px rgba(12, 16, 14, 0.55), 0 0 0 1px rgba(20, 24, 31, 0.1);
}
.on-dark .shot--console { box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(168, 132, 60, 0.22); }

.shot-caption {
  margin-top: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-tertiary);
  text-align: center;
}
.on-dark .shot-caption { color: var(--bone-56); }

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 96px);
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(168, 132, 60, 0.18), transparent 70%),
    linear-gradient(to bottom, var(--color-ivy) 0, var(--color-ivy) calc(100% - var(--hero-tail)), var(--bg-page) calc(100% - var(--hero-tail)));
  color: var(--color-bone);
  --hero-tail: clamp(80px, 13vw, 190px);
}
.hero-copy { max-width: 920px; margin: 0 auto; text-align: center; }
.hero .display { color: var(--color-bone); }
.hero .lede { max-width: 660px; margin: 28px auto 0; }
.hero .actions { justify-content: center; margin-top: 36px; }
.hero .fine { margin-top: 22px; }

.hero-stage {
  position: relative;
  max-width: 1120px;
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding-bottom: 7%;
}
.hero-console { width: 82%; margin: 0 auto; }
.hero-phone { position: absolute; bottom: 0; width: 21%; z-index: 2; }
.hero-phone--member { left: 0; }
.hero-phone--partner { right: 0; bottom: 3%; width: 22%; }

@media (max-width: 719px) {
  .hero .actions .btn { flex: 1 1 100%; }
  .hero-stage { padding-bottom: 46%; }
  .hero-console { width: 100%; }
  .hero-phone { width: 40%; bottom: 0; }
  .hero-phone--member { left: 6%; }
  .hero-phone--partner { right: 6%; width: 41%; bottom: 4%; }
}

/* ── Sections ─────────────────────────────────────────────── */

.section { padding: var(--section-y) 0; }
.section--dark { background: var(--color-ivy); color: var(--color-bone); }
.section--ink {
  background: radial-gradient(1000px 560px at 10% 0%, rgba(168, 132, 60, 0.12), transparent 70%), var(--ink-wash);
  color: var(--color-bone);
}
.section--surface { background: var(--bg-surface); }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .lede { margin-top: 24px; }

/* Why */
.why {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 960px) {
  .why { grid-template-columns: 5fr 6fr; gap: 80px; align-items: end; }
}
.why .cite { margin-top: 16px; }

.trio {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--border-hairline);
}
@media (min-width: 820px) {
  .trio { grid-template-columns: repeat(3, 1fr); }
  .trio > * + * { border-left: 1px solid var(--border-hairline); }
}
.trio-item { padding: 32px 0; border-bottom: 1px solid var(--border-hairline); }
@media (min-width: 820px) {
  .trio-item { padding: 36px 36px 8px; border-bottom: none; }
  .trio-item:first-child { padding-left: 0; }
}
.trio-item i { font-size: 26px; color: var(--color-ivy); }
.trio-item h3 {
  margin: 18px 0 10px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.trio-item p { font-size: 15.5px; color: var(--fg-secondary); }

/* How it works — sticky device on wide screens, inline shots below */
.how { display: grid; grid-template-columns: 1fr; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 40px 0; border-top: 1px solid var(--border-hairline); }
.step:last-child { border-bottom: 1px solid var(--border-hairline); }
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-brass-dark);
  margin-bottom: 14px;
}
.step .h3 { margin-bottom: 16px; }
.step p { color: var(--fg-secondary); max-width: 520px; }
.step-shot { width: min(72%, 280px); margin: 36px auto 0; }
.how-device { display: none; }

@media (min-width: 960px) {
  .how { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); gap: clamp(64px, 8vw, 120px); }
  .step {
    min-height: 72vh;
    display: flex; flex-direction: column; justify-content: center;
    border: none;
    opacity: 0.3;
    transition: opacity var(--dur-slow) var(--ease);
  }
  .step:first-child { justify-content: flex-start; padding-top: 24px; }
  .step:last-child { border: none; }
  .step.is-active { opacity: 1; }
  .step-shot { display: none; }
  .how-device {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + max(24px, (100vh - var(--header-h) - 760px) / 2));
    align-self: start;
  }
  .device-stack { position: relative; aspect-ratio: 360 / 760; }
  .device-stack .shot {
    position: absolute; top: 0; left: 0;
    opacity: 0;
    transition: opacity 500ms var(--ease);
  }
  .device-stack .shot.is-active { opacity: 1; }
  .device-stack .shot--partner { width: 100%; }
}
@media (min-width: 960px) and (max-height: 860px) {
  .how-device { max-width: 300px; justify-self: center; width: 100%; }
}

/* Product surfaces */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.feature + .feature { margin-top: clamp(96px, 12vw, 160px); }
.feature > * { min-width: 0; }
@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(56px, 7vw, 104px); }
  .feature--flip .feature-copy { order: 2; }
  .feature--wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.feature-copy .h3 { margin-bottom: 18px; }
.feature-copy > p { color: var(--fg-secondary); }

.checklist {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--border-hairline);
}
.checklist li {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 15.5px;
  line-height: 1.5;
}
.checklist i { font-size: 19px; color: var(--color-ivy); margin-top: 2px; flex-shrink: 0; }

.duo {
  position: relative;
  width: min(100%, 480px);
  margin: 0 auto;
  aspect-ratio: 480 / 580;
}
.duo .shot { position: absolute; }
.duo .shot:first-child { left: 0; top: 0; z-index: 2; width: 52%; }
.duo .shot:last-child { right: 0; top: 9%; z-index: 1; width: 50%; }

/* Privacy */
.privacy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 960px) {
  .privacy { grid-template-columns: 7fr 4fr; gap: clamp(64px, 8vw, 120px); }
}
.privacy .quote { margin-top: 32px; color: var(--color-bone); }
.privacy-media { width: min(70%, 320px); margin: 0 auto; }

.promises {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 48px;
  border-top: 1px solid var(--bone-14);
}
@media (min-width: 640px) {
  .promises { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
.promise {
  display: flex; gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--bone-14);
}
.promise i { font-size: 24px; color: var(--color-brass-soft); flex-shrink: 0; margin-top: 2px; }
.promise h3 { font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.promise p { font-size: 15px; line-height: 1.55; color: var(--bone-72); }

/* Outcomes */
.outcomes-shot { max-width: 1120px; margin: 0 auto; }
.measures {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--border-hairline);
}
@media (min-width: 820px) {
  .measures { grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
}
.measure { padding: 28px 0; border-bottom: 1px solid var(--border-hairline); }
@media (min-width: 820px) { .measure { border-bottom: none; } }
.measure h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.measure p { font-size: 15.5px; color: var(--fg-secondary); }

.reports {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 40px;
}
.reports .fine { margin-right: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--bg-page);
  font-size: 14px;
}
.chip i { color: var(--color-brass-dark); font-size: 16px; }

/* Walkthrough */
.walk {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 960px) { .walk { grid-template-columns: 6fr 5fr; gap: 96px; } }
.walk .lede { margin-top: 24px; }
.walk .actions { margin-top: 36px; }

.beats { list-style: none; margin: 0; padding: 0; position: relative; }
.beats::before {
  content: "";
  position: absolute; left: 5px; top: 10px; bottom: 10px;
  width: 1px; background: rgba(168, 132, 60, 0.4);
}
.beats li { position: relative; padding: 0 0 22px 36px; }
.beats li:last-child { padding-bottom: 0; }
.beats li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 11px; height: 11px; border-radius: 999px;
  background: var(--ink-wash);
  border: 1.5px solid var(--color-brass);
}
.beats li.is-key::before { background: var(--color-brass); }
.beats .day {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-brass-soft);
}
.beats .what {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.35;
  color: var(--color-bone);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 960px) { .faq-grid { grid-template-columns: 4fr 7fr; gap: 96px; } }
.faq-grid .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--border-hairline); }
.faq details { border-bottom: 1px solid var(--border-hairline); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  font-size: 18px;
  color: var(--color-brass-dark);
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease);
}
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 640px; color: var(--fg-secondary); }

/* Contact */
.contact { text-align: center; max-width: 820px; margin: 0 auto; }
.contact .lede { margin: 28px auto 0; max-width: 640px; }
.contact .actions { justify-content: center; margin-top: 40px; }
.contact .fine { margin-top: 40px; }

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  background: var(--color-ivy-dark);
  color: var(--color-bone);
  padding: 72px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 820px) { .footer-top { grid-template-columns: 5fr 7fr; } }
.footer-top .fine { margin-top: 16px; max-width: 340px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols h2 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brass-soft);
  margin-bottom: 16px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li + li { margin-top: 10px; }
.footer-cols a { text-decoration: none; font-size: 15px; color: var(--bone-72); }
.footer-cols a:hover { color: var(--color-bone); }

.crisis {
  margin-top: 56px;
  padding: 20px 22px;
  border: 1px solid var(--bone-14);
  border-radius: var(--radius-sm);
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--bone-72);
}
.crisis i { font-size: 20px; color: var(--color-brass-soft); margin-top: 1px; flex-shrink: 0; }
.crisis strong { color: var(--color-bone); font-weight: 600; }
.crisis a { color: var(--color-bone); }

.footer-base {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--bone-14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}
