/* ────────────────────────────────────────────────────────────
   PersonaliMe marketing site
   Brand colors and typography mirror the Flutter app exactly.
   ──────────────────────────────────────────────────────────── */

:root {
  --violet: #9B7FF4;
  --teal:   #2EC4B6;
  --sage:   #7BC47A;
  --navy:   #1A1F3A;
  --white:  #FFFFFF;
  --light-grey: #F4F4F8;
  --muted:  #6B7280;
  --border: #E5E7EB;

  --gradient: linear-gradient(135deg, var(--violet), var(--teal));
  --shadow-sm: 0 2px 6px rgba(26, 31, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 31, 58, 0.08);
  --shadow-lg: 0 18px 48px rgba(26, 31, 58, 0.18);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Defensive safety net — guarantees the page never scrolls sideways
   even if a future addition accidentally introduces an overflowing
   element. Mobile breakpoints handle each known case explicitly. */
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Gradient text token — used for the heroic phrase + accents. */
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Eyebrow chips ────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(155, 127, 244, 0.12);
  color: var(--violet);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.eyebrow--light {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet);
}
.eyebrow--light .eyebrow__dot { background: var(--white); }
.eyebrow--inline { margin-bottom: 14px; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
}
.nav__brand:hover { text-decoration: none; }
.nav__logo {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--gradient);
  display: grid;
  place-items: center;
}
.nav__logo-text {
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.nav__wordmark {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}
.nav__links a {
  color: var(--muted);
}
.nav__links a:hover {
  color: var(--navy);
  text-decoration: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.pill--coming {
  background: rgba(46, 196, 182, 0.12);
  color: var(--teal);
}
.pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(46, 196, 182, 0.06); }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(155, 127, 244, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 14px 30px rgba(155, 127, 244, 0.45);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(26, 31, 58, 0.18);
}
.btn--ghost:hover {
  border-color: var(--navy);
}
.btn--app-store {
  background: var(--navy);
  color: var(--white);
  padding: 10px 22px 10px 18px;
}
.btn--app-store .btn__icon {
  width: 26px; height: 26px;
  flex-shrink: 0;
}
.btn--app-store .btn__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.btn--app-store .btn__copy small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.78;
}
.btn--app-store .btn__copy strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* ── Section heads (shared) ──────────────────────────────── */
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin: 0 0 12px;
}
.section-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 28px 120px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(46, 196, 182, 0.10), transparent 60%),
    radial-gradient(100% 100% at 0% 100%, rgba(155, 127, 244, 0.12), transparent 55%),
    var(--white);
  /* Full-bleed background — the gradient and blobs extend edge-to-edge
     on every viewport. The max-width constraint moves to .hero__content
     below so the inner content stays comfortably centered while the
     background fills the screen. */
  width: 100%;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
  z-index: 0;
}
.hero__blob--violet {
  top: -120px; right: -100px;
  width: 360px; height: 360px;
  background: rgba(155, 127, 244, 0.4);
}
.hero__blob--teal {
  bottom: -120px; left: -120px;
  width: 320px; height: 320px;
  background: rgba(46, 196, 182, 0.35);
}
.hero__content,
.hero__device {
  position: relative;
  z-index: 1;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  /* (max-width / centering moved off the section so the gradient bg
     spans the viewport — see .hero__content below for the inner cap.) */
}
.hero__headline {
  font-size: clamp(44px, 6.6vw, 76px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1.8px;
  margin: 18px 0 22px;
}
.hero__sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.65;
  margin: 0 0 28px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.hero__caption {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin: 0;
}

/* ── Hero device mockup ───────────────────────────────────── */
.hero__device {
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 290px;
  /* Never let the device mockup exceed the available horizontal space
     — caps it at the column width on really narrow phones. */
  max-width: 100%;
  aspect-ratio: 9 / 19;
  background: var(--navy);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 30px 80px rgba(26, 31, 58, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone__notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #000;
  border-radius: 16px;
  z-index: 2;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--navy);
  /* Triple defensive clipping. The .card-mock__blob children use
     filter: blur(), and Safari (iOS WebKit in particular) has a long-
     standing bug where overflow:hidden + border-radius on a parent
     fails to clip filtered descendants. We hit it with three
     mechanisms that work in different browser layout passes:
       1. transform + isolation → forces own compositing layer
       2. clip-path: inset(0 round 32px) → hard-clip after layout
       3. border-radius + overflow:hidden on .card-mock itself (below)
     Any one of them on its own is usually enough; running all three
     guarantees a clean rounded corner on every engine. */
  transform: translateZ(0);
  isolation: isolate;
  clip-path: inset(0 round 32px);
}
.card-mock {
  position: relative;
  width: 100%; height: 100%;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--navy) 0%, #2A3060 55%, var(--violet) 110%);
  color: var(--white);
  /* Inner defensive clip — the rounded corner is applied here as
     well so the blurred blobs are clipped before they even reach the
     phone__screen's clip-path. */
  border-radius: 32px;
  overflow: hidden;
}
.card-mock__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(34px);
  z-index: 0;
}
.card-mock__blob--a {
  top: -30px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(46, 196, 182, 0.5);
}
.card-mock__blob--b {
  bottom: -50px; left: -30px;
  width: 180px; height: 180px;
  background: rgba(123, 196, 122, 0.35);
}
.card-mock__top,
.card-mock__body,
.card-mock__chips,
.card-mock__foot {
  position: relative;
  z-index: 1;
}
.card-mock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-mock__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-mock__brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--gradient);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.card-mock__brand-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.card-mock__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.card-mock__chip-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--white);
}
.card-mock__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 18px 0;
}
.card-mock__for {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.65;
}
.card-mock__title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.12;
  margin: 10px 0 16px;
}
.card-mock__rule {
  width: 32px; height: 3px;
  background: var(--white);
  border-radius: 2px;
  margin-bottom: 16px;
}
.card-mock__copy {
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.92;
  font-weight: 500;
  margin: 0;
}
.card-mock__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.card-mock__type-chip {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.card-mock__foot {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  opacity: 0.55;
}

/* ── Features ─────────────────────────────────────────────── */
.features {
  padding: 100px 28px 60px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  position: relative;
  padding: 32px 28px;
  background: var(--white);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: var(--white);
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card--violet .feature-card__icon {
  background: linear-gradient(135deg, #9B7FF4, #7B6BE8);
}
.feature-card--teal .feature-card__icon {
  background: linear-gradient(135deg, #2EC4B6, #1AA89B);
}
.feature-card--sage .feature-card__icon {
  background: linear-gradient(135deg, #7BC47A, #5FAB60);
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Assessments grid ─────────────────────────────────────── */
.assessments {
  padding: 80px 28px;
  background: var(--light-grey);
}
.assessments .section-head { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.assess-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.assess-card {
  display: block;
  background: var(--white);
  border-radius: 18px;
  padding: 22px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* Was originally an <article>; now an <a> linking to its blog post.
     Reset the default link styling so the card still looks like a card. */
  color: inherit;
  text-decoration: none;
}
.assess-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--c) 35%, transparent);
  text-decoration: none;
}
.assess-card__badge {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
  font-weight: 900;
  font-size: 17px;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.assess-card h4 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 0 0 6px;
  color: var(--navy);
}
.assess-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Waitlist ─────────────────────────────────────────────── */
.waitlist {
  padding: 100px 28px;
  background:
    radial-gradient(80% 60% at 20% 0%, rgba(155, 127, 244, 0.22), transparent 60%),
    radial-gradient(80% 60% at 80% 100%, rgba(46, 196, 182, 0.18), transparent 60%),
    var(--navy);
  color: var(--white);
  text-align: center;
}
.waitlist__inner {
  max-width: 640px;
  margin: 0 auto;
}
.waitlist__heading {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.8px;
  margin: 14px 0 14px;
}
.waitlist__sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 28px;
}
.waitlist__form {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 480px;
  margin: 0 auto;
}
.waitlist__input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 16px;
}
.waitlist__input::placeholder { color: rgba(255, 255, 255, 0.5); }
.waitlist__submit {
  white-space: nowrap;
  padding: 12px 22px;
  font-size: 14px;
}
.waitlist__status {
  margin: 16px 0 0;
  min-height: 1.3em;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}
.waitlist__status.is-error { color: #FCA5A5; }
.waitlist__status.is-success { color: #BBE9B5; }

.waitlist__milestones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.milestone__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}
.milestone__value {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.milestone__sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 20px;
  font-weight: 800;
}

/* ── Legal sections ───────────────────────────────────────── */
.legal {
  padding: 80px 28px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.legal + .legal { border-top: 1px solid var(--border); }
.legal__inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.6px;
  margin: 8px 0 6px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 28px 0 8px;
  color: var(--navy);
}
.legal p, .legal li {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.7;
}
.legal ul {
  padding-left: 22px;
  margin: 8px 0 16px;
}
.legal li { margin-bottom: 6px; }
.legal__updated {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 18px;
}
.legal__permalink {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 56px 28px 40px;
  background: var(--light-grey);
  border-top: 1px solid var(--border);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
}
.footer__logo {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--gradient);
  display: grid; place-items: center;
}
.footer__logo-text {
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.footer__wordmark {
  font-size: 15px;
  font-weight: 800;
}
.footer__links {
  display: flex;
  /* Always wrap. With six links the row gets long fast — keeping wrap
     on at every viewport means narrow screens never overflow and wide
     screens see no visible difference (all six fit on one line). */
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 20px;
  row-gap: 10px;
  font-size: 13px;
  font-weight: 700;
  justify-self: center;
  /* CRITICAL — without this cap, justify-self:center lets the flex
     container size to its content (~389px) and the wrap never fires,
     even when the parent is narrower than that. The cap forces the
     wrap behavior to actually engage. */
  max-width: 100%;
}
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--navy); text-decoration: none; }
.footer__social {
  display: flex;
  gap: 12px;
  justify-self: end;
}
.social {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--muted);
  display: grid; place-items: center;
  transition: color 0.15s ease, transform 0.15s ease;
}
.social:hover {
  color: var(--violet);
  transform: translateY(-1px);
}
.social svg { width: 16px; height: 16px; }
.footer__copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin: 24px 0 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px 80px;
    gap: 40px;
  }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .nav__links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .assess-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer__links, .footer__social { justify-self: center; }
}
@media (max-width: 560px) {
  /* ── Nav ────────────────────────────────────────────────── */
  .nav { padding: 14px 18px; }
  .pill--coming { display: none; }

  /* ── Hero ───────────────────────────────────────────────── */
  .hero { padding: 48px 20px 72px; gap: 32px; }
  .hero__headline { letter-spacing: -1px; }
  /* Stretch hero CTAs to full row width so they wrap cleanly and have
     comfortable tap targets without overflowing on narrow screens. */
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 240px; justify-content: center; }
  .btn--app-store .btn__copy { align-items: center; }

  /* ── Sections ───────────────────────────────────────────── */
  .features { padding: 60px 20px 48px; }
  .assess-grid { grid-template-columns: 1fr; }
  .assessments { padding: 60px 20px; }
  .waitlist { padding: 72px 20px; }
  .waitlist__form { flex-direction: column; border-radius: 20px; }
  .waitlist__submit { width: 100%; justify-content: center; }
  .legal { padding: 56px 20px; }
  .legal h1 { font-size: 30px !important; }
  .legal h2 { font-size: 26px; }

  /* ── Blog ───────────────────────────────────────────────── */
  .blog-hero { padding: 48px 20px 40px; }
  .blog-list { padding: 32px 20px 64px; }
  .post-hero { padding: 40px 20px 32px; }
  .post-body { padding: 32px 20px 24px; }
  .post-cta { padding: 24px 20px 36px; }
  .post-cta__card { padding: 24px 22px; }
  .post-foot-nav { padding: 0 20px 48px; gap: 12px; }

  /* ── Footer ─────────────────────────────────────────────── */
  .footer { padding: 40px 20px 32px; }
  /* Switch from flex-wrap to a tight 3×2 grid on mobile. Filling
     column-first (grid-auto-flow: column) means the six links land as:
        col 1: Features      / Assessments
        col 2: Waitlist      / Blog
        col 3: Privacy       / Terms
     keeping the legal pair stacked together in the rightmost column
     instead of orphaning Terms on its own row. */
  .footer__links {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    column-gap: 22px;
    row-gap: 8px;
    font-size: 12.5px;
    justify-content: center;
  }
}

/* Smallest common phones (iPhone SE 1st gen / Galaxy S8 portrait, ~360px).
   Cap the device mockup so it never crowds the safe area on these. */
@media (max-width: 400px) {
  .nav { padding: 12px 14px; }
  .nav__wordmark { font-size: 16px; }
  .hero { padding: 40px 16px 56px; }
  .hero__headline { font-size: clamp(36px, 11vw, 44px); letter-spacing: -0.8px; }
  .phone { width: 100%; max-width: 280px; }
  .footer__links { column-gap: 12px; }
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ────────────────────────────────────────────────────────────
   Blog — index + post pages
   ──────────────────────────────────────────────────────────── */

/* Shared blog hero */
.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 28px 100px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(155, 127, 244, 0.18), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(46, 196, 182, 0.14), transparent 60%),
    var(--navy);
  color: var(--white);
}
.blog-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.blog-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 18px 0 14px;
  color: var(--white);
}
.blog-hero p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0;
}

/* Index grid */
.blog-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 28px 100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px) {
  .blog-list { grid-template-columns: 1fr; padding: 44px 24px 80px; }
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  background: var(--white);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--c, var(--violet)) 35%, transparent);
  text-decoration: none;
}
.blog-card__badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--c, var(--violet)) 18%, transparent);
  color: var(--c, var(--violet));
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.blog-card__meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.blog-card h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.blog-card__excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
  flex: 1;
}
.blog-card__more {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--c, var(--violet));
}

/* Individual post page */
.post-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 28px 80px;
  background:
    radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--c, var(--violet)) 32%, transparent), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(46, 196, 182, 0.14), transparent 60%),
    var(--navy);
  color: var(--white);
}
.post-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 28px;
}
.post-back:hover {
  color: var(--white);
  text-decoration: none;
}
.post-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.post-hero h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.12;
  margin: 0 0 18px;
}
.post-hero__lede {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 640px;
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 32px;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--navy);
}
.post-body p {
  margin: 0 0 20px;
}
.post-body h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 40px 0 14px;
  color: var(--navy);
}
.post-body h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 28px 0 10px;
}
.post-body ul {
  padding-left: 22px;
  margin: 0 0 20px;
}
.post-body li {
  margin-bottom: 8px;
}
.post-body strong {
  font-weight: 800;
}

.post-cta {
  max-width: 720px;
  margin: 0 auto 100px;
  padding: 32px 28px;
}
.post-cta__card {
  padding: 28px 28px 26px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--c, var(--violet)) 25%, transparent);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--c, var(--violet)) 8%, transparent),
    color-mix(in srgb, var(--c, var(--violet)) 3%, transparent));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-cta__card h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0;
  color: var(--navy);
}
.post-cta__card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.post-cta__card .btn {
  align-self: flex-start;
  background: var(--c, var(--gradient));
  color: var(--white);
  padding: 12px 22px;
}

.post-foot-nav {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
}
.post-foot-nav a {
  color: var(--muted);
  text-decoration: none;
}
.post-foot-nav a:hover {
  color: var(--violet);
  text-decoration: none;
}

/* ────────────────────────────────────────────────────────────
   Landing-page revisions (May 2026):
   text-only hero + pain section + Connections showcase + a
   dedicated Daily Insight section that holds the phone mockup
   that used to live in the hero. Waitlist gains a social-proof
   line above the form and a one-time-purchase trust line below.
   ──────────────────────────────────────────────────────────── */

/* ── Hero (text-only variant) ────────────────────────────── */
/* Background stays full-bleed — we cap the INNER content, not the
   section itself, so the gradient and blobs extend to the viewport
   edges with no white gutters. */
.hero.hero--text {
  display: block;
  text-align: center;
  padding: 96px 28px 80px;
  max-width: none;
  margin: 0;
}
.hero.hero--text .hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}
.hero.hero--text .hero__headline {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -1.4px;
  line-height: 1.04;
  margin: 18px 0 22px;
}
.hero.hero--text .hero__sub {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
}
.hero.hero--text .hero__ctas {
  justify-content: center;
  margin-bottom: 14px;
}

/* "One purchase. No subscriptions." line under CTA */
.hero__commerce {
  margin: 4px 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1px;
}

/* ── Pain point — one centered paragraph, nothing else ──── */
.pain {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 28px 64px;
  text-align: center;
}
.pain p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--navy);
  font-weight: 500;
  margin: 0;
}

/* ── Connections showcase — dark, app-like, vertical stack ─
   Section background matches the app's navy so the showcase reads
   as "you're already inside the product." Cards are dark surfaces
   with a colored left edge + a small framework pill at the top
   matching the framework's brand color. */
.showcase {
  background: var(--navy); /* #1A1F3A — same as the app body */
  padding: 84px 28px 80px;
  width: 100%;
}
.showcase__inner {
  max-width: 760px;
  margin: 0 auto;
}
.showcase .section-head {
  max-width: 720px;
  margin: 0 auto 36px;
}
.showcase .section-head h2 {
  color: var(--white);
}

/* Vertically stacked cards — one column at every width. */
.showcase__cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.showcase-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--c);
  border-radius: 16px;
  padding: 22px 24px 24px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.showcase-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
.showcase-card__label {
  display: inline-block;
  padding: 4px 12px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.showcase-card__body {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  font-weight: 500;
}
/* Pull-quote treatment — this single line carries the whole value
   proposition (every insight is personalized to YOUR exact combo of
   results), so it gets headline weight, white text, generous
   breathing room, and a violet accent on the key phrase. */
.showcase__pullquote {
  max-width: 720px;
  margin: 64px auto 8px;
  padding: 0 4px;
  text-align: center;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.95);
}
.showcase__pullquote-accent {
  color: var(--violet);
  font-weight: 800;
  /* very subtle violet ghost beneath the phrase — gives a
     "highlighted" feeling without overpowering the line. */
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(155, 127, 244, 0.18) 60%,
    rgba(155, 127, 244, 0.18) 95%,
    transparent 95%
  );
  padding: 0 2px;
  border-radius: 2px;
}

/* ── Daily insight — intro line + phone mockup ─────────── */
.daily-insight {
  padding: 56px 28px 80px;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.daily-insight__intro {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  font-weight: 600;
}
.daily-insight__device {
  display: flex;
  justify-content: center;
}

/* ── Waitlist additions: social proof + trust line ───── */
.waitlist__social-proof {
  margin: -8px 0 22px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.1px;
}
.waitlist__trust {
  margin: 18px auto 0;
  max-width: 480px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

/* ── Mobile tightening for new sections ──────────────── */
@media (max-width: 760px) {
  .showcase { padding: 64px 20px 56px; }
  .showcase__cards { gap: 12px; }
  .showcase-card { padding: 20px 20px 22px; border-radius: 14px; }
  .showcase-card__body { font-size: 15px; }
  .daily-insight { padding: 32px 20px 64px; }
  .pain { padding: 16px 20px 40px; }
  .pain p { font-size: 16px; }
}

/* Constrain the phone mockup BEFORE it has a chance to outgrow its
   section — the daily-insight section gets 20px of horizontal padding
   on mobile (40px combined), so on a 393px iPhone the inner width is
   353px. The phone was 290px fixed, which left it visually adrift on
   one side AND poked into the section padding at narrower widths. */
@media (max-width: 560px) {
  .hero.hero--text { padding: 56px 22px 48px; }
  .hero__commerce { font-size: 12.5px; }
  .waitlist__trust { font-size: 12px; }
  .daily-insight__device {
    width: 100%;
    max-width: 100%;
  }
  .phone {
    width: min(290px, 100%);
    max-width: 290px;
    margin: 0 auto;
  }
}
