/* Align landing page — single responsive stylesheet, no framework. */

@font-face {
  font-family: "Belleza";
  src: url("assets/fonts/belleza-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --cream: #fbf7f0;
  --cream-deep: #f5eee2;
  --sand: #ede2d0;
  --olive: #5f5f42;       /* headings: 6.2:1 on cream */
  --olive-dark: #515041;  /* header / dark band */
  --ink: #2f2e26;         /* body text */
  --muted: #5d5b4f;
  --terracotta: #a24f30;  /* accent from the illustrations */
  --line: rgba(47, 46, 38, 0.12);

  --display: "Belleza", "Optima", "Candara", serif;
  --body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 9vw, 112px);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.125rem)/1.65 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--olive); line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.6rem + 3.2vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.9vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); }
p { margin: 0 0 1em; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.9em;
}
.lead { font-size: clamp(1.075rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); max-width: 36em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.925rem; }
.btn-light { background: var(--cream); color: var(--olive-dark); }
.btn-light:hover { background: #fff; }
.btn-ghost { border: 1.5px solid var(--olive); color: var(--olive); }
.btn-ghost:hover { background: var(--olive); color: var(--cream); }

.store-badge { display: inline-block; border-radius: 12px; transition: transform .2s; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { width: 180px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--olive-dark); color: var(--cream);
}
.bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: flex-end; gap: 8px; text-decoration: none; margin-right: auto; }
.brand img, .footer-grid img { filter: brightness(0) invert(1); } /* olive wordmark → cream on dark */
.brand img { width: 76px; }
.brand span { font-family: var(--display); font-size: 0.875rem; padding-bottom: 4px; opacity: .9; white-space: nowrap; }
.nav { display: none; gap: 28px; }
.nav a, .menu a { text-decoration: none; font-size: 0.975rem; opacity: .9; }
.nav a:hover, .menu a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: "";
}
.menu summary span::before { position: absolute; top: -6px; }
.menu summary span::after { position: absolute; top: 6px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { top: 0; transform: rotate(45deg); }
.menu[open] summary span::after { top: 0; transform: rotate(-45deg); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 10px);
  display: flex; flex-direction: column; min-width: 200px;
  background: var(--olive-dark); border-radius: 14px; padding: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.menu nav a { padding: 12px 14px; border-radius: 8px; }
.menu nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }

@media (min-width: 820px) {
  .nav { display: flex; }
  .menu { display: none; }
  .brand img { width: 88px; }
  .bar { min-height: 72px; gap: 32px; }
}

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 88px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero h1 { max-width: 15em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.cta-row.center { justify-content: center; }
.cta-note { margin: 0; color: var(--muted); font-size: 0.975rem; }
.cta-note a { color: var(--olive); font-weight: 500; text-underline-offset: 3px; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.pills li {
  font-size: 0.875rem; padding: 6px 14px; border-radius: 999px;
  background: var(--sand); color: var(--olive-dark);
}
.hero-art img { width: 100%; max-width: 640px; margin-inline: auto; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
  .hero-art img { margin-right: calc(var(--gutter) * -1); max-width: none; }
}

/* Sections */
.section { padding-block: var(--section); }
.sand { background: var(--sand); }
.cream-deep { background: var(--cream-deep); }
.dark { background: var(--olive-dark); color: var(--cream); }
.dark h2 { color: var(--cream); }
.dark .eyebrow { color: #e6b49d; }
.section-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.center .section-head, .narrow .section-head { margin-inline: auto; text-align: center; }

/* Stats */
.stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.stat {
  background: var(--cream); border-radius: var(--radius);
  padding: 24px 24px 22px; display: flex; flex-direction: column;
}
.stat img { width: 100%; max-width: 260px; aspect-ratio: 4 / 3; object-fit: contain; margin: 0 auto 12px; }
.stat-num { font-family: var(--display); font-size: clamp(2.25rem, 1.9rem + 1.4vw, 3rem); color: var(--olive); line-height: 1; margin-bottom: 0.25em; }
.stat p:not(.stat-num) { font-size: 1.075rem; color: var(--ink); }
.source { margin-top: auto; font-size: 0.85rem; color: var(--muted); text-underline-offset: 3px; }

/* Benefits */
.benefits { list-style: none; counter-reset: b; padding: 0; margin: 0; display: grid; gap: 0 clamp(24px, 3vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.benefits li { counter-increment: b; border-top: 1px solid var(--line); padding-block: clamp(22px, 3vw, 32px); }
.benefits li::before {
  content: counter(b, decimal-leading-zero);
  display: block; font-family: var(--display); font-size: 1rem; color: var(--terracotta); margin-bottom: 10px;
}
.benefits p { color: var(--muted); margin: 0; }

/* Feature rows */
.features { display: grid; gap: clamp(56px, 9vw, 120px); }
.feature { display: grid; gap: 28px; align-items: center; }
.feature-art img {
  width: min(62vw, 300px); margin-inline: auto;
  filter: drop-shadow(0 24px 40px rgba(47, 46, 38, .18));
}
.feature-copy p:not(.eyebrow) { color: var(--muted); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); }
  .feature:nth-child(even) .feature-art { order: 2; }
  .feature-art img { width: 320px; }
}

/* Science */
.science { display: grid; gap: 40px; align-items: center; }
.science p { color: rgba(251, 247, 240, .85); max-width: 34em; }
/* Source photos are ~480px wide (cropped from the old collage), so cap the grid to keep them sharp. */
.photo-trio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 480px; }
.photo-trio img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; aspect-ratio: 1; }
.photo-trio img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .science { grid-template-columns: 1fr 1fr; gap: 72px; }
}

/* Video */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--sand); box-shadow: 0 24px 60px rgba(47, 46, 38, .16);
}
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer; color: rgba(33, 33, 33, .85);
}
.play:hover { color: #c4302b; }
.play svg { width: clamp(56px, 9vw, 72px); height: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3)); transition: color .2s; }

/* Final CTA */
.final h2 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); }
.final .lead { margin-inline: auto; }

/* Footer */
.site-footer { background: var(--olive-dark); color: rgba(251, 247, 240, .82); padding-block: 48px 28px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid img { width: 96px; margin-bottom: 12px; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-grid nav a { text-decoration: none; }
.footer-grid nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--cream); }
.social a:hover { background: rgba(255,255,255,.18); }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.85rem; opacity: .75; }
@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr auto; align-items: start; }
  .footer-grid nav { flex-direction: column; }
}

/* ---------- Pricing page ---------- */
.nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.muted { color: var(--muted); }
.text-link { color: var(--olive); font-weight: 500; text-underline-offset: 4px; }
.btn-solid { background: var(--olive-dark); color: var(--cream); }
.btn-solid:hover { background: var(--ink); }
.btn-block { display: flex; width: 100%; }

.pricing-hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.center-head { margin-inline: auto; text-align: center; }
.center-head .lead { margin-inline: auto; }

.plans { display: grid; gap: 20px; max-width: 920px; margin-inline: auto; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 3.5vw, 36px);
}
.plan-premium { background: var(--olive-dark); color: var(--cream); border-color: transparent; box-shadow: 0 24px 60px rgba(47, 46, 38, .22); }
.plan-premium h2, .plan-premium .amount { color: var(--cream); }
.plan h2 { font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2rem); margin-bottom: 0.2em; }
.plan-for { color: var(--muted); margin-bottom: 20px; }
.plan-premium .plan-for, .plan-premium .price-note, .plan-premium .includes { color: rgba(251, 247, 240, .78); }
.price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.amount { font-family: var(--display); font-size: clamp(2.6rem, 2.2rem + 1.6vw, 3.4rem); line-height: 1; color: var(--olive); }
.per { font-size: 1rem; opacity: .8; }
.price-note { font-size: 0.95rem; color: var(--muted); margin: 8px 0 22px; min-height: 1.5em; }
.badge {
  position: absolute; top: 20px; right: 20px; margin: 0;
  background: var(--terracotta); color: #fff; font-size: 0.8rem; font-weight: 500;
  padding: 4px 12px; border-radius: 999px;
}
.plan-premium .btn-solid { background: var(--cream); color: var(--olive-dark); }
.plan-premium .btn-solid:hover { background: #fff; }
.includes { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; line-height: 1.5; }
.ticks li::before, .yes {
  content: ""; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%235f5f42' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.ticks li::before { position: absolute; left: 0; top: 2px; }
.plan-premium .ticks li::before { background-color: rgba(251, 247, 240, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fbf7f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fine-print { text-align: center; font-size: 0.875rem; color: var(--muted); margin: 24px auto 0; max-width: 40em; }

.compare-wrap { background: var(--cream); border-radius: var(--radius); padding: clamp(8px, 2vw, 16px) clamp(12px, 3vw, 32px); }
.compare { width: 100%; border-collapse: collapse; font-size: clamp(0.925rem, 0.88rem + 0.2vw, 1.05rem); }
.compare th, .compare td { padding: 16px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare th[scope="row"] { text-align: left; font-weight: 400; padding-left: 0; }
.compare thead th { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.compare thead th:first-child { text-align: left; padding-left: 0; }
.compare td { width: 26%; color: var(--olive); font-weight: 500; }
.compare td:last-child { background: rgba(237, 226, 208, .45); }
.yes, .no { display: inline-block; vertical-align: middle; }
.no { width: 14px; height: 2px; background: var(--line); border-radius: 2px; }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-art img { border-radius: var(--radius); width: 100%; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.perks { margin: 0; display: grid; gap: 18px; }
.perks dt { font-family: var(--display); font-size: 1.2rem; color: var(--olive); margin-bottom: 2px; }
.perks dd { margin: 0; color: var(--muted); }

.founder { display: grid; gap: 28px; align-items: start; }
.founder > img { width: 160px; border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 720px) {
  .founder { grid-template-columns: 200px 1fr; gap: 48px; }
  .founder > img { width: 200px; }
}

.final-photo { position: relative; overflow: hidden; background: var(--olive-dark); color: var(--cream); isolation: isolate; }
.final-photo .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(40, 40, 30, .72), rgba(40, 40, 30, .82)); }
.final-photo h2 { color: var(--cream); font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); }
.final-photo .lead { color: rgba(251, 247, 240, .85); margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Re-Align campaign page ---------- */
[hidden] { display: none !important; }
.deadline {
  display: inline-block; margin: 22px 0 0; padding: 8px 16px; border-radius: 999px;
  background: var(--sand); color: var(--olive-dark); font-weight: 500; font-size: 0.95rem;
}

.offer-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .offer-grid { grid-template-columns: 1.2fr 1fr; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--olive-dark); color: var(--cream); font-family: var(--display); font-size: 1rem;
}
.steps strong { font-weight: 500; color: var(--olive-dark); }

.code-card {
  background: var(--cream); border-radius: 24px; padding: clamp(24px, 3.5vw, 36px);
  text-align: center; box-shadow: 0 24px 60px rgba(47, 46, 38, .12);
  display: grid; gap: 14px; justify-items: center;
}
.code-label { margin: 0; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.code {
  margin: 0; font-family: var(--display); font-size: clamp(2.2rem, 1.8rem + 2vw, 3rem); letter-spacing: 0.08em;
  color: var(--olive); padding: 6px 20px; border: 2px dashed rgba(95, 95, 66, .35); border-radius: 14px;
}
.code-card.ended .code { color: var(--muted); letter-spacing: 0.02em; }
.code-fine { margin: 0; font-size: 0.875rem; color: var(--muted); }

.challenge { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .challenge { grid-template-columns: 1.1fr 1fr; } }
.days { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.days li { display: flex; gap: 16px; align-items: flex-start; }
.day-num {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sand); color: var(--terracotta); font-family: var(--display); font-size: 1.3rem;
}
.days strong { font-weight: 500; color: var(--olive-dark); }

.signup-card { background: var(--olive-dark); color: var(--cream); border-radius: 24px; padding: clamp(24px, 3.5vw, 40px); }
.signup-card h3 { color: var(--cream); font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2rem); }
.signup-card .muted { color: rgba(251, 247, 240, .78); }
.signup label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input[type="email"] {
  flex: 1 1 220px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--cream); color: var(--ink); font: inherit; font-size: 1rem;
}
.signup .btn-solid { background: var(--terracotta); color: #fff; border: 0; font: inherit; font-weight: 500; cursor: pointer; flex: 1 1 auto; }
.signup .btn-solid:hover { background: #8c4228; }
.signup .btn-solid:disabled { opacity: .6; cursor: default; transform: none; }
.signup.done .signup-row, .signup.done label { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.5em; margin: 12px 0 0; font-weight: 500; }
.form-msg.error { color: #f4c2ad; }
.form-msg.ok { color: var(--cream); }
.form-fine { margin: 10px 0 0; font-size: 0.85rem; color: rgba(251, 247, 240, .7); }

.moments { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.moments li { background: var(--cream); border-radius: var(--radius); padding: 26px 24px; }
.moment-when { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.7em; }
.moments p:last-child { color: var(--muted); margin: 0; }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--cream); border-radius: 16px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
  font-family: var(--display); font-size: 1.15rem; color: var(--olive);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--terracotta); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.support-line { background: var(--sand); color: var(--ink); font-size: 0.925rem; padding-block: 16px; text-align: center; }
.support-line a { font-weight: 600; color: var(--olive-dark); }
