/* crida.app — one stylesheet for the app page and the legal pages.
   Colours and type follow the app (crida-app lib/core/theme.dart, assets/fonts). */

@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0B0D0C;
  --surface: #151917;
  --surface-2: #1C211F;
  --line: rgba(255, 255, 255, .09);
  --text: #F2F4F3;
  --text-2: #C4CBC8;
  --muted: #9AA3A0;
  --faint: #5D6562;
  --accent: #C6FF1A;
  --on-accent: #0E1400;
  --accent-tint: rgba(198, 255, 26, .14);
  --accent-line: rgba(198, 255, 26, .32);
  --live: #FF4D5E;
  --four: #4DA6FF;
  --six: #C47DFF;
  --violet: rgba(150, 90, 255, .30);
  --radius: 22px;
  --gutter: 16px;
  --max: 1120px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(11, 13, 12, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--on-accent); }
.nav .hide-sm { display: none; }
@media (min-width: 760px) { .nav .hide-sm { display: inline; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--text); border-color: var(--accent-line); }
.btn-ghost:hover { background: var(--accent-tint); }
.btn svg { width: 20px; height: 20px; flex: none; }
.nav .btn { padding: 8px 16px; font-size: 14px; }

/* Tags (mono, like the app's chips) */
.tag { display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Hero */
.hero { position: relative; padding: 48px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 820px; max-height: 820px; background: radial-gradient(closest-side, rgba(198, 255, 26, .16), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -30% -20%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; background: radial-gradient(closest-side, var(--violet), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 64px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { font-size: clamp(38px, 7.2vw, 68px); line-height: 1.02; letter-spacing: -.02em; font-weight: 800; margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta .note { font-size: 14px; color: var(--muted); width: 100%; margin-top: 4px; }
.hero-shots { display: flex; justify-content: center; gap: 18px; }
.hero-shots .phone:nth-child(2) { display: none; }
@media (min-width: 560px) { .hero-shots .phone:nth-child(2) { display: block; margin-top: 56px; } }

/* Phone frame around a real app screenshot */
.phone { position: relative; width: min(64vw, 270px); flex: none; border-radius: 38px; padding: 9px; background: linear-gradient(160deg, #2a302d, #101311); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08) inset; }
.phone img { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 30px; background: var(--surface); }
.phone.sm { width: min(56vw, 230px); }

/* Sections */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -.015em; font-weight: 800; margin: 12px 0 14px; }
.section-head p { color: var(--text-2); margin: 0; font-size: 18px; }

/* Feature rows: shots + list */
.feature { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; gap: 64px; } .feature.flip .shots { order: 2; } }
.shots { display: flex; justify-content: center; gap: 16px; }
.shots .phone:nth-child(2) { display: none; }
@media (min-width: 560px) { .shots .phone:nth-child(2) { display: block; margin-top: 48px; } }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.points h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.points p { margin: 0; color: var(--text-2); font-size: 16px; }

/* Grid of smaller cards */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }

/* Honesty strip */
.notice { border: 1px solid var(--accent-line); background: linear-gradient(135deg, var(--accent-tint), rgba(198,255,26,.03)); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; }
.notice p { margin: 0; color: var(--text-2); }
.notice strong { color: var(--text); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--text-2); }

/* Final call to action */
.final { text-align: center; }
.final .wrap { display: grid; justify-items: center; gap: 18px; }
.final img.mark { width: 84px; height: auto; }
.final h2 { font-size: clamp(30px, 5vw, 48px); line-height: 1.05; font-weight: 800; margin: 0; letter-spacing: -.015em; }
.final p { margin: 0; color: var(--text-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 16px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* Legal pages */
.legal main { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 72px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--text-2); }
.legal .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; font-family: var(--mono); letter-spacing: .02em; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--text); }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.notfound h1 { font-size: clamp(34px, 6vw, 56px); margin: 12px 0; font-weight: 800; }
.notfound p { color: var(--text-2); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Two-up cards beside a phone: one column on small phones. */
.grid.duo { grid-template-columns: 1fr; }
@media (min-width: 480px) { .grid.duo { grid-template-columns: 1fr 1fr; } }

/* "Coming soon" store buttons: visible, not clickable. */
.btn-soon { padding: 10px 16px; font-size: 14px; gap: 8px; color: var(--muted); border-color: var(--line); background: rgba(255,255,255,.03); cursor: default; }
.btn-soon small { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-tint); border-radius: 999px; padding: 4px 7px; }
