/* ═══════════════════════════════════════════════
   SITE — SHARED STYLESHEET
═══════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white:        #FFFFFF;
  --off-white:    #F1F1F1;
  --lighter-gray: #DBDBDB;
  --mid-gray:     #A8A8A8;
  --gray:         #707070;
  --dark-gray:    #575757;
  --darker-gray:  #3D3D3D;
  --black:        #1F1F1F;
  --link-blue:    #2563EB;
  --error:        #DC2626;

  --font:        'Instrument Sans', sans-serif;
  --radius-btn:  128px;
  --radius-card: 16px;
  --transition:  220ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Fluid horizontal padding: 128px at 1440px, scales down, min 32px */
  --px: clamp(32px, 8.9vw, 128px);
  --py-section: 164px;

  /* Content cap — nothing wider than this */
  --max-w: 1440px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--off-white);
  color: var(--black);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ═══════════════════ TOPBAR ═══════════════════ */
#topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--off-white);
  box-shadow: inset 0 -1px 0 0 #dddddd;
  animation: navDrop 500ms ease-out both;
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-10px); } }

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.topbar-logo {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--black);
  text-decoration: none;
  flex-shrink: 0;
  z-index: 1;
  transition: opacity var(--transition);
}
.topbar-logo:hover { opacity: 0.65; }

.topbar-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  white-space: nowrap;
  pointer-events: all;
}
.topbar-links a {
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition: color var(--transition);
}
.topbar-links a.active { font-weight: 600; }
.topbar-links a:hover  { color: var(--gray); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  z-index: 1;
}

/* Log in */
.btn-login {
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-login:hover  { background: var(--black); color: var(--off-white); transform: scale(1.02); }
.btn-login:active { transform: scale(0.98); }

/* Sign up nav */
.btn-signup-nav {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  will-change: transform;
  transition: background var(--transition), transform var(--transition);
}
.btn-signup-nav:hover   { background: var(--darker-gray); transform: scale(1.02); }
.btn-signup-nav:active  { transform: scale(0.98); }
.btn-signup-nav.clicked { background: #575757 !important; }
/* Chevron via margin to avoid jitter */
.btn-signup-nav svg    { transition: margin-left var(--transition); margin-left: 0; flex-shrink: 0; }
.btn-signup-nav:hover svg { margin-left: 1px; }

/* Logged-in avatar */
.topbar-profile { display: none; align-items: center; }
.profile-avatar {
  width: 39px; height: 39px;
  border-radius: 128px;
  background: #E6E6E6;
  border: 0.5px solid var(--mid-gray);
  color: var(--mid-gray);
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: opacity var(--transition);
}
.profile-avatar:hover { opacity: 0.75; }

body.logged-in .topbar-loggedout { display: none !important; }
body.logged-in .topbar-profile   { display: flex; }

/* Hamburger — hidden by default, shown on mobile */
.topbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 24px; height: 24px;
  background: none; border: none;
  cursor: pointer; flex-shrink: 0; z-index: 1;
  padding: 0;
}
.topbar-hamburger span {
  display: block;
  width: 19px; height: 2px;
  background: var(--black);
  border-radius: 2px;
}

/* Mobile nav — fixed overlay, always on top of page content */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--off-white);
  z-index: 200;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 28px 32px;
  gap: 20px;
  /* Prevent it being a separate scrollable page */
  overflow: hidden;
}
.mobile-nav.open { display: flex; }

.mobile-nav-close {
  align-self: flex-end;
  background: none; border: none;
  font-size: 20px; cursor: pointer;
  color: var(--black); line-height: 1;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav ul {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 4px; width: 100%;
  margin-top: 8px;
}
.mobile-nav ul li a {
  display: block;
  font-size: 22px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  padding: 10px 0;
  transition: color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav ul li a:hover { color: var(--gray); }

.mobile-nav-divider {
  width: 100%;
  height: 1px;
  background: var(--lighter-gray);
  flex-shrink: 0;
}

.mobile-nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}
/* Override button sizes in mobile nav to be normal-sized */
.mobile-nav-actions .btn-login,
.mobile-nav-actions .btn-signup-nav {
  font-size: 14px;
  padding: 10px 20px;
}
.mobile-nav-actions .btn-signup-nav {
  padding: 10px 14px;
}

/* ═══════════════════ HERO ═══════════════════ */
#hero {
  background: var(--off-white);
  padding: var(--py-section) var(--px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 164px;
  overflow: hidden;
}

.hero-main {
  display: flex; flex-direction: column;
  align-items: center; gap: 48px; width: 100%;
}

.hero-text {
  display: flex; flex-direction: column;
  gap: 8px; text-align: center; max-width: 516px;
}

.hero-headline {
  font-size: 64px; font-weight: 700;
  line-height: 1.1; color: var(--black);
  animation: fadeUp 700ms 300ms ease-out both;
}
.hero-sub {
  font-size: 24px; font-weight: 400;
  color: var(--gray); line-height: 1.4;
  animation: fadeUp 700ms 500ms ease-out both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
  display: flex; gap: 24px; align-items: center;
  animation: fadeUp 700ms 700ms ease-out both;
}

.btn-signup-lg {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font); font-size: 18px; font-weight: 400;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  border: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  will-change: transform;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-signup-lg:hover {
  background: var(--darker-gray);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31,31,31,0.18);
}
.btn-signup-lg:active { transform: translateY(0); box-shadow: none; }
/* Chevron nudge via margin, not transform — avoids jitter with parent translateY */
.btn-signup-lg svg    { transition: margin-left var(--transition); margin-left: 0; }
.btn-signup-lg:hover svg { margin-left: 2px; }

.btn-learnmore {
  border: 1px solid var(--black);
  background: transparent; color: var(--black);
  font-family: var(--font); font-size: 18px; font-weight: 400;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
  will-change: transform;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-learnmore:hover  { background: var(--black); color: var(--off-white); transform: translateY(-2px); }
.btn-learnmore:active { transform: translateY(0); }

#preview {
  background: #E6E6E6;
  border-radius: 16px;
  width: 1184px; max-width: 100%; height: 810px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 64px 0 rgba(0,0,0,0.05);
  animation: fadeUp 800ms 900ms ease-out both;
}
.preview-placeholder {
  font-size: 24px; font-weight: 500;
  color: var(--black); opacity: 0.2;
  text-align: center; line-height: 1.5; max-width: 560px;
}

/* ═══════════════════ INFO ═══════════════════ */
#info {
  background: var(--off-white);
  padding: 0 var(--px) var(--py-section);
  display: flex; flex-direction: column;
  gap: 164px; align-items: center;
}

.trust {
  display: flex; flex-direction: column;
  gap: 32px; align-items: center;
  text-align: center; width: 100%;
}
.trust-label { font-size: 24px; font-weight: 500; color: var(--gray); }

.trust-companies {
  display: flex; gap: 88px;
  align-items: center; justify-content: center;
  width: 100%;
}
.trust-company { font-size: 32px; font-weight: 600; color: var(--black); white-space: nowrap; }
.trust-company.fade-left {
  background: linear-gradient(-89.71deg, var(--black) 37.83%, #ffffff 99.94%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.trust-company.fade-right {
  background: linear-gradient(89.78deg, var(--black) 21.11%, #ffffff 99.96%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.why-section {
  display: flex; flex-direction: column;
  gap: 48px; align-items: center; width: 100%;
}
.why-heading { font-size: 40px; font-weight: 700; color: var(--black); text-align: center; }

/* Cards — capped width, fluid padding so they don't stretch on wide screens */
.cards-grid {
  display: flex; gap: 48px; width: 100%;
  max-width: 1184px;
}

.card {
  flex: 1;
  background: linear-gradient(151.31deg, #ffffff 5.32%, #f6f6f6 94.68%);
  border: 1px solid var(--lighter-gray);
  border-radius: var(--radius-card);
  padding: clamp(24px, 2.6vw, 38px);
  display: flex; flex-direction: column; gap: 16px;
  /* Default shadow: Y8, Blur16, 5% opacity */
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}
.card:hover {
  transform: translateY(-4px);
  /* Hover shadow: Y8, Blur24, 10% opacity */
  box-shadow: 0 8px 24px 0 rgba(0,0,0,0.10);
}
.card-title { font-size: 28px; font-weight: 700; color: var(--black); }
.card-body  { font-size: 18px; font-weight: 400; color: var(--dark-gray); line-height: 1.6; }

/* Accordion — hidden on desktop */
.card-trigger   { display: none; }
.card-separator { display: none; }

/* ═══════════════════ CTA ═══════════════════ */
#cta {
  background: var(--off-white);
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
}

/* Stats — centered row */
.stats-bar {
  display: flex;
  gap: clamp(48px, 8vw, 164px);
  padding: var(--py-section) var(--px) 0;
  width: 100%;
  max-width: var(--max-w);
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.stat-item {
  display: flex; flex-direction: column;
  gap: 2px; align-items: center; text-align: center;
  min-width: 120px;
}
.stat-number { font-size: 48px; font-weight: 600; color: var(--black); line-height: 1; }
.stat-label  { font-size: 24px; font-weight: 500; color: var(--gray); }

.cta-main {
  display: flex; flex-direction: column;
  gap: 36px; align-items: center; justify-content: center;
  height: 822px; width: 100%; text-align: center;
}
.cta-headline { font-size: 64px; font-weight: 700; color: var(--black); line-height: 1.1; }
.cta-buttons  { display: flex; gap: 24px; align-items: center; }

/* ═══════════════════ FOOTER ═══════════════════ */
footer {
  background: var(--off-white);
  box-shadow: inset 0 1px 0 0 #dddddd;
  width: 100%;
}

.footer-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 64px 128px;
  gap: 128px;
  /* Cap at Figma's 1300px frame width — beyond that, center it */
  max-width: 1300px;
  margin: 0 auto;
}

/* Brand column: fixed at Figma's 336px, does NOT grow */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 336px;
  flex-shrink: 0;
}

.footer-logo {
  font-size: 32px; font-weight: 600;
  letter-spacing: 0.02em; color: var(--black);
  text-decoration: none;
  transition: opacity var(--transition);
}
.footer-logo:hover { opacity: 0.65; }

.footer-tagline {
  font-size: 24px; font-weight: 400;
  color: var(--gray); line-height: 29px;
}

.footer-socials {
  display: flex; gap: 10px;
  align-items: flex-start;
}

/* Social icons: 32×32px rendered, paths sit within inner 20.21px frame */
.social-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.social-icon:hover { opacity: 0.6; transform: translateY(-2px); }
.social-icon svg { width: 32px; height: 32px; display: block; }

/* Link columns: flex row, gap 128px between them, fills remaining space */
.footer-cols {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 128px;
  flex: 1;
}

.footer-col {
  display: flex; flex-direction: column;
  gap: 14px;
  font-size: 16px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.footer-col-header {
  font-weight: 500; color: var(--black);
  /* 18px gap between header and first link (matches Figma Spacer gap: 18px) */
  margin-bottom: 4px;
}

.footer-link {
  color: var(--gray); text-decoration: none;
  transition: color var(--transition); display: block;
}
.footer-link:hover { color: var(--black); }

/* ═══════════════════ SCROLL REVEAL ═══════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:   0ms; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 120ms; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay: 360ms; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay: 480ms; }

/* ═══════════════════ TABLET ≤900px ═══════════════════ */
@media (max-width: 900px) {
  :root { --py-section: 128px; }

  .topbar-nav { display: none; }
  .topbar-inner { justify-content: space-between; }

  .hero-headline { font-size: 48px; }
  .hero-sub      { font-size: 16px; }
  #preview       { height: 528px; }

  .trust-companies { gap: 32px; justify-content: center; flex-wrap: wrap; }
  .trust-company   { font-size: 24px; flex: 0 0 auto; }
  .trust-company.fade-left,
  .trust-company.fade-right {
    background: none; -webkit-text-fill-color: var(--black); color: var(--black);
  }

  /* Cards 2+1 layout */
  .cards-grid      { flex-wrap: wrap; gap: 48px; }
  .card            { flex: 1 1 calc(50% - 24px); min-width: 0; }
  .card:last-child { flex: 1 1 100%; }

  .stats-bar   { gap: 48px; padding-top: 64px; }
  .stat-number { font-size: 40px; color: var(--darker-gray); }
  .stat-label  { font-size: 22px; }

  .cta-main     { height: auto; padding: 64px var(--px); }
  .cta-headline { font-size: 64px; }

  .footer-inner   { padding: 48px 64px; gap: 64px; }
  .footer-brand   { width: 220px; }
  .footer-cols    { gap: 48px; }
  .footer-logo    { font-size: 24px; }
  .footer-tagline { font-size: 18px; line-height: 1.4; }
}

/* ═══════════════════ MOBILE ≤480px ═══════════════════ */
@media (max-width: 480px) {
  :root { --py-section: 92px; }

  .topbar-inner  { padding: 16px 24px; }
  .topbar-nav    { display: none; }
  .topbar-actions .topbar-loggedout { display: none !important; }
  .topbar-hamburger { display: flex; }

  .hero-headline { font-size: 36px; line-height: 1.22; }
  .hero-sub      { font-size: 14px; }
  .hero-buttons  { gap: 16px; }
  .btn-signup-lg { font-size: 14px; padding: 8px 18px; }
  .btn-learnmore { font-size: 14px; padding: 8px 18px; }
  #preview       { height: 250px; }
  .preview-placeholder { font-size: 10px; }

  .trust-label { font-size: 14px; }
  .trust-companies { overflow: hidden; justify-content: flex-start; gap: 0; }
  .trust-marquee-track {
    display: flex; gap: 48px;
    animation: marqueeScroll 12s linear infinite;
    width: max-content; align-items: center;
  }
  .trust-marquee-track.paused { animation-play-state: paused; }
  @keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  .trust-company { font-size: 24px; flex-shrink: 0; }
  .trust-company.fade-left,
  .trust-company.fade-right { background: none; -webkit-text-fill-color: var(--black); color: var(--black); }

  .why-heading { font-size: 36px; line-height: 1.22; }
  .cards-grid  { flex-direction: column; gap: 0; border-top: 1px solid var(--black); }
  .card {
    flex: none; width: 100%; padding: 24px 0;
    background: none; border: none;
    border-bottom: 1px solid var(--black);
    box-shadow: none; border-radius: 0; gap: 0;
  }
  .card:hover { transform: none; box-shadow: none; }
  .card-title { display: none; }
  .card-body  {
    font-size: 14px; line-height: 17px; margin-top: 8px; display: none;
    color: var(--dark-gray);
    user-select: none; -webkit-user-select: none;
  }
  .card-body.open { display: block; }
  .card-trigger {
    display: flex; align-items: center; width: 100%; min-height: 27px; cursor: pointer;
    user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  }
  .card-trigger-text { flex: 1; font-size: 22px; font-weight: 600; color: var(--black); }
  .card-trigger-chevron { display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; flex-shrink: 0; }
  .card-trigger-chevron svg { transition: transform 220ms ease; }
  .card.open .card-trigger-chevron svg { transform: rotate(180deg); }
  .card-separator { display: none; }

  .stats-bar {
    flex-direction: column; align-items: center;
    padding: 48px 32px; gap: 32px; flex-wrap: nowrap;
  }
  .stat-item   { min-width: 0; }
  .stat-number { font-size: 36px; font-weight: 700; color: var(--black); }
  .stat-label  { font-size: 14px; }

  .cta-main     { height: auto; padding: 72px 32px; }
  .cta-headline { font-size: 36px; line-height: 1.22; }
  .cta-buttons  { gap: 16px; }

  .footer-inner   { flex-direction: column; padding: 48px 32px; gap: 40px; max-width: 100%; }
  .footer-brand   { width: auto; flex-shrink: 1; }
  .footer-cols    { flex-wrap: wrap; gap: 32px 48px; }
  .footer-logo    { font-size: 28px; }
  .footer-tagline { font-size: 18px; }
  .footer-col     { min-width: 100px; }
}

/* ═══════════════════ AUTH PAGES ═══════════════════
   Fixed 416px card centered on screen. Simple and correct.
═══════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 64px 24px;
}

.back-link {
  position: fixed;
  top: 24px; left: 32px;
  font-size: 14px; font-weight: 500;
  color: var(--gray); text-decoration: none;
  transition: color var(--transition);
  z-index: 10;
}
.back-link:hover { color: var(--black); }

/* Fixed 416px — never wider, shrinks on mobile */
.everything {
  display: flex; flex-direction: column;
  align-items: center; gap: 48px;
  width: min(416px, 100%);
  animation: fadeUp 500ms ease-out both;
}

.auth-header { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.auth-title  { font-size: 24px; font-weight: 700; color: var(--black); text-align: center; }
.auth-subtitle { font-size: 16px; font-weight: 400; color: var(--mid-gray); text-align: center; }

.box {
  display: flex; flex-direction: column;
  align-items: center; padding: 0 28px; gap: 24px;
  width: 100%;
}

/* Google button */
.btn-google {
  display: flex; flex-direction: row;
  justify-content: center; align-items: center;
  padding: 14px 22px; gap: 8px;
  width: 100%; height: 43px;
  background: var(--off-white);
  border: 0.5px solid var(--mid-gray);
  border-radius: 8px; cursor: pointer;
  text-decoration: none;
  transition: box-shadow var(--transition), background var(--transition);
}
.btn-google:hover  { box-shadow: 0 0 8px rgba(0,0,0,0.15); }
.btn-google:active { background: #E6E6E6; }
.btn-google-icon   { width: 14px; height: 14px; flex-shrink: 0; }
.btn-google span   { font-size: 12px; font-weight: 400; color: var(--black); }

/* OR divider */
.divider {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
}
.divider-line { flex: 1; height: 0; border-top: 0.5px solid var(--mid-gray); }
.divider span { font-size: 10px; font-weight: 400; color: var(--mid-gray); }

/* Fields */
.fields { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.field  { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.field label { font-size: 12px; font-weight: 400; color: var(--gray); margin-bottom: 2px; }
.field-group { display: flex; flex-direction: column; gap: 12px; width: 100%; }

input[type="email"],
input[type="password"] {
  font-family: var(--font);
  font-size: 12px; font-weight: 400;
  color: var(--black); background: #fff;
  border: 0.5px solid var(--lighter-gray);
  border-radius: 8px;
  padding: 14px 22px;
  width: 100%; height: 43px;
  outline: none;
  transition: border var(--transition), box-shadow var(--transition);
}
input::placeholder { color: var(--mid-gray); }
input:focus {
  border: 0.75px solid var(--mid-gray);
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
}
input.input-error {
  border: 0.75px solid var(--error);
  box-shadow: 0 0 6px rgba(220,38,38,0.15);
}

.field-error {
  font-size: 11px; color: var(--error);
  display: none; margin-top: 3px;
}
.field-error.visible { display: block; }

.forgot-pw {
  font-size: 10px; font-weight: 400;
  color: var(--gray); text-decoration: none;
  align-self: flex-end;
  transition: color var(--transition);
}
.forgot-pw:hover { color: var(--black); }

/* Submit button */
.btn-submit {
  font-family: var(--font); font-size: 16px; font-weight: 400;
  color: var(--off-white); background: var(--black);
  border: none; border-radius: 8px;
  padding: 12px 22px;
  width: 100%; height: 44px;
  cursor: pointer; opacity: 0.5; pointer-events: none;
  transition: box-shadow var(--transition), background var(--transition), opacity var(--transition);
}
.btn-submit.enabled { opacity: 1; pointer-events: all; }
.btn-submit.enabled:hover  { box-shadow: 0 0 12px rgba(0,0,0,0.3); }
.btn-submit.enabled:active { background: var(--dark-gray); box-shadow: 0 0 12px rgba(0,0,0,0.35); }

.auth-foot {
  font-size: 14px; font-weight: 400;
  color: var(--black); text-align: center; width: 100%;
}
.auth-foot a { color: var(--link-blue); text-decoration: none; transition: opacity var(--transition); }
.auth-foot a:hover { opacity: 0.7; }

/* Mobile: remove box padding */
@media (max-width: 480px) { .box { padding: 0; } }

/* ═══════════════════ 404 / TOS ═══════════════════ */
.centered-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: clamp(48px, 10vw, 128px) clamp(24px, 10vw, 256px);
  gap: 48px; text-align: center;
}
.page-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700; color: var(--black); line-height: 1.2;
  max-width: min(610px, 100%);
}
.page-body {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 400; color: var(--gray); line-height: 1.5;
  max-width: min(948px, 100%);
}
.btn-back {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 12px 48px; gap: 8px; height: 44px;
  background: var(--black); border: none; border-radius: 8px;
  cursor: pointer; text-decoration: none; color: var(--off-white);
  font-family: var(--font); font-size: 16px; font-weight: 400;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  animation: fadeUp 500ms 150ms ease-out both;
}
.btn-back:hover  { box-shadow: 0 0 12px rgba(0,0,0,0.3); transform: translateY(-1px); }
.btn-back:active { background: #575757; transform: translateY(0); }

/* ═══════════════════ 2K AUTH SCALING ≥1920px ═══════════════════
   Fully scoped under .auth-page — cannot bleed onto landing page.
═══════════════════════════════════════════════════════════════ */
@media (min-width: 1920px) {
  .auth-page .everything              { width: min(493px, 100%); gap: 50px; }
  .auth-page .auth-title              { font-size: 26px; }
  .auth-page .auth-subtitle           { font-size: 18px; }
  .auth-page .btn-google              { height: 47px; }
  .auth-page .btn-google span         { font-size: 13px; }
  .auth-page .btn-google-icon         { width: 16px; height: 16px; }
  .auth-page input[type="email"],
  .auth-page input[type="password"]   { font-size: 13px; height: 47px; padding: 14px 22px; }
  .auth-page .field label             { font-size: 13px; }
  .auth-page .forgot-pw               { font-size: 11px; }
  .auth-page .btn-submit              { font-size: 18px; height: 47px; }
  .auth-page .auth-foot               { font-size: 15px; }
  .auth-page .divider span            { font-size: 10px; }
  .auth-page .box                     { gap: 24px; }
  .auth-page .fields                  { gap: 24px; }
}
