/* Pachio website. Same "espresso + lime" palette as the app (lib/theme/app_theme.dart). */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --canvas: #17130f;
  --canvas-tint: #1c1712;
  --surface: #211b16;
  --surface-alt: #2b241d;
  --surface-high: #332b23;
  --border: #372e25;
  --border-strong: #4c4034;
  --lime: #c9f24d;
  --lime-ink: #1a1d0e;
  --mint: #5fe3c0;
  --amber: #ffc46b;
  --rose: #ff8fa3;
  --violet: #b79cff;
  --steel: #9aaac9;
  --text: #f6f1e9;
  --muted: #a79c8f;
  --faint: #6f655a;
  --radius: 22px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lime); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(23, 19, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1px solid var(--border-strong); color: var(--text); background: var(--surface);
}
.btn-primary { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.btn-primary:hover { filter: brightness(1.06); }
.btn small { display: block; font-size: 11px; font-weight: 600; opacity: 0.75; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.06em; }
.btn span { line-height: 1.15; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(201, 242, 77, 0.13), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime);
  padding: 6px 12px; border-radius: 999px; background: rgba(201, 242, 77, 0.1); border: 1px solid rgba(201, 242, 77, 0.25);
}
h1 { font-size: clamp(42px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -0.035em; margin: 22px 0 20px; font-weight: 800; }
h1 em { font-style: normal; color: var(--lime); }
.lede { font-size: 20px; color: var(--muted); max-width: 32ch; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 14px; color: var(--faint); margin-top: 16px; }

/* ---------- Phone mock ---------- */
.phone {
  width: 320px; max-width: 100%; margin: 0 auto; aspect-ratio: 320 / 640;
  background: var(--canvas-tint); border: 1px solid var(--border-strong); border-radius: 44px;
  padding: 18px 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 8px #0f0c09;
  display: flex; flex-direction: column; gap: 12px; position: relative;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); padding: 2px 8px 6px; }
.phone-title { padding: 0 6px; }
.phone-title b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.phone-title span { font-size: 13px; color: var(--muted); }
.progress { margin: 4px 6px 2px; height: 8px; border-radius: 99px; background: var(--surface-high); overflow: hidden; }
.progress i { display: block; height: 100%; width: 68%; background: var(--lime); border-radius: 99px; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 0 6px; }
.tabs { display: flex; gap: 6px; padding: 4px 2px; }
.tabs span { font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 99px; background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.tabs span.on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.bag { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 10px 12px; }
.bag-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; border-top: 1px solid var(--border); }
.row:first-of-type { border-top: 0; }
.check { width: 20px; height: 20px; border-radius: 7px; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; }
.check.done { background: var(--lime); border-color: var(--lime); }
.check.done::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--lime-ink); border-bottom: 2px solid var(--lime-ink); transform: rotate(-45deg) translate(1px, -1px); }
.row.done .name { color: var(--faint); text-decoration: line-through; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; flex: none; }
.qty { font-size: 12px; color: var(--muted); margin-left: auto; }
.qty + .dot { margin-left: 8px; }
.toast {
  position: absolute; left: 16px; right: 16px; bottom: 18px;
  background: var(--surface-high); border: 1px solid var(--border-strong); border-radius: 16px;
  padding: 10px 12px; font-size: 13px; display: flex; gap: 10px; align-items: center;
}
.toast .bell { width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 196, 107, 0.16); color: var(--amber); display: grid; place-items: center; flex: none; }
.toast b { display: block; font-size: 13px; }
.toast span { color: var(--muted); font-size: 12px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 26px; border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); font-weight: 800; margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

.privacy-band { background: var(--canvas-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pledges { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pledges li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; }
.pledges li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 3px; background: var(--mint); }

.final { text-align: center; }
.final .lede { margin: 0 auto 28px; max-width: 40ch; }
.final .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin: 0 0 10px; }
.legal .meta { color: var(--faint); font-size: 15px; margin: 0 0 32px; }
.legal .summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 40px; }
.legal .summary h2 { font-size: 18px; margin: 0 0 10px; letter-spacing: 0; }
.legal .summary ul { margin: 0; padding-left: 20px; color: var(--muted); }
.legal h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -0.015em; scroll-margin-top: 84px; }
.legal h3 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { color: #ddd5ca; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .toc { columns: 2; column-gap: 32px; padding-left: 20px; margin: 0 0 8px; font-size: 15px; }
.legal .toc a { color: var(--muted); text-decoration: none; }
.legal .toc a:hover { color: var(--lime); }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 16px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { background: var(--surface); font-weight: 700; color: var(--text); }
.legal tr:last-child td { border-bottom: 0; }
.legal td { color: #ddd5ca; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero .wrap, .privacy-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 40px 0 72px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { gap: 16px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .features, .steps { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .lede { font-size: 18px; }
  .legal .toc { columns: 1; }
  .phone { width: 290px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
