/* rosada.app. Design: apps/mobile/docs/rosada.app website.html. Tokens match the app (apps/mobile/src/ui/theme.ts). */

@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url(/fonts/figtree-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url(/fonts/figtree-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url(/fonts/figtree-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); }

:root {
  --bg: #FBF5F3;
  --surface: #FFFFFF;
  --tonal: #F3E7EB;
  --accent: #6B2D5C;
  --accent-pressed: #4A1D3F;
  --accent-soft: #F6E3EA;
  --ink: #2A1621;
  --body: #5E4652;
  --muted: #6E5562;
  --line: #E6D3DB;
  --divider: #F1E6EA;
  --glow: 247, 184, 206;
  --shadow-card: 0 1px 2px rgba(42,22,33,0.05), 0 8px 20px -10px rgba(42,22,33,0.16);
  --shadow-button: 0 10px 22px -10px rgba(74,29,63,0.7);
  --display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --sans: Figtree, "Helvetica Neue", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-pressed); }
button { font: inherit; cursor: pointer; }
img, svg { display: block; }
strong { font-weight: 700; color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  height: 54px; width: 100%; padding: 0 24px; border: none; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 17px/1.2 var(--sans); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-button); }
.btn-primary:hover, .btn-primary:active { background: var(--accent-pressed); color: #fff; }
.btn-tonal { background: var(--tonal); color: var(--ink); }
.btn-tonal:hover, .btn-tonal:active { background: #EBDAE0; color: var(--ink); }
.btn-inline { width: auto; display: inline-flex; padding: 0 28px; }
.pill {
  height: 44px; padding: 0 18px; border: none; border-radius: 999px;
  background: var(--tonal); color: var(--ink); font: 700 15px/1 var(--sans);
  display: inline-flex; align-items: center; gap: 8px;
}
.pill.is-done { background: var(--accent-soft); color: var(--accent); }

/* Pieces */
.card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-card); }
.eyebrow { font: 700 12px/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.glow { position: relative; display: flex; align-items: center; justify-content: center; }
.glow::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 170%; height: 135%; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--glow), 0.8), rgba(var(--glow), 0));
}
.glow > img { position: relative; }
.brand { font: 800 22px/1 var(--display); letter-spacing: -0.02em; color: var(--accent); }
.h1 { margin: 0; font: 800 30px/1.1 var(--display); letter-spacing: -0.02em; }
.lead { margin: 8px 0 0; color: var(--body); }

/* Header with the small logo (Support, Privacy) */
.site-header { width: 100%; max-width: 1040px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; }
.logo { min-height: 44px; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img { width: 36px; height: 36px; }

/* Footer */
.site-footer { margin-top: auto; padding: 24px 16px 26px; display: flex; justify-content: center; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.site-footer a { min-height: 44px; padding: 0 12px; display: flex; align-items: center; color: var(--muted); font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Invite ---------- */
.invite { width: 100%; max-width: 440px; margin: 0 auto; padding: 16px 16px 0; display: flex; flex-direction: column; }
.invite-head { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 8px; }
.invite-head .glow { width: 150px; height: 120px; }
.invite-head .glow img { width: 120px; height: 120px; }
.invite .h1 { margin-top: 12px; text-align: center; }
.invite .lead { max-width: 330px; margin: 8px auto 0; text-align: center; }
.notice { margin-top: 20px; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 22px; background: var(--accent-soft); }
.notice svg { flex: none; margin-top: 1px; }
.notice-title { font-size: 17px; font-weight: 700; line-height: 1.25; }
.notice-text { font-size: 15px; line-height: 1.4; color: var(--body); }
.code-card { margin-top: 20px; padding: 18px 16px 16px; display: flex; flex-direction: column; align-items: center; }
.code {
  margin: 6px 0 12px; padding-left: 0.1em; font: 800 42px/1.1 var(--display); letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap;
}
.code-actions { display: flex; align-items: center; justify-content: center; gap: 14px; }
.works-once { font-size: 14px; color: var(--muted); }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step { padding: 16px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s; }
.step.is-highlighted { box-shadow: 0 0 0 2px var(--accent), var(--shadow-card); }
.step-head { display: flex; gap: 12px; align-items: flex-start; }
.step-num {
  flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font: 800 15px/1 var(--display);
}
.step-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.step-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.step-title { font-size: 17px; font-weight: 700; line-height: 1.25; }
.step-text { font-size: 14.5px; line-height: 1.4; color: var(--body); }
.badge { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; }
.ask-friend { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--tonal); font-size: 15px; font-weight: 700; line-height: 1.35; }
.ask-friend svg { flex: none; }
.hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); font-size: 14.5px; line-height: 1.4; }
.hint svg { flex: none; margin-top: 1px; }
.small-print { margin: 16px 8px 0; text-align: center; font-size: 14px; line-height: 1.45; color: var(--muted); }
.broken { padding-top: 96px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.broken .glow { width: 180px; height: 170px; }
.broken .glow img { width: 170px; height: 170px; }
.broken .h1 { margin-top: 20px; }
.broken p { margin: 10px 0 0; max-width: 320px; color: var(--body); }
.broken p.small { margin-top: 8px; font-size: 14px; color: var(--muted); }
.broken .btn { margin-top: 28px; }

/* Invite on a computer: code + QR side by side */
.desk { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.desk-inner { width: 100%; max-width: 940px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 56px; }
.desk-text { flex: 1 1 380px; max-width: 440px; display: flex; flex-direction: column; align-items: flex-start; }
.desk-text .glow { width: 132px; height: 120px; }
.desk-text .glow img { width: 120px; height: 120px; }
.desk-text .brand { margin-top: 4px; }
.desk-text .h1 { margin-top: 14px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }
.desk-text .lead { margin-top: 12px; font-size: 18px; }
.desk-code { margin-top: 28px; width: 100%; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.desk-code .code { margin: 0; font-size: 36px; padding-left: 0; }
.desk-code > div { display: flex; flex-direction: column; gap: 4px; }
.qr { flex: 0 1 360px; margin: 0; padding: 32px 28px 28px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.qr-box { padding: 16px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.qr-box svg, .qr-box img { width: 208px; height: 208px; }
.qr figcaption { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.qr-title { font: 700 21px/1.2 var(--display); letter-spacing: -0.01em; }
.qr-text { font-size: 15px; line-height: 1.4; color: var(--body); }

/* ---------- Home ---------- */
.home { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px 24px; }
.home-inner { width: 100%; max-width: 1000px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 64px; }
.home-art { flex: 0 1 380px; min-height: 260px; }
.home-art::before { width: 400px; max-width: 110%; height: 340px; }
.home-art img { width: clamp(200px, 26vw, 300px); height: auto; }
.home-text { flex: 1 1 340px; max-width: 520px; display: flex; flex-direction: column; }
.home-title { margin: 0; font: 800 clamp(42px, 5vw, 64px)/1 var(--display); letter-spacing: -0.04em; color: var(--accent); }
.home-lead { margin: 12px 0 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.4; }
.features { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.features li { display: flex; gap: 14px; align-items: center; color: var(--body); line-height: 1.4; }
.feature-icon { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.invite-only { margin-top: 28px; display: flex; gap: 12px; align-items: center; padding: 16px 18px; line-height: 1.4; }
.invite-only svg { flex: none; }

/* ---------- Text pages (Support, Privacy) ---------- */
.page { width: 100%; max-width: 640px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-direction: column; }
.page-title { margin: 0; font: 800 clamp(38px, 4vw, 52px)/1.05 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.page .lead { margin-top: 10px; font-size: 17px; }
.mail-card { margin-top: 24px; min-height: 88px; padding: 18px; display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.mail-card:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow-card); }
.mail-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.mail-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mail-address { font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--display); letter-spacing: -0.01em; color: var(--accent); overflow-wrap: anywhere; }
.delete-box { margin-top: 14px; padding: 18px; border-radius: 22px; background: var(--tonal); display: flex; gap: 14px; align-items: flex-start; }
.delete-box svg { flex: none; margin-top: 1px; }
.delete-box h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; }
.delete-box p { margin: 4px 0 0; color: var(--body); }
.section-title { margin: 40px 0 0; font: 700 21px/1.2 var(--display); letter-spacing: -0.01em; }
.faq { margin-top: 14px; }
.faq section { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.faq section + section { border-top: 1px solid var(--divider); margin: 0 18px; padding-left: 0; padding-right: 0; }
.faq h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.faq p { margin: 0; line-height: 1.5; color: var(--body); }
.faq a, .prose a { font-weight: 600; }

.prose { max-width: 36rem; margin: 0 auto; font-size: 17px; line-height: 1.6; color: var(--body); }
.prose .updated { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.prose .intro { margin: 24px 0 0; font-size: 19px; line-height: 1.55; color: var(--ink); }
.prose h2 { margin: 36px 0 0; font: 700 21px/1.25 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.prose p { margin: 10px 0 0; }
.prose ul { margin: 12px 0 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.table-wrap { margin-top: 16px; overflow-x: auto; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.4; text-align: left; }
.prose th { padding: 14px 16px; font: 700 12px/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.prose td { padding: 12px 16px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.prose tr:last-child td { border-bottom: none; }
.prose td:first-child { color: var(--ink); font-weight: 700; }

/* ---------- 404 ---------- */
.lost { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 16px 24px; }
.lost .glow { width: 190px; height: 180px; }
.lost .glow img { width: 180px; height: 180px; }
.lost .h1 { margin-top: 24px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }
.lost p { margin: 10px 0 0; max-width: 340px; font-size: 17px; color: var(--body); }
.lost .btn { margin-top: 28px; }
