:root {
  color-scheme: light;

  --brand-primary: #5b8c7a;
  --brand-primary-hover: #4a7565;
  --brand-primary-soft: #d7e4dc;
  --brand-deep: #2d3a3a;
  --brand-ink: #1a2424;

  --bg-base: #faf8f3;
  --bg-secondary: #f0ebe0;
  --bg-warm: #ebe4d6;
  --surface: #ffffff;
  --surface-tint: rgba(255, 255, 255, 0.82);
  --border-soft: rgba(26, 36, 36, 0.08);
  --border-strong: rgba(26, 36, 36, 0.14);

  --text-primary: #1f2937;
  --text-muted: #5a6472;
  --text-faint: #8b95a3;

  --reward-warm: #f4a261;
  --reward-gold: #e9c46a;
  --state-success: #7ba098;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-soft: 0 16px 48px rgba(45, 58, 58, 0.08);
  --shadow-card: 0 28px 70px rgba(26, 36, 36, 0.12);
  --shadow-float: 0 20px 40px rgba(26, 36, 36, 0.14);

  --font-display: "Quicksand", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

*,
*::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(--text-primary);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(215, 228, 220, 0.55), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(233, 196, 106, 0.12), transparent 45%),
    var(--bg-base);
}

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

a {
  color: var(--brand-primary);
}

a:hover {
  color: var(--brand-primary-hover);
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

h1,
h2,
h3,
.eyebrow,
.section-eyebrow,
.btn-premium,
.btn-ghost,
.header-cta {
  font-family: var(--font-display);
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(250, 248, 243, 0.9);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand img {
  width: 72px;
}

.header-nav {
  display: none;
  gap: 1.75rem;
}

.header-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--brand-deep);
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: var(--brand-deep);
  color: #fff;
  box-shadow: 0 8px 24px rgba(45, 58, 58, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-premium:hover {
  background: #243030;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(45, 58, 58, 0.28);
}

.btn-premium:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.btn-premium--full {
  width: 100%;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--brand-deep);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.15s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-deep);
}

.header-cta {
  font-size: 0.88rem;
  padding-inline: 1rem;
  min-height: 40px;
}

/* ── Hero with app background ── */

.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
  min-height: min(92vh, 920px);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(250, 248, 243, 0.96) 0%, rgba(250, 248, 243, 0.88) 42%, rgba(250, 248, 243, 0.55) 68%, rgba(250, 248, 243, 0.25) 100%),
    linear-gradient(180deg, rgba(250, 248, 243, 0.2), rgba(250, 248, 243, 0.85));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 36rem;
}

.eyebrow,
.section-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(45, 58, 58, 0.08);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.1rem, 5.5vw, 3.55rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
  max-width: none;
}

.lead {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Phone frames & screenshots ── */

.hero-phones {
  position: relative;
  min-height: 420px;
  display: none;
}

.phone-frame {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(26, 36, 36, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: #fff;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-frame--back {
  position: absolute;
  width: min(240px, 58%);
  left: 0;
  top: 2.5rem;
  transform: rotate(-7deg);
  opacity: 0.92;
}

.phone-frame--front {
  position: absolute;
  width: min(270px, 64%);
  right: 0;
  top: 0;
  transform: rotate(5deg);
  z-index: 2;
}

.product-showcase {
  padding: 4rem 0;
  background: linear-gradient(180deg, rgba(240, 235, 224, 0.35), transparent);
}

.section-lead {
  margin: -1rem 0 2.5rem;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.showcase-grid {
  display: grid;
  gap: 2rem;
}

.showcase-item {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.phone-frame--showcase {
  max-width: 280px;
  margin-inline: auto;
}

.showcase-item figcaption {
  display: grid;
  gap: 0.35rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.showcase-item figcaption strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brand-deep);
}

/* ── Why section ── */

.why {
  padding: 4rem 0;
  background: linear-gradient(180deg, transparent, rgba(240, 235, 224, 0.5) 30%, transparent);
}

.why h2,
.product-showcase h2,
.audience-copy h2,
.beta-copy h2,
.faq h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
  max-width: none;
}

.why-grid {
  display: grid;
  gap: 1rem;
}

.why-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.why-icon {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
}

.why-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  color: var(--brand-deep);
}

.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ── Audience ── */

.audience {
  padding: 3rem 0 4rem;
}

.audience-inner {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--brand-deep);
  color: #fff;
  box-shadow: var(--shadow-card);
}

.audience .section-eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.audience-copy h2 {
  color: #fff;
  max-width: none;
}

.audience-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 42rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: flex-start;
}

.tag-list li {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

/* ── Beta signup ── */

.beta {
  padding: 4rem 0;
}

.beta-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.beta-copy p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.trust-quote {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(215, 228, 220, 0.35);
  color: var(--brand-deep);
  font-size: 0.98rem;
  font-style: normal;
  line-height: 1.55;
}

.signup-card {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.signup-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  color: var(--brand-ink);
}

.signup-sub,
.signup-note {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.signup-note {
  margin-top: 1.25rem;
  margin-bottom: 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.88rem;
}

.waitlist-form {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-deep);
}

.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font: inherit;
  background: var(--bg-base);
  color: var(--text-primary);
}

.field input[type="email"],
.field select {
  min-height: 48px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a5348' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field input[type="email"]:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-color: var(--brand-primary);
}

.checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.checkbox-row input {
  margin-top: 0.2rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
}

.form-message.is-success {
  background: #e8f2ee;
  color: #2f5f52;
}

.form-message.is-error {
  background: #f8ecea;
  color: #8a4b42;
}

/* ── FAQ ── */

.faq {
  padding: 2rem 0 4rem;
}

.faq-inner {
  max-width: 640px;
}

.faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-deep);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--brand-primary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Footer ── */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-secondary);
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-deep);
}

.footer-tagline {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-legal,
.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Responsive ── */

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .hero-phones {
    display: block;
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .audience-inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 2.5rem;
  }

  .beta-grid {
    grid-template-columns: 1fr 0.95fr;
    gap: 3.5rem;
  }

  .signup-card {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-phones {
    min-height: 520px;
  }

  .phone-frame--back {
    width: 260px;
    left: 1rem;
  }

  .phone-frame--front {
    width: 290px;
    right: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-premium:hover,
  .why-card:hover {
    transform: none;
    transition: none;
  }
}
