/* Miav marketing site — shared styles.
   Self-contained on purpose: no webfont, no CDN, no analytics. The page is one HTML
   request plus this file and two images, so it paints instantly on mobile data —
   which is the whole reason the apex is a static site and not the Flutter SPA.
   Light and dark both first-class, driven by prefers-color-scheme. */

:root {
  --pink: #DD1A80;
  --pink-hot: #FB2E88;
  --ink: #1A0A22;
  --muted: #5C4E66;
  --bg: #FFFFFF;
  --surface: #FDF4F9;
  --line: #F0DCE9;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F6EEF5;
    --muted: #B9A9C4;
    --bg: #010015;
    --surface: #120A24;
    --line: #2A1B3D;
    --pink: #FB2E88;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
header nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
header nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); }
header nav a:hover { color: var(--ink); }
@media (max-width: 640px) { header nav .hide-sm { display: none; } }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: 99px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--pink-hot)); color: #fff;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--pink) 70%, transparent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--pink) 75%, transparent); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; border: 2px solid var(--line); }
.btn.ghost:hover { border-color: var(--pink); }
.btn.lg { font-size: 17px; padding: 15px 32px; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 76px; text-align: center; }
.hero .mark { width: 108px; height: 108px; border-radius: 26px; margin: 0 auto 30px; box-shadow: 0 18px 40px -14px rgba(221,26,128,.55); }
.hero h1 { margin: 0 0 20px; font-size: clamp(2.4rem, 6.5vw, 4rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 850; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--pink), var(--pink-hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { margin: 0 auto 34px; max-width: 30rem; font-size: 1.16rem; color: var(--muted); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 34rem; margin: 0 auto 52px; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.03em; font-weight: 800; }
.section-head p { margin: 0; color: var(--muted); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.card .emoji { font-size: 30px; line-height: 1; margin-bottom: 16px; }
.card h3 { margin: 0 0 9px; font-size: 1.12rem; font-weight: 750; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* ---------- closing ---------- */
.closing { text-align: center; }
.closing .box { background: linear-gradient(135deg, var(--pink), var(--pink-hot)); border-radius: 30px; padding: 62px 32px; color: #fff; }
.closing h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 4.5vw, 2.6rem); letter-spacing: -.03em; font-weight: 850; }
.closing p { margin: 0 0 30px; opacity: .93; }
.closing .btn { background: #fff; color: var(--pink); box-shadow: 0 10px 26px -10px rgba(0,0,0,.4); }

/* ---------- document pages (privacy / terms / support) ---------- */
.doc { width: min(720px, 100% - 40px); margin: 0 auto; padding: 60px 0 90px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.03em; font-weight: 850; margin: 0 0 10px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: 1.35rem; font-weight: 780; letter-spacing: -.02em; margin: 44px 0 12px; }
.doc h3 { font-size: 1.08rem; font-weight: 720; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); font-weight: 680; }
.doc a { color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 46px 0; }

/* A visible, deliberately ugly banner. These documents are unreviewed drafts and
   must not read as if they were finished legal text. Removing this banner is a
   decision, not a cleanup — see apps/site/CLAUDE.md. */
.draft-banner {
  background: #FFF4CC; border: 2px solid #E8B931; color: #4A3708;
  border-radius: 14px; padding: 16px 20px; margin: 0 0 36px; font-size: 15px; line-height: 1.55;
}
.draft-banner strong { color: #4A3708; }
@media (prefers-color-scheme: dark) {
  .draft-banner { background: #2E2408; border-color: #8A6B18; color: #F5E3B0; }
  .draft-banner strong { color: #F5E3B0; }
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 46px 0 60px; font-size: 15px; color: var(--muted); }
footer .cols { display: flex; flex-wrap: wrap; gap: 34px 60px; align-items: flex-start; }
footer .links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .fine { margin-top: 34px; font-size: 13.5px; opacity: .8; }
