/* Beside — marketing site styles.
   Warm, sunlit day: sand & cream ground, terracotta & amber heart, leaf-green growth.
   Tokens lifted from the app (src/theme/tokens.ts). Literata + Figtree. No dark UI. */

:root {
  /* grounds */
  --sand: #F1E4CE;
  --sand-2: #EAD9BD;
  --cream: #FBF4E8;
  --paper: #FFFFFF;
  /* surfaces */
  --screen: #FCF7EE;
  --screen-2: #F7EEDF;
  --surface: #FFFFFF;
  --surface-2: #FBF2E2;
  /* hairlines */
  --hair: rgba(58, 42, 32, 0.12);
  --hair-soft: rgba(58, 42, 32, 0.06);
  /* ink */
  --ink: #3A2A20;
  --ink-soft: #6B5A4C;
  --ink-faint: #9C8B79;
  /* heart */
  --amber: #E1974C;
  --ochre: #EBAE63;
  --amber-deep: #C97C34;
  --terra: #C4623E;
  --terra-deep: #A84E2F;
  --terra-text: #B0492C;
  /* life */
  --leaf: #7E9A66;
  --leaf-deep: #5F7C4B;
  --leaf-text: #5F7C4B;
  --leaf-soft: #DCE5CC;
  /* tints */
  --amber-tint: rgba(225, 151, 76, 0.15);
  --terra-tint: rgba(196, 98, 62, 0.13);
  --leaf-tint: rgba(126, 154, 102, 0.16);

  --maxw: 1120px;
  --radius-sm: 16px;
  --radius: 22px;
  --radius-lg: 28px;
  --radius-xl: 34px;

  --shadow-soft: 0 4px 14px rgba(58, 42, 32, 0.07);
  --shadow-card: 0 10px 24px rgba(58, 42, 32, 0.10);
  --shadow-lift: 0 18px 44px rgba(58, 42, 32, 0.14);

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--screen);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 500; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1rem; }
a { color: var(--terra-text); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-text);
  margin: 0 0 0.8rem;
}
.eyebrow.leaf { color: var(--leaf-text); }

.lede { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--terra) 0%, var(--terra-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { box-shadow: var(--shadow-lift); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hair);
  box-shadow: var(--shadow-soft);
}
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 247, 238, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hair-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 0.98rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 1rem; }

/* CTA that only appears inside the mobile dropdown menu */
.nav-cta-mobile { display: none; }

/* language switcher */
.lang {
  position: relative;
  font-family: var(--sans);
}
.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { color: var(--ink); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 6px;
  z-index: 60;
}
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.lang-menu a:hover { background: var(--surface-2); text-decoration: none; }
.lang-menu a[aria-current="true"] .dot { opacity: 1; }
.lang-menu .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); opacity: 0; }

.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(225,151,76,0.20), transparent 60%),
    linear-gradient(180deg, #FBEFDC 0%, #F6E7CF 42%, #F4E7D0 72%, var(--screen) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 84px;
}
.hero h1 { margin-bottom: 1rem; }
.hero .lede { max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.1rem; font-size: 0.92rem; color: var(--ink-faint); }
.hero-art { display: flex; justify-content: center; }

/* phone mockup — a living device that leafs through the real app screens */
.phone {
  width: 290px;
  max-width: 78vw;
  aspect-ratio: 390 / 830;
  background: linear-gradient(160deg, #352A22, #211A15);
  border-radius: 46px;
  padding: 11px;
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255,255,255,0.06);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #FBEFDC, #F6E7CF 55%, #F4E7D0);
}
/* cross-fading stack of real screenshots */
.phone-shots { position: absolute; inset: 0; }
.phone-shots .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: shotFade 22s infinite both;
}
/* first frame is visible by default, so a still phone (or reduced motion) shows the Now screen */
.phone-shots .shot:first-child { opacity: 1; }
.phone-shots .shot:nth-child(2) { animation-delay: 5.5s; }
.phone-shots .shot:nth-child(3) { animation-delay: 11s; }
.phone-shots .shot:nth-child(4) { animation-delay: 16.5s; }
@keyframes shotFade {
  0%   { opacity: 0; }
  2%   { opacity: 1; }
  23%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- sections ---------- */
section { padding: 76px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.alt { background: var(--screen-2); }
.sand-band { background: linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%); }

/* transformation row */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
}
.step .num {
  font-family: var(--serif);
  font-size: 1.1rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--terra-tint);
  color: var(--terra-text);
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 0.35em; }
.step p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.feature {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.feature .ic {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--amber-tint);
}
.feature.leaf .ic { background: var(--leaf-tint); }
.feature h3 { font-size: 1.2rem; margin-bottom: 0.3em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* proof / testimonial slots */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote {
  background: var(--surface);
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.quote p { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); line-height: 1.45; }
.quote .who { margin-top: auto; padding-top: 14px; color: var(--ink-faint); font-size: 0.9rem; font-weight: 600; }
.slot-note {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.86rem;
  margin-top: 22px;
  font-style: italic;
}

/* reviews — real review cards with a five-star mark */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review {
  background: var(--surface);
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  margin: 0;
}
.stars {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 14px;
  color: var(--amber);
}
.stars svg { width: 19px; height: 19px; display: block; }
.review p {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 18px;
}
.review .who {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}
.review .avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--terra-tint);
  color: var(--terra-text);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.stat .n { font-family: var(--serif); font-size: 2.4rem; color: var(--terra-text); line-height: 1; }
.stat .l { color: var(--ink-soft); font-size: 0.98rem; margin-top: 8px; }

/* boundary / trust band */
.trust {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}
.trust h3 { color: var(--leaf-text); }
.trust .col p { color: var(--ink-soft); margin: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius-xl);
  padding: 6px 12px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--terra) 0%, var(--terra-deep) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 44px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: #fff; color: var(--terra-deep); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.store-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- guide hub ---------- */
.guide-hero {
  background: linear-gradient(180deg, #FBEFDC 0%, var(--screen) 100%);
  padding: 64px 0 40px;
}
.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.guide-card {
  background: var(--surface);
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  display: block;
  color: inherit;
}
.guide-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-card); }
.guide-card .tag {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber-deep);
}
.guide-card h3 { margin: 10px 0 8px; font-size: 1.25rem; }
.guide-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.guide-card .more { display: inline-block; margin-top: 14px; color: var(--terra-text); font-weight: 600; font-size: 0.95rem; }

/* ---------- article ---------- */
.article-hero { background: linear-gradient(180deg, #FBEFDC 0%, var(--screen) 100%); padding: 56px 0 30px; }
.breadcrumb { font-size: 0.86rem; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); }
.article { padding: 20px 0 60px; }
.article-body { font-size: 1.08rem; }
.article-body h2 { margin-top: 2em; }
.article-body h3 { margin-top: 1.5em; }
.article-body ul { padding-left: 1.2em; }
.article-body li { margin-bottom: 0.5rem; }

.answer {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 4px solid var(--terra);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-soft);
  margin: 0 0 34px;
}
.answer .label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--terra-text); margin-bottom: 8px;
}
.answer p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink); margin: 0; }

.callout {
  background: var(--leaf-tint);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0;
}
.callout.leaf { border: 1px solid rgba(126,154,102,0.3); }
.callout h3 { color: var(--leaf-text); margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.faq { margin-top: 40px; }
.faq details {
  border-bottom: 1px solid var(--hair);
  padding: 6px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.15rem;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terra-text); font-family: var(--sans); font-size: 1.4rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 16px; color: var(--ink-soft); margin: 0; }

.sources {
  margin-top: 36px;
  font-size: 0.92rem;
  color: var(--ink-faint);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.sources strong { color: var(--ink-soft); }

.related { margin-top: 44px; }
.related h3 { margin-bottom: 16px; }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-list a {
  background: var(--surface);
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius-sm);
  padding: 18px;
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--shadow-soft);
  font-size: 0.98rem;
}
.related-list a:hover { text-decoration: none; box-shadow: var(--shadow-card); }

.inline-cta {
  margin-top: 44px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.inline-cta h3 { font-size: 1.5rem; }
.inline-cta p { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 18px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--sand);
  border-top: 1px solid var(--hair-soft);
  padding: 56px 0 34px;
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid h4 { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--ink-soft); font-size: 0.96rem; }
.footer-blurb { color: var(--ink-soft); font-size: 0.98rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid var(--hair-soft);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--ink-faint);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  /* text first, device below — the copy sells before the phone shows up */
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 36px 0 48px; }
  .hero-copy { order: 0; }
  .hero-art { order: 1; }
  .steps, .features, .proof-grid, .reviews, .guide-cards, .stats, .related-list { grid-template-columns: 1fr; }
  .trust, .cta-band { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* tighter vertical rhythm on smaller screens */
  section { padding: 54px 0; }
  .section-head { margin-bottom: 32px; }
  .trust { padding: 28px 22px; gap: 24px; }
  .inline-cta { padding: 30px 24px; }
  .answer { padding: 22px 22px; }

  /* ----- mobile navigation ----- */
  .nav { height: 64px; }
  .nav-right { gap: 0.6rem; }
  /* header CTA moves into the dropdown; keep the bar to brand, language and menu */
  .nav-right .nav-cta-desktop { display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--hair);
    box-shadow: var(--shadow-card);
  }
  /* every menu row sits inside the padded panel, never against the edge */
  .nav-links.open a {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 500;
  }
  .nav-links.open a:hover { background: var(--surface-2); text-decoration: none; }
  .nav-links.open .nav-cta-mobile {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    margin-top: 10px;
    min-height: 54px;
    padding: 14px 18px;
    color: #fff;
    font-weight: 600;
  }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border: 1px solid var(--hair);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
  }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  /* one consistent side margin so no text or card ever touches the edge */
  .wrap { padding: 0 22px; }
  section { padding: 46px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  /* roomier tap targets for footer links on touch screens */
  .footer-grid li { margin-bottom: 2px; }
  .footer-grid a { display: inline-block; padding: 7px 0; }
  .footer-bottom { gap: 6px; }
  .btn { width: 100%; justify-content: center; }
  /* hero has two short actions that sit fine side by side */
  .hero-cta { gap: 0.6rem; }
  .hero-cta .btn { flex: 1 1 auto; width: auto; }
  .cta-band { padding: 34px 22px; }
  .store-row .btn { width: 100%; }

  /* smaller, tidier device on phones */
  .phone { width: 208px; max-width: 62vw; padding: 9px; border-radius: 40px; }
  .phone-screen { border-radius: 31px; }

  /* Built on what works: keep numbers and labels crisply centred */
  .stats { gap: 22px; }
  .stat .n { font-size: 2.6rem; }
  .stat .l { max-width: 26ch; margin: 8px auto 0; }

  /* reviews read cleanly one under another */
  .review { padding: 24px 22px 22px; }
}
