/* The two public pages, landing and login, on top of pythia-ds.css. Normal page flow throughout:
   no fixed layout and no hidden overflow on the root, because a fixed login layout once stopped
   every screen under 1400px from scrolling. */

.pb-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--ds-5); }
.pb-glow { background: radial-gradient(900px 480px at 50% -120px, rgba(45, 212, 191, .10), transparent 70%), radial-gradient(700px 420px at 90% 0, rgba(167, 139, 250, .08), transparent 70%); }

/* Top bar */
.pb-nav { position: sticky; top: 0; z-index: 60; background: rgba(7, 11, 16, .92); border-bottom: 1px solid var(--ds-line); backdrop-filter: blur(10px); }
.pb-nav .pb-wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-3); min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.pb-links { display: none; gap: var(--ds-5); }
.ds .pb-links a { color: var(--ds-ink-2); text-decoration: none; font-size: var(--ds-t-sm); min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.ds .pb-links a:hover { color: var(--ds-ink); }
.pb-actions { display: flex; align-items: center; gap: var(--ds-2); }
@media (min-width: 900px) { .pb-links { display: flex; } }

/* Sections */
.pb-section { padding: var(--ds-10) 0; }
.pb-section + .pb-section { border-top: 1px solid var(--ds-line); }
.ds .pb-title { font-size: clamp(24px, 4vw, 34px); margin-bottom: var(--ds-5); }
.ds .pb-intro { color: var(--ds-ink-2); max-width: 62ch; margin: calc(-1 * var(--ds-2)) 0 var(--ds-5); }
.pb-grid { display: grid; gap: var(--ds-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .pb-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pb-num { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ds-line-strong); color: var(--ds-teal-ink); font-size: var(--ds-t-lg); margin-bottom: var(--ds-3); }
.pb-card h3 { margin-bottom: var(--ds-2); font-size: var(--ds-t-lg); }
.pb-card p { color: var(--ds-ink-2); font-size: var(--ds-t-sm); }
.pb-card .ds-eyebrow { display: block; margin-bottom: var(--ds-2); }
.pb-metric { color: var(--ds-cyan-ink); font-family: var(--ds-mono); }
.pb-interp { color: var(--ds-violet-ink); }

/* Hero */
.pb-hero { padding: var(--ds-10) 0 var(--ds-8); text-align: center; }
.pb-hero h1 { font-size: clamp(34px, 7vw, 60px); letter-spacing: -.02em; line-height: 1.08; margin: var(--ds-4) 0; }
.pb-hero h1 em { font-style: normal; color: var(--ds-teal-ink); }
.ds .pb-sub { color: var(--ds-ink-2); font-size: clamp(16px, 2.2vw, 19px); max-width: 60ch; margin: 0 auto var(--ds-6); }
.pb-cta { display: flex; gap: var(--ds-3); justify-content: center; flex-wrap: wrap; margin-bottom: var(--ds-4); }
.pb-hero .ds-btn { min-height: 48px; padding: 0 var(--ds-6); }
.pb-illus { margin-top: var(--ds-8); text-align: left; }
.pb-illus canvas { display: block; width: 100%; height: 220px; border-radius: var(--ds-r-md); background: #05080c; border: 1px solid var(--ds-line); }
.pb-illus-cap { display: flex; flex-wrap: wrap; gap: var(--ds-2) var(--ds-3); align-items: center; margin-top: var(--ds-3); font-size: var(--ds-t-xs); color: var(--ds-ink-3); }

/* Plans and the closing call */
.pb-price { font: 500 var(--ds-t-2xl)/1.2 var(--ds-mono); color: var(--ds-ink); margin: var(--ds-2) 0; }
.pb-price small { font: 400 var(--ds-t-sm) var(--ds-font); color: var(--ds-ink-2); }
.pb-creator { max-width: 64ch; }
.pb-creator p { color: var(--ds-ink-2); margin-bottom: var(--ds-3); }
.pb-final { text-align: center; }
.pb-footer { border-top: 1px solid var(--ds-line); padding: var(--ds-6) 0 var(--ds-8); }
.pb-footer .pb-wrap { display: flex; flex-wrap: wrap; gap: var(--ds-3) var(--ds-5); align-items: center; justify-content: space-between; }
.pb-footer .ds-foot { margin: 0; padding: 0; border: 0; }
.pb-legal { flex-basis: 100%; font-size: var(--ds-t-xs); color: var(--ds-ink-3); }

/* Login */
.lg-page { min-height: 100vh; display: flex; flex-direction: column; }
.lg-main { flex: 1; display: grid; gap: var(--ds-8); align-items: center; width: 100%; max-width: 1040px; margin: 0 auto; padding: var(--ds-6) var(--ds-5); grid-template-columns: minmax(0, 1fr); }
.lg-card { width: 100%; max-width: 440px; margin: 0 auto; }
.lg-card h1 { margin-bottom: var(--ds-1); }
.lg-card form { display: flex; flex-direction: column; gap: var(--ds-4); margin-top: var(--ds-5); }
.lg-field { display: flex; flex-direction: column; gap: var(--ds-2); }
.lg-field label { font-size: var(--ds-t-sm); color: var(--ds-ink-2); font-weight: 500; }
.lg-field input { min-height: 48px; padding: 0 var(--ds-4); background: var(--ds-raised); border: 1px solid var(--ds-line-strong); border-radius: var(--ds-r-sm); color: var(--ds-ink); font: 400 16px/1.2 var(--ds-font); }
.lg-field input:focus { outline: 2px solid var(--ds-cyan-ink); outline-offset: 1px; }
.lg-field input::placeholder { color: var(--ds-ink-3); }
.lg-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--ds-raised) inset; -webkit-text-fill-color: var(--ds-ink); }
.lg-link { appearance: none; background: none; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; color: var(--ds-teal-ink); font: 400 var(--ds-t-sm)/1.2 var(--ds-font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.msg-box { display: none; font-size: var(--ds-t-sm); border-radius: var(--ds-r-sm); padding: var(--ds-3) var(--ds-4); overflow-wrap: anywhere; }
.msg-box.show { display: block; }
.msg-box.error { background: rgba(251, 138, 138, .08); border: 1px solid #6b3a3a; color: var(--ds-danger); }
.msg-box.success { background: rgba(45, 212, 191, .08); border: 1px solid #1d5c54; color: var(--ds-teal-ink); }
.lg-about h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.02em; margin: var(--ds-3) 0 var(--ds-5); }
.lg-about h2 em { font-style: normal; color: var(--ds-teal-ink); }
.feature-item { display: flex; gap: var(--ds-4); padding: var(--ds-3) 0; border-top: 1px solid var(--ds-line); }
.fi-icon { flex: none; width: 28px; color: var(--ds-teal-ink); font-size: var(--ds-t-xl); line-height: 1.2; text-align: center; }
.fi-title { font-weight: 600; }
.fi-desc { color: var(--ds-ink-2); font-size: var(--ds-t-sm); }
.lg-top { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-3); padding: var(--ds-3) max(var(--ds-5), calc((100% - 1000px) / 2)); border-bottom: 1px solid var(--ds-line); flex-wrap: wrap; }
.lg-foot { padding: var(--ds-4) var(--ds-5) var(--ds-6); border-top: 1px solid var(--ds-line); }
.lg-foot .ds-foot { padding: 0; border: 0; max-width: 1000px; margin: 0 auto; }
#success-overlay { position: fixed; inset: 0; z-index: 200; display: none; flex-direction: column; align-items: center; justify-content: center; gap: var(--ds-3); background: var(--ds-bg); text-align: center; padding: var(--ds-5); }
#success-overlay.show { display: flex; }
.lg-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--ds-line-strong); border-top-color: var(--ds-teal); animation: lg-spin .9s linear infinite; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) { .lg-main { grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr); } .lg-card { order: 2; margin: 0 0 0 auto; } }
