/* Shared styles for the whole noodleton.com site — colors match
   lib/theme/app_colors.dart exactly so the website and app read as the
   same product. */
:root {
  --background: #FFF9F0;
  --surface: #FFFFFF;
  --text-dark: #3A3A5C;
  --sunshine: #FFD93D;
  --coral: #FF6B6B;
  --sky: #45AAF2;
  --grass: #6BCB77;
  --pink: #FF8FAB;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  /* Defensive net: if any element still overflows on a narrow screen,
     the page scrolls its own content instead of cutting it off — the
     real fix is min-width:0 below, this just guards against the next one. */
  overflow-x: hidden;
  background: var(--background);
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* ---- Nav ---- */
nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
nav.site-nav a.brand {
  font-size: 21px;
  font-weight: 900;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
}
nav.site-nav .links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  /* Load-bearing: without this, a flex item that's itself a flex
     container defaults to min-width:auto (the width needed to fit its
     children on one line) and refuses to shrink below that even though
     it has flex-wrap:wrap — the classic nested-flexbox overflow bug.
     This is what let the nav force the whole page wider than the
     viewport on phones. */
  min-width: 0;
}
nav.site-nav .links a {
  color: var(--text-dark);
  opacity: 0.7;
  text-decoration: none;
}
nav.site-nav .links a:hover { opacity: 1; }
nav.site-nav .cta {
  padding: 9px 18px;
  border-radius: 12px;
  background: var(--grass);
  color: white;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

/* ---- Generic layout ---- */
main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
main.narrow { max-width: 720px; }
section { padding: 56px 0; }
h1 { font-size: 40px; font-weight: 900; line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: 28px; font-weight: 900; margin: 0 0 12px; }
h3 { font-size: 19px; font-weight: 800; margin: 0 0 6px; }
p { font-size: 16px; color: rgba(58, 58, 92, 0.8); }
p.lead { font-size: 19px; color: rgba(58, 58, 92, 0.85); }
a.link { color: var(--sky); font-weight: 700; text-decoration: none; }

/* ---- Hero ---- */
.hero { text-align: center; padding: 40px 0 20px; }
.hero .emoji-row { font-size: 44px; margin-bottom: 8px; letter-spacing: 6px; }
.hero p.lead { max-width: 560px; margin: 0 auto 28px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Mobile ---- */
@media (max-width: 480px) {
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  p.lead { font-size: 17px; }
  .hero .emoji-row { font-size: 30px; letter-spacing: 3px; }
  nav.site-nav .links { gap: 14px; font-size: 13px; }
  .price-card .amount { font-size: 26px; }
  .price-card { padding: 18px; }
}
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}
.btn-primary { background: var(--grass); color: white; }
.btn-secondary { background: var(--surface); color: var(--text-dark); box-shadow: 0 2px 10px rgba(58,58,92,0.10); }

/* ---- Cards / grids ---- */
/* minmax(0, 1fr), not plain 1fr: grid tracks default to a minimum size
   of their content's natural (unwrapped) width, same as flex items — a
   wide, unbreakable bit of content (like "₹840/year") can force its
   column wider than the container, overflowing it on narrow screens.
   minmax(0, 1fr) explicitly allows the track to shrink below that. */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 2px 12px rgba(58, 58, 92, 0.08);
}
.card .icon { font-size: 32px; margin-bottom: 10px; }
.tint-focus { background: rgba(69, 170, 242, 0.12); }
.tint-adventures { background: rgba(255, 217, 61, 0.16); }
.tint-wellness { background: rgba(255, 143, 171, 0.14); }

.pill {
  display: inline-block;
  background: rgba(107, 203, 119, 0.15);
  color: #3a7a45;
  border-radius: 10px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.callout {
  background: rgba(255, 217, 61, 0.18);
  border: 1.5px solid rgba(255, 217, 61, 0.5);
  border-radius: 16px;
  padding: 18px 22px;
  font-size: 14px;
}

/* ---- Pricing ---- */
.price-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  border: 2px solid #e5e5e5;
}
.price-card.featured { border-color: var(--sunshine); background: rgba(255, 217, 61, 0.10); }
.price-card .amount { font-size: 34px; font-weight: 900; }
/* The /month, /year suffix drops to its own line rather than trying to
   stay glued to the number — on a narrow card that reads far better than
   letting the browser break mid-word ("₹87/mo" then "nth" on the next
   line), which is what overflow-wrap: break-word did here. */
.price-card .amount .period { display: block; font-size: 16px; font-weight: 600; margin-top: 2px; }
.price-card .badge {
  display: inline-block;
  background: var(--coral);
  color: white;
  border-radius: 10px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  margin-left: 8px;
}

/* ---- Footer ---- */
footer {
  margin-top: 40px;
  border-top: 1px solid rgba(58, 58, 92, 0.10);
  padding: 28px 24px 40px;
}
footer .inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(58, 58, 92, 0.55);
}
footer a { color: rgba(58, 58, 92, 0.7); text-decoration: none; }
footer .links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Legal pages ---- */
.doc-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(58, 58, 92, 0.08);
}
.doc-card h1 { font-size: 28px; margin-bottom: 4px; }
.doc-card .updated { color: rgba(58, 58, 92, 0.55); font-size: 13px; margin-bottom: 24px; }
.doc-card h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--sky);
  margin: 28px 0 8px;
}
.doc-card h2:first-of-type { margin-top: 0; }
.doc-card p, .doc-card li { font-size: 15px; }
.doc-card ul { padding-left: 20px; margin: 8px 0; }
