/* Good Vibes — landing page.
   Tokens ported from the "Modernist" design system; page-specific values
   (deep accent, Kanit display face) come from the Good Vibes design. */

:root {
  --color-bg: #f3f2f2;
  --color-text: #201e1d;
  --ink: #0d0d0d;
  --accent: #6e1423;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-display: "Kanit", sans-serif;

  --gutter: max(clamp(20px, 5vw, 72px), env(safe-area-inset-left), env(safe-area-inset-right));
  --edge-top: #82735a;    /* rendered top edge of the hero (landscape) */
  --section: clamp(64px, 10vw, 120px);  /* space between sections: ~64 phone → 120 desktop */
  --title: clamp(30px, 3.8vw, 48px);  /* every section heading */
  --content: 1296px;      /* shared by the nav bar and every section */
  --sticky-top: 32px;
  --rule: 2px solid rgba(13, 13, 13, 0.1);
  --hairline: 1px solid rgba(13, 13, 13, 0.12);
}

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

/* Canvas colour shows in Safari's overscroll areas; main.js swaps it to the
   footer colour near the bottom so both edges read as part of the page. */
html { scroll-behavior: smooth; background: var(--edge-top); }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

h1, h2, h3, p, ul, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(110, 20, 35, 0.25); }

/* ── Layout ─────────────────────────────────────────────────────────── */

.container {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Photo + copy rows. The photo comes first in the markup (so it leads on
   phones); --flip puts it on the right on wider screens. Sections alternate
   down the page: left, right, left, right, left. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px clamp(24px, 5vw, 80px);
  align-items: start;
}
.split--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.split--flip > .crop { order: 2; }
.split--faq {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  column-gap: clamp(24px, 5vw, 72px);
}

/* Copy fills its whole column so its right edge lines up with the nav. */
.split > div :is(h2, p) { max-width: none; }

.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }

/* Photo beside copy stays in view while the longer column scrolls past. */
.split > .crop { position: sticky; top: var(--sticky-top); }


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

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.h2 {
  font-size: var(--title);
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 22ch;
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.script {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
}

.body {
  font-size: 16px;
  line-height: 1.65;
  max-width: 56ch;
  color: rgba(13, 13, 13, 0.75);
  margin-bottom: 16px;
}

.statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
  max-width: 52ch;
  margin-bottom: 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  padding: 15px 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, filter 0.15s;
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { filter: brightness(1.15); }

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
  font-size: 17px;
  padding: 15px 32px;
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn--outline-soft { border-color: rgba(255, 255, 255, 0.5); }

.btn--nav { font-size: 14px; padding: 8px 14px; min-height: 40px; white-space: nowrap; }

.section-cta { margin-top: 28px; }

/* ── Image crops ────────────────────────────────────────────────────────
   Frames hold a fixed aspect ratio; the image is cover-sized × zoom and
   centred at (--x, --y) — matches the crops set in the design file. */

.crop {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
  background: rgba(13, 13, 13, 0.06);
}
.crop img {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--w, 100%);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-16x11 { aspect-ratio: 16 / 11; }

/* ── Nav ────────────────────────────────────────────────────────────── */

.nav-wrap {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 50;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(13, 13, 13, 0.16);
}
.nav-brand { margin-right: auto; }
.nav-brand img { height: 20px; width: auto; }
.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.nav-link:hover { color: var(--accent); }

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

.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: flex-start;
  padding-top: max(14vh, 130px);
  padding-bottom: 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor to the top so any crop comes off the bottom, keeping the
     couple's heads well clear of the floating nav. */
  object-position: 50% 0%;
  pointer-events: none;
}
/* Nudge the photo up a touch on wide screens; scales down on short windows
   so heads never reach the nav. */
@media (orientation: landscape) {
  .hero-bg {
    --lift: min(64px, 7vh);
    top: calc(-1 * var(--lift));
    height: calc(100% + var(--lift));
  }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg,
    rgba(32, 30, 29, 0.92) 0%,
    rgba(32, 30, 29, 0.68) 38%,
    rgba(32, 30, 29, 0.2) 65%,
    rgba(32, 30, 29, 0) 80%);
}
.hero-content { position: relative; z-index: 3; width: 100%; }
.hero-copy { max-width: 760px; }

.proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg);
  padding: 10px 16px;
  border-radius: 999px;
  margin-bottom: 32px;
}
.proof-avatars { display: flex; align-items: center; }
.avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  margin-right: -8px;
}
.avatar:last-child { margin-right: 0; }
.avatar .crop { height: 100%; border-radius: 50%; }
.proof-text { font-size: 13px; color: var(--color-text); }

.hero-intro {
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
}
.hero-title {
  font-size: clamp(36px, 7.5vw, 80px);
  line-height: 1;
  color: #fff;
}
.hero-rule { width: 56px; height: 5px; background: var(--accent); margin: 20px 0; }
.hero-sub { font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.hero-ctas {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* ── Sample photos ──────────────────────────────────────────────────── */

.samples { text-align: center; padding-bottom: var(--section); }
.samples-caption {
  font-size: 19px;
  color: rgba(13, 13, 13, 0.7);
  margin-bottom: 56px;
}
.samples-stack {
  position: relative;
  max-width: 620px;
  aspect-ratio: 620 / 285;
  margin: 0 auto;
}
.polaroid {
  position: absolute;
  top: 7%;
  width: 35.5%;
}
.polaroid .crop { border-radius: 12px; box-shadow: 0 12px 28px rgba(13, 13, 13, 0.18); }
.polaroid--left { left: 0; transform: rotate(-6deg); }
.polaroid--right { right: 0; transform: rotate(6deg); }
.polaroid--center {
  left: 50%;
  top: 0;
  width: 38.7%;
  transform: translateX(-50%);
  z-index: 2;
}
.polaroid--center .crop { box-shadow: 0 16px 32px rgba(13, 13, 13, 0.22); }

/* ── Lists ──────────────────────────────────────────────────────────── */

.subhead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 16px;
}

.dot-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: rgba(13, 13, 13, 0.82);
}
.dot-list li { display: flex; gap: 12px; align-items: baseline; }
.dot-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  transform: translateY(-1px);
}

.aside {
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 52ch;
  color: rgba(13, 13, 13, 0.65);
}

/* ── Process steps ──────────────────────────────────────────────────── */

.steps-intro { padding-bottom: 28px; }
.steps-intro .body { margin: 0; }

.step { padding: 28px 0; border-top: var(--rule); }
.step:last-of-type { border-bottom: var(--rule); }
.step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
.step-num { color: var(--accent); }
.step p {
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 50ch;
  color: rgba(13, 13, 13, 0.78);
}
.step p + p { margin-top: 12px; }

/* ── Ecosystem ──────────────────────────────────────────────────────── */

.ecosystem { background: var(--ink); padding-block: var(--section); }
.ecosystem .eyebrow { color: rgba(255, 255, 255, 0.55); }
.ecosystem-title {
  font-size: var(--title);
  line-height: 1.08;
  max-width: 26ch;
  margin-bottom: 40px;
  color: #fff;
}
.ecosystem-banner { margin-bottom: 24px; }
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ecosystem-grid figcaption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
}

/* ── Sourcing ───────────────────────────────────────────────────────── */

.sourcing-title {
  font-size: var(--title);
  line-height: 1.08;
  max-width: 24ch;
  margin-bottom: 20px;
}
.sourcing .body { margin-bottom: 28px; }
.source { padding: 20px 0; border-top: var(--rule); }
.source:last-of-type { border-bottom: var(--rule); }
.source h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.source p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 56ch;
  color: rgba(13, 13, 13, 0.78);
}

/* ── Fit check ──────────────────────────────────────────────────────── */

.fit { text-align: center; padding-bottom: var(--section); }
.fit-title {
  font-size: var(--title);
  line-height: 1.08;
  margin-bottom: 16px;
}
.fit-sub {
  font-size: 16px;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto 48px;
  color: rgba(13, 13, 13, 0.7);
}
.fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: left;
}
.fit-card { border: var(--hairline); border-radius: 12px; padding: 28px; }
.fit-card svg { display: block; }
.fit-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 16px 0 8px;
  color: var(--ink);
}
.fit-card p { font-size: 14.5px; line-height: 1.6; color: rgba(13, 13, 13, 0.72); }

/* ── Investment ─────────────────────────────────────────────────────── */

/* Same ground as the rest of the page; the sections either side already
   supply the spacing, so no padding of its own. */
.investment { scroll-margin-top: var(--section); }
.investment-head { text-align: center; margin-bottom: 56px; }
.investment-title {
  font-size: var(--title);
  line-height: 1.08;
  margin-bottom: 16px;
}
.investment-sub {
  font-size: 16px;
  line-height: 1.65;
  max-width: 56ch;
  margin: 0 auto 24px;
  color: rgba(13, 13, 13, 0.65);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 9px 20px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.table-scroll { overflow-x: auto; }
.pricing {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.pricing th {
  text-align: center;
  padding: 0 16px 20px;
  border-bottom: 2px solid var(--ink);
  font-weight: inherit;
  vertical-align: bottom;
}
.pricing th:first-child { text-align: left; padding-left: 0; }
.pricing th.is-featured { border-bottom-color: var(--accent); }
.tier-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: rgba(13, 13, 13, 0.6);
  margin-bottom: 6px;
}
.tier-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--ink);
}
.is-featured .tier-name,
.is-featured .tier-price { color: var(--accent); }

.pricing td {
  padding: 16px;
  text-align: center;
  border-bottom: var(--hairline);
  color: rgba(13, 13, 13, 0.78);
}
.pricing td:first-child { text-align: left; padding-left: 0; }
.pricing thead td { padding: 0 16px 20px 0; border-bottom: 2px solid var(--ink); }
.pricing tr:last-child td { border-bottom: none; }
.pricing thead th { width: 30%; }
.pricing .yes { color: var(--accent); }
.pricing .no { color: rgba(13, 13, 13, 0.3); }

.investment-foot { text-align: center; margin-top: 48px; }
.fine-print {
  font-size: 12.5px;
  line-height: 1.6;
  max-width: 64ch;
  margin: 32px auto 0;
  color: rgba(13, 13, 13, 0.5);
}

/* ── FAQ ────────────────────────────────────────────────────────────── */

.faq-title {
  font-size: var(--title);
  line-height: 1.08;
  margin-bottom: 40px;
}
.faq-item { border-top: var(--hairline); padding: 20px 0; }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  font-size: 15px;
  line-height: 1.65;
  max-width: 64ch;
  margin-top: 16px;
  color: rgba(13, 13, 13, 0.72);
}

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

.footer {
  background: var(--color-bg);
  border-top: var(--hairline);
  padding-block: 40px calc(40px + env(safe-area-inset-bottom));
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { height: 16px; width: auto; }
.footer-links { display: flex; align-items: center; gap: 12px; margin-right: 12px; }
.footer-links a { display: flex; color: rgba(13, 13, 13, 0.7); }
.footer-links a:hover { color: var(--ink); }
.footer-links img { width: 20px; height: 20px; }

/* ── Responsive ─────────────────────────────────────────────────────── */

/* Portrait screens (phones, tablets upright): keep the couple in frame and
   darken top-down so the headline stays readable over the photo. */
@media (orientation: portrait) {
  :root { --edge-top: #45423e; }
  .hero-bg { object-position: 72% 0%; }
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(32, 30, 29, 0.78) 0%,
      rgba(32, 30, 29, 0.6) 45%,
      rgba(32, 30, 29, 0.2) 75%,
      rgba(32, 30, 29, 0) 100%);
  }
}

/* Upright tablets: the photo is much wider than the screen, so slide it to
   put the couple to the right of the (now larger) headline. */
@media (orientation: portrait) and (min-width: 600px) {
  .hero-bg { object-position: 62% 0%; }
}

/* Tablet: two-column sections stay side by side down to 720px, but the
   fit-check cards turn into rows instead of leaving an orphaned third card. */
@media (max-width: 900px) {
  .fit-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fit-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 16px;
    padding: 22px 24px;
  }
  .fit-card svg { grid-row: span 2; }
  .fit-card h3 { margin: 2px 0 6px; }
}

@media (max-width: 760px) {
  .nav-link { display: none; }
  .nav { padding: 10px 12px 10px 16px; }
}

/* Stacked layout: photo first, then copy. */
@media (max-width: 719px) {
  .split,
  .split--flip,
  .split--faq { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .split > .crop { max-width: 480px; order: 0; }
  .split > .crop { position: relative; top: auto; }

  .samples-caption { margin-bottom: 36px; }
  .samples-stack { aspect-ratio: 620 / 330; }
  .polaroid { width: 42%; }
  .polaroid--center { width: 46%; }

  .steps-intro { padding-bottom: 24px; }
  .step { padding: 24px 0; }
  .step-title { font-size: 19px; }

  .ecosystem-title { margin-bottom: 28px; }
  .ecosystem-banner { margin-bottom: 16px; }

  .investment-head { margin-bottom: 40px; }
  .investment-foot { margin-top: 36px; }

  .faq-title { margin-bottom: 28px; }
}

/* Phones */
@media (max-width: 560px) {
  /* Hero: let the photo breathe at the top and anchor the copy to the
     bottom over a bottom-up fade, with an outline CTA and a text link. */
  :root { --edge-top: #cabfb2; }
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    align-items: flex-end;
    padding-top: 0;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
  /* Photo is a touch taller than the hero and pulled up, so the couple sit
     higher; the x position keeps both of them in frame. */
  .hero-bg {
    top: -7%;
    height: 107%;
    object-position: 77% 0%;
  }
  .hero-scrim {
    background: linear-gradient(0deg,
      rgba(20, 19, 18, 0.94) 0%,
      rgba(20, 19, 18, 0.82) 30%,
      rgba(20, 19, 18, 0.35) 52%,
      rgba(20, 19, 18, 0) 68%);
  }
  .proof { display: none; }
  .hero-intro { font-size: 18px; margin-bottom: 4px; }
  .hero-title { font-size: clamp(34px, 10.5vw, 44px); }
  .hero-rule { margin: 14px 0; width: 44px; height: 4px; }
  .hero-sub { font-size: 15px; }
  .hero-ctas { margin-top: 22px; gap: 4px; align-items: stretch; }
  .hero-ctas .btn {
    justify-content: space-between;
    font-size: 16px;
    padding: 15px 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  /* Women's CTA drops on phones; the nav's Apply Now and the rest of the
     page carry it. */
  .hero-ctas .btn--outline-soft { display: none; }

  /* Full-width, thumb-friendly CTAs */
  .section-cta,
  .split .btn--primary,
  .investment-foot .btn { width: 100%; }

  .statement { font-size: 17px; }

  /* Ecosystem: keep all three squares in one row, just smaller */
  .ecosystem-grid { gap: 8px; }
  .ecosystem-grid .crop { border-radius: 8px; }
  .ecosystem-grid figcaption { font-size: 12px; margin-top: 8px; }

  .badge { font-size: 12px; padding: 8px 14px; gap: 8px; text-align: left; }

  /* Pricing: compact enough to fit without sideways scrolling */
  .pricing { font-size: 13px; table-layout: fixed; }
  .pricing th { padding: 0 6px 14px; }
  .pricing thead td { padding-bottom: 14px; width: 40%; }
  .pricing td { padding: 12px 6px; }
  .tier-name { font-size: 14px; line-height: 1.25; }
  .tier-price { font-size: 21px; }

  .faq-item summary { font-size: 15.5px; }

  /* Bigger touch targets for the footer icons */
  .footer-links { gap: 4px; margin-right: 0; }
  .footer-links a { padding: 11px; }
}

/* Small phones (iPhone SE / 320–380px) */
@media (max-width: 380px) {
  .nav { gap: 12px; }
  .nav-brand img { height: 16px; }
  .btn--nav { padding-inline: 12px; }
  .proof { border-radius: 20px; }
  .pricing thead td { width: 34%; }
  .tier-price { font-size: 18px; }
  .tier-name { font-size: 13px; }
  .hero-ctas .btn { font-size: 14.5px; padding-inline: 18px; }
}
