/* The public homepage. Same blue and system fonts as the app (Mantine defaults). */
:root {
  --bg: #ffffff;
  --bg-band: #f4f7fb;
  --text: #1a1f2b;
  --muted: #5c6475;
  --line: #dfe4ec;
  --card: #ffffff;
  --primary: #228be6;
  --primary-hover: #1c7ed6;
  --primary-text: #ffffff;
  --primary-soft: #e7f2fd;
  --good: #2f9e44;
  --bad: #e03131;
  --warn-soft: #fff4e6;
  --warn-text: #b35c00;
  --shadow: 0 8px 30px rgba(20, 40, 80, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171c;
    --bg-band: #1b1e25;
    --text: #e8eaf0;
    --muted: #a3a9b6;
    --line: #2c313b;
    --card: #20242c;
    --primary: #4dabf7;
    --primary-hover: #74c0fc;
    --primary-text: #0b1220;
    --primary-soft: #1d2a3a;
    --good: #51cf66;
    --bad: #ff6b6b;
    --warn-soft: #3a2a14;
    --warn-text: #ffc078;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
section { padding: 72px 0; }
.band { background: var(--bg-band); }

/* buttons */
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 13px 24px; font-size: 1.05rem; }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 8px; }
[hidden] { display: none !important; }

/* hero */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.note { color: var(--muted); font-size: 0.9rem; }

/* example results card */
.example {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}
.example-label { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.example-q { font-weight: 700; font-size: 1.02rem; }
.example ul { list-style: none; padding: 0; margin: 0 0 14px; }
.example li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.example li span { color: var(--muted); }
.example-h { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 14px 0 4px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.dot.good { background: var(--good); }
.dot.bad { background: var(--bad); }
.example blockquote { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 0 8px 8px 0; }
.example cite { display: block; font-style: normal; font-size: 0.8rem; color: var(--warn-text); margin-top: 6px; }
.example-task { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; }
.example-task .example-h { margin-top: 0; }
.example-task p { margin: 0 0 8px; }
.pill { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); padding: 2px 10px; border-radius: 99px; }

/* how it works */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { position: relative; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; margin-bottom: 12px; }
.steps p { color: var(--muted); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card p { color: var(--muted); margin: 0; }

/* pricing */
.plan { max-width: 380px; margin: 24px auto 16px; text-align: left; box-shadow: var(--shadow); }
.plan-name { font-weight: 700; color: var(--muted) !important; margin-bottom: 0 !important; }
.plan-price { font-size: 2.4rem; font-weight: 800; color: var(--text) !important; margin: 4px 0 12px !important; }
.plan ul { padding-left: 20px; margin: 0 0 20px; }
.plan li { margin: 4px 0; }
.plan .btn { display: block; text-align: center; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
details p { margin: 10px 0 0; color: var(--muted); }

.final { text-align: center; }
.final h2 { margin-bottom: 24px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.9rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not([hreflang]) { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .hero { padding: 40px 0 56px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .nav-row { gap: 12px; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn { padding: 8px 12px; font-size: 0.85rem; }
}
