/* ==========================================================================
   MealPlanPartner — marketing site
   Premium family productivity meets warm kitchen companion.
   Mobile-first. No frameworks, no build step.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --orange: #F97316;
  --orange-deep: #EA630D;
  --orange-soft: #FFF1E5;
  --cream: #FDF8F2;
  --green: #10B981;
  --green-deep: #0E9F6E;
  --green-soft: #E7F8F1;
  --blue: #3B82F6;
  --blue-soft: #EAF2FE;
  --red-soft: #FDEAEA;
  --red-text: #B4423B;
  --ink: #1F2933;
  --muted: #5B6472;
  --white: #FFFFFF;
  --line: #EFE6DA;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 3px rgba(31, 41, 51, 0.07), 0 4px 14px rgba(31, 41, 51, 0.05);
  --shadow-md: 0 6px 20px rgba(31, 41, 51, 0.08), 0 2px 6px rgba(31, 41, 51, 0.05);
  --shadow-lg: 0 24px 60px rgba(31, 41, 51, 0.16), 0 8px 20px rgba(31, 41, 51, 0.08);

  --container: 1120px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.5vw + 0.6rem, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw + 0.7rem, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--orange-deep); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container-narrow { max-width: 780px; }

.section { padding-block: clamp(4rem, 9vw, 6.5rem); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 0.9rem;
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--orange); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(31, 41, 51, 0.18);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.6); }

.btn-light {
  background: var(--white);
  color: var(--orange-deep);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.btn-light:hover { transform: translateY(-2px); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.12); }

.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(31, 41, 51, 0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { width: auto; height: 38px; }

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.site-nav a:not(.btn):hover { color: var(--orange-deep); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 799.98px) {
  .nav-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    position: absolute;
    top: var(--header-h);
    left: 0.75rem;
    right: 0.75rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
  }
  .nav-open .site-nav a:not(.btn) { padding: 0.8rem 1rem; border-radius: var(--radius-sm); }
  .nav-open .site-nav a:not(.btn):hover { background: var(--cream); }
  .nav-open .site-nav .nav-cta { margin-top: 0.5rem; }
}

@media (min-width: 800px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .brand-logo { height: 42px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(58rem 34rem at 115% -10%, rgba(16, 185, 129, 0.10), transparent 60%),
    radial-gradient(52rem 32rem at -15% 0%, rgba(249, 115, 22, 0.10), transparent 60%),
    var(--cream);
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  margin: 0 0 1.4rem;
}
.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 1.8rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 12px;
  padding: 0.55rem 1.05rem;
  opacity: 0.92;
}
.badge-icon { width: 22px; height: 22px; flex: none; }
.badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.badge-text small { font-size: 0.66rem; opacity: 0.8; letter-spacing: 0.02em; }
.badge-text strong { font-size: 0.98rem; font-weight: 600; }

.hero-trust {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Hero phones */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 1rem 2.5rem;
}

.phone {
  border-radius: 40px;
  border: 10px solid #232D38;
  background: #232D38;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.phone img { border-radius: 30px; }

.phone-front {
  position: relative;
  z-index: 2;
  width: min(290px, 74vw);
}

.phone-back {
  display: none;
  position: absolute;
  z-index: 1;
  width: 250px;
  right: 2%;
  top: 3.25rem;
  transform: rotate(6deg);
  opacity: 0.95;
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.8rem 1rem;
  max-width: 250px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card-1 { top: 8%; left: max(0px, calc(50% - 300px)); }
.float-card-2 { bottom: 4%; right: max(0px, calc(50% - 295px)); animation-delay: 2.2s; }

.float-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.float-icon svg { width: 20px; height: 20px; }
.float-icon-blue { background: var(--blue-soft); color: var(--blue); }
.float-icon-green { background: var(--green-soft); color: var(--green-deep); }

.float-body { display: flex; flex-direction: column; gap: 0.15rem; }
.float-body strong { font-size: 0.86rem; display: flex; justify-content: space-between; gap: 0.6rem; }
.float-time { color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.float-body span { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; }
  .hero-visual { padding-block: 0 1rem; }
  .phone-front { width: 300px; margin-right: 3rem; }
  .phone-back { display: block; }
  .float-card-1 { top: 6%; left: -1rem; }
  .float-card-2 { bottom: 7%; right: -0.5rem; }
}

/* ---------- Problem ---------- */
.section-problem { background: var(--white); }

.problem-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }

.problem-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.problem-card h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.problem-card p { color: var(--muted); font-size: 0.96rem; margin: 0; }

.problem-note {
  max-width: 560px;
  margin: 2.5rem auto 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--ink);
}

/* ---------- Solution ---------- */
.solution-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) { .solution-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } }

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.check-list li {
  position: relative;
  padding-left: 2.1rem;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--green-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230E9F6E" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7"/></svg>') center / 60% no-repeat;
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.6rem;
  max-width: 430px;
  margin-inline: auto;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}
.profile-icon { border-radius: 50%; }
.profile-head strong { display: block; font-size: 1.02rem; }
.profile-head span { font-size: 0.85rem; color: var(--muted); }

.profile-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.chip {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.chip-orange { background: var(--orange-soft); color: var(--orange-deep); }
.chip-green { background: var(--green-soft); color: var(--green-deep); }
.chip-blue { background: var(--blue-soft); color: #2563EB; }
.chip-red { background: var(--red-soft); color: var(--red-text); }

.profile-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--line);
  color: var(--green-deep);
  font-size: 0.9rem;
  font-weight: 600;
}
.profile-foot svg { width: 20px; height: 20px; flex: none; }

/* ---------- Features ---------- */
.section-features { background: var(--white); }

.features-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card h3 { font-size: 1.12rem; margin: 1.1rem 0 0.45rem; }
.feature-card p { color: var(--muted); font-size: 0.96rem; margin: 0; }

.feature-card-wide { background: linear-gradient(135deg, var(--orange-soft), var(--cream) 70%); }
@media (min-width: 640px) { .feature-card-wide { grid-column: span 2; } }

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.feature-icon svg { width: 24px; height: 24px; }
.icon-orange { background: var(--orange-soft); color: var(--orange-deep); }
.icon-green { background: var(--green-soft); color: var(--green-deep); }
.icon-blue { background: var(--blue-soft); color: var(--blue); }

/* ---------- How it works ---------- */
.steps-grid {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--orange), var(--orange-deep));
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.3);
}
.step-card h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.step-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.how-note {
  max-width: 620px;
  margin: 2.5rem auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Gallery ---------- */
.section-gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
  justify-items: center;
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }

.gallery-item { margin: 0; text-align: center; max-width: 300px; }
.phone-static { width: min(250px, 70vw); margin-inline: auto; }
.gallery-item figcaption {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
}
@media (min-width: 720px) {
  .gallery-item:nth-child(2) { transform: translateY(1.75rem); }
}

/* ---------- Differentiation ---------- */
.compare-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin-inline: auto;
}
@media (min-width: 720px) { .compare-card { grid-template-columns: 1fr 1fr; } }

.compare-col { padding: 2rem 1.75rem; }
.compare-col h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.12rem;
  margin-bottom: 1.2rem;
}
.compare-col h3 img { border-radius: 50%; }
.compare-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.compare-col li { position: relative; padding-left: 1.9rem; font-size: 0.98rem; }

.compare-them { background: var(--white); color: var(--muted); }
.compare-them li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.85rem;
  height: 2.5px;
  border-radius: 2px;
  background: #CBD2D9;
}

.compare-us { background: linear-gradient(160deg, #FFF4E8, var(--green-soft) 130%); color: var(--ink); }
.compare-us li { font-weight: 500; }
.compare-us li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--white) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23EA630D" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7"/></svg>') center / 62% no-repeat;
  box-shadow: var(--shadow-sm);
}

.diff-note {
  max-width: 600px;
  margin: 2.5rem auto 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.15rem;
}

/* ---------- Together ---------- */
.section-together { background: var(--white); }

.together-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) { .together-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.together-copy .btn { margin-top: 0.5rem; }

.notif-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 430px;
  margin-inline: auto;
}
.notif {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0.95rem 1.1rem;
}
.notif:nth-child(even) { transform: translateX(clamp(0px, 3vw, 1.75rem)); }
.notif img { border-radius: 9px; flex: none; margin-top: 2px; }
.notif strong {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}
.notif strong span { color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.notif p { margin: 0.15rem 0 0; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }

/* ---------- Free ---------- */
.free-card {
  display: grid;
  gap: 2rem;
  background: linear-gradient(150deg, var(--green-soft), var(--white) 75%);
  border: 1px solid #D4EFE3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 860px) { .free-card { grid-template-columns: 1.2fr 0.8fr; align-items: center; } }

.free-copy .eyebrow { color: var(--green-deep); }
.free-copy p { color: var(--muted); margin: 0; }

.free-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.free-list li {
  position: relative;
  padding-left: 2.1rem;
  font-weight: 500;
}
.free-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--white) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230E9F6E" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7"/></svg>') center / 60% no-repeat;
  box-shadow: var(--shadow-sm);
}

/* ---------- Beta ---------- */
.section-beta {
  background:
    radial-gradient(46rem 30rem at -10% 110%, rgba(59, 130, 246, 0.08), transparent 60%),
    radial-gradient(46rem 30rem at 110% -10%, rgba(249, 115, 22, 0.09), transparent 60%),
    var(--cream);
}

.beta-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) { .beta-grid { grid-template-columns: 0.95fr 1.05fr; gap: 4rem; } }

.beta-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  position: relative;
}
.beta-form > h3 { font-size: 1.35rem; margin-bottom: 1.4rem; }

.field { margin-bottom: 1.15rem; border: none; padding: 0; }
.field label, .field legend {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.optional { color: var(--muted); font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
  background: var(--white);
}
.field .is-invalid { border-color: #DC5B52; }

.field-error {
  color: #C0392B;
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
}

.field-note {
  background: var(--orange-soft);
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 0.75rem;
  padding: 0.8rem 0.9rem;
}

.checkbox-row {
  align-items: flex-start;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
}

.field .checkbox-row {
  margin-bottom: 0;
}

.checkbox-row input {
  accent-color: var(--orange);
  flex: none;
  height: 1.1rem;
  margin-top: 0.18rem;
  width: 1.1rem;
}

.checkbox-row span {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
}

.checkbox-row:has(input:focus-visible) {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.checkbox-row:has(input:checked) {
  background: var(--orange-soft);
  border-color: var(--orange);
}

.platform-options { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.platform-pill { position: relative; }
.platform-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.platform-pill span {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.18s ease;
}
.platform-pill input:checked + span {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange-deep);
}
.platform-pill input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* Honeypot — visually removed, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.beta-privacy {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.9rem 0 0;
}

.form-success {
  text-align: center;
  padding: 1.5rem 0.5rem 0.5rem;
}
.success-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-deep);
}
.success-icon svg { width: 30px; height: 30px; }
.form-success p { color: var(--muted); max-width: 34em; margin-inline: auto; }
.form-success .success-fallback {
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.form-success .success-fallback a {
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.section-faq { background: var(--white); }

.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }

.faq-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--orange-deep);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0;
  padding: 0 1.4rem 1.25rem;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Final CTA ---------- */
.final-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(30rem 18rem at 85% 115%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(24rem 16rem at 8% -20%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 24px 60px rgba(234, 99, 13, 0.35);
}
.final-card h2 { color: var(--white); }
.final-card > p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 32em;
  margin: 0 auto 1.9rem;
  font-size: 1.1rem;
}
.final-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.final-small {
  margin: 1.6rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.75rem, 6vw, 4rem);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; } }

.footer-logo { height: 34px; width: auto; margin-bottom: 1rem; }
.footer-byline { margin: 0 0 0.3rem; font-size: 0.95rem; }
.footer-byline strong { color: var(--ink); }
.footer-coming { color: var(--muted); font-size: 0.9rem; margin: 0; }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding-block: 0.3rem;
}
.footer-col a:hover { color: var(--orange-deep); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-block: 1.4rem;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(0.5rem);
  background: var(--ink);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Scroll reveal ----------
   The hidden state only applies once script.js adds .reveal-ready to <html>,
   so content is never invisible if JavaScript is unavailable. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-ready [data-reveal].is-revealed { opacity: 1; transform: none; }

/* No-JS and reduced motion: everything stays visible and still */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  .btn, .feature-card { transition: none; }
}
