/* NayYay marketing site — styled after the APP itself.
   Sources of truth: app/lib/main.dart (yayGreen #6DA32E, nayRed #D7282F,
   mehGold #F3C11B, Material 3 light theme, Roboto, Material icons;
   verdict trio thumb_up / thumbs_up_down / thumb_down; icon top bar;
   green-bordered search field; hexagon-mark Scan button). */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined');

:root {
  --yay: #6DA32E;
  --yay-dark: #578424;
  --yay-tint: #f1f6e9;      /* M3-style primary container tint */
  --nay: #D7282F;
  --meh: #F3C11B;
  --meh-ink: #4a3a00;       /* dark ink on gold (v1.61.2: white-on-gold is illegible) */
  --ink: #1c1b1f;           /* M3 onSurface */
  --ink-soft: #5f6368;      /* the app's grey.shade700-ish icon grey */
  --ink-faint: #9aa0a6;     /* grey.shade500 caption grey */
  --paper: #ffffff;
  --paper-warm: #f8faf5;    /* faint green-warmed surface */
  --line: #e4e6e0;
  --radius: 16px;           /* M3 card rounding */
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Roboto, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--yay-dark); }

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

/* Material icon helpers */
.mi, .mio {
  font-family: 'Material Icons';
  font-weight: normal; font-style: normal;
  display: inline-block; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap;
  word-wrap: normal; direction: ltr;
  -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-size: 24px; vertical-align: middle;
  user-select: none;
}
.mio { font-family: 'Material Icons Outlined'; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
header.site .logo img { height: 32px; width: auto; }
header.site nav { display: flex; align-items: center; gap: 24px; }
header.site nav a {
  text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500;
}
header.site nav a:hover { color: var(--ink); }
header.site nav a.btn { color: #fff; }

/* ---------- Buttons (M3 filled / outlined) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700;
  padding: 12px 24px; border-radius: 999px; font-size: 16px;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn .mi, .btn .mio { font-size: 20px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yay); color: #fff; box-shadow: 0 2px 10px rgba(109, 163, 46, .3); }
.btn-primary:hover { background: var(--yay-dark); }
.btn-ghost { border: 2px solid var(--yay); color: var(--yay-dark); background: transparent; }
.btn-ghost:hover { background: var(--yay-tint); }
header.site .btn { padding: 9px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; }
.hero .cols {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
@media (max-width: 860px) { .hero .cols { grid-template-columns: 1fr; } }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 900;
}
.hero h1 .u-yay { color: var(--yay); }
.hero p.sub {
  font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-soft);
  max-width: 32em; margin: 18px 0 0;
}
.hero .cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .aside { margin-top: 14px; font-size: 14px; color: var(--ink-faint); }

/* verdict trio — the app's VerdictPage buttons */
.verdicts { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.vbtn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; padding: 12px 22px; border-radius: 14px;
  color: #fff; box-shadow: 0 2px 6px rgba(28, 27, 31, .18);
}
.vbtn .mi { font-size: 22px; }
.vbtn.nay { background: var(--nay); }
.vbtn.meh { background: var(--meh); color: var(--meh-ink); }
.vbtn.yay { background: var(--yay); }

/* ---------- The phone (the app's real home screen, drawn in CSS) ---------- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 300px; height: 620px; flex-shrink: 0;
  background: #111; border-radius: 40px; padding: 12px;
  box-shadow: 0 24px 60px rgba(28, 27, 31, .28), 0 4px 14px rgba(28, 27, 31, .18);
}
.phone .screen {
  background: var(--paper); border-radius: 30px; height: 100%;
  display: flex; flex-direction: column; overflow: hidden;
  padding: 14px 12px 18px;
}
/* the icon top bar: compass · tune · bell · spacer · ⋮ */
.phone .topbar { display: flex; align-items: center; gap: 2px; }
.phone .topbar .mi, .phone .topbar .mio {
  font-size: 24px; color: var(--ink-soft); padding: 8px;
}
.phone .topbar .active { color: var(--yay); }
.phone .topbar .spacer { flex: 1; }
.phone .topbar .badged { position: relative; }
.phone .topbar .badged .count {
  position: absolute; top: 3px; right: 0;
  background: var(--nay); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
/* the centered search-first home */
.phone .home { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.phone .searchbar {
  display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--yay); border-radius: 999px;
  padding: 10px 14px; background: var(--paper);
}
.phone .searchbar .mi { color: var(--yay); font-size: 20px; }
.phone .searchbar span.ph { color: var(--ink-faint); font-size: 14px; }
.phone .home .caption {
  text-align: center; font-size: 11px; color: var(--ink-faint); margin-top: 10px;
}
/* the hexagon-mark Scan button */
.phone .scanbtn { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.phone .scanbtn img { height: 52px; width: auto; }
.phone .scanbtn span { font-size: 12px; font-weight: 700; color: var(--ink); }

/* ---------- Thesis band ---------- */
.thesis { background: var(--ink); color: #fff; padding: 56px 0; text-align: center; }
.thesis blockquote {
  font-size: clamp(20px, 3vw, 28px); font-weight: 700; line-height: 1.35;
  max-width: 24em; margin: 0 auto;
}
.thesis blockquote .q { color: var(--meh); }
.thesis p { margin: 18px auto 0; max-width: 44em; color: #c7cdd8; font-size: 16px; }

/* ---------- Sections ---------- */
section.block { padding: 76px 0; }
section.block.warm { background: var(--paper-warm); }
.kicker {
  text-transform: uppercase; letter-spacing: .12em; font-size: 13px;
  font-weight: 800; color: var(--yay-dark); margin-bottom: 10px;
}
section.block h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.01em; line-height: 1.2; }
section.block p.lead { color: var(--ink-soft); max-width: 40em; margin-top: 14px; font-size: 17px; }

/* use-case cards — M3 cards with a tinted icon disc */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 36px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 4px rgba(28, 27, 31, .05);
}
.card .disc {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--yay-tint); color: var(--yay-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.card .disc .mio { font-size: 24px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* how-it-works steps — each with a mini app-UI vignette */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 36px; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--yay); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.step .vignette {
  margin-top: 18px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper-warm); padding: 14px; min-height: 96px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}

/* vignette 1: scan */
.vg-scan { align-items: center; }
.vg-scan .mio { font-size: 44px; color: var(--yay); }
.vg-scan .reticle {
  border: 2px solid var(--yay); border-radius: 10px; padding: 8px 16px;
}

/* vignette 2: the three verdict buttons, small */
.vg-verdicts { flex-direction: row !important; justify-content: center; gap: 10px; }
.vg-verdicts .vbtn { padding: 9px 14px; font-size: 14px; border-radius: 12px; }
.vg-verdicts .vbtn .mi { font-size: 18px; }

/* vignette 3: app-style list rows (name · maker · verdict face right) */
.vg-rows { gap: 0; padding: 6px 8px; }
.row {
  display: flex; align-items: center; gap: 10px; padding: 8px 6px;
}
.row + .row { border-top: 1px solid var(--line); }
.row .thumb {
  width: 34px; height: 34px; border-radius: 8px; background: var(--yay-tint);
  display: flex; align-items: center; justify-content: center; color: var(--yay-dark);
}
.row .thumb .mio { font-size: 18px; }
.row .txt { flex: 1; min-width: 0; }
.row .txt .name { font-size: 13px; font-weight: 500; line-height: 1.25; }
.row .txt .meta { font-size: 11px; color: var(--ink-faint); }
.row > .mi { font-size: 20px; }
.c-yay { color: var(--yay); } .c-meh { color: var(--meh); } .c-nay { color: var(--nay); }

/* vignette 4: a friend's voice */
.vg-voice { gap: 6px; }
.voice { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.voice .who {
  width: 26px; height: 26px; border-radius: 50%; background: var(--yay); color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.voice .mi { font-size: 18px; }
.voice .quote { color: var(--ink-soft); font-style: italic; }

/* friends split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 8px; }
.split .mark-big { max-height: 220px; width: auto; margin: 0 auto; }
.split ul { margin: 18px 0 0 0; list-style: none; }
.split li { padding-left: 34px; position: relative; margin-bottom: 12px; color: var(--ink-soft); font-size: 16px; }
.split li .mio {
  position: absolute; left: 0; top: 2px; color: var(--yay); font-size: 22px;
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split .mark-big { max-height: 150px; } }

/* beta */
.beta-box {
  margin-top: 36px; border: 2px solid var(--yay); border-radius: var(--radius);
  padding: 34px; background: var(--paper);
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center;
}
.beta-box .txt { max-width: 34em; }
.beta-box h3 { font-size: 20px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.beta-box h3 .mio { color: var(--yay-dark); }
.beta-box p { color: var(--ink-soft); font-size: 15px; }
.beta-box .actions { display: flex; flex-direction: column; gap: 12px; min-width: 220px; }

/* beta request form — inputs styled like the app's green search field */
.beta-form {
  flex: 1; min-width: 280px; max-width: 420px;
  display: flex; flex-direction: column; gap: 6px;
}
.beta-form label {
  font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-top: 10px;
}
.beta-form input[type="text"],
.beta-form input[type="email"],
.beta-form textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  border: 2px solid var(--line); border-radius: 12px;
  padding: 11px 14px; background: var(--paper);
  transition: border-color .15s ease;
}
.beta-form textarea { resize: vertical; }
.beta-form input:focus, .beta-form textarea:focus {
  outline: none; border-color: var(--yay);
}
.beta-form input::placeholder, .beta-form textarea::placeholder { color: var(--ink-faint); }
.beta-form button { margin-top: 14px; border: 0; cursor: pointer; }
.beta-form .fineprint { font-size: 12px; color: var(--ink-faint); margin-top: 8px; }

/* thanks page */
main.thanks {
  max-width: 560px; margin: 0 auto; padding: 90px 24px 110px; text-align: center;
}
main.thanks .mark { height: 84px; width: auto; margin: 0 auto 26px; }
main.thanks h1 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.01em; }
main.thanks p { color: var(--ink-soft); margin-top: 16px; font-size: 17px; }
main.thanks .cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: #aab2c0; padding: 48px 0 36px; font-size: 14px; }
footer.site .top {
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center;
  padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 22px;
}
footer.site .top img { height: 40px; width: auto; }
footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site a { color: #d5dae2; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .fine { line-height: 1.8; }

/* ---------- Legal pages ---------- */
main.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
main.legal h1 { font-size: 34px; letter-spacing: -0.01em; margin-bottom: 6px; }
main.legal p.updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 34px; }
main.legal h2 { font-size: 21px; margin: 36px 0 10px; }
main.legal p, main.legal li { color: #333a46; font-size: 16px; }
main.legal ul { margin: 10px 0 10px 24px; }
main.legal li { margin-bottom: 8px; }
main.legal .note {
  background: var(--paper-warm); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin: 22px 0; font-size: 15px; color: var(--ink-soft);
}
