/* Aali — landing and legal pages.
   The brand tokens, kept in step with lib/core/theme/app_colors.dart by hand.
   There are two of them because the site must not need a build step: Play
   will not accept a Data safety form without a live privacy URL, and a page
   that needs a bundler to render its own privacy policy is a page that will
   one day be down when a reviewer looks. */

:root {
  --berry: #c2334f;
  --berry-deep: #a82a45;
  --plum-ink: #2a1b2e;
  --plum: #4b2a55;
  --teal: #2b7a80;
  --blush: #fbf6f3;
  --rose-tint: #f6e7eb;
  --lavender: #efe8f6;
  --line: #e8dfe2;
  --ink-muted: #6b5a6e;

  --gutter: 20px;
  --radius-card: 20px;
  --radius-pill: 28px;
  --max: 760px;
}

@font-face {
  font-family: 'Fraunces';
  src: url('assets/Fraunces-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/Manrope-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/Manrope-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--blush);
  color: var(--plum-ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
}

h1 { font-size: clamp(32px, 6vw, 46px); }
h2 { font-size: clamp(24px, 4vw, 30px); margin-top: 40px; }
h3 { font-size: 20px; margin-top: 28px; }

p, li { color: var(--plum-ink); }
p { margin: 0 0 16px; }

a { color: var(--berry); }
a:hover { color: var(--berry-deep); }

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

header.site {
  padding: 28px 0 8px;
}

header.site img { height: 30px; display: block; }

.lede {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  margin: 20px 0;
}

.card.tint { background: var(--rose-tint); border-color: transparent; }
.card.quiet { background: var(--lavender); border-color: transparent; }

.btn {
  display: inline-block;
  background: var(--berry);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 0;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--berry-deep); color: #fff; }

.btn.ghost {
  background: transparent;
  color: var(--plum-ink);
  border: 1px solid var(--line);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 1.1px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 8px;
}

.promise {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.promise svg { flex: none; margin-top: 3px; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 24px 0;
}

.muted { color: var(--ink-muted); }
.small { font-size: 14px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

footer.site {
  padding: 40px 0 60px;
  color: var(--ink-muted);
  font-size: 14px;
}
footer.site a { color: var(--ink-muted); margin-right: 16px; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 15px;
}
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-muted); }

code {
  background: var(--rose-tint);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blush: #1a1119;
    --plum-ink: #f6eff2;
    --line: #3b2e3c;
    --ink-muted: #bfaec2;
    --rose-tint: #3a2129;
    --lavender: #2e2440;
    --berry: #e0566f;
    --berry-deep: #ef7489;
  }
  .card { background: #241a24; }
  header.site img { filter: brightness(0) invert(1); }
}
