/* FiestaMind landing — light festive system. Class vocabulary: fm-*.
   Palette mirrors ios/FiestaMind/Features/Shared/BrandColors.swift (docs/BRAND.md). */
:root {
  --bg: #fff8f0;
  --surface: #ffffff;
  --surface-2: #fff1e6;
  --ink: #2b1b3d;
  --muted: #7a6c8a;
  --faint: #b5abc2;
  --primary: #e23d75;
  --primary-ink: #ffffff;
  --secondary: #ffc53d;
  --accent: #2bb5a6;
  --accent-2: #6c4ab6;
  --ok: #2e9e5b;
  --warn: #e08a00;
  --danger: #d93636;
  --line: #efe4d8;
  --line-soft: #f6eee6;
  --shadow: 0 1px 0 var(--line), 0 18px 40px rgba(226, 61, 117, .10);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 14px; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.fm-num { font-variant-numeric: tabular-nums; font-weight: 700; }

.fm-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.fm-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.fm-center { text-align: center; }
.fm-mt { margin-top: 40px; }
.fm-lede--center { margin: 0 auto; }
.fm-sec--tight { padding-top: 0; }
.fm-foot-note { margin-top: 12px; }

/* nav */
.fm-top { position: sticky; top: 0; z-index: 10; background: rgba(255, 248, 240, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.fm-nav { max-width: 1080px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fm-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.fm-brand img { width: 28px; height: 28px; border-radius: 7px; }
.fm-nav a.fm-navlink { color: var(--muted); font-size: 14px; }

/* hero */
.fm-hero { position: relative; padding: 64px 0 56px; background: radial-gradient(900px 420px at 80% -10%, rgba(255, 197, 61, .35), transparent 60%), radial-gradient(700px 360px at 10% 10%, rgba(43, 181, 166, .18), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--bg)); border-bottom: 1px solid var(--line-soft); }
.fm-hero-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.fm-hero-art { display: flex; justify-content: center; }
.fm-hero-art img { width: min(320px, 80%); height: auto; filter: drop-shadow(0 18px 30px rgba(43, 27, 61, .18)); }
.fm-eyebrow { display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); font-weight: 800; margin-bottom: 14px; }
.fm-lede { color: var(--muted); font-size: 18px; max-width: 640px; }
.fm-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.fm-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; }
.fm-btn--primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 10px 24px rgba(226, 61, 117, .28); }
.fm-btn--primary:hover { text-decoration: none; filter: brightness(1.05); }
.fm-btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.fm-subnote { color: var(--faint); font-size: 14px; }

/* trust strip */
.fm-trust { border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.fm-trust-row { max-width: 1080px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; color: var(--muted); font-size: 14px; }
.fm-badge { display: inline-flex; align-items: center; gap: 8px; }
.fm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* sections */
.fm-sec { padding: 64px 0; }
.fm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.fm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.fm-card h3 { display: flex; align-items: center; gap: 10px; }
.fm-icon { display: inline-flex; width: 34px; height: 34px; border-radius: 9px; align-items: center; justify-content: center; background: rgba(226, 61, 117, .12); color: var(--primary); font-size: 16px; }
.fm-card p { color: var(--muted); margin: 0; }

/* example list */
.fm-list { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.fm-list-head { padding: 20px 22px; border-bottom: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: baseline; }
.fm-list-head h3 { margin: 0; }
.fm-list-head .fm-meta { color: var(--faint); font-size: 13px; }
.fm-ai { display: flex; gap: 10px; align-items: flex-start; margin: 16px 22px 0; padding: 12px 14px; border-radius: 12px; background: rgba(224, 138, 0, .10); border: 1px solid rgba(224, 138, 0, .35); color: var(--ink); font-size: 14px; }
.fm-ai b { color: var(--warn); }
.fm-budget { margin: 16px 22px 0; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 8px; }
.fm-budget-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--muted); }
.fm-budget-row .fm-num { color: var(--ink); font-size: 20px; }
.fm-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.fm-bar > span { display: block; height: 100%; width: 55%; background: var(--ok); border-radius: 999px; }
.fm-cat { padding: 14px 22px 4px; }
.fm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.fm-chip--decor { background: rgba(226, 61, 117, .14); color: var(--primary); }
.fm-chip--table { background: rgba(108, 74, 182, .14); color: var(--accent-2); }
.fm-chip--food { background: rgba(224, 138, 0, .14); color: var(--warn); }
.fm-chip--drinks { background: rgba(43, 181, 166, .16); color: var(--accent); }
.fm-items { list-style: none; margin: 0; padding: 0 0 8px; }
.fm-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--line-soft); }
.fm-item:last-child { border-bottom: 0; }
.fm-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--faint); display: inline-block; }
.fm-check--done { border-color: var(--ok); background: var(--ok); position: relative; }
.fm-check--done::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 800; position: absolute; inset: 0; display: grid; place-items: center; }
.fm-item .fm-name { font-weight: 700; }
.fm-item .fm-name--done { color: var(--muted); text-decoration: line-through; }
.fm-item .fm-line { color: var(--accent-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.fm-item .fm-why { color: var(--muted); font-size: 13px; }
.fm-item .fm-buy { font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(226, 61, 117, .55); color: var(--primary); white-space: nowrap; font-weight: 700; }
.fm-item .fm-buy:hover { background: rgba(226, 61, 117, .10); text-decoration: none; }
.fm-disclosure { margin: 16px 22px 20px; color: var(--muted); font-size: 13px; }

/* steps */
.fm-steps { padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.fm-step { position: relative; padding: 22px 22px 22px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.fm-step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-weight: 800; }
.fm-step h3 { margin-bottom: 6px; font-size: 17px; }
.fm-step p { color: var(--muted); margin: 0; font-size: 15px; }

/* footer */
.fm-foot { border-top: 1px solid var(--line-soft); padding: 32px 0 48px; color: var(--faint); font-size: 14px; }
.fm-foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.fm-foot a { color: var(--muted); }

/* docs (privacy/terms) */
.fm-doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.fm-doc h1 { font-size: 36px; }
.fm-doc h2 { font-size: 22px; margin-top: 32px; }
.fm-doc p, .fm-doc li { color: var(--muted); }
.fm-doc .fm-meta { color: var(--faint); font-size: 14px; }
.fm-doc ul { padding-left: 22px; }
.fm-back { display: inline-block; margin-bottom: 24px; color: var(--accent-2); }

@media (max-width: 760px) {
  .fm-hero { padding: 40px 0 36px; }
  .fm-hero-row { grid-template-columns: 1fr; }
  .fm-hero-art { order: -1; }
  .fm-hero-art img { width: min(220px, 60%); }
  .fm-item { grid-template-columns: 26px 1fr; }
  .fm-item .fm-buy { grid-column: 2; justify-self: start; }
}
