/* Public pages (landing, auth, legal) — reuse the app tokens from style.css. */
body.public { min-height: 100vh; display: flex; flex-direction: column; }
.pub-main { flex: 1; }
.pub-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.pub-nav { position: sticky; top: 0; z-index: 30; background: var(--topbar-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-on-dark); }
.pub-nav-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.pub-nav .brand { padding: 0; color: var(--text-on-dark); }
.pub-links { display: flex; gap: 6px; margin-inline-start: 12px; }
.pub-links a { color: var(--muted-on-dark); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.pub-links a:hover { color: var(--text-on-dark); background: var(--bg-hover); }
.pub-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.pub-actions .lang-switch { background: var(--bg-hover); }
.pub-login { color: var(--text-on-dark); }
.pub-theme { color: var(--muted-on-dark); background: var(--bg-hover); }
.pub-theme:hover { color: var(--text-on-dark); }
.pub-actions .lang-option { color: var(--muted-on-dark); }
.pub-actions .lang-option.active { color: #fff; }

.btn.lg { padding: 13px 22px; font-size: 15px; border-radius: 12px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .03em;
    background: var(--amber-soft); color: var(--amber-text); border: 1px solid rgba(252,163,38,.4);
}

/* Hero */
.hero-l { padding: 72px 0 56px; }
.hero-l-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-l h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.15; color: var(--text-on-dark); margin: 18px 0 14px; letter-spacing: -.02em; text-wrap: balance; }
.hero-l .lead { font-size: 18px; color: var(--muted-on-dark); max-width: 560px; line-height: 1.6; }
.hero-l-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-l-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted-on-dark); font-size: 13px; }
.hero-l-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-l-points .ico { color: var(--teal); }

.mock {
    background: var(--bg-elev); color: var(--text);
    border-radius: 16px; padding: 16px;
    box-shadow: 0 30px 80px rgba(15,12,23,.6), 0 0 0 1px rgba(251,250,253,.08);
    transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
}
[dir="rtl"] .mock { transform: perspective(1200px) rotateY(8deg) rotateX(3deg); }
.mock-head { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-head span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-head span:first-child { background: #F87171; } .mock-head span:nth-child(2) { background: #FBBF24; } .mock-head span:nth-child(3) { background: #34D399; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-kpis div { background: var(--bg-subtle); border-radius: 10px; padding: 10px 12px; }
.mock-kpis b { display: block; font-size: 20px; letter-spacing: -.02em; }
.mock-kpis small { color: var(--muted); font-size: 11px; }
.mock-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.mock-table td { padding: 8px 6px; border-top: 1px solid var(--border); }
.mock-table td:first-child { font-weight: 600; }
.mock-wa { background: #DCFCE7; color: #128C4A; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }

/* Sections */
.pub-section { padding: 64px 0; }
.sec-title { font-size: clamp(24px, 3vw, 34px); color: var(--text-on-dark); text-align: center; letter-spacing: -.02em; text-wrap: balance; }
.sec-sub { text-align: center; color: var(--muted-on-dark); margin: 10px auto 36px; max-width: 620px; font-size: 16px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--bg-elev); color: var(--text); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.feat-ic { display: inline-flex; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); margin-bottom: 14px; }
.feat h3 { font-size: 16px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14px; line-height: 1.55; }

.how { background: var(--bg-deep); border-block: 1px solid var(--border-on-dark); }
.how-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-on-dark); }
.how-steps .n { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--grad-brand); color: #fff; font-weight: 800; }
.how-steps b { display: block; margin-bottom: 4px; }
.how-steps p { color: var(--muted-on-dark); font-size: 14px; line-height: 1.55; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; justify-content: center; }
.price-grid.in-app { margin-top: 20px; grid-template-columns: repeat(2, 1fr); }
.price { position: relative; background: var(--bg-elev); color: var(--text); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; flex-direction: column; }
.price.featured { border-color: var(--primary); box-shadow: var(--shadow-brand); }
.price.current { outline: 2px solid var(--teal); }
.ribbon { position: absolute; top: -12px; inset-inline-end: 20px; background: var(--grad-purple); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.price-head h3 { font-size: 18px; }
.amount { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 4px; direction: ltr; display: inline-block; }
.amount .cur { font-size: 22px; vertical-align: super; margin-inline-end: 2px; }
.amount .per { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-tag { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.price ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.price li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.price li .ico { color: var(--teal-text); flex-shrink: 0; }
.price-note { text-align: center; color: var(--muted-on-dark); font-size: 13px; margin-top: 20px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { background: var(--bg-elev); color: var(--text); border-radius: 12px; padding: 14px 18px; margin-top: 10px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin-top: 8px; line-height: 1.6; font-size: 14px; }

.cta-band-inner { background: var(--grad-hero); border-radius: 20px; padding: 44px 32px; text-align: center; color: #fff; box-shadow: var(--shadow-brand); }
.cta-band h2 { font-size: 28px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 8px 0 20px; }
.cta-band .btn { background: #fff; color: var(--gl-orange-dark); box-shadow: 0 6px 18px rgba(0,0,0,.25); }

.pub-footer { border-top: 1px solid var(--border-on-dark); padding: 22px 0; color: var(--muted-on-dark); font-size: 13px; }
.pub-footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pub-footer-links { display: flex; gap: 16px; }
.pub-footer-links a { color: var(--muted-on-dark); text-decoration: none; }
.pub-footer-links a:hover { color: var(--text-on-dark); }

/* Auth */
.auth-wrap { display: flex; justify-content: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; }
.auth-title { font-size: 22px; margin-top: 12px; }
.auth-sub { margin: 4px 0 20px; }
.google-btn { gap: 10px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 16px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-legal { text-align: center; margin-top: 12px; }

/* Legal */
.legal { max-width: 760px; padding-block: 48px; color: var(--text-on-dark); }
.legal h1 { font-size: 30px; }
.legal h2 { font-size: 18px; margin-top: 28px; }
.legal p { color: var(--muted-on-dark); line-height: 1.7; margin-top: 8px; }

@media (max-width: 600px) {
    .pub-nav .brand-tag, .pub-login { display: none; }
    .pub-nav-inner { gap: 10px; min-height: 60px; }
    .hero-l-cta { flex-direction: column; }
    .hero-l-cta .btn { justify-content: center; }
    .pub-section { padding: 44px 0; }
    .cta-band-inner { padding: 32px 20px; }
    .auth-card { padding: 24px 18px; }
    .legal { padding-block: 28px; }
}
@media (max-width: 900px) {
    .hero-l-inner { grid-template-columns: 1fr; }
    .hero-l-visual { order: -1; }
    .mock { transform: none; }
    .feat-grid, .how-steps, .price-grid, .price-grid.in-app { grid-template-columns: 1fr; }
    .pub-links { display: none; }
    .hero-l { padding: 40px 0 32px; }
}
