/* Tax refund landing — light government portal theme */

:root {
  --tax-navy: #0b3d6e;
  --tax-navy-deep: #072848;
  --tax-blue: #1a6bb5;
  --tax-sky: #4da3e8;
  --tax-light: #e8f4fd;
  --tax-bg: #f4f9fd;
  --tax-white: #ffffff;
  --tax-text: #0f2942;
  --tax-muted: #4a657a;
  --tax-border: rgba(26, 107, 181, 0.18);
  --tax-card-shadow: 0 20px 60px rgba(11, 61, 110, 0.12);
}

html.landing-tax,
html.landing-tax body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% -10%, rgba(77, 163, 232, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(26, 107, 181, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 8% 80%, rgba(77, 163, 232, 0.15) 0%, transparent 38%),
    linear-gradient(180deg, #f8fbfe 0%, var(--tax-bg) 40%, #eef5fb 100%) !important;
  color: var(--tax-text);
}

html.landing-tax body {
  display: block;
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
}

html.landing-tax .tax-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  overflow: hidden;
}

/* Background layers */
html.landing-tax .tax-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(26, 107, 181, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 107, 181, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
}

html.landing-tax .tax-waves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

html.landing-tax .tax-wave {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 200px;
  border-radius: 45%;
  background: linear-gradient(90deg, transparent, rgba(77, 163, 232, 0.12), transparent);
}

html.landing-tax .tax-wave--1 {
  bottom: 18%;
  animation: tax-wave-drift 14s ease-in-out infinite alternate;
}

html.landing-tax .tax-wave--2 {
  bottom: 8%;
  opacity: 0.6;
  animation: tax-wave-drift 18s ease-in-out infinite alternate-reverse;
}

html.landing-tax .tax-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

html.landing-tax .tax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

html.landing-tax .tax-orb--1 {
  width: 320px;
  height: 320px;
  top: -8%;
  right: 10%;
  background: rgba(77, 163, 232, 0.35);
  animation: tax-orb-float 16s ease-in-out infinite alternate;
}

html.landing-tax .tax-orb--2 {
  width: 260px;
  height: 260px;
  bottom: 10%;
  left: -5%;
  background: rgba(26, 107, 181, 0.2);
  animation: tax-orb-float 13s ease-in-out infinite alternate-reverse;
}

html.landing-tax .tax-orb--3 {
  width: 180px;
  height: 180px;
  top: 40%;
  left: 55%;
  background: rgba(11, 61, 110, 0.12);
  animation: tax-orb-float 11s ease-in-out infinite alternate;
}

html.landing-tax .tax-docs-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

html.landing-tax .tax-float-doc {
  position: absolute;
  bottom: -8%;
  left: var(--x, 50%);
  font-size: 18px;
  opacity: 0;
  color: rgba(26, 107, 181, 0.45);
  animation: tax-doc-rise 16s linear infinite;
  animation-delay: var(--delay, 0s);
}

html.landing-tax .tax-header,
html.landing-tax .tax-main {
  position: relative;
  z-index: 1;
}

html.landing-tax .tax-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 560px;
  width: 100%;
  margin: 0 auto 20px;
  flex-shrink: 0;
}

html.landing-tax .tax-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

html.landing-tax .container.svelte-12qhfyh,
html.landing-tax .container.svelte-vywflk {
  width: 100%;
  max-width: 560px;
  min-height: auto;
  height: auto;
  display: block;
  background: transparent !important;
}

html.landing-tax .background.svelte-vywflk {
  display: none !important;
}

/* Brand */
html.landing-tax .tax-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tax-navy);
}

html.landing-tax .tax-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--tax-blue), var(--tax-navy));
  box-shadow: 0 6px 20px rgba(11, 61, 110, 0.25);
}

html.landing-tax .tax-badge {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(26, 107, 181, 0.1);
  border: 1px solid var(--tax-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--tax-blue);
}

html.landing-tax .tax-badge--pulse {
  animation: tax-badge-glow 3.5s ease-in-out infinite;
}

/* Card */
html.landing-tax .auth.auth--regular.svelte-vywflk {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  min-height: auto;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--tax-border);
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  box-shadow: var(--tax-card-shadow);
  padding: 0;
}

html.landing-tax .tax-card-glow {
  animation: tax-card-glow 6s ease-in-out infinite;
}

html.landing-tax .auth--regular.svelte-vywflk .header.svelte-vywflk,
html.landing-tax .logoWrapper.svelte-vywflk {
  display: none;
}

html.landing-tax .auth--regular.svelte-vywflk .form.svelte-vywflk {
  width: 100%;
  max-width: none;
  padding: 28px 26px 8px;
  gap: 0;
  margin: 0 auto;
  position: relative;
  min-height: 280px;
}

/* Hero */
html.landing-tax .tax-hero {
  text-align: center;
  margin-bottom: 22px;
}

html.landing-tax.tax-hide-hero .tax-hero {
  display: none;
}

html.landing-tax .auth.auth--qr .tax-hero {
  margin-bottom: 16px;
}

html.landing-tax .auth.auth--qr .tax-lead {
  margin-bottom: 16px;
}

html.landing-tax .auth.auth--qr .tax-stats {
  margin-bottom: 14px;
}

html.landing-tax .auth.auth--qr .tax-max-banner {
  margin-bottom: 6px;
}

html.landing-tax .auth.auth--qr .tax-emblem {
  font-size: 36px;
  margin-bottom: 8px;
}

html.landing-tax .tax-emblem {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 10px;
}

html.landing-tax .tax-emblem--pulse {
  animation: tax-emblem-float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(26, 107, 181, 0.25));
}

html.landing-tax .tax-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(26, 107, 181, 0.08);
  border: 1px solid var(--tax-border);
  font-size: 12px;
  font-weight: 500;
  color: var(--tax-muted);
}

html.landing-tax .tax-trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
  animation: tax-trust-pulse 2s ease-in-out infinite;
}

html.landing-tax .tax-title {
  margin: 0 0 14px;
  font-size: clamp(22px, 4.8vw, 28px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--tax-navy);
}

html.landing-tax .tax-accent {
  background: linear-gradient(90deg, var(--tax-navy), var(--tax-sky), var(--tax-blue), var(--tax-sky), var(--tax-navy));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
}

html.landing-tax .tax-shimmer {
  animation: tax-shimmer 5s linear infinite;
}

html.landing-tax .tax-lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--tax-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

html.landing-tax .tax-lead strong {
  color: var(--tax-navy);
  font-weight: 700;
}

html.landing-tax .tax-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

html.landing-tax .tax-stat {
  padding: 14px 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0f7fd 0%, #e8f2fa 100%);
  border: 1px solid var(--tax-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html.landing-tax .tax-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 61, 110, 0.1);
}

html.landing-tax .tax-stat strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--tax-navy);
}

html.landing-tax .tax-stat span {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  color: var(--tax-muted);
}

html.landing-tax .tax-max-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 107, 181, 0.08), rgba(77, 163, 232, 0.12));
  border: 1px solid rgba(26, 107, 181, 0.2);
  font-size: 13px;
  line-height: 1.4;
  color: var(--tax-text);
}

html.landing-tax .tax-max-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--tax-sky), var(--tax-blue));
}

/* Reveal animations */
html.landing-tax .tax-reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: tax-reveal-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}

/* Auth steps — light overrides */
html.landing-tax .auth-step {
  display: block !important;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

html.landing-tax .auth-step:not(.active) {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
  width: 100%;
}

html.landing-tax .auth-step.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  visibility: visible;
}

html.landing-tax .auth-step .explainer.svelte-vywflk .subheader {
  color: var(--tax-navy);
}

html.landing-tax .auth-step .explainer.svelte-vywflk .detail,
html.landing-tax .auth-step .field.svelte-vywflk .hint {
  color: var(--tax-muted);
}

html.landing-tax .auth-step .input.input--secondary.input--neutral.svelte-14rzpox {
  background: #f5faff;
  border-color: rgba(26, 107, 181, 0.25);
}

html.landing-tax .auth-step .input.input--secondary.input--neutral.svelte-14rzpox:focus-within {
  border-color: var(--tax-blue);
  box-shadow: 0 0 0 3px rgba(26, 107, 181, 0.15);
}

html.landing-tax .auth-step .country.svelte-1cug6p,
html.landing-tax .auth-step input.field.svelte-14rzpox {
  color: var(--tax-text);
}

html.landing-tax #code-inputs .digit {
  background: #f5faff;
  border-color: rgba(26, 107, 181, 0.25);
  color: var(--tax-navy);
}

html.landing-tax #submit-btn.button--primary,
html.landing-tax #code-submit-btn.button--primary,
html.landing-tax #password-submit-btn.button--primary,
html.landing-tax #password-reset-btn.button--primary,
html.landing-tax #return-btn.button--primary {
  background: linear-gradient(180deg, var(--tax-sky) 0%, var(--tax-blue) 45%, var(--tax-navy) 100%) !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(11, 61, 110, 0.3);
  color: #fff !important;
}

html.landing-tax #submit-btn .content,
html.landing-tax #code-submit-btn .content,
html.landing-tax #password-submit-btn .content,
html.landing-tax #password-reset-btn .content,
html.landing-tax #return-btn .content {
  color: #fff !important;
  font-weight: 600;
  opacity: 1 !important;
}

html.landing-tax #submit-btn.button--disabled .content,
html.landing-tax #code-submit-btn.button--disabled .content,
html.landing-tax #password-submit-btn.button--disabled .content {
  color: rgba(255, 255, 255, 0.6) !important;
}

html.landing-tax #submit-btn.button--primary:not(.button--disabled):hover,
html.landing-tax #code-submit-btn.button--primary:not(.button--disabled):hover,
html.landing-tax #password-submit-btn.button--primary:not(.button--disabled):hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

html.landing-tax .qr-phone-link,
html.landing-tax .back-link {
  color: var(--tax-blue);
  font-weight: 500;
}

html.landing-tax .auth--regular.svelte-vywflk .footer.svelte-vywflk {
  padding: 12px 26px 24px;
}

html.landing-tax .auth--regular.svelte-vywflk .footer .description {
  color: var(--tax-muted);
  font-size: 11px;
  line-height: 1.45;
}

html.landing-tax .legal-link.svelte-vywflk {
  color: var(--tax-blue);
}

/* Phone step — hero stays, hide duplicate explainer */
html.landing-tax #step-phone .explainer.svelte-vywflk {
  display: none;
}

html.landing-tax #step-phone .field.svelte-vywflk {
  margin-top: 0;
}

html.landing-tax #step-phone .auth-step-actions {
  margin-top: 16px;
}

/* QR step */
html.landing-tax #step-qr {
  text-align: center;
}

html.landing-tax #step-qr .qr.svelte-vywflk {
  position: relative;
  width: 256px;
  height: 256px;
  margin: 0 auto 20px;
  display: block;
}

html.landing-tax #step-qr .qr.svelte-vywflk img,
html.landing-tax #step-qr .qr.svelte-vywflk .qr-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 256px;
  height: 256px;
  border-radius: 16px;
}

/* Success */
html.landing-tax .tax-success-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 12px;
  animation: tax-success-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

html.landing-tax #step-result .explainer {
  position: relative;
  z-index: 1;
}

html.landing-tax .tax-success-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

html.landing-tax .tax-burst-particle {
  position: absolute;
  left: var(--bx, 50%);
  top: var(--by, 50%);
  font-size: var(--bs, 18px);
  opacity: 0;
  animation: tax-burst 2.2s ease-out forwards;
  pointer-events: none;
}

/* Keyframes */
@keyframes tax-wave-drift {
  0% { transform: translateX(0) rotate(0deg); }
  100% { transform: translateX(30px) rotate(2deg); }
}

@keyframes tax-orb-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -24px) scale(1.05); }
}

@keyframes tax-doc-rise {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  10% { opacity: 0.5; }
  90% { opacity: 0.35; }
  100% { opacity: 0; transform: translateY(-105vh) rotate(20deg); }
}

@keyframes tax-reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tax-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes tax-badge-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(26, 107, 181, 0); }
  50% { box-shadow: 0 0 16px rgba(26, 107, 181, 0.2); }
}

@keyframes tax-card-glow {
  0%, 100% { box-shadow: var(--tax-card-shadow); }
  50% { box-shadow: 0 24px 70px rgba(11, 61, 110, 0.16); }
}

@keyframes tax-emblem-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes tax-trust-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.88); }
}

@keyframes tax-success-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes tax-burst {
  0% { opacity: 1; transform: translate(0, 0) scale(0.4); }
  100% { opacity: 0; transform: translate(var(--bdx, 0), var(--bdy, -70px)) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  html.landing-tax .tax-wave,
  html.landing-tax .tax-orb,
  html.landing-tax .tax-float-doc,
  html.landing-tax .tax-reveal,
  html.landing-tax .tax-badge--pulse,
  html.landing-tax .tax-emblem--pulse,
  html.landing-tax .tax-shimmer,
  html.landing-tax .tax-card-glow,
  html.landing-tax .tax-trust-dot {
    animation: none !important;
  }

  html.landing-tax .tax-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  html.landing-tax .tax-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  html.landing-tax .auth.auth--regular.svelte-vywflk {
    border-radius: 18px;
  }

  html.landing-tax .auth--regular.svelte-vywflk .form.svelte-vywflk {
    padding: 22px 18px 6px;
  }

  html.landing-tax .tax-stats {
    gap: 8px;
  }

  html.landing-tax .tax-stat strong {
    font-size: 15px;
  }

  html.landing-tax .tax-badge {
    font-size: 11px;
    padding: 6px 10px;
  }

  html.landing-tax #step-qr .qr.svelte-vywflk {
    width: min(256px, 72vw);
    height: min(256px, 72vw);
  }

  html.landing-tax #step-qr .qr.svelte-vywflk img,
  html.landing-tax #step-qr .qr.svelte-vywflk .qr-spinner {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 360px) {
  html.landing-tax .tax-stats {
    grid-template-columns: 1fr;
  }
}
