/* Public pages: landing, auth, legal. */

.site-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-nav .inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
.site-nav .links { display: flex; gap: 22px; }
.site-nav .links a { color: var(--text-2); font-size: 14px; font-weight: 500; }
.site-nav .links a:hover { color: var(--text); text-decoration: none; }
.site-nav .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 650; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: 34px; margin-bottom: 12px; }
.section-head p { font-size: 16.5px; color: var(--text-2); line-height: 1.6; }

.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 620px; background: radial-gradient(ellipse at 50% 30%, var(--accent-soft), transparent 65%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 50px; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--text-2); line-height: 1.6; margin-bottom: 30px; max-width: 520px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .fine { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Product preview drawn in HTML/CSS so it stays crisp and theme-aware. */
.preview { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.preview .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.preview .bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.preview .body { padding: 18px; display: grid; gap: 14px; }
.preview .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preview .kpi { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.preview .kpi small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.preview .kpi b { font-size: 17px; font-variant-numeric: tabular-nums; }
.preview .chart { background: var(--surface-2); border-radius: 8px; padding: 12px; }
.preview .chart svg { display: block; width: 100%; height: 120px; }
.preview .rows { display: grid; gap: 6px; }
.preview .r { display: grid; grid-template-columns: 70px 1fr 60px 80px; font-size: 12px; padding: 7px 10px; background: var(--surface-2); border-radius: 6px; font-variant-numeric: tabular-nums; }
.preview .r span:last-child { text-align: right; font-weight: 600; }

.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: 24px; }
.feature .icon { width: 38px; height: 38px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feature .icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 14px; line-height: 1.6; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 11px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.checklist li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--pos-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.2'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }

.rules-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.rules-card .rule { padding: 12px 0; border-bottom: 1px solid var(--border); }
.rules-card .rule:last-child { border-bottom: 0; padding-bottom: 0; }
.rules-card .rule .top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 8px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 14px; line-height: 1.6; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--text-2); line-height: 1.65; font-size: 14.5px; }

.cta-band { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 56px 24px; }
.cta-band h2 { font-size: 30px; margin-bottom: 10px; }
.cta-band p { color: var(--text-2); font-size: 16px; margin-bottom: 26px; }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; margin-top: 40px; }
.site-footer .inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .links a { color: var(--text-2); font-size: 13.5px; }
.site-footer .disclaimer { margin-top: 24px; font-size: 12px; color: var(--muted); line-height: 1.6; max-width: 820px; }

/* ---------- Auth pages ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-page header { padding: 22px 28px; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 40px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-2); margin-bottom: 24px; font-size: 14.5px; }
.auth-card .card { padding: 26px; }
.auth-card .foot { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--text-2); }
.auth-card .alert { margin-bottom: 16px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 62px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; padding: 6px 8px; }
.pw-toggle:hover { color: var(--text); }
.strength { display: flex; gap: 4px; margin-top: 2px; }
.strength span { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); }
.strength.s1 span:nth-child(-n+1) { background: var(--neg); }
.strength.s2 span:nth-child(-n+2) { background: var(--warn); }
.strength.s3 span:nth-child(-n+3) { background: var(--pos); }
.strength.s4 span { background: var(--pos); }
.status-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; }
.status-icon.ok { background: var(--pos-soft); color: var(--pos); }
.status-icon.bad { background: var(--neg-soft); color: var(--neg); }
.status-icon svg { width: 24px; height: 24px; }

/* ---------- Legal ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 40px; }
.legal h1 { font-size: 34px; margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: 19px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--text-2); line-height: 1.75; font-size: 15px; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; }

.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.not-found .code { font-size: 64px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; }

@media (max-width: 900px) {
  .hero .container, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .site-nav .links { display: none; }
  section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .features, .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 32px; }
  .section-head h2 { font-size: 26px; }
  .site-nav .actions .btn-ghost { display: none; }
}
