/* The public pages: sign-in, sign-up (and its plan cards), a paused account. Loaded after app.css. */
:root {
    --navy: #0b1f3a; --navy-2: #12305a; --brand: #0b5394; --brand-2: #e8f0fa; --accent: #f5a524;
    --ink: #142033; --ink-2: #4b5a6e; --line: #e3e8ef; --surface: #ffffff; --page: #f5f7fb; --ok: #1e7e34;
}
body.pub { background: var(--page); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.pub a { color: var(--brand); }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }

/* ---------- Sign-in: brand panel + card ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-brand { background: radial-gradient(1200px 600px at 10% -10%, #1d4f8f 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #e9eff8; padding: 48px 56px; display: flex; flex-direction: column; gap: 32px; position: relative; overflow: hidden; }
.auth-brand::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245,165,36,.35) 0%, rgba(245,165,36,0) 70%); }
.auth-brand .logo { color: #fff; font-size: 1.15rem; }
.auth-brand h1 { font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.12; margin: auto 0 0; color: #fff; letter-spacing: -.02em; max-width: 15ch; }
.auth-brand .lead { font-size: 1.1rem; color: #c3d1e6; max-width: 46ch; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: .1rem; border-radius: 50%;
    background: rgba(245,165,36,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23f5a524' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.auth-brand .ticks li { color: #e9eff8; }
.auth-brand .foot { margin-top: auto; font-size: .85rem; color: #93a6c2; position: relative; z-index: 1; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 40px 36px;
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 18px 40px -12px rgba(16,24,40,.12); }
.auth-card h2 { margin: 0 0 .35rem; font-size: 1.6rem; letter-spacing: -.01em; }
.auth-card .muted { color: var(--ink-2); }
.auth-card .small { font-size: .88rem; }
.auth-mobile-logo { display: none; margin-bottom: 1.5rem; color: var(--ink); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; margin: 1.5rem 0 .75rem; padding: .85rem 1rem;
    border: 1px solid #d0d7e2; border-radius: 12px; background: #fff; color: #1f2937; font: 600 1rem/1.2 inherit; text-decoration: none; cursor: pointer;
    transition: box-shadow .15s, border-color .15s, transform .15s; }
.pub a.btn-google { color: #1f2937; }
.btn-google:hover { border-color: #b8c2d2; box-shadow: 0 6px 18px -8px rgba(16,24,40,.25); transform: translateY(-1px); }
.btn-google svg { width: 20px; height: 20px; }
.btn-ghost { display: block; text-align: center; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--brand); color: var(--brand); font-weight: 600; text-decoration: none; }
.btn-ghost:hover { background: var(--brand-2); }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--ink-2); font-size: .85rem; margin: 1.75rem 0 1rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.alert { border-radius: 12px; padding: .8rem 1rem; font-size: .92rem; margin: 1rem 0 0; }
.alert-error { background: #fdecea; color: #8a1c14; border: 1px solid #f5c2bd; }

/* ---------- Public header, hero and footer (sign-up) ---------- */
.pub-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.pub-top .inner, .pub-hero .inner, .pub-main, .pub-foot .inner { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.pub-top .inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.pub-top .logo { color: var(--ink); }
.pub-top nav a { font-weight: 600; text-decoration: none; padding: .55rem 1rem; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); }
.pub-top nav a:hover { border-color: var(--brand); color: var(--brand); }
.pub-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.pub-hero .inner { padding-top: 56px; padding-bottom: 96px; text-align: center; }
.pub-hero h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; line-height: 1.15; }
.pub-hero p { margin: .75rem auto 0; color: #c3d1e6; font-size: 1.1rem; max-width: 60ch; }
.pub-main { margin-top: -64px; padding-bottom: 48px; }
.pub-main .card { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px -16px rgba(16,24,40,.14); padding: 28px; }
.pub-main h2 { font-size: 1.25rem; margin: 0 0 .5rem; letter-spacing: -.01em; }
.pub-main .flash { border-radius: 12px; }
.pub-main .btn-ok, .pub-main button.btn-ok { padding: .8rem 1.4rem; border-radius: 12px; font-size: 1rem; font-weight: 600; }
.pub-foot { border-top: 1px solid var(--line); background: var(--surface); }
.pub-foot .inner { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: var(--ink-2); font-size: .88rem; }

/* Steps: 1 plan · 2 Google · 3 company */
.steps { list-style: none; display: flex; gap: .5rem; padding: 6px; margin: 0 auto 24px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 999px; width: max-content; max-width: 100%; box-shadow: 0 8px 24px -16px rgba(16,24,40,.25); }
.steps li { display: flex; align-items: center; gap: .5rem; padding: .45rem 1rem .45rem .5rem; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.steps li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--page); border: 1px solid var(--line); font-size: .85rem; }
.steps li.now { background: var(--brand-2); color: var(--brand); }
.steps li.now span { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }

/* Plan cards on the public pages: a pricing table */
.pub .plan-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; margin-bottom: 24px; }
.pub .plan-card { position: relative; margin: 0; padding: 28px 24px 24px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface);
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px -18px rgba(16,24,40,.18); transition: border-color .15s, box-shadow .15s, transform .15s; }
.pub .plan-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(16,24,40,.28); }
.pub .plan-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11,83,148,.12), 0 18px 40px -18px rgba(16,24,40,.28); }
.pub .plan-card.featured { border-color: #c9dbf0; }
.badge-popular { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #3a2600; font-size: .78rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.pub .plan-card > strong { font-size: 1.3rem; letter-spacing: -.01em; }
.pub .plan-card ul { list-style: none; padding: 0 !important; display: grid; gap: .45rem; margin-top: .5rem !important; }
.pub .plan-card ul li { display: flex; gap: .55rem; align-items: flex-start; }
.pub .plan-card ul li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: .15rem; border-radius: 50%;
    background: #e7f4ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231e7e34' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pub .plan-option { border-radius: 12px; padding: .75rem .9rem; border-color: var(--line); }
.pub .plan-option:hover { border-color: #b8c8dd; }


.done-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #e7f4ec; margin: 0 auto 1rem; }
.done-mark svg { width: 32px; height: 32px; }

@media (max-width: 860px) {
    .auth { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-mobile-logo { display: inline-flex; }
    .auth-main { align-items: start; padding-top: 48px; }
    .auth-card { padding: 32px 22px; }
    .pub-hero .inner { padding-top: 40px; }
    .steps li { padding-right: .6rem; }
    .steps li b { display: none; }
}
