/* Noodl marketing site — shared styles
   Palette pulled from the app theme (constants/theme.ts):
   zest orange #FF6B35 (brand), sage green #4ADE80 (accent), ink #1C1C1E. */

:root {
  --brand: #ff6b35;
  --brand-dark: #e8541f;
  --accent: #34c759;
  --accent-soft: #4ade80;
  --ink: #1c1c1e;
  --muted: #6b6b70;
  --bg: #fffaf6;
  --bg-warm: #fff2e9;
  --card: #ffffff;
  --line: #f0e3d7;
  --shadow: 0 18px 50px -24px rgba(232, 84, 31, 0.38);
  --radius: 22px;
  --maxw: 1080px;
  --font-rounded: "SF Pro Rounded", ui-rounded, "Hiragino Maru Gothic ProN",
    "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark { font-family: var(--font-rounded); letter-spacing: -0.02em; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 246, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.wordmark {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wordmark:hover { text-decoration: none; }
.wordmark .bowl { font-size: 1.5rem; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .btn { color: #fff; }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-rounded);
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: 0 10px 24px -10px rgba(232, 84, 31, 0.6);
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); text-decoration: none; }
.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn.ghost:hover { background: #fff; border-color: var(--brand); color: var(--brand-dark); }
.btn.lg { padding: 15px 28px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 120% at 50% -10%, var(--bg-warm) 0%, var(--bg) 55%);
  padding: 70px 0 40px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-rounded);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: #ffe6d8;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  margin: 0 auto 18px;
  max-width: 14ch;
  font-weight: 800;
}
.hero h1 .hl { color: var(--brand); }
.hero p.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 30px;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 16px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Phone mock ---------- */
.hero-mock {
  margin: 46px auto 0;
  width: min(260px, 70vw);
  aspect-ratio: 9 / 18;
  border-radius: 38px;
  background: linear-gradient(160deg, #fff 0%, #fff5ee 100%);
  border: 8px solid #1c1c1e;
  box-shadow: var(--shadow);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  overflow: hidden;
}
.hero-mock .mock-day { font-family: var(--font-rounded); font-weight: 800; font-size: 0.8rem; color: var(--muted); }
.mock-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}
.mock-card .em { font-size: 1.2rem; }
.mock-card.send { background: var(--brand); color: #fff; border: 0; justify-content: center; font-family: var(--font-rounded); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* feature grid */
.features { background: var(--bg-warm); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ic {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-warm);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card.new { border-color: var(--brand); position: relative; }
.card .tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 999px;
}
.card h3 { font-size: 1.18rem; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.step { text-align: center; padding: 10px; }
.step .num {
  width: 46px; height: 46px; margin: 0 auto 14px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font-family: var(--font-rounded); font-weight: 800; font-size: 1.2rem;
  display: grid; place-items: center;
}
.step h3 { font-size: 1.12rem; margin: 0 0 6px; }
.step p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .inner {
  background: linear-gradient(135deg, var(--brand) 0%, #ff8a5b 100%);
  border-radius: 28px;
  padding: 54px 28px;
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.92); max-width: 50ch; margin: 0 auto 26px; }
.cta-band .btn { background: #fff; color: var(--brand-dark); }
.cta-band .btn:hover { background: #fff7f2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c9cf; padding: 48px 0 36px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer .wordmark { color: #fff; }
.site-footer .links { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #c9c9cf; font-weight: 600; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { width: 100%; border-top: 1px solid #333; padding-top: 22px; margin-top: 6px; font-size: 0.82rem; color: #8a8a90; }
.site-footer .legal p { margin: 0 0 8px; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 56px 0 64px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin: 0 0 6px; }
.legal-page .updated { color: var(--muted); margin: 0 0 36px; font-size: 0.95rem; }
.legal-page h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal-page h3 { font-size: 1.08rem; margin: 22px 0 6px; }
.legal-page p, .legal-page li { color: #2c2c30; }
.legal-page ul { padding-left: 22px; }
.legal-page li { margin-bottom: 7px; }
.legal-page .back { display: inline-block; margin-bottom: 28px; font-weight: 700; }
.legal-page .note {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 0.95rem;
}
