:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --brand: #0ea5e9;
  --brand-dark: #0284c7;
  --accent: #8b5cf6;
  --success: #10b981;
  --gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 45%, #a855f7 100%);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body.landing-body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--brand-dark);
  text-underline-offset: 0.15em;
}
a:hover { color: #0369a1; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ——— Guest chrome ——— */

.guest-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.guest-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.guest-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.guest-brand:hover { color: inherit; }

.guest-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.guest-brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
  flex-shrink: 0;
}

.logo-mark--sm {
  width: 32px;
  height: 32px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.logo-text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.guest-back-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}
.guest-back-link:hover { color: var(--brand-dark); }

.guest-nav-cb {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.guest-burger {
  display: none;
  padding: 0.5rem;
  margin: -0.5rem -0.35rem -0.5rem auto;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
}

.guest-burger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.guest-burger-lines span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.guest-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.guest-nav > a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.guest-nav > a:hover { color: var(--brand-dark); }

.guest-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.25rem;
}

.guest-scrim {
  display: none;
}

@media (max-width: 880px) {
  .guest-burger { display: flex; align-items: center; justify-content: center; }

  .guest-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(20rem, 88vw);
    margin: 0;
    padding: 4.5rem 1.35rem 2rem;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.25rem;
    background: var(--card);
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
    transition: transform 0.22s ease;
    z-index: 60;
  }

  .guest-nav > a {
    padding: 0.75rem 0.35rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .guest-nav-actions {
    margin-left: 0;
    margin-top: 1rem;
    flex-direction: column;
  }
  .guest-nav-actions .btn { width: 100%; }

  .guest-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .guest-nav-cb:checked ~ .guest-nav {
    transform: translateX(0);
  }
  .guest-nav-cb:checked ~ .guest-scrim {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  font-family: inherit;
}
.btn:active { transform: scale(0.98); }

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.86rem;
  border-radius: 9px;
}

.btn-block { width: 100%; }

.btn-primary {
  background: var(--gradient);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(99, 102, 241, 0.45); }

.btn-ghost {
  background: #fff;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: #cbd5e1; }

.btn-light {
  background: #fff;
  color: #312e81 !important;
  border: none;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}
.btn-light:hover { box-shadow: 0 6px 28px rgba(255, 255, 255, 0.35); }

/* ——— Hero ——— */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; gap: 2rem; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(2.15rem, 4vw, 3.15rem);
  line-height: 1.12;
  margin: 1rem 0 1rem;
  letter-spacing: -0.03em;
}

.hero p.lead {
  margin: 0 0 1.5rem;
  font-size: 1.07rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-trust-inline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}
.hero-trust-inline li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-trust-inline li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.hero-card {
  background: var(--card);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.12), transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(168, 85, 247, 0.12), transparent 45%);
  pointer-events: none;
}

.hero-metric-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.metric {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.metric strong { display: block; font-size: 1.3rem; letter-spacing: -0.02em; }
.metric small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-card-caption {
  position: relative;
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ——— Trust strip ——— */

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust-strip-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.5rem;
}

@media (max-width: 900px) {
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .trust-strip-inner { grid-template-columns: 1fr; }
}

.trust-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}
.trust-item span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ——— Sections ——— */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.25rem 1.5rem;
}

.section--alt {
  background: linear-gradient(180deg, #eef2ff 0%, transparent 100%);
  max-width: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.section--alt .section-head,
.section--alt .feature-grid {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.section--alt .feature-grid { margin-top: 0; }

.section--dark {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #e2e8f0;
  max-width: none;
  margin-top: 0.5rem;
}
.section--dark .section-head p { color: #94a3b8; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--muted); line-height: 1.65; }

.section-head--on-dark h2 { color: #f8fafc; }
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-dark);
  margin: 0 0 0.65rem;
}
.section-eyebrow--on-dark {
  color: #38bdf8;
}

.section-foot-link {
  text-align: center;
  margin: 1.75rem 0 0;
}

.link-arrow {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--brand-dark);
}
.link-arrow::after {
  content: " →";
  transition: transform 0.15s;
}
.link-arrow:hover::after { margin-left: 0.15rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.section--dark .feature {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: none;
}
.section--dark .feature p { color: #94a3b8; }
.section--dark .feature h3 { color: #f1f5f9; }

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.section--dark .feature-icon {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(167, 139, 250, 0.25));
}

.feature h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Coverage */

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .coverage-grid { grid-template-columns: 1fr; }
}

.coverage-card {
  padding: 1.35rem 1.45rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.coverage-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #f8fafc;
}
.coverage-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.55;
}

/* Plans preview */

.plans-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

@media (max-width: 900px) {
  .plans-preview { grid-template-columns: 1fr; }
}

.plan-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.plan-card--empty { grid-column: 1 / -1; text-align: center; max-width: 520px; margin: 0 auto; }
.plan-card--empty h3 { margin: 0 0 0.5rem; }
.plan-card--empty p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.plan-card--empty code {
  font-size: 0.85rem;
  background: #f1f5f9;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.plan-card.popular {
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 18px 44px rgba(14, 165, 233, 0.16);
  transform: translateY(-4px);
}

.plan-ribbon {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.plan-title { font-size: 1.08rem; margin-top: 0.25rem; }
.plan-meta { color: var(--muted); font-size: 0.86rem; line-height: 1.45; }

.plan-card .price {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.35rem;
}
.price-cycle { font-size: 0.85rem; font-weight: 600; color: var(--muted); }

/* Testimonials */

.section--testimonials {
  background: #fff;
  border-top: 1px solid var(--line);
  max-width: none;
}
.section--testimonials .section-head {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .quote-grid { grid-template-columns: 1fr; }
}

.quote-card {
  margin: 0;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.quote-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #334155;
  flex: 1;
}
.quote-card footer {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.quote-card cite {
  font-style: normal;
  font-weight: 800;
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
}
.quote-card footer span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* CTA band */

.cta-band {
  margin: 2.5rem 1.5rem 0;
  border-radius: calc(var(--radius) + 8px);
  background: var(--gradient);
  color: #fff;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 2.35rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 24px 60px rgba(99, 102, 241, 0.35);
}

.cta-band-copy h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.cta-band-copy p { margin: 0.4rem 0 0; opacity: 0.95; max-width: 36rem; line-height: 1.55; }

/* Guest footer */

.guest-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  margin-top: 3rem;
  padding: 2.75rem 1.5rem 0;
}

.guest-footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .guest-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .guest-footer-grid { grid-template-columns: 1fr; }
}

.guest-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.guest-footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 280px;
}

.guest-footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.guest-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guest-footer-links li { margin-bottom: 0.55rem; }
.guest-footer-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.guest-footer-links a:hover { color: var(--brand-dark); }

.guest-footer-static {
  font-size: 0.9rem;
  color: var(--muted);
}

.guest-footer-bottom {
  max-width: 1180px;
  margin: 2.5rem auto 0;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

.guest-footer-legal { color: #94a3b8; }

.guest-footer--slim {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.6);
}

.guest-footer-slim-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.guest-footer-slim-inner a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.guest-footer-slim-inner a:hover { color: var(--brand-dark); }

.guest-footer-dot { color: #cbd5e1; user-select: none; }

/* Public plans page */

.guest-page-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.guest-page-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

.guest-page-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-dark);
  margin: 0 0 0.6rem;
}

.guest-page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.guest-page-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.guest-inline-notice {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: #f1f5f9;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.guest-inline-notice--warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.guest-inline-notice--warn a { font-weight: 700; }

.guest-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
}

.guest-plan-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.guest-plan-card--featured {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.14);
}

.guest-plan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #ede9fe;
  color: #5b21b6;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.guest-plan-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.guest-plan-specs {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.guest-plan-price {
  margin: 1rem 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.guest-plan-price span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.guest-page-cta {
  margin-top: 2.75rem;
  padding: 1.5rem 1.35rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.guest-page-cta h2 { margin: 0; font-size: 1.15rem; }
.guest-page-cta p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; }

/* ——— Auth ——— */

.auth-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.landing-body--auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-body--auth .auth-shell {
  flex: 1;
}

.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  background: radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.14), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.1), transparent 40%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.auth-card--wide {
  max-width: 480px;
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.auth-card p.sub {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.alert {
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-stack label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  margin: 0.75rem 0 0.35rem;
  color: var(--muted);
}

.form-stack input,
.form-stack select,
.form-stack textarea {
  width: 100%;
  padding: 0.68rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.form-stack .btn-primary {
  margin-top: 1.15rem;
  width: 100%;
}

.auth-card-footer {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-card-links {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  color: var(--muted);
}
.auth-card-links a {
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
}
.auth-card-links a:hover { text-decoration: underline; }
