/* FitJ landing — same palette as the Help Center (help.css), dark by default. */
:root {
  --bg: #09090f;
  --bg-grad: radial-gradient(circle at 70% -10%, #1a1433 0, #09090f 46rem);
  --surface: #111118;
  --surface-2: #16151f;
  --border: rgba(255, 255, 255, .08);
  --border-hi: rgba(139, 92, 246, .45);
  --text: #f1f5f9;
  --text-2: #aab7c8;
  --muted: #7c8aa0;
  --accent: #a78bfa;
  --accent-strong: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, .13);
  --pro: #ffd37a;
  --pro-soft: rgba(255, 211, 122, .1);
  --radius: 16px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7fb; --bg-grad: radial-gradient(circle at 70% -10%, #ece7ff 0, #f7f7fb 42rem);
    --surface: #fff; --surface-2: #f2f0f9; --border: rgba(20, 16, 48, .1); --border-hi: rgba(124, 58, 237, .45);
    --text: #16122b; --text-2: #3f4659; --muted: #667085; --accent: #6d28d9; --accent-strong: #7c3aed;
    --accent-soft: rgba(124, 58, 237, .08); --pro: #a16207; --pro-soft: rgba(202, 138, 4, .1);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-grad), var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

.topbar { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { border-radius: 8px; }
.top-links { display: flex; gap: 18px; font-size: 14px; }
.top-links a { color: var(--text-2); text-decoration: none; }
.top-links a:hover { color: var(--text); }

.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 32px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
.lead { font-size: 19px; color: var(--text-2); margin: 0 0 28px; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.btn:hover { border-color: var(--border-hi); }
.btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--text-2); font-size: 14px; }
.facts li::before { content: "✓ "; color: var(--accent); }
.hero-shot img { width: 100%; max-width: 300px; margin: 0 auto; border-radius: 28px; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }

.section { padding-top: 40px; padding-bottom: 40px; }
h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 24px; letter-spacing: -.01em; }
h3 { font-size: 18px; margin: 0 0 8px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card p { color: var(--text-2); margin: 0 0 12px; }
.card a { font-size: 14px; text-decoration: none; }
.card a:hover { text-decoration: underline; }
.pro { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; color: var(--pro); background: var(--pro-soft); vertical-align: middle; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shots figure { margin: 0; text-align: center; }
.shots img { width: 100%; max-width: 240px; margin: 0 auto 10px; border-radius: 22px; border: 1px solid var(--border); }
.shots figcaption { color: var(--text-2); font-size: 14px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 16px 16px 16px 60px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-2); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.steps strong { color: var(--text); }
.tip { color: var(--text-2); margin: 16px 0 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--border); }
th:first-child, td:first-child { text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 13px; color: var(--text-2); font-weight: 600; }
#plans th:last-child, #plans td:last-child { color: var(--pro); }
.article th, .article td { text-align: left; }
.note { color: var(--text-2); font-size: 14px; margin: 14px 0 0; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--text-2); margin: 10px 0 0; }

.final { text-align: center; padding-bottom: 64px; }
.footer { border-top: 1px solid var(--border); padding: 24px 0 32px; font-size: 14px; color: var(--text-2); }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0; }
.footer a { color: var(--text-2); }
.muted { color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .top-links a:not([href="/fitj/help/"]) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots figure:last-child { display: none; }
  .btn { width: 100%; }
}

/* Article pages (calculators, guides) */
.article { max-width: 820px; }
.article .lead { max-width: none; }
.article h2 { margin-top: 40px; }
.article p, .article li { color: var(--text-2); }
.article strong { color: var(--text); }
.article table { min-width: 0; }
.meta-line { color: var(--muted); font-size: 14px; margin: -8px 0 24px; }
.calc { background: var(--surface); border: 1px solid var(--border-hi); border-radius: var(--radius); padding: 20px; margin: 8px 0 24px; }
.calc form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; align-items: end; }
.calc label { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.calc input, .calc select { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 18px; }
.calc input:focus, .calc select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc .btn { width: 100%; }
.result { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--accent-soft); min-height: 24px; }
.result[hidden] { display: none; }
.result .big { font-size: 34px; font-weight: 800; color: var(--text); line-height: 1.1; }
.result p { margin: 6px 0 0; }
.scale { display: grid; grid-template-columns: 3.5fr 6.5fr 5fr 5fr 5fr 5fr; height: 10px; margin: 14px 0 6px; position: relative; }
.scale span:first-child { border-radius: 99px 0 0 99px; } .scale span:last-of-type { border-radius: 0 99px 99px 0; }
.scale span:nth-child(1) { background: #60a5fa; } .scale span:nth-child(2) { background: #34d399; }
.scale span:nth-child(3) { background: #fbbf24; } .scale span:nth-child(4) { background: #fb923c; }
.scale span:nth-child(5) { background: #f87171; } .scale span:nth-child(6) { background: #dc2626; }
.scale i { position: absolute; top: -4px; width: 4px; height: 18px; border-radius: 2px; background: var(--text); transform: translateX(-2px); }
.callout { border-left: 3px solid var(--accent); background: var(--surface); padding: 14px 16px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.app-cta { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border-hi); border-radius: var(--radius); padding: 20px; margin: 32px 0; }
.app-cta h2, .app-cta h3 { margin: 0 0 6px; }
.app-cta p { margin: 0; }
.sources { font-size: 14px; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.related a { display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; }
.related a:hover { border-color: var(--border-hi); }
@media (max-width: 560px) { .app-cta { grid-template-columns: 1fr; } }

@media print {
  .topbar, .footer, .no-print, .app-cta, .crumbs, .aita-cookie-banner { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .print-sheet { display: block !important; }
}
