/* =========================================================================
   Gluten, Not For Me — marketing site
   Design language: cream bg, sage/forest greens, warm pastel accents, soft
   shadows, large rounded radii. Same palette as the iOS app.
   ========================================================================= */

:root {
  /* App palette (mirrors lib/core/theme/app_colors.dart) */
  --forest:        #1E3A2F;
  --sage:          #5D8A6E;
  --mist:          #D4E5D8;
  --cream:         #F7F4EE;
  --background:    #F2EFE8;
  --background-2:  #E8E2D6;
  --gluten-free:   #3DAB74;
  --gluten-free-2: #2D7A52;
  --text-primary:  #1A2E1E;
  --text-secondary:#4A6B52;
  --text-tertiary: #7A9E82;
  --surface:       #FFFFFF;
  --border:        #DFE4D8;

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

  --shadow-soft:   0 8px 30px rgba(30, 58, 47, 0.08);
  --shadow-strong: 0 18px 60px rgba(30, 58, 47, 0.15);
  --shadow-green:  0 12px 40px rgba(61, 171, 116, 0.25);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--background) 0%, var(--background-2) 100%);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }

/* ─── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(242, 239, 232, 0.85);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: var(--shadow-soft);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:not(.nav-cta):hover { color: var(--gluten-free-2); }
.nav-cta {
  padding: 10px 18px;
  background: var(--text-primary);
  color: var(--cream) !important;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease;
}
.nav-cta:hover { background: var(--gluten-free-2); transform: translateY(-1px); }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 8vw 120px;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.hero-orb-a {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at center, rgba(61, 171, 116, 0.35), transparent 70%);
  top: -180px;
  right: -120px;
}
.hero-orb-b {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(93, 138, 110, 0.30), transparent 70%);
  bottom: -200px;
  left: -80px;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(61, 171, 116, 0.14);
  color: var(--gluten-free-2);
  border: 1px solid rgba(61, 171, 116, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2.2px;
  margin-bottom: 24px;
}
.gradient-text {
  display: block;
  background: linear-gradient(120deg, var(--sage), var(--gluten-free));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 36px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(120deg, var(--gluten-free-2), var(--gluten-free));
  color: white;
  box-shadow: var(--shadow-green);
  border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(61, 171, 116, 0.40); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface); }
.btn-block { display: flex; justify-content: center; }
.hero-meta { color: var(--text-tertiary); font-size: 14px; margin-top: 8px; }

/* Phone-shaped art block */
.hero-art {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.phone-frame {
  width: min(360px, 80%);
  aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, #16302C, #0B1814);
  border-radius: 48px;
  padding: 48px 28px;
  box-shadow:
    0 30px 80px rgba(15, 30, 21, 0.45),
    inset 0 0 0 6px rgba(255, 255, 255, 0.06);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 999px;
}
.phone-logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35), 0 0 60px rgba(61, 171, 116, 0.30);
  margin-bottom: 28px;
}
.phone-text h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 6px;
}
.phone-text p { font-size: 15px; color: rgba(255, 255, 255, 0.7); }

/* ─── Sections ──────────────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -1.2px;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

/* ─── Features ──────────────────────────────────────────────────────────── */
.features { padding: 120px 8vw; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: white;
}
.icon-scan   { background: linear-gradient(135deg, var(--forest), var(--sage)); }
.icon-check  { background: linear-gradient(135deg, var(--gluten-free-2), var(--gluten-free)); }
.icon-history{ background: linear-gradient(135deg, var(--sage), var(--gluten-free)); }
.feature-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── How it works ──────────────────────────────────────────────────────── */
.howto {
  background: linear-gradient(160deg, var(--cream), var(--mist));
  padding: 120px 8vw;
}
.howto-inner { max-width: 1100px; margin: 0 auto; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}
.step {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--text-primary);
  color: white;
  font-weight: 800;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 17px;
}
.step h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.step p { color: var(--text-secondary); font-size: 15px; line-height: 1.5; }

/* ─── Pricing ───────────────────────────────────────────────────────────── */
.pricing { padding: 120px 8vw; }
.price-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.price-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.price-card .price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.8px;
  margin-bottom: 24px;
}
.price-card .price span {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.price-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  position: relative;
  padding-left: 28px;
}
.price-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  background: var(--gluten-free);
  border-radius: 50%;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.price-card li:last-child { border-bottom: none; }
.price-card-featured {
  background: linear-gradient(160deg, var(--forest), #244A38);
  color: white;
  border: none;
  box-shadow: var(--shadow-strong);
}
.price-card-featured h3,
.price-card-featured .price span { color: rgba(255, 255, 255, 0.7); }
.price-card-featured li { color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.12); }
.price-card-featured .badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--gluten-free);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-green);
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: #0F1E15;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 8vw 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-size: 15px; line-height: 1.55; max-width: 320px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-cols h4 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.footer-cols a {
  display: block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  transition: color .15s ease;
}
.footer-cols a:hover { color: var(--gluten-free); }
.footer-bottom {
  max-width: 1200px;
  margin: 60px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.6); text-decoration: underline; }

/* ─── Legal / support pages ─────────────────────────────────────────────── */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 32px 120px;
}
.legal-page h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.6px;
  margin-bottom: 16px;
}
.legal-page .updated {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 48px;
}
.legal-page h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 40px 0 14px;
}
.legal-page h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
}
.legal-page p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.legal-page ul, .legal-page ol {
  margin: 0 0 18px;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--gluten-free-2); text-decoration: underline; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}
.faq-item h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.faq-item p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

.support-cta {
  background: linear-gradient(135deg, var(--forest), var(--sage));
  border-radius: var(--radius-lg);
  padding: 36px;
  color: white;
  text-align: center;
  margin-top: 48px;
}
.support-cta h2 { color: white; font-size: 24px; margin-bottom: 8px; }
.support-cta p { color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; }
.support-cta a {
  display: inline-block;
  background: white;
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-header { padding: 14px 20px; }
  .site-nav { gap: 16px; font-size: 14px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px 80px;
    text-align: center;
  }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .lede { font-size: 17px; }
  .cta-row { justify-content: center; }
  .features, .howto, .pricing { padding: 80px 24px; }
  .feature-grid, .steps, .price-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}
