/* ============================================================
   Braynix Books — Landing page design system
   All rules scoped under .auth-overlay to prevent conflicts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Brand */
  --blue-900: #0F172A;
  --blue-800: #15225a;
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-500: #3b82f6;
  --blue-300: #93c5fd;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --green-600: #059669;
  --green-500: #10B981;
  --green-100: #d1fae5;

  --amber-500: #f59e0b;
  --rose-500:  #f43f5e;
  --violet-500:#8b5cf6;

  --ink:      #0F172A;
  --muted:    #64748B;
  --muted-2:  #94a3b8;
  --line:     #e7ecf3;
  --line-2:   #eef2f7;
  --bg:       #F8FAFC;
  --surface:  #ffffff;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow-md: 0 8px 24px -8px rgba(15,23,42,.12), 0 2px 8px rgba(15,23,42,.06);
  --shadow-lg: 0 30px 60px -20px rgba(15,23,42,.22), 0 12px 30px -12px rgba(29,78,216,.14);
  --shadow-blue: 0 18px 40px -14px rgba(37,99,235,.45);
  --ring: 0 0 0 4px rgba(37,99,235,.15);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --maxw: 1200px;
  --nav-h: 72px;

  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

.auth-overlay *, .auth-overlay *::before, .auth-overlay *::after { box-sizing: border-box; }

.auth-overlay h1, .auth-overlay h2, .auth-overlay h3, .auth-overlay h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.auth-overlay p { margin: 0; text-wrap: pretty; }
.auth-overlay a { color: inherit; text-decoration: none; }
.auth-overlay img, .auth-overlay svg { display: block; max-width: 100%; }
.auth-overlay button { font-family: inherit; cursor: pointer; }

.auth-overlay .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.auth-overlay section { position: relative; }

/* ---------- Typography helpers ---------- */
.auth-overlay .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue-700);
}
.auth-overlay .eyebrow::before {
  content: ""; width: 18px; height: 1.5px; background: var(--blue-600); border-radius: 2px;
}
.auth-overlay .eyebrow.center { justify-content: center; }

.auth-overlay .h-xxl { font-size: clamp(40px, 6vw, 72px); font-weight: 800; }
.auth-overlay .h-xl  { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; }
.auth-overlay .h-lg  { font-size: clamp(27px, 3vw, 38px); font-weight: 700; }
.auth-overlay .lead  { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); line-height: 1.6; }

.auth-overlay .section-head { max-width: 680px; }
.auth-overlay .section-head.center { margin: 0 auto; text-align: center; }
.auth-overlay .section-head .h-xl, .auth-overlay .section-head .h-lg { margin-top: 14px; }
.auth-overlay .section-head .lead { margin-top: 18px; }

.auth-overlay .grad-text {
  background: linear-gradient(100deg, var(--blue-700) 0%, var(--blue-500) 55%, var(--green-500) 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.auth-overlay .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .18s cubic-bezier(.34,1.4,.5,1), box-shadow .25s, background .2s, color .2s;
  white-space: nowrap;
}
.auth-overlay .btn svg { width: 17px; height: 17px; }
.auth-overlay .btn-primary {
  background: linear-gradient(180deg, var(--blue-600), var(--blue-700));
  color: #fff; box-shadow: var(--shadow-blue);
}
.auth-overlay .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -12px rgba(37,99,235,.55); }
.auth-overlay .btn-primary:active { transform: translateY(0); }
.auth-overlay .btn-ghost {
  background: #fff; color: var(--ink); border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.auth-overlay .btn-ghost:hover { transform: translateY(-2px); border-color: var(--blue-300); box-shadow: var(--shadow-md); }
.auth-overlay .btn-dark { background: var(--ink); color: #fff; }
.auth-overlay .btn-dark:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(15,23,42,.5); }
.auth-overlay .btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.auth-overlay .btn-light:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.auth-overlay .btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.auth-overlay .btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.auth-overlay .nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.auth-overlay .nav.scrolled {
  background: rgba(248,250,252,.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px -18px rgba(15,23,42,.4);
}
.auth-overlay .nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.auth-overlay .brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.auth-overlay .brand-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  flex: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 26px -16px rgba(15,23,42,.55), 0 0 0 1px rgba(226,232,240,.9);
  overflow: hidden;
}
.auth-overlay .brand-mark img { width: 42px; height: 42px; object-fit: contain; display: block; transform: scale(1.08); }
.auth-overlay .nav-links { display: flex; align-items: center; gap: 4px; }
.auth-overlay .nav-links a,
.auth-overlay .nav-links button {
  font-size: 15px; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: 9px; transition: color .18s, background .18s;
  background: none; border: none; cursor: pointer; font-family: var(--sans);
}
.auth-overlay .nav-links a:hover,
.auth-overlay .nav-links button:hover { color: var(--ink); background: rgba(15,23,42,.04); }
.auth-overlay .nav-links a.active,
.auth-overlay .nav-links button.active { color: var(--blue-700); }
.auth-overlay .nav-cta { display: flex; align-items: center; gap: 10px; }
.auth-overlay .nav-toggle { display: none; background: none; border: none; padding: 8px; color: var(--ink); }
.auth-overlay .nav-toggle svg { width: 24px; height: 24px; }

.auth-overlay .mobile-menu {
  position: sticky; top: var(--nav-h); z-index: 99;
  background: rgba(248,250,252,.96); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 16px 28px 24px; display: none; flex-direction: column; gap: 4px;
  transform: translateY(-10px); opacity: 0; transition: transform .25s, opacity .25s;
}
.auth-overlay .mobile-menu.open { display: flex; transform: translateY(0); opacity: 1; }
.auth-overlay .mobile-menu a,
.auth-overlay .mobile-menu .nav-mlink { padding: 13px 12px; border-radius: 10px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-2); background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: 15px; text-align: left; width: 100%; }
.auth-overlay .mobile-menu a:last-of-type,
.auth-overlay .mobile-menu .nav-mlink:last-of-type { border-bottom: none; }
.auth-overlay .mobile-menu .btn { margin-top: 12px; }

/* ---------- Generic section spacing ---------- */
.auth-overlay .sec { padding: clamp(72px, 9vw, 130px) 0; }
.auth-overlay .sec-tight { padding: clamp(54px, 6vw, 84px) 0; }

/* ---------- Pills / badges ---------- */
.auth-overlay .pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.auth-overlay .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(16,185,129,.15); }

/* ---------- Cards ---------- */
.auth-overlay .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.auth-overlay .card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }

.auth-overlay .feature-card { padding: 26px; position: relative; overflow: hidden; }
.auth-overlay .feature-card .ficon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--blue-50), #fff); border: 1px solid var(--line);
  color: var(--blue-700); margin-bottom: 18px;
}
.auth-overlay .feature-card .ficon svg { width: 24px; height: 24px; }
.auth-overlay .feature-card h3 { font-size: 19px; font-weight: 700; }
.auth-overlay .feature-card p { margin-top: 9px; color: var(--muted); font-size: 14.5px; }
.auth-overlay .feature-card .glow {
  position: absolute; inset: auto -40% -60% auto; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.16), transparent 70%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.auth-overlay .feature-card:hover .glow { opacity: 1; }

/* ---------- Reveal animations (gated on html.anim — falls back to visible) ---------- */
.auth-overlay .reveal { opacity: 1; transform: none; }
html.anim .auth-overlay .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
html.anim .auth-overlay .reveal.in,
html.anim .auth-overlay .reveal.is-visible { opacity: 1; transform: none; }
html.anim .auth-overlay .reveal[data-d="1"] { transition-delay: .08s; }
html.anim .auth-overlay .reveal[data-d="2"] { transition-delay: .16s; }
html.anim .auth-overlay .reveal[data-d="3"] { transition-delay: .24s; }
html.anim .auth-overlay .reveal[data-d="4"] { transition-delay: .32s; }
html.anim .auth-overlay .reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  html.anim .auth-overlay .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Dashboard mockup components
   ============================================================ */
.auth-overlay .app {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 220px 1fr;
  font-size: 13px; color: var(--ink);
}
.auth-overlay .app-side {
  background: linear-gradient(185deg, #0f172a, #131f44);
  color: #cbd5e1; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px;
}
.auth-overlay .app-side .as-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 15px; padding: 4px 8px 16px; }
.auth-overlay .app-side .as-brand .m { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(145deg, var(--blue-500), var(--blue-700)); display: grid; place-items: center; }
.auth-overlay .app-side .as-brand .m svg { width: 15px; height: 15px; }
.auth-overlay .nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: #94a3b8; font-weight: 500; font-size: 12.5px; }
.auth-overlay .nav-item svg { width: 16px; height: 16px; flex: none; }
.auth-overlay .nav-item.on { background: rgba(59,130,246,.16); color: #fff; }
.auth-overlay .nav-item.on svg { color: var(--blue-300); }
.auth-overlay .app-side .as-spacer { flex: 1; }
.auth-overlay .app-side .as-user { display: flex; align-items: center; gap: 9px; padding: 10px 8px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; }
.auth-overlay .app-side .as-user .av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(140deg,#34d399,#059669); flex: none; }
.auth-overlay .app-side .as-user small { color: #64748b; }

.auth-overlay .app-main { background: #fbfcfe; padding: 0; min-width: 0; }
.auth-overlay .app-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line-2); background: #fff; }
.auth-overlay .app-top .at-title { font-family: var(--display); font-weight: 700; font-size: 16px; }
.auth-overlay .app-top .at-sub { color: var(--muted-2); font-size: 11.5px; margin-top: 1px; }
.auth-overlay .app-top .at-actions { display: flex; align-items: center; gap: 8px; }
.auth-overlay .app-search { display: flex; align-items: center; gap: 7px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; color: var(--muted-2); font-size: 12px; }
.auth-overlay .app-search svg { width: 14px; height: 14px; }
.auth-overlay .app-btn { background: var(--blue-700); color: #fff; border-radius: 9px; padding: 8px 13px; font-weight: 600; font-size: 12px; display: inline-flex; gap: 6px; align-items: center; border: none; }
.auth-overlay .app-btn svg { width: 13px; height: 13px; }

.auth-overlay .app-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.auth-overlay .kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.auth-overlay .kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px;
  position: relative; overflow: hidden;
}
.auth-overlay .kpi .k-label { color: var(--muted); font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.auth-overlay .kpi .k-label .ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); }
.auth-overlay .kpi .k-label .ic svg { width: 12px; height: 12px; }
.auth-overlay .kpi .k-val { font-family: var(--display); font-weight: 800; font-size: 22px; margin-top: 8px; letter-spacing: -.02em; }
.auth-overlay .kpi .k-delta { font-size: 11px; font-weight: 600; margin-top: 3px; display: inline-flex; align-items: center; gap: 4px; }
.auth-overlay .k-delta.up { color: var(--green-600); }
.auth-overlay .k-delta.down { color: var(--rose-500); }

.auth-overlay .panel-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.auth-overlay .panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; }
.auth-overlay .panel-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.auth-overlay .panel-h h4 { font-size: 13.5px; font-weight: 700; }
.auth-overlay .panel-h .tag { font-size: 10.5px; font-weight: 600; color: var(--muted-2); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; }

.auth-overlay .legend { display: flex; gap: 14px; margin-bottom: 6px; }
.auth-overlay .legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 500; }
.auth-overlay .legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

.auth-overlay .txn { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.auth-overlay .txn:first-of-type { border-top: none; }
.auth-overlay .txn .ti { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--bg); color: var(--muted); }
.auth-overlay .txn .ti svg { width: 15px; height: 15px; }
.auth-overlay .txn .tinfo { min-width: 0; flex: 1; }
.auth-overlay .txn .tinfo b { font-size: 12px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-overlay .txn .tinfo small { font-size: 10.5px; color: var(--muted-2); }
.auth-overlay .txn .tamt { font-weight: 700; font-size: 12.5px; }
.auth-overlay .txn .tamt.pos { color: var(--green-600); }

.auth-overlay .bar-mini { display: grid; grid-template-columns: repeat(7,1fr); gap: 7px; align-items: end; height: 90px; }
.auth-overlay .bar-mini .b { border-radius: 5px 5px 3px 3px; background: linear-gradient(180deg, var(--blue-500), var(--blue-700)); position: relative; }
.auth-overlay .bar-mini .b.alt { background: linear-gradient(180deg, #6ee7b7, var(--green-500)); }

/* progress + donut */
.auth-overlay .don { display: flex; align-items: center; gap: 16px; }
.auth-overlay .don svg { width: 96px; height: 96px; flex: none; }
.auth-overlay .don-legend { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.auth-overlay .don-legend div { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; }
.auth-overlay .don-legend .l { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 500; }
.auth-overlay .don-legend .l i { width: 9px; height: 9px; border-radius: 3px; }
.auth-overlay .don-legend b { font-weight: 700; }

/* ---------- Floating KPI cards (hero) ---------- */
.auth-overlay .float-card {
  position: absolute; background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7); border-radius: 15px; padding: 13px 15px;
  box-shadow: 0 20px 45px -18px rgba(15,23,42,.3);
  display: flex; align-items: center; gap: 12px; z-index: 5;
}
.auth-overlay .float-card .fc-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.auth-overlay .float-card .fc-ic svg { width: 19px; height: 19px; }
.auth-overlay .float-card small { color: var(--muted); font-size: 11.5px; font-weight: 600; display: block; }
.auth-overlay .float-card b { font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.auth-overlay .float-card .spark { width: 56px; height: 30px; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
html.anim .auth-overlay .anim-float { animation: floaty 6s ease-in-out infinite; }
.auth-overlay .anim-float.d1 { animation-delay: -2s; }
.auth-overlay .anim-float.d2 { animation-delay: -4s; }

/* ---------- Marquee / logos ---------- */
.auth-overlay .logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; }
.auth-overlay .logo-row .lg { color: var(--muted-2); font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; opacity: .7; display: inline-flex; align-items: center; gap: 8px; }
.auth-overlay .logo-row .lg svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.auth-overlay .footer { background: var(--ink); color: #cbd5e1; padding: 72px 0 32px; margin-top: 0; }
.auth-overlay .footer .wrap { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.auth-overlay .footer .brand { color: #fff; }
.auth-overlay .footer-about { color: #94a3b8; font-size: 14px; margin-top: 16px; max-width: 300px; }
.auth-overlay .footer-col h5 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #fff; font-weight: 600; margin: 0 0 16px; }
.auth-overlay .footer-col a { display: block; color: #94a3b8; font-size: 14px; padding: 6px 0; transition: color .15s; }
.auth-overlay .footer-col a:hover { color: #fff; }
.auth-overlay .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: #64748b; font-size: 13px; }
.auth-overlay .footer-bottom .socials { display: flex; gap: 10px; }
.auth-overlay .footer-bottom .socials a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; color: #94a3b8; transition: all .2s; }
.auth-overlay .footer-bottom .socials a:hover { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.auth-overlay .footer-bottom .socials svg { width: 16px; height: 16px; }
.auth-overlay .footer-legal { display: flex; gap: 20px; }
.auth-overlay .footer-legal a { color: #64748b; font-size: 13px; text-decoration: none; transition: color .15s; }
.auth-overlay .footer-legal a:hover { color: #94a3b8; }

/* ---------- Misc utility ---------- */
.auth-overlay .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.auth-overlay .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.auth-overlay .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.auth-overlay .center { text-align: center; }
.auth-overlay .mt-s { margin-top: 14px; } .auth-overlay .mt-m { margin-top: 26px; } .auth-overlay .mt-l { margin-top: 44px; }

.auth-overlay .dot-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15,23,42,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* Animated gradient mesh blob */
.auth-overlay .mesh { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; z-index: 0; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-20px) scale(1.12); } }
html.anim .auth-overlay .anim-drift { animation: drift 14s ease-in-out infinite; }

/* CTA band */
.auth-overlay .cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #15225a 45%, #1D4ED8 110%);
  border-radius: var(--r-xl);
  color: #fff; padding: clamp(44px, 6vw, 76px);
  box-shadow: var(--shadow-lg);
}
.auth-overlay .cta-band h2 { color: #fff; }
.auth-overlay .cta-band .lead { color: rgba(255,255,255,.78); }
.auth-overlay .cta-band .gline { position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(59,130,246,.5), transparent 45%), radial-gradient(circle at 10% 90%, rgba(16,185,129,.35), transparent 45%); }

/* responsive */
@media (max-width: 1000px) {
  .auth-overlay .footer .wrap { grid-template-columns: 1fr 1fr; }
  .auth-overlay .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .auth-overlay .nav-links { display: none; }
  .auth-overlay .nav-cta .btn-ghost { display: none; }
  .auth-overlay .nav-cta .nav-signin { display: inline-flex !important; font-size: 14px; padding: 10px 16px; }
  .auth-overlay .nav-toggle { display: block; }
  .auth-overlay .grid-3 { grid-template-columns: 1fr; }
  .auth-overlay .grid-2 { grid-template-columns: 1fr; }
  .auth-overlay .app { grid-template-columns: 1fr; }
  .auth-overlay .app-side { display: none; }
  .auth-overlay .kpi-row { grid-template-columns: repeat(2,1fr); }
  .auth-overlay .panel-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .auth-overlay .wrap { padding: 0 18px; }
  .auth-overlay .grid-4 { grid-template-columns: 1fr; }
  .auth-overlay .footer .wrap { grid-template-columns: 1fr; gap: 28px; }
  .auth-overlay .float-card { display: none; }
}

/* ---------- Professional mobile landing/application preview ---------- */
@media (max-width: 640px) {
  :root { --nav-h: 64px; }

  .auth-overlay .nav .wrap {
    gap: 10px;
    padding: 0 14px;
  }

  .auth-overlay .brand {
    gap: 8px;
    font-size: 16px;
  }

  .auth-overlay .brand-mark {
    width: 40px;
    height: 40px;
  }

  .auth-overlay .brand-mark img {
    width: 34px;
    height: 34px;
    transform: none;
  }

  .auth-overlay .nav-cta {
    gap: 7px;
  }

  .auth-overlay .nav-cta .nav-signin {
    display: none !important;
  }

  .auth-overlay .nav-cta .btn-primary {
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
  }

  .auth-overlay .nav-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }

  .auth-overlay .mobile-menu {
    padding: 12px 16px 18px;
    box-shadow: 0 18px 38px -28px rgba(15,23,42,.55);
  }

  .auth-overlay .hero {
    padding: calc(var(--nav-h) + 32px) 0 48px;
  }

  .auth-overlay .hero h1 {
    font-size: 40px;
    line-height: 1.08;
  }

  .auth-overlay .hero .lead {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.55;
  }

  .auth-overlay .hero-cta {
    margin-top: 26px;
  }

  .auth-overlay .hero-cta .btn,
  .auth-overlay .form-foot .btn,
  .auth-overlay .info-actions a {
    width: 100%;
  }

  .auth-overlay .hero-note {
    display: grid;
    gap: 10px;
    justify-content: stretch;
    text-align: left;
  }

  .auth-overlay .hero-note span {
    justify-content: center;
  }

  .auth-overlay .hero-stage {
    margin-top: 34px;
  }

  .auth-overlay .app {
    border-radius: 14px;
  }

  .auth-overlay .app-top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .auth-overlay .app-top .at-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-overlay .app-search,
  .auth-overlay .app-btn {
    min-height: 42px;
    justify-content: center;
  }

  .auth-overlay .app-body {
    padding: 14px;
  }

  .auth-overlay .kpi-row,
  .auth-overlay .kpi-grid,
  .auth-overlay .sec-tiles,
  .auth-overlay .stat-strip {
    grid-template-columns: 1fr;
  }

  .auth-overlay .panel,
  .auth-overlay .feature-card,
  .auth-overlay .trust-item,
  .auth-overlay .plan,
  .auth-overlay .form-card,
  .auth-overlay .info-card {
    border-radius: 14px;
  }

  .auth-overlay .cmp {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .auth-overlay .cmp-table {
    min-width: 620px;
  }

  .auth-overlay .footer-bottom,
  .auth-overlay .footer-legal,
  .auth-overlay .form-foot,
  .auth-overlay .pricing-toggle {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .auth-overlay .nav-cta .btn-primary {
    display: none;
  }

  .auth-overlay .hero h1 {
    font-size: 34px;
  }
}

/* ---------- Nav buttons (since nav links become button elements) ---------- */
.auth-overlay .nav-links button {
  background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: 9px;
  transition: color .18s, background .18s;
  font-family: var(--sans);
}
.auth-overlay .nav-links button:hover { color: var(--ink); background: rgba(15,23,42,.04); }
.auth-overlay .nav-links button.active { color: var(--blue-700); }
.auth-overlay .brand { background: none; border: none; cursor: pointer; padding: 0; }
.auth-overlay .mobile-menu button.nav-mlink {
  background: none; border: none; cursor: pointer;
  display: block; width: 100%; text-align: left;
  padding: 13px 12px; border-radius: 10px; font-weight: 500;
  color: var(--ink); font-family: var(--sans); font-size: 15px;
  border-bottom: 1px solid var(--line-2);
}
.auth-overlay .footer a, .auth-overlay .footer-col a { cursor: pointer; }

/* ============================================================
   Home page (index.html) specific styles
   ============================================================ */
.auth-overlay .hero { position: relative; padding: calc(var(--nav-h) + 64px) 0 80px; overflow: hidden; }
.auth-overlay .hero .dot-grid { z-index: 0; }
.auth-overlay .hero-inner { position: relative; z-index: 2; text-align: center; max-width: 880px; margin: 0 auto; }
.auth-overlay .hero h1 { font-size: clamp(40px, 6.4vw, 78px); font-weight: 800; }
.auth-overlay .hero .lead { margin: 22px auto 0; max-width: 620px; }
.auth-overlay .hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.auth-overlay .hero-note { margin-top: 18px; color: var(--muted-2); font-size: 13.5px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.auth-overlay .hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.auth-overlay .hero-note svg { width: 15px; height: 15px; color: var(--green-500); }

.auth-overlay .hero-stage { position: relative; max-width: 1080px; margin: 56px auto 0; z-index: 2; }
.auth-overlay .hero-stage .app { transition: transform .25s ease-out; }
.auth-overlay .fc-rev { top: -26px; left: -34px; }
.auth-overlay .fc-cash { bottom: 40px; right: -40px; }
.auth-overlay .fc-inv { bottom: -24px; left: 60px; }

.auth-overlay .spotlight,
.auth-overlay [data-spotlight] { position: relative; }
.auth-overlay .spotlight::before,
.auth-overlay [data-spotlight]::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: var(--r-xl);
  background: radial-gradient(360px circle at var(--mx,50%) var(--my,0%), rgba(37,99,235,.10), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.auth-overlay .spotlight:hover::before,
.auth-overlay [data-spotlight]:hover::before { opacity: 1; }

.auth-overlay .trust-strip { padding: 30px 0 8px; }
.auth-overlay .trust-strip p { text-align: center; color: var(--muted-2); font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 22px; }

.auth-overlay .trust-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.auth-overlay .trust-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 18px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.auth-overlay .trust-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.auth-overlay .trust-item .ti { width: 46px; height: 46px; border-radius: 13px; margin: 0 auto 14px; display: grid; place-items: center; background: linear-gradient(150deg, var(--blue-50), #fff); border: 1px solid var(--line); color: var(--blue-700); }
.auth-overlay .trust-item .ti svg { width: 23px; height: 23px; }
.auth-overlay .trust-item b { font-size: 14.5px; font-weight: 700; display: block; }
@media (max-width: 1000px) { .auth-overlay .trust-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .auth-overlay .trust-grid { grid-template-columns: 1fr; } }

.auth-overlay .feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.auth-overlay .feat-grid .feature-card.span2 { grid-column: span 2; }
@media (max-width: 860px) { .auth-overlay .feat-grid { grid-template-columns: 1fr; } .auth-overlay .feat-grid .feature-card.span2 { grid-column: auto; } }

.auth-overlay .feat-preview { margin-top: 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); padding: 12px; overflow: hidden; }

/* KPI band */
.auth-overlay .kpi-band { background: linear-gradient(140deg, #0f172a 0%, #15225a 55%, #1e3a8a 120%); border-radius: var(--r-xl); padding: clamp(40px,5vw,60px); color: #fff; position: relative; overflow: hidden; }
.auth-overlay .kpi-band .gline { position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(59,130,246,.4), transparent 40%), radial-gradient(circle at 10% 90%, rgba(16,185,129,.28), transparent 45%); }
.auth-overlay .kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; position: relative; z-index: 2; }
.auth-overlay .kpi-stat .num { font-family: var(--display); font-weight: 800; font-size: clamp(34px,4vw,52px); letter-spacing: -.03em; background: linear-gradient(180deg,#fff,#bfdbfe); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-overlay .kpi-stat .lbl { color: rgba(255,255,255,.66); font-size: 14.5px; margin-top: 6px; font-weight: 500; }
.auth-overlay .kpi-stat { position: relative; padding-left: 22px; }
.auth-overlay .kpi-stat::before { content:""; position:absolute; left:0; top:6px; bottom:6px; width:3px; border-radius:3px; background: linear-gradient(180deg, var(--blue-500), var(--green-500)); }
@media (max-width: 860px) { .auth-overlay .kpi-grid { grid-template-columns: repeat(2,1fr); gap: 30px 20px; } }

/* Product showcase rows */
.auth-overlay .show-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.auth-overlay .show-row.flip .show-text { order: 2; }
.auth-overlay .show-row + .show-row { margin-top: clamp(60px, 8vw, 110px); }
.auth-overlay .show-text h3 { font-size: clamp(26px,3vw,36px); font-weight: 800; margin-top: 16px; }
.auth-overlay .show-text p { margin-top: 16px; }
.auth-overlay .show-list { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.auth-overlay .show-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink); font-weight: 500; }
.auth-overlay .show-list .ck { width: 22px; height: 22px; border-radius: 7px; background: var(--green-100); color: var(--green-600); display: grid; place-items: center; flex: none; margin-top: 1px; }
.auth-overlay .show-list .ck svg { width: 13px; height: 13px; }
@media (max-width: 860px) { .auth-overlay .show-row { grid-template-columns: 1fr; gap: 28px; } .auth-overlay .show-row.flip .show-text { order: 0; } }

/* Integrations grid */
.auth-overlay .int-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.auth-overlay .int-chip { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.auth-overlay .int-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.auth-overlay .int-chip .il { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.auth-overlay .int-chip .il svg { width: 20px; height: 20px; }
.auth-overlay .int-chip b { font-size: 14px; font-weight: 600; display: block; }
.auth-overlay .int-chip small { font-size: 11.5px; color: var(--muted-2); }
@media (max-width:860px){ .auth-overlay .int-grid { grid-template-columns: 1fr 1fr; } }

/* Security band */
.auth-overlay .sec-band { background: linear-gradient(150deg,#0f172a,#15225a 60%,#1e3a8a); border-radius: var(--r-xl); padding: clamp(36px,5vw,56px); color: #fff; position: relative; overflow: hidden; }
.auth-overlay .sec-band .gline { position: absolute; inset: 0; background: radial-gradient(circle at 88% 12%, rgba(59,130,246,.4), transparent 42%), radial-gradient(circle at 8% 92%, rgba(16,185,129,.26), transparent 45%); }
.auth-overlay .sec-band .inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.auth-overlay .sec-band h2 { color: #fff; }
.auth-overlay .sec-band .lead { color: rgba(255,255,255,.74); }
.auth-overlay .sec-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-overlay .sec-tile { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px; }
.auth-overlay .sec-tile .st-ic { width: 38px; height: 38px; border-radius: 11px; background: rgba(147,197,253,.16); display: grid; place-items: center; color: #93c5fd; margin-bottom: 12px; }
.auth-overlay .sec-tile .st-ic svg { width: 20px; height: 20px; }
.auth-overlay .sec-tile b { font-size: 14.5px; font-weight: 700; display: block; }
.auth-overlay .sec-tile p { font-size: 12.5px; color: rgba(255,255,255,.62); margin-top: 5px; }
@media (max-width:820px){ .auth-overlay .sec-band .inner { grid-template-columns: 1fr; gap: 28px; } }

/* Testimonials */
.auth-overlay .tst-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.auth-overlay .tst { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.auth-overlay .tst:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.auth-overlay .tst .stars { display: flex; gap: 3px; color: #f59e0b; margin-bottom: 14px; }
.auth-overlay .tst .stars svg { width: 16px; height: 16px; }
.auth-overlay .tst blockquote { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink); font-weight: 500; flex: 1; }
.auth-overlay .tst .who { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.auth-overlay .tst .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; font-family: var(--display); flex: none; }
.auth-overlay .tst .who b { font-size: 14.5px; font-weight: 700; display: block; }
.auth-overlay .tst .who small { font-size: 12.5px; color: var(--muted); }
@media (max-width:900px){ .auth-overlay .tst-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* Chart draw animation */
html.anim .auth-overlay .area-chart .line-rev, html.anim .auth-overlay .area-chart .line-exp { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.8s cubic-bezier(.4,.1,.2,1); }
html.anim .auth-overlay .area-chart.drawn .line-rev, html.anim .auth-overlay .area-chart.drawn .line-exp { stroke-dashoffset: 0; }
.auth-overlay .donut circle { transition: stroke-dasharray 1.2s ease; }

/* ============================================================
   About page specific styles
   ============================================================ */
.auth-overlay .page-hero { padding: calc(var(--nav-h) + 76px) 0 0; text-align: center; position: relative; overflow: hidden; }
.auth-overlay .page-hero .dot-grid { z-index: 0; }
.auth-overlay .page-hero .wrap { position: relative; z-index: 2; }
.auth-overlay .page-hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; max-width: 920px; margin: 18px auto 0; }
.auth-overlay .page-hero .lead { max-width: 620px; margin: 22px auto 0; }

.auth-overlay .stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-top: 56px; }
.auth-overlay .stat-strip .s { text-align: center; }
.auth-overlay .stat-strip .s .n { font-family: var(--display); font-weight: 800; font-size: clamp(30px,3.4vw,44px); letter-spacing: -.03em; }
.auth-overlay .stat-strip .s .l { color: var(--muted); font-size: 13.5px; margin-top: 4px; font-weight: 500; }
@media (max-width:720px){ .auth-overlay .stat-strip { grid-template-columns: 1fr 1fr; gap: 30px 22px; } }

.auth-overlay .mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.auth-overlay .mv-card { padding: 36px; border-radius: var(--r-xl); position: relative; overflow: hidden; }
.auth-overlay .mv-card.mission { background: linear-gradient(165deg,#0f172a,#15225a 70%,#1e3a8a); color: #fff; }
.auth-overlay .mv-card.vision { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.auth-overlay .mv-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; }
.auth-overlay .mv-card.mission .ic { background: rgba(255,255,255,.12); color: #fff; }
.auth-overlay .mv-card.vision .ic { background: linear-gradient(150deg,var(--blue-50),#fff); border: 1px solid var(--line); color: var(--blue-700); }
.auth-overlay .mv-card .ic svg { width: 26px; height: 26px; }
.auth-overlay .mv-card h2 { font-size: 26px; font-weight: 800; }
.auth-overlay .mv-card.mission h2 { color: #fff; }
.auth-overlay .mv-card p { margin-top: 14px; font-size: 16px; line-height: 1.65; }
.auth-overlay .mv-card.mission p { color: rgba(255,255,255,.78); }
.auth-overlay .mv-card.vision p { color: var(--muted); }
.auth-overlay .mv-card .glow2 { position: absolute; inset: auto -30% -50% auto; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.4), transparent 70%); }
@media (max-width:820px){ .auth-overlay .mv-grid { grid-template-columns: 1fr; } }

/* timeline */
.auth-overlay .timeline { position: relative; max-width: 760px; margin: 50px auto 0; padding-left: 8px; }
.auth-overlay .timeline::before { content:""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg,var(--blue-600),var(--green-500)); border-radius: 2px; }
.auth-overlay .tl-item { position: relative; padding: 0 0 36px 64px; }
.auth-overlay .tl-item:last-child { padding-bottom: 0; }
.auth-overlay .tl-dot { position: absolute; left: 12px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-600); box-shadow: 0 0 0 5px rgba(37,99,235,.12); }
.auth-overlay .tl-year { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--blue-700); }
.auth-overlay .tl-item h4 { font-size: 18px; font-weight: 700; margin-top: 4px; }
.auth-overlay .tl-item p { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 540px; }

.auth-overlay .values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.auth-overlay .value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.auth-overlay .value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.auth-overlay .value-card .vic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(150deg,var(--blue-50),#fff); border: 1px solid var(--line); color: var(--blue-700); margin-bottom: 16px; }
.auth-overlay .value-card .vic svg { width: 23px; height: 23px; }
.auth-overlay .value-card h4 { font-size: 17px; font-weight: 700; }
.auth-overlay .value-card p { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
@media (max-width:920px){ .auth-overlay .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:520px){ .auth-overlay .values-grid { grid-template-columns: 1fr; } }

.auth-overlay .future { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
@media (max-width:820px){ .auth-overlay .future { grid-template-columns: 1fr; gap: 30px; } }
.auth-overlay .growth-card { background: linear-gradient(165deg,#0f172a,#15225a 70%,#1e3a8a); border-radius: var(--r-xl); padding: 32px; color: #fff; position: relative; overflow: hidden; }
.auth-overlay .growth-bars { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; align-items: end; height: 180px; margin-top: 20px; }
.auth-overlay .growth-bars .gb { border-radius: 7px 7px 4px 4px; background: linear-gradient(180deg,#60a5fa,#2563eb); }
.auth-overlay .growth-bars .gb.g { background: linear-gradient(180deg,#6ee7b7,#10b981); }

/* ============================================================
   Pricing page specific styles
   ============================================================ */
/* Reuse page-hero from about with slight adjustments */
#auth-pricing-view .page-hero { padding: calc(var(--nav-h) + 70px) 0 8px; }
#auth-pricing-view .page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); max-width: 820px; }
#auth-pricing-view .page-hero .lead { max-width: 560px; margin: 20px auto 0; }

.auth-overlay .billing-toggle { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-top: 30px; box-shadow: var(--shadow-sm); }
.auth-overlay .billing-toggle button { border: none; background: none; font-weight: 600; font-size: 14px; color: var(--muted); padding: 9px 20px; border-radius: 999px; transition: all .2s; position: relative; }
.auth-overlay .billing-toggle button.on { background: var(--ink); color: #fff; }
.auth-overlay .billing-toggle .save { font-size: 10.5px; font-weight: 700; color: var(--green-600); background: var(--green-100); border-radius: 999px; padding: 2px 7px; margin-left: 6px; }
.auth-overlay .billing-toggle button.on .save { background: rgba(255,255,255,.18); color: #6ee7b7; }

.auth-overlay .plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: start; margin-top: 52px; }
.auth-overlay .plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; position: relative; }
.auth-overlay .plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.auth-overlay .plan.featured { border: none; background: linear-gradient(165deg, #0f172a, #15225a 60%, #1e3a8a); color: #fff; box-shadow: var(--shadow-lg); transform: scale(1.03); }
.auth-overlay .plan.featured:hover { transform: scale(1.03) translateY(-6px); }
.auth-overlay .plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg,var(--green-500),#34d399); color: #fff; font-size: 11.5px; font-weight: 700; padding: 6px 16px; border-radius: 999px; letter-spacing: .03em; box-shadow: 0 8px 20px -6px rgba(16,185,129,.5); white-space: nowrap; }
.auth-overlay .plan h3 { font-size: 19px; font-weight: 700; }
.auth-overlay .plan .ptag { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.auth-overlay .plan.featured .ptag { color: rgba(255,255,255,.65); }
.auth-overlay .price { display: flex; align-items: baseline; gap: 4px; margin-top: 22px; }
.auth-overlay .price .cur { font-family: var(--display); font-weight: 700; font-size: 22px; }
.auth-overlay .price .amt { font-family: var(--display); font-weight: 800; font-size: 52px; letter-spacing: -.03em; line-height: 1; }
.auth-overlay .price .per { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.auth-overlay .plan.featured .price .per { color: rgba(255,255,255,.6); }
.auth-overlay .plan .btn { margin-top: 24px; }
.auth-overlay .plan-feats { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 13px; }
.auth-overlay .plan-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; font-weight: 500; }
.auth-overlay .plan-feats .ck { width: 20px; height: 20px; border-radius: 6px; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; flex: none; margin-top: 1px; }
.auth-overlay .plan-feats .ck svg { width: 12px; height: 12px; }
.auth-overlay .plan.featured .plan-feats .ck { background: rgba(255,255,255,.14); color: #93c5fd; }
.auth-overlay .plan .divider { height: 1px; background: var(--line-2); margin: 24px 0 4px; }
.auth-overlay .plan.featured .divider { background: rgba(255,255,255,.12); }
.auth-overlay .plan .feats-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); margin-bottom: 14px; }
.auth-overlay .plan.featured .feats-head { color: rgba(255,255,255,.5); }
@media (max-width: 920px) { .auth-overlay .plans { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; } .auth-overlay .plan.featured { transform: none; } .auth-overlay .plan.featured:hover { transform: translateY(-6px); } }

/* comparison table */
.auth-overlay .cmp { margin-top: clamp(70px,9vw,110px); }
.auth-overlay .cmp-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.auth-overlay .cmp-table th, .auth-overlay .cmp-table td { padding: 16px 22px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line-2); }
.auth-overlay .cmp-table thead th { background: var(--bg); font-family: var(--display); font-weight: 700; font-size: 15px; }
.auth-overlay .cmp-table thead th:not(:first-child), .auth-overlay .cmp-table td:not(:first-child) { text-align: center; }
.auth-overlay .cmp-table tbody td:first-child { color: var(--ink); font-weight: 500; }
.auth-overlay .cmp-table .grp td { background: #fbfcfe; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.auth-overlay .cmp-table tr:last-child td { border-bottom: none; }
.auth-overlay .cmp-table .feat-col { width: 40%; }
.auth-overlay .cmp-table th.hl { color: var(--blue-700); }
.auth-overlay .yes { color: var(--green-600); display: inline-grid; place-items: center; }
.auth-overlay .yes svg { width: 18px; height: 18px; }
.auth-overlay .no { color: var(--muted-2); }
@media (max-width: 720px) { .auth-overlay .cmp-table { font-size: 12.5px; } .auth-overlay .cmp-table th, .auth-overlay .cmp-table td { padding: 12px 12px; } }

.auth-overlay .faq { margin-top: clamp(70px,9vw,110px); max-width: 760px; margin-left: auto; margin-right: auto; }
.auth-overlay .faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.auth-overlay .faq-item + .faq-item { margin-top: 14px; }
.auth-overlay .faq-item[open] { border-color: var(--blue-100); box-shadow: var(--shadow-md); }
.auth-overlay .faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 700; color: var(--ink); }
.auth-overlay .faq-item summary::-webkit-details-marker { display: none; }
.auth-overlay .faq-item summary .chev { width: 30px; height: 30px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--blue-700); transition: transform .25s, background .2s; }
.auth-overlay .faq-item summary .chev svg { width: 16px; height: 16px; }
.auth-overlay .faq-item[open] summary .chev { transform: rotate(180deg); background: var(--blue-50); }
.auth-overlay .faq-item p { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: 14.5px; }

/* ============================================================
   Contact page specific styles
   ============================================================ */
#auth-contact-view .page-hero { padding: calc(var(--nav-h) + 70px) 0 4px; }
#auth-contact-view .page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); max-width: 760px; }
#auth-contact-view .page-hero .lead { max-width: 560px; margin: 20px auto 0; }

.auth-overlay .contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
@media (max-width: 900px){ .auth-overlay .contact-grid { grid-template-columns: 1fr; gap: 28px; } }

.auth-overlay .info-card { background: linear-gradient(165deg,#0f172a,#15225a 70%,#1e3a8a); color: #fff; border-radius: var(--r-xl); padding: 34px; position: relative; overflow: hidden; }
.auth-overlay .info-card .glow2 { position: absolute; inset: auto -30% -50% auto; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.45), transparent 70%); }
.auth-overlay .info-card h3 { color: #fff; font-size: 22px; font-weight: 800; }
.auth-overlay .info-card > div { position: relative; z-index: 2; }
.auth-overlay .info-item { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; }
.auth-overlay .info-item .ii { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.auth-overlay .info-item .ii svg { width: 21px; height: 21px; color: #93c5fd; }
.auth-overlay .info-item .lab { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.auth-overlay .info-item .val { font-size: 16px; font-weight: 600; margin-top: 3px; }
.auth-overlay .info-actions { margin-top: 32px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 10px; }
.auth-overlay .info-actions a { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: 14.5px; transition: background .2s, transform .2s; }
.auth-overlay .info-actions a:hover { background: rgba(255,255,255,.14); transform: translateX(3px); }
.auth-overlay .info-actions a svg { width: 17px; height: 17px; color: #93c5fd; }

/* form card */
.auth-overlay .form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 34px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.auth-overlay .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-overlay .form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px){ .auth-overlay .form-grid { grid-template-columns: 1fr; } }

.auth-overlay .field { position: relative; }
.auth-overlay .field input, .auth-overlay .field textarea { width: 100%; padding: 24px 16px 9px; border: 1px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s; }
.auth-overlay .field textarea { min-height: 130px; resize: vertical; padding-top: 26px; }
.auth-overlay .field label { position: absolute; left: 16px; top: 16px; color: var(--muted); font-size: 15px; pointer-events: none; transition: top .16s, font-size .16s, color .16s; }
.auth-overlay .field.filled label, .auth-overlay .field input:focus ~ label, .auth-overlay .field textarea:focus ~ label { top: 9px; font-size: 11px; font-weight: 600; color: var(--blue-700); letter-spacing: .02em; }
.auth-overlay .field input:focus, .auth-overlay .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: var(--ring); }
.auth-overlay .field.error input, .auth-overlay .field.error textarea { border-color: var(--rose-500); box-shadow: 0 0 0 4px rgba(244,63,94,.12); }
.auth-overlay .field.error label { color: var(--rose-500); }
.auth-overlay .field .err-msg { display: none; font-size: 12px; color: var(--rose-500); font-weight: 500; margin-top: 6px; padding-left: 4px; }
.auth-overlay .field.error .err-msg { display: block; }
.auth-overlay .field.valid:not(.error) input, .auth-overlay .field.valid:not(.error) textarea { border-color: var(--green-500); }
.auth-overlay .field .vtick { position: absolute; right: 14px; top: 18px; width: 18px; height: 18px; color: var(--green-500); opacity: 0; }
.auth-overlay .field.valid:not(.error) .vtick { opacity: 1; }

@keyframes shakeit { 0%,100%{transform:translateX(0);} 20%,60%{transform:translateX(-7px);} 40%,80%{transform:translateX(7px);} }
html.anim .auth-overlay form.shake { animation: shakeit .45s; }

.auth-overlay .form-foot { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.auth-overlay .form-foot small { color: var(--muted-2); font-size: 12.5px; }

/* success */
.auth-overlay .success-overlay { display: none; position: absolute; inset: 0; background: #fff; z-index: 5; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.auth-overlay [data-form-card].sent .form-inner { display: none; }
.auth-overlay [data-form-card].sent .success-overlay { display: flex; }
.auth-overlay .success-overlay .checkc { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(150deg,#34d399,#059669); display: grid; place-items: center; box-shadow: 0 16px 36px -10px rgba(16,185,129,.55); }
.auth-overlay .success-overlay .checkc svg { width: 38px; height: 38px; color: #fff; }
html.anim .auth-overlay [data-form-card].sent .checkc { animation: popin .5s cubic-bezier(.34,1.56,.5,1); }
@keyframes popin { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.auth-overlay .success-overlay h3 { font-size: 24px; font-weight: 800; margin-top: 22px; }
.auth-overlay .success-overlay p { color: var(--muted); margin-top: 10px; max-width: 320px; }

/* ============================================================
   Features page specific styles
   ============================================================ */
#auth-features-view .page-hero { padding: calc(var(--nav-h) + 70px) 0 40px; }
#auth-features-view .page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); max-width: 880px; }
#auth-features-view .page-hero .lead { max-width: 600px; margin: 20px auto 0; }

.auth-overlay .feat-nav { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(248,250,252,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.auth-overlay .feat-nav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.auth-overlay .feat-nav .wrap::-webkit-scrollbar { display: none; }
.auth-overlay .feat-nav a { white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 8px 14px; border-radius: 9px; }
.auth-overlay .feat-nav a:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.auth-overlay .frow { display: grid; grid-template-columns: 1fr 1.12fr; gap: 56px; align-items: center; scroll-margin-top: 140px; }
.auth-overlay .frow.flip .ftext { order: 2; }
.auth-overlay .ftext .tagrow { display: flex; align-items: center; gap: 10px; }
.auth-overlay .ftext .ic-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(150deg, var(--blue-600), var(--blue-700)); color: #fff; box-shadow: var(--shadow-blue); }
.auth-overlay .ftext .ic-badge svg { width: 22px; height: 22px; }
.auth-overlay .ftext h2 { font-size: clamp(26px,3vw,38px); font-weight: 800; margin-top: 20px; }
.auth-overlay .ftext p { margin-top: 14px; }
.auth-overlay .ftext .bens { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.auth-overlay .ftext .bens li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; font-weight: 500; }
.auth-overlay .ftext .bens .ck { width: 20px; height: 20px; border-radius: 6px; background: var(--green-100); color: var(--green-600); display: grid; place-items: center; flex: none; margin-top: 1px; }
.auth-overlay .ftext .bens .ck svg { width: 12px; height: 12px; }
.auth-overlay .usecases { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.auth-overlay .usecases .uc { font-size: 12.5px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
@media (max-width: 880px) { .auth-overlay .frow { grid-template-columns: 1fr; gap: 28px; } .auth-overlay .frow.flip .ftext { order: 0; } .auth-overlay .ftext .bens { grid-template-columns: 1fr; } }

/* mockup helpers */
.auth-overlay .mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.auth-overlay .mock-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.auth-overlay .mock-h .mt { font-family: var(--display); font-weight: 700; font-size: 14px; }
.auth-overlay .mock-h .ms { font-size: 11px; color: var(--muted-2); }
.auth-overlay .mock-b { padding: 14px 16px; }
.auth-overlay .row-item { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.auth-overlay .row-item:first-child { border-top: none; }
.auth-overlay .row-item .ri-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.auth-overlay .row-item .ri-ic svg { width: 16px; height: 16px; }
.auth-overlay .row-item .ri-info { flex: 1; min-width: 0; }
.auth-overlay .row-item .ri-info b { font-size: 13px; font-weight: 600; display: block; }
.auth-overlay .row-item .ri-info small { font-size: 11px; color: var(--muted-2); }
.auth-overlay .row-item .ri-amt { font-weight: 700; font-size: 13px; }
.auth-overlay .chip-status { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.auth-overlay .cs-paid { background: var(--green-100); color: var(--green-600); }
.auth-overlay .cs-pend { background: #fef3c7; color: #b45309; }
.auth-overlay .cs-over { background: #fee2e2; color: #dc2626; }
.auth-overlay .progress { height: 7px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.auth-overlay .progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue-600), var(--blue-500)); }
