/* Public pages: homepage, login/sign-up, legal texts. Uses the app's design tokens from app.css. */

body.site { display: block; height: auto; min-height: 100%; }
.site main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px -8px rgba(79, 124, 255, .8); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn.wide { width: 100%; margin-top: 14px; }

/* ---------- nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; padding: 14px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-nav .brand { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 800; color: var(--text); text-decoration: none; }
.site-nav .brand-logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.site-nav .brand-logo svg { width: 18px; height: 18px; }
.site-links { display: flex; gap: 20px; margin-left: 12px; }
.site-links a { color: var(--text-2); font-size: 14px; font-weight: 500; }
.site-links a:hover { color: var(--text); text-decoration: none; }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- hero ---------- */
.hero { max-width: 1120px; margin: 0 auto; padding: 56px 20px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--accent); background: var(--accent-soft); border-radius: 20px; padding: 5px 12px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 16px 0 14px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; line-height: 1.65; color: var(--text-2); margin: 0 0 22px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hero-shot img, .shot-card img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(0,0,0,.65); display: block; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.01em; text-align: center; margin: 0 0 10px; }
.section > .center { text-align: center; }
.section > p.center { margin: 0 auto 24px; max-width: 54ch; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.step-card .num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.step-card h3, .feature h3 { font-size: 16px; margin: 0 0 8px; }
.step-card p, .feature p { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.ficon { font-size: 22px; line-height: 1; margin-bottom: 12px; color: var(--accent); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shot-card p { text-align: center; font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }

/* ---------- pricing ---------- */
.billing-toggle { margin: 0 auto 26px; width: fit-content; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px; justify-content: center; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.price-card.featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 20px 50px -30px rgba(79,124,255,.6); }
.price-card h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.price .per { font-size: 14px; color: var(--muted); }
.badge-top { position: absolute; top: -11px; right: 20px; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 800; padding: 4px 11px; border-radius: 20px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding: 7px 0 7px 26px; font-size: 14px; line-height: 1.5; border-top: 1px solid var(--border); }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 7px; color: var(--up); font-weight: 800; }
.price-grid + .center { margin-top: 22px; }
.shots { max-width: 980px; margin: 0 auto; }

/* ---------- faq, final, footer ---------- */
.faq { max-width: 760px; margin: 26px auto 0; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 15px; }
.faq p { font-size: 14px; line-height: 1.65; color: var(--text-2); margin: 10px 0 0; }
.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: 20px; }
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 20px 40px; text-align: center; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.footer-links a { color: var(--text-2); }
.site-footer p { max-width: 70ch; margin: 0 auto; line-height: 1.6; }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px 28px; box-shadow: var(--shadow); }
.auth-card .brand-logo { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; margin: 0 auto 16px; }
.auth-card .brand-logo svg { width: 26px; height: 26px; }
.auth-card h1 { font-size: 21px; text-align: center; margin: 0 0 6px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.auth-card label.field { margin-bottom: 14px; }
.auth-card .field input { height: 40px; }
.auth-msg { font-size: 13.5px; line-height: 1.5; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; display: none; }
.auth-msg.err { display: block; background: var(--down-soft); color: #ff9c9c; }
.auth-msg.ok { display: block; background: var(--up-soft); color: var(--up); }
[data-theme="light"] .auth-msg.err { color: #c42b2b; }
.auth-foot { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.auth-legal { font-size: 11.5px; line-height: 1.6; color: var(--muted); margin-top: 16px; text-align: center; }
.auth-card .check { font-size: 13px; line-height: 1.5; align-items: flex-start; margin-bottom: 14px; }

/* ---------- legal pages ---------- */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 36px 20px 60px; }
.legal-wrap h1 { font-size: 28px; margin: 0 0 20px; }
.legal-body h2 { font-size: 19px; margin: 28px 0 10px; }
.legal-body h3 { font-size: 16px; margin: 22px 0 8px; }
.legal-body p, .legal-body li { font-size: 14.5px; line-height: 1.75; color: var(--text-2); }
.legal-body ul { padding-left: 20px; }
.legal-draft { background: var(--warn-soft, rgba(240,185,11,.12)); border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--border)); color: var(--warn); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 22px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .steps-row, .feature-grid, .shots, .price-grid { grid-template-columns: 1fr; }
  .site-links { display: none; }
  .price-grid { max-width: 420px; margin: 0 auto; }
}
