/* Quitso marketing site — hand-rolled, no build step.
   Palette mirrors the app: white/blue "Sky", ink slate, green for positive. */
:root {
  --blue: #2563eb;
  --blue-deep: #1e40af;
  --blue-soft: #dbeafe;
  --ink: #0f172a;
  --ink-muted: #5b6b82;
  --page: #ffffff;
  --surface: #f1f5f9;
  --card: #ffffff;
  --divider: #e2e8f0;
  --positive: #16a34a;
  --negative: #dc2626;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --blue: #3b82f6;
    --blue-deep: #93c5fd;
    --blue-soft: #172554;
    --ink: #e2e8f0;
    --ink-muted: #94a3b8;
    --page: #0b1220;
    --surface: #101a2e;
    --card: #131f36;
    --divider: #1e2a44;
    --positive: #4ade80;
    --negative: #f87171;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}
img { max-width: 100%; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { text-decoration: none; }
nav.main { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
nav.main a { color: var(--ink-muted); }
nav.main a:hover { color: var(--ink); text-decoration: none; }
.lang-switch {
  border: 1px solid var(--divider); border-radius: 999px;
  padding: 4px 12px; font-size: 0.85rem; color: var(--ink-muted);
}

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.12; letter-spacing: -0.02em; font-weight: 800;
  text-wrap: balance;
}
.hero h1 em { color: var(--blue); font-style: normal; }
.hero p.sub { margin-top: 18px; font-size: 1.15rem; color: var(--ink-muted); max-width: 34rem; }
.hero .cta-row { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.badge-note { font-size: 0.85rem; color: var(--ink-muted); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; font-weight: 600;
  padding: 13px 22px; border-radius: 14px; font-size: 1rem;
  box-shadow: var(--shadow);
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--blue); box-shadow: none; border: 1.5px solid var(--blue); }
.free-line { display: flex; gap: 18px; margin-top: 20px; font-size: 0.9rem; color: var(--ink-muted); flex-wrap: wrap; }
.free-line span::before { content: "✓ "; color: var(--positive); font-weight: 700; }

/* CSS iPhone mockup (true iPhone 16 Pro proportions: 71.5 × 146.6 mm) */
.phone {
  width: 290px; aspect-ratio: 71.5 / 146.6;
  margin: 0 auto; position: relative;
  border: 9px solid #0b0b0f;
  border-radius: 48px; background: var(--page);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.phone::before {
  /* Dynamic Island */
  content: ""; position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 82px; height: 24px; border-radius: 999px;
  background: #0b0b0f; z-index: 2;
}
.phone .screen {
  padding: 48px 16px 22px; flex: 1;
  display: flex; flex-direction: column;
}
.phone .settle-pill { margin-top: auto; }
.phone .app-title { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.phone .app-title img { width: 22px; height: 22px; border-radius: 6px; }
.phone .group-name { margin-top: 14px; font-weight: 700; font-size: 1.2rem; }
.phone .group-sub { color: var(--ink-muted); font-size: 0.8rem; margin-bottom: 14px; }
.balance-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 8px; font-size: 0.9rem;
}
.balance-row .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.avatar {
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem;
}
.amount.pos { color: var(--positive); font-weight: 700; font-variant-numeric: tabular-nums; }
.amount.neg { color: var(--negative); font-weight: 700; font-variant-numeric: tabular-nums; }
.settle-pill {
  margin-top: 12px; text-align: center; background: var(--blue);
  color: #fff; border-radius: 999px; padding: 10px; font-weight: 600; font-size: 0.9rem;
}

/* real App Store screenshots (self-contained marketing panels) */
.shots img {
  flex: 0 0 310px; width: 310px; height: auto;
  border-radius: 24px; box-shadow: var(--shadow);
}

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--surface); }
.kicker { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
h2.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; margin-top: 8px; text-wrap: balance; }
.section-head { max-width: 40rem; margin-bottom: 36px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--divider);
  border-radius: 18px; padding: 24px;
}
.card .icon { font-size: 1.6rem; margin-bottom: 10px; }
.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card p { color: var(--ink-muted); font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--divider); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 34px; height: 34px; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 700;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--ink-muted); font-size: 0.95rem; }

/* screenshots placeholder */
.shots { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }

/* CTA */
.cta-final { text-align: center; }
.cta-final .btn { margin-top: 22px; }

/* footer */
footer.site { border-top: 1px solid var(--divider); padding: 36px 0 48px; font-size: 0.9rem; color: var(--ink-muted); }
footer.site .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--ink-muted); }
footer.site a:hover { color: var(--ink); }

/* legal / prose pages */
.prose { max-width: 46rem; padding: 56px 0 72px; }
.prose h1 { font-size: 2rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.prose .updated { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 28px; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.prose h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.prose p { margin-bottom: 12px; }
.prose ul { margin: 0 0 12px 22px; }
.prose li { margin-bottom: 6px; }

/* FAQ */
.faq details {
  border: 1px solid var(--divider); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 12px; background: var(--card);
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--ink-muted); }
.support-mail {
  display: inline-flex; margin-top: 8px; font-weight: 600;
}

/* consent banner — equal-prominence buttons, both themes */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 16px;
}
.consent-card {
  max-width: 720px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--divider);
  border-radius: 18px; padding: 20px 22px;
  box-shadow: 0 -6px 40px rgba(15, 23, 42, 0.25);
}
.consent-card h2 { font-size: 1.05rem; margin-bottom: 6px; }
.consent-card p { font-size: 0.9rem; color: var(--ink-muted); }
.consent-status { margin-top: 8px; }
.consent-status code { font-size: 0.8rem; word-break: break-all; }
.consent-actions { display: flex; gap: 12px; margin-top: 14px; }
.consent-btn {
  flex: 1; padding: 12px; border-radius: 12px;
  border: 1.5px solid var(--blue); background: transparent;
  color: var(--blue); font-weight: 600; font-size: 0.95rem;
  font-family: inherit; cursor: pointer;
}
.consent-btn:hover { background: var(--blue-soft); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { margin-top: 12px; }
  .grid, .steps { grid-template-columns: 1fr; }
  nav.main a.hide-m { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
