:root {
  --bg: #FFF9F5;
  --surface: #FFFFFF;
  --muted-surface: #F5ECE6;
  --accent-soft: #FFEDD5;
  --border: #F0E2D8;
  --hairline: #EDE0D6;
  --ink: #1C1917;
  --ink-secondary: #5F554E;
  --ink-tertiary: #8C827A;
  --brand: #C2410C;
  --brand-hover: #9A3412;
  --brand-bright: #EA580C;
  --hero-start: #2B1F1A;
  --hero-end: #18110E;
  --hero-border: #3F2D24;
  --hero-pill-bg: #452617;
  --hero-pill-ink: #FDBA74;
  --success: #15803D;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 18px 46px rgba(28, 22, 19, 0.07);
  --shadow-phone: 0 28px 64px rgba(28, 22, 19, 0.22);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 16px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 200;
}

.skip-link:focus {
  top: 16px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Sticky Frosted Studio Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 249, 245, 0.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.22);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  color: var(--ink-secondary);
  font-weight: 600;
  font-size: 0.94rem;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.25);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-header:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(194, 65, 12, 0.33);
}

/* Hero Section */
.hero {
  padding: 58px 0 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 4.6vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 850;
}

.hero-lede {
  margin: 0 0 28px;
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  color: var(--ink-secondary);
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.store-badge img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform 0.16s ease;
}

.store-badge:hover img {
  transform: translateY(-2px);
}

.store-note {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--ink-tertiary);
  font-weight: 500;
}

/* Interactive Studio Meal-to-Grocery Demo Widget */
.studio-demo {
  background: linear-gradient(155deg, var(--hero-start), var(--hero-end));
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  color: #FAF8F6;
  box-shadow: var(--shadow-phone);
}

.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hero-pill-bg);
  color: var(--hero-pill-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}

.demo-hint {
  font-size: 0.82rem;
  color: #D6CEC8;
}

.demo-meals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-bottom: 16px;
}

.demo-meal-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #FAF8F6;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: start;
  transition: all 0.18s ease;
}

.demo-meal-btn:hover {
  background: rgba(255, 255, 255, 0.11);
}

.demo-meal-btn.is-active {
  background: linear-gradient(135deg, #EA580C, #C2410C);
  border-color: #FB923C;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.34);
}

.demo-meal-emoji {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.demo-list-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: 18px;
  padding: 16px;
}

.demo-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

.demo-list-title {
  font-weight: 800;
  font-size: 0.95rem;
}

.demo-list-count {
  background: var(--accent-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 999px;
}

.demo-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  user-select: none;
}

.demo-row:last-child {
  border-bottom: none;
}

.demo-check {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 2px solid #B8ACA3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  color: #fff;
  transition: all 0.16s ease;
}

.demo-row.is-checked .demo-check {
  background: var(--brand);
  border-color: var(--brand);
}

.demo-row.is-checked .demo-item-name {
  text-decoration: line-through;
  color: var(--ink-tertiary);
}

.demo-item-emoji {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--muted-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.96rem;
  flex-shrink: 0;
}

.demo-item-name {
  font-weight: 650;
  font-size: 0.92rem;
  flex: 1;
}

.demo-item-aisle {
  font-size: 0.74rem;
  color: var(--ink-tertiary);
  font-weight: 600;
}

.demo-item-qty {
  background: var(--muted-surface);
  color: var(--ink);
  font-weight: 750;
  font-size: 0.8rem;
  padding: 3px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* 3-Phone Real App Showcase */
.screens-section {
  padding: 36px 0 72px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1.06rem;
}

.phones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.phone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 22px 26px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  width: 100%;
  max-width: 252px;
  background: #1C1613;
  padding: 10px;
  border-radius: 38px;
  box-shadow: 0 18px 40px rgba(28, 22, 19, 0.18);
  margin-bottom: 20px;
}

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

.phone-card h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  font-weight: 800;
}

.phone-card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

/* Feature Bento Grid */
.features-section {
  padding: 32px 0 72px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.bento-card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.97rem;
}

/* Privacy Callout Banner */
.privacy-banner {
  margin: 12px 0 72px;
  background: linear-gradient(145deg, var(--hero-start), var(--hero-end));
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-xl);
  padding: 42px 36px;
  color: #FAF8F6;
  text-align: center;
}

.privacy-banner h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 850;
}

.privacy-banner p {
  margin: 0 auto 26px;
  max-width: 620px;
  color: #DDD4CE;
  font-size: 1.05rem;
}

/* FAQ Accordion */
.faq-section {
  padding: 12px 0 76px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
}

.faq-item summary {
  font-weight: 750;
  font-size: 1.03rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--brand);
  font-weight: 800;
  font-size: 1.25rem;
}

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

.faq-item p {
  margin: 12px 0 0;
  color: var(--ink-secondary);
  font-size: 0.96rem;
}

/* Legal & Support Prose Pages */
.legal-main {
  padding: 52px 0 84px;
}

.legal-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 38px;
  box-shadow: var(--shadow-soft);
}

.legal-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 3.5vw, 2.45rem);
  font-weight: 850;
}

.legal-meta {
  color: var(--ink-tertiary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 1.24rem;
  font-weight: 800;
}

.legal-card p, .legal-card li {
  color: var(--ink-secondary);
  font-size: 0.98rem;
}

.legal-card ul, .legal-card ol {
  padding-inline-start: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.legal-callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--muted-surface);
  border: 1px solid var(--border);
}

.legal-callout p {
  margin: 0;
  color: var(--ink);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.95rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  color: #fff;
  box-shadow: 0 8px 20px rgba(194, 65, 12, 0.24);
}

.btn-primary:hover {
  text-decoration: none;
  background: var(--brand-hover);
}

.btn-ghost {
  background: var(--muted-surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  text-decoration: none;
  background: var(--accent-soft);
  color: var(--brand);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 96px;
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links, .lang-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-links a, .lang-links a {
  color: var(--ink-secondary);
  font-weight: 600;
}

.lang-links a.is-current {
  color: var(--brand);
  font-weight: 800;
}

/* Mobile Floating App Store Bar */
.app-prompt {
  position: fixed;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 120;
  background: rgba(28, 22, 19, 0.96);
  color: #fff;
  border: 1px solid var(--hero-border);
  border-radius: 20px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

.app-prompt[hidden] {
  display: none !important;
}

.app-prompt-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex-shrink: 0;
}

.app-prompt-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.app-prompt-meta strong {
  font-size: 0.94rem;
}

.app-prompt-meta span {
  font-size: 0.76rem;
  color: #D6CEC8;
}

.app-prompt-cta {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  color: #fff;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
}

.app-prompt-close {
  background: transparent;
  border: none;
  color: #A8A29E;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 6px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .phones-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .legal-card {
    padding: 28px 22px;
  }
}

@media (min-width: 768px) {
  .app-prompt {
    display: none !important;
  }
}
