/* ====================================================================
   Somnus Flywheel — landing page
   Styles ported from somnus-purple.css (decks/v4/theme).
   Brand canon: "Somnus" = Montserrat, "Technologies" = Poppins.
   ==================================================================== */

:root {
  --primary: #6B5ECD;
  --midnight: #2A1F5C;
  --midnight-deep: #1a0f42;
  --lavender: #E8E4F8;
  --lavender-soft: #f3f0fb;
  --apricot: #F4A261;
  --cloud: #FAFAFC;
  --charcoal: #1F1B3A;
  --rule: #d8d4e8;
  --muted: #555;
  --muted-soft: #666;
  --font-wordmark: 'Montserrat', 'Helvetica', sans-serif;
  --font-body: 'Poppins', 'Helvetica', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cloud);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Brand wordmark — applies anywhere both spans appear together */
.brand-name   { font-family: var(--font-wordmark); }
.brand-suffix { font-family: var(--font-body); }

/* ====================================================================
   Sticky header
   ==================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(42, 31, 92, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(232, 228, 248, 0.12);
}
.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header__brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--cloud);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-header__brand .brand-name   { color: var(--cloud); }
.site-header__brand .brand-suffix { color: var(--lavender); opacity: 0.92; }

.btn {
  display: inline-block;
  font-family: var(--font-wordmark);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: var(--cloud);
}
.btn--primary:hover { background: #594fb8; }
.btn--ghost {
  background: transparent;
  color: var(--cloud);
  border-color: rgba(232, 228, 248, 0.45);
}
.btn--ghost:hover { background: rgba(232, 228, 248, 0.08); border-color: var(--lavender); }
.btn--lg { font-size: 14px; padding: 14px 26px; }

/* ====================================================================
   Hero
   ==================================================================== */
.hero {
  background: linear-gradient(135deg, var(--midnight) 0%, var(--midnight-deep) 50%, var(--midnight) 100%);
  color: var(--cloud);
  padding: 96px 24px 88px;
  position: relative;
}
.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.hero__wordmark {
  font-family: var(--font-wordmark);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 10px 0;
  color: var(--cloud);
}
.hero__eyebrow {
  font-family: var(--font-wordmark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lavender);
  opacity: 0.85;
  margin: 0 0 18px 0;
}
.hero__title {
  font-family: var(--font-wordmark);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 16px 0;
  color: var(--cloud);
}
.hero__subtitle {
  font-family: var(--font-wordmark);
  font-size: 22px;
  font-weight: 500;
  color: var(--apricot);
  margin: 0 0 24px 0;
  letter-spacing: 0.01em;
}
.hero__intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--lavender);
  max-width: 70ch;
  margin: 0 0 32px 0;
}
.hero__cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  border-top: 1px solid rgba(232, 228, 248, 0.3);
  padding-top: 22px;
  max-width: 720px;
}
.hero__meta-label {
  font-family: var(--font-wordmark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender);
  opacity: 0.85;
  margin-bottom: 6px;
}
.hero__meta-value {
  font-family: var(--font-wordmark);
  font-size: 20px;
  font-weight: 600;
  color: var(--cloud);
}
.hero__footline {
  font-size: 12px;
  color: var(--lavender);
  opacity: 0.85;
  margin-top: 28px;
  line-height: 1.6;
}
.hero__stamp {
  font-size: 11px;
  font-style: italic;
  color: var(--lavender);
  opacity: 0.7;
  margin-top: 6px;
}

/* ====================================================================
   Section base
   ==================================================================== */
.section {
  padding: 72px 24px;
  border-bottom: 1px solid var(--rule);
}
.section:last-of-type { border-bottom: none; }
.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section__inner--narrow { max-width: 820px; }

.eyebrow {
  font-family: var(--font-wordmark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px 0;
}

.section h2 {
  font-family: var(--font-wordmark);
  color: var(--midnight);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 22px 0;
  max-width: 28ch;
}

.section p { margin: 0 0 16px 0; max-width: 70ch; }
.section p:last-child { margin-bottom: 0; }

.lead {
  font-size: 19px;
  color: var(--midnight);
  line-height: 1.55;
  font-weight: 500;
  margin-bottom: 24px;
}

.source {
  font-size: 12px;
  color: var(--muted-soft);
  font-style: italic;
  line-height: 1.5;
  margin-top: 18px;
  max-width: 90ch;
}

.fda-disclaimer {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}

strong { color: var(--midnight); font-weight: 600; }
em { color: var(--primary); font-style: italic; }

/* ====================================================================
   Flywheel section
   ==================================================================== */
.flywheel-figure {
  margin: 8px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flywheel-figure img {
  width: 100%;
  max-width: 880px;
  height: auto;
  display: block;
}
.flywheel-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--primary);
  font-style: italic;
  max-width: 80ch;
  line-height: 1.5;
}

/* ====================================================================
   State of Play table
   ==================================================================== */
.sop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  margin: 16px 0 0 0;
}
.sop-table thead th {
  font-family: var(--font-wordmark);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--midnight);
  background: var(--lavender);
  padding: 10px 12px;
  border-bottom: 2px solid var(--primary);
  text-align: left;
  font-weight: 700;
}
.sop-table td {
  padding: 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.sop-table tr:last-child td { border-bottom: none; }
.sop-table .sop-num { width: 36px; color: var(--primary); font-weight: 700; }
.sop-table .sop-component { width: 200px; }
.sop-table .sop-status { width: 100px; }
.sop-table .sop-skills { width: 180px; }

.status-built   { color: #2a8c4a; font-weight: 600; }
.status-partial { color: #b88017; font-weight: 600; }
.status-open    { color: #884bbf; font-weight: 600; }

.sop-legend { font-size: 12px; color: var(--muted-soft); margin-top: 12px; }
.sop-legend strong { color: var(--midnight); }

/* ====================================================================
   Security spine — 5-card band
   ==================================================================== */
.spine-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.spine-card {
  background: var(--lavender);
  border-radius: 6px;
  padding: 22px 12px;
  text-align: center;
}
.spine-card__label {
  font-family: var(--font-wordmark);
  font-size: 14px;
  font-weight: 700;
  color: var(--midnight);
  letter-spacing: 0.06em;
}
.spine-card__sub {
  font-size: 12px;
  color: var(--charcoal);
  margin-top: 8px;
  line-height: 1.4;
}

/* ====================================================================
   Where the Leverage Is — ranked list
   ==================================================================== */
.rank-list { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.rank-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: start;
}
.rank-num {
  font-family: var(--font-wordmark);
  font-size: 44px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  text-align: right;
  padding-top: 4px;
}
.rank-title {
  font-family: var(--font-wordmark);
  font-size: 18px;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 4px;
}
.rank-body { font-size: 15px; line-height: 1.55; margin: 0; max-width: 75ch; }

/* ====================================================================
   How the work gets done — advisor groups
   ==================================================================== */
.advisor-group {
  margin-top: 24px;
}
.advisor-group__heading {
  font-family: var(--font-wordmark);
  font-size: 14px;
  font-weight: 700;
  color: var(--midnight);
  margin: 0 0 8px 0;
  letter-spacing: 0.02em;
}
.advisor-group p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 4px 0;
  max-width: 80ch;
}

/* ====================================================================
   Engagement — 2-card layout
   ==================================================================== */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.eng-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 26px 28px;
  box-shadow: 0 1px 2px rgba(42, 31, 92, 0.04);
}
.eng-card--purple {
  background: var(--lavender);
  border-color: var(--primary);
}
.eng-card__eyebrow {
  font-family: var(--font-wordmark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.eng-card__title {
  font-family: var(--font-wordmark);
  font-size: 18px;
  font-weight: 700;
  color: var(--midnight);
  margin: 0 0 10px 0;
}
.eng-card p { font-size: 15px; line-height: 1.55; margin: 0; }

.engagement-note {
  text-align: center;
  font-size: 14px;
  color: var(--primary);
  font-style: italic;
  margin: 22px auto 0;
  max-width: 80ch;
}

/* ====================================================================
   Next step — three stat blocks + contact
   ==================================================================== */
.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.next-stat {
  border-left: 4px solid var(--primary);
  padding-left: 14px;
}
.next-stat__value {
  font-family: var(--font-wordmark);
  font-size: 22px;
  font-weight: 700;
  color: var(--midnight);
  line-height: 1.25;
}
.next-stat__label {
  font-family: var(--font-wordmark);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-top: 10px;
}

.next-contact {
  font-family: var(--font-wordmark);
  font-size: 18px;
  font-weight: 600;
  color: var(--midnight);
  text-align: center;
  margin: 40px auto 0;
}
.next-contact a { color: var(--midnight); text-decoration: none; border-bottom: 1px solid var(--primary); }
.next-contact a:hover { color: var(--primary); }

/* ====================================================================
   Important Notices
   ==================================================================== */
.notices {
  background: var(--lavender-soft);
}
.notices p {
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 90ch;
}
.notices p strong { color: var(--midnight); }

/* ====================================================================
   Footer
   ==================================================================== */
.site-footer {
  background: var(--midnight);
  color: var(--lavender);
  padding: 42px 24px 36px;
  font-size: 13px;
  text-align: center;
}
.site-footer__inner { max-width: 1100px; margin: 0 auto; }
.site-footer p { margin: 4px 0; max-width: none; }
.site-footer a { color: var(--lavender); text-decoration: none; border-bottom: 1px solid rgba(232, 228, 248, 0.35); }
.site-footer a:hover { color: white; border-bottom-color: var(--lavender); }
.site-footer__confidential { font-size: 11px; font-style: italic; opacity: 0.75; margin-top: 14px; }

/* ====================================================================
   Responsive
   ==================================================================== */
@media (max-width: 880px) {
  body { font-size: 16px; }
  .hero { padding: 64px 20px 64px; }
  .hero__title { font-size: 38px; line-height: 1.1; }
  .hero__subtitle { font-size: 18px; }
  .hero__wordmark { font-size: 26px; }
  .hero__meta { grid-template-columns: 1fr; gap: 16px; }
  .section { padding: 56px 20px; }
  .section h2 { font-size: 26px; }
  .lead { font-size: 17px; }

  .spine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spine-card:last-child { grid-column: span 2; }

  .rank-item { grid-template-columns: 50px 1fr; gap: 14px; }
  .rank-num { font-size: 32px; }
  .rank-title { font-size: 16px; }
  .rank-body { font-size: 14px; }

  .engagement-grid { grid-template-columns: 1fr; gap: 18px; }
  .next-grid { grid-template-columns: 1fr; gap: 22px; }

  .site-header__inner { padding: 12px 18px; }
  .site-header__brand { font-size: 11px; }
  .btn { font-size: 12px; padding: 8px 14px; }
}

@media (max-width: 640px) {
  /* Convert State of Play to stacked cards on small screens */
  .sop-table thead { display: none; }
  .sop-table, .sop-table tbody, .sop-table tr, .sop-table td { display: block; width: 100%; }
  .sop-table tr {
    background: white;
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  .sop-table td {
    border: none;
    padding: 4px 0;
  }
  .sop-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-wordmark);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 2px;
  }
  .sop-table .sop-num { display: none; }
}

@media (max-width: 420px) {
  .spine-grid { grid-template-columns: 1fr; }
  .spine-card:last-child { grid-column: auto; }
  .hero__title { font-size: 32px; }
  .hero__cta-row { flex-direction: column; }
  .hero__cta-row .btn { width: 100%; text-align: center; }
}

@media print {
  .site-header { position: static; background: white; }
  .hero { background: white; color: var(--charcoal); }
  .hero__title, .hero__wordmark { color: var(--midnight); }
  .hero__intro, .hero__footline, .hero__stamp { color: var(--charcoal); }
  .site-footer { background: white; color: var(--charcoal); }
}
