/* ============================================================
   A La Carte — landing page
   Palette: dark sage #4A7C59 / cream #FEFAF4 / terracotta #D85A30
   Font: DM Sans
   ============================================================ */

:root {
  --sage: #4A7C59;
  --sage-dark: #2A5636;
  --sage-light: #5FA872;
  --terracotta: #D85A30;
  --cream: #FEFAF4;
  --cream-deep: #F5F1E8;
  --surface: #FFFFFF;
  --text: #33302B;
  --text-secondary: #6B665E;
  --text-muted: #9E9890;
  --border: #E8E2D9;
  --shadow-sm: 0 2px 10px rgba(51, 48, 43, 0.06);
  --shadow-md: 0 12px 34px rgba(51, 48, 43, 0.10);
  --shadow-lg: 0 26px 60px rgba(51, 48, 43, 0.16);
  --radius: 22px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--sage);
  color: #fff;
  padding: 11px 22px;
  box-shadow: 0 8px 17px rgba(140, 140, 140, 0.30);
}
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: 0 12px 22px rgba(140, 140, 140, 0.38); }
.btn-lg  { padding: 15px 30px; font-size: 16px; }
.btn-xl  { padding: 18px 44px; font-size: 18px; box-shadow: 0 12px 26px rgba(140, 140, 140, 0.38); }

/* ============================================================
   STICKY HEADER (blurred, always visible)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(254, 250, 244, 0.43);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(254, 250, 244, 0.53);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(51, 48, 43, 0.05);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand-name { font-weight: 700; font-size: 23px; letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-weight: 500;
  font-size: 17px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--sage); }

/* header Join Beta — a touch more prominent than the base pill button */
.btn-join { font-size: 16.5px; padding: 13px 28px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 150px 24px 40px;
  background:
    radial-gradient(1100px 520px at 78% 8%, rgba(95, 168, 114, 0.18), transparent 60%),
    radial-gradient(900px 500px at 8% 30%, rgba(242, 208, 107, 0.16), transparent 55%),
    var(--cream);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  /* flex pair: text + phone sit together, centered, with a tight gap
     instead of two half-width columns leaving a wide gutter between them */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}
.hero-copy { max-width: 520px; }
.hero-visual { flex-shrink: 0; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 15px 7px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.social-pill-avatar { width: 26px; height: 26px; border-radius: 50%; }

.hero-title {
  /* matches the section-head h2 size in the sections below */
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(20px, 1.9vw, 23px);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-cta-note { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* from -> to phones */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero-arrow {
  width: 92px;
  flex-shrink: 0;
  color: var(--terracotta);
  align-self: center;
  margin: 0 -6px;
}

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  width: 232px;
  flex-shrink: 0;
  background: #17150F;
  border-radius: 40px;
  padding: 9px;
  box-shadow: var(--shadow-lg);
}
.phone-from { transform: rotate(-4deg) translateY(10px); width: 210px; }
.phone-to   { transform: rotate(3deg); }
.phone-static { width: 270px; margin: 0 auto; }

.phone-notch {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 22px;
  background: #17150F;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1170 / 2532;
}
/* fallback shown until the hero screenshots are added */
.phone-placeholder {
  background: linear-gradient(160deg, #5FA872, #4A7C59);
}
.phone-img, .phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.phone-tag {
  position: absolute;
  bottom: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  z-index: 4;
}
.phone-tag-from { color: var(--terracotta); }
.phone-tag-to   { color: var(--sage); }

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 54px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.section-sub { font-size: 18px; color: var(--text-secondary); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

/* ============================================================
   VALUE
   ============================================================ */
.value {
  padding: 56px 24px 100px;
  /* subtle blob gradient: yellow top-left, sage lower-right, over cream */
  background:
    radial-gradient(900px 480px at 12% 18%, rgba(242, 208, 107, 0.15), transparent 60%),
    radial-gradient(1000px 540px at 88% 92%, rgba(95, 168, 114, 0.17), transparent 60%),
    var(--cream);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.value-card:hover { transform: translateY(-4px) scale(1.025); box-shadow: var(--shadow-md); }
.value-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.value-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(74, 124, 89, 0.10);
  color: var(--sage);
  display: flex; align-items: center; justify-content: center;
}
.value-icon svg { width: 25px; height: 25px; }
.value-card h3 { font-size: 20px; letter-spacing: -0.02em; }
.value-card p { color: var(--text-secondary); font-size: 15.5px; }

/* ============================================================
   FEATURES (interactive switcher)
   ============================================================ */
.features {
  padding: 100px 24px;
  /* sage top-right, yellow lower-left, over the deeper cream */
  background:
    radial-gradient(1000px 520px at 86% 10%, rgba(95, 168, 114, 0.17), transparent 60%),
    radial-gradient(880px 500px at 6% 88%, rgba(242, 208, 107, 0.14), transparent 58%),
    var(--cream-deep);
}
.features-layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 60px;
  align-items: center;
}
.features-phone { display: flex; justify-content: center; }

.features-list { display: flex; flex-direction: column; gap: 14px; }
.feature-row {
  display: flex;
  gap: 18px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 20px 22px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.feature-row:hover { background: rgba(255, 255, 255, 0.6); transform: scale(1.025); }
.feature-row.is-active {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: scale(1.025);
}
.feature-row-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(74, 124, 89, 0.10);
  color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, color 0.25s;
}
.feature-row-icon svg { width: 24px; height: 24px; }
.feature-row.is-active .feature-row-icon { background: var(--sage); color: #fff; }
.feature-row-text { display: flex; flex-direction: column; gap: 4px; }
.feature-row-title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.feature-row-desc { font-size: 15px; color: var(--text-secondary); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { padding: 100px 24px; }
.how-inner { max-width: 760px; margin: 0 auto; }
.how-head { text-align: center; margin-bottom: 50px; }
.how-head h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; }
.how-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.how-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.how-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--sage);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.how-item h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 6px; }
.how-item p { color: var(--text-secondary); font-size: 15.5px; }

/* ============================================================
   BOTTOM CTA
   ============================================================ */
.cta {
  padding: 120px 24px 130px;
  text-align: center;
  /* sage glow up top, plus yellow + sage blobs drifting in from the sides */
  background:
    radial-gradient(700px 380px at 50% 0%, rgba(74, 124, 89, 0.14), transparent 65%),
    radial-gradient(760px 460px at 12% 88%, rgba(242, 208, 107, 0.15), transparent 60%),
    radial-gradient(820px 500px at 92% 60%, rgba(95, 168, 114, 0.15), transparent 60%),
    var(--cream);
}
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta-title {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 34px;
}
.cta-note { margin-top: 22px; color: var(--text-secondary); font-size: 18px; font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  background: var(--cream);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--text-secondary); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--sage); }
.footer-copy { max-width: var(--max); margin: 22px auto 0; color: var(--text-muted); font-size: 13.5px; }

/* ============================================================
   SCROLL REVEAL (Trippi-style fade-in)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
/* stagger children in grids/lists */
.value-grid .reveal.in-view:nth-child(2) { transition-delay: 0.08s; }
.value-grid .reveal.in-view:nth-child(3) { transition-delay: 0.16s; }
.how-list .reveal.in-view:nth-child(2) { transition-delay: 0.06s; }
.how-list .reveal.in-view:nth-child(3) { transition-delay: 0.12s; }
.how-list .reveal.in-view:nth-child(4) { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding-top: 128px; }
  .hero-inner { flex-direction: column; gap: 56px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 100%; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .value-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* Feature switcher keeps phone-left / cards-right down to a narrower width */
@media (max-width: 760px) {
  .features-layout { grid-template-columns: 1fr; gap: 40px; }
  .features-phone { order: -1; }
}

@media (max-width: 560px) {
  .hero-visual { transform: scale(0.92); }
  .phone-from { width: 178px; }
  .phone { width: 200px; }
  .phone-static { width: 240px; }
  .hero-arrow { width: 64px; }
  .brand-name { font-size: 18px; }
  .btn-xl { padding: 16px 34px; font-size: 16px; }
}
