:root {
  --primary: #2563eb;
  --accent: #38bdf8;
  --text: #ffffff;
  --muted: #9ca3af;
  --card-bg: rgba(255,255,255,0.05);
  --risk-high: rgba(255, 99, 99, 0.35);
  --risk-medium: rgba(255, 198, 90, 0.35);
  --risk-low: rgba(120, 220, 160, 0.32);
  --risk-high-text: rgba(255, 140, 140, 0.95);
  --risk-medium-text: rgba(255, 210, 140, 0.95);
  --risk-low-text: rgba(160, 235, 195, 0.95);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 1, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-1: 220ms;
  --t-2: 520ms;
  --t-3: 820ms;
  --t-fast: var(--t-1);
  --t-med: var(--t-2);
  --t-slow: var(--t-3);
}

/* ===== GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "DM Sans", sans-serif;
}

html,
body {
  height: 100%;
  background: #091a36;
  overscroll-behavior: none;
}

body {
  margin: 0;
  padding-top: 72px;
  background: #091a36;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

body:not(.home-page):not(.auth-page) {
  background: inherit;
  background-size: inherit;
  background-position: inherit;
  animation: inherit;
}

.home-page {
  padding-top: 76px;
}

html.page-transition-enabled body {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 240ms var(--ease-soft),
    transform 240ms var(--ease-soft);
}

html.page-transition-enabled body.page-transition-ready {
  opacity: 1;
  transform: translateY(0);
}

body.modal-open {
  overflow: hidden;
}

html.page-transition-enabled body.modal-open,
html.page-transition-enabled body.page-transition-ready.modal-open {
  transform: none !important;
}

body::before {
  content: none;
}

body::after {
  content: none;
}

body > * {
  position: relative;
  z-index: 1;
}

.security-page {
  padding-top: 72px;
}

.contact-page {
  padding-top: 72px;
}

.auth-page {
  padding: 28px 20px;
  padding-top: 28px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  animation: none;
  background: transparent;
}

.auth-page::before,
.auth-page::after {
  content: none;
}

.auth-shell {
  position: relative;
  min-height: calc(100vh - 56px);
  isolation: isolate;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 760px at 10% 6%, rgba(74, 146, 255, 0.18), transparent 68%),
    radial-gradient(980px 680px at 88% 78%, rgba(54, 204, 255, 0.16), transparent 70%),
    linear-gradient(165deg, #071028 0%, #081636 48%, #070f26 100%);
}

.auth-bg::before,
.auth-bg::after {
  content: "";
  position: absolute;
  inset: -14% -12%;
  pointer-events: none;
}

.auth-bg::before {
  background:
    radial-gradient(44% 52% at 18% 26%, rgba(78, 156, 255, 0.22), transparent 72%),
    radial-gradient(36% 44% at 82% 18%, rgba(66, 206, 255, 0.16), transparent 74%);
  filter: blur(36px);
  opacity: 0.92;
  animation: authAuroraDriftA 26s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.auth-bg::after {
  background:
    radial-gradient(34% 38% at 24% 82%, rgba(58, 128, 255, 0.16), transparent 74%),
    radial-gradient(40% 42% at 78% 62%, rgba(45, 176, 255, 0.14), transparent 76%);
  filter: blur(32px);
  opacity: 0.82;
  animation: authAuroraDriftB 32s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.auth-content {
  position: relative;
  z-index: 1;
}

@keyframes authAuroraDriftA {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.88;
  }
  50% {
    transform: translate3d(2.8%, -2.2%, 0) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.88;
  }
}

@keyframes authAuroraDriftB {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.78;
  }
  50% {
    transform: translate3d(-2.4%, 2%, 0) scale(1.04);
    opacity: 0.94;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.78;
  }
}

@keyframes gradientFlow {
  0% { background-position:0% 50%; }
  50% { background-position:100% 50%; }
  100% { background-position:0% 50%; }
}

@keyframes auroraFloatA {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0 0;
    transform: scale(1);
  }
  50% {
    background-position: 9% 6%, 91% 5%, 52% 94%, 0 0;
    transform: scale(1.015);
  }
  100% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0 0;
    transform: scale(1);
  }
}

@keyframes auroraFloatB {
  0% {
    background-position: 0% 0%, 100% 0%, 0 0;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.05;
  }
  50% {
    background-position: 8% 4%, 92% 6%, 16px 10px;
    transform: translate3d(0, -6px, 0) scale(1.02);
    opacity: 0.08;
  }
  100% {
    background-position: 0% 0%, 100% 0%, 0 0;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.05;
  }
}

@keyframes pageAmbientFlow {
  0% {
    background-position: 0% 0%, 100% 0%, 0 0;
  }
  50% {
    background-position: 9% 6%, 91% 5%, 0 0;
  }
  100% {
    background-position: 0% 0%, 100% 0%, 0 0;
  }
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0;
  background: rgba(10,15,31,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1000;
  pointer-events: none;
}

.site-header * {
  pointer-events: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 11px 24px;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  margin: 0;
  filter: drop-shadow(0 0 10px rgba(60, 120, 255, 0.22));
  transition: filter 160ms ease, transform 160ms ease;
}

.brand-link:hover .brand-logo {
  filter: drop-shadow(0 0 14px rgba(60, 120, 255, 0.32));
  transform: translateY(-1px);
}

.logo {
  font-weight: 700;
  font-size: 22px;
  color: white;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  transition: color 220ms ease, transform 140ms ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: white;
}

.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(90, 150, 255, 0.36);
}

.nav-links a:active {
  transform: translateY(1px) scale(0.97);
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Sign In кнопка */
.sign-in {
  background: white;
  color: black !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 50px 10% 24px;
}

.home-page .hero {
  padding: 44px 10% 56px;
}

.hero h1 {
  font-size: 50px;
  margin-top: 0;
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 18px;
}

.home-page .hero p {
  margin-bottom: 32px;
}

/* ===== HOME LANDING ===== */
.home {
  position: relative;
  z-index: 1;
  padding: 0 10% 0;
}

.home-section {
  padding: 56px 0;
  position: relative;
}

.home-section + .home-section {
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Home page should use a single continuous page background (from body only). */
.home-page .home,
.home-page .home-section,
.home-page .home-final-cta,
.home-page .home-what-check--extended,
.home-page .legal-links,
.home-page footer {
  background: transparent !important;
}

.home-page .home-section + .home-section {
  border-top: none;
}

/* Single source of truth for page background: sections must stay transparent. */
.home,
.section,
.home-section,
.home-hero,
.home-trust,
.home-how,
.home-features,
.home-checks,
.home-final-cta {
  background: transparent !important;
  background-image: none !important;
}

.section::before,
.section::after,
.home-section::before,
.home-section::after,
.home-hero::before,
.home-hero::after,
.home-how::before,
.home-how::after,
.home-features::before,
.home-features::after,
.home-checks::before,
.home-checks::after,
.home-final-cta::before,
.home-final-cta::after {
  content: none !important;
  display: none !important;
}

.reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

html.js.motion-ready .reveal {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  filter: blur(10px);
  will-change: opacity, transform, filter;
}

html:not(.js) .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

@keyframes revealIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

html.js.motion-ready .reveal.is-visible {
  animation: revealIn 820ms cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: var(--delay, 0ms);
}

.reveal-stagger > .reveal {
  animation-delay: var(--delay, 0ms);
}

.hero-title.reveal,
.section-title.reveal {
  clip-path: inset(0 0 0 0);
}

html.js.motion-ready .hero-title.reveal,
html.js.motion-ready .section-title.reveal {
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path var(--t-3) var(--ease-soft),
    opacity var(--t-2) var(--ease-soft),
    transform var(--t-2) var(--ease-soft),
    filter var(--t-2) var(--ease-soft);
}

html.js.motion-ready .hero-title.reveal.is-visible,
html.js.motion-ready .section-title.reveal.is-visible {
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  html.js .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-title.reveal,
  .section-title.reveal,
  .primary-cta::after,
  .hero-visual .visual-card,
  .home-step-card,
  .home-step-card::after,
  .feature-card,
  .feature-card::after,
  .home-check-card,
  .home-check-card::after,
  .final-cta-card,
  .final-cta-card::after {
    transition: none !important;
    animation: none !important;
    filter: none !important;
    transform: none !important;
    clip-path: none !important;
    opacity: 1 !important;
  }

  .reveal.is-visible {
    animation: none !important;
  }
}

.home-hero {
  position: relative;
  isolation: isolate;
  padding: 64px 0 48px;
}

.home-hero::before,
.home-hero::after,
.hero-visual::before,
.hero-visual::after {
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 76px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.home-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(120,170,255,0.32);
  border-radius: 999px;
  background: rgba(120,170,255,0.1);
  color: #dbeafe;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  opacity: .8;
  line-height: 1.55;
  max-width: 48ch;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.primary-cta {
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(var(--magnetic-x, 0px), var(--magnetic-y, 0px), 0);
  transition:
    transform var(--t-2) var(--ease-soft),
    filter var(--t-1) var(--ease-out),
    box-shadow var(--t-2) var(--ease-soft);
}

.primary-cta::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 45%);
  transform: translateX(-40%) rotate(8deg);
  opacity: 0;
  transition:
    opacity var(--t-1) var(--ease-out),
    transform var(--t-2) var(--ease-soft);
  pointer-events: none;
  z-index: 0;
}

.primary-cta:hover::after,
.primary-cta:focus-visible::after {
  opacity: .9;
  transform: translateX(18%) rotate(8deg);
}

.primary-cta > * {
  position: relative;
  z-index: 1;
}

.primary-cta:active {
  transform: translate3d(var(--magnetic-x, 0px), var(--magnetic-y, 0px), 0) scale(0.985);
  transition-timing-function: var(--ease-spring);
}

.primary-cta span {
  margin-left: 6px;
}

.secondary-link {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 14px;
  opacity: .75;
  transition: opacity 160ms ease;
}

.secondary-link:hover {
  opacity: 1;
}

.hero-trust-copy {
  margin-top: 16px;
  color: rgba(255,255,255,0.74);
  font-size: 13px;
}

.hero-actions .btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  position: relative;
  will-change: transform;
}

.hero-cardWrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  z-index: 2;
  --hero-card-pad: 24px;
}

.hero-badge {
  --delay: 0ms;
}

.hero-title {
  --delay: 60ms;
}

.hero-sub {
  --delay: 120ms;
}

.hero-cta {
  --delay: 180ms;
}

.hero-visual.reveal {
  --delay: 220ms;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: 0;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 30%, rgba(70,130,255,.18), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}

.home-hero .hero-grid,
.home-hero .hero-copy,
.home-hero .hero-visual {
  position: relative;
  z-index: 1;
}

/* Keep the illustration purely decorative so it cannot block hero clicks. */
.hero-visual,
.hero-visual * {
  pointer-events: none;
}

/* Safety: interactive controls in hero stay above decorative layers. */
.home-hero .cta-row,
.home-hero .cta-row * {
  position: relative;
  z-index: 5;
  pointer-events: auto !important;
}

.home-hero .hero-trust-copy,
.home-hero .hero-trust-copy a {
  position: relative;
  z-index: 5;
  pointer-events: auto !important;
}

.visual-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: var(--hero-card-pad);
  box-shadow: 0 24px 90px rgba(60,120,255,.10);
  transform-style: preserve-3d;
  transition:
    transform var(--t-2) var(--ease-soft),
    box-shadow var(--t-2) var(--ease-soft);
  will-change: transform, box-shadow;
  animation: glowBreath 7s var(--ease-soft) infinite;
}

@keyframes glowBreath {
  0%, 100% {
    box-shadow: 0 24px 90px rgba(60,120,255,.10);
  }
  50% {
    box-shadow: 0 28px 110px rgba(60,120,255,.16);
  }
}

.visual-status-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120,170,255,.35);
  background: rgba(120,170,255,.12);
  color: rgba(220,235,255,.95);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.preview-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.preview-chip {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  color: rgba(255,255,255,0.84);
  background: rgba(255,255,255,0.05);
}

.visual-card h3 {
  margin: 0;
}

.preview-subtitle {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.preview-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
}

.visual-pill-row {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.pill.green {
  background: rgba(60,200,120,.12);
  border-color: rgba(60,200,120,.22);
  color: rgba(184,245,208,.95);
}

.pill.amber {
  background: rgba(240,180,60,.12);
  border-color: rgba(240,180,60,.22);
  color: rgba(255,228,176,.95);
}

.visual-skeleton {
  margin-top: 14px;
}

.skeleton-line {
  height: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  margin-top: 10px;
}

.skeleton-line.w-90 {
  width: 90%;
}

.skeleton-line.w-75 {
  width: 75%;
}

.skeleton-line.w-60 {
  width: 60%;
}

.home-trust {
  padding: 18px 0 6px;
}

.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-hero .home-trust-grid {
  margin-top: 14px;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  overflow: visible;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.hero-visual-trust {
  width: max-content;
  min-width: calc(100% + 56px);
  max-width: none;
  margin: 0;
  left: 50%;
  transform: translateX(-50%);
  padding-inline: 0;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.home-hero .hero-grid,
.home-hero .hero-visual {
  overflow: visible;
}

.trust-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.trust-icon {
  width: 20px;
  height: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  display: grid;
  place-items: center;
  color: rgba(120,170,255,0.9);
  flex-shrink: 0;
  line-height: 0;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(120,170,255,0.82);
  box-shadow: 0 0 0 5px rgba(120,170,255,0.16);
  flex-shrink: 0;
}

.section-head {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: .14em;
  opacity: .7;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
}

.section-title {
  margin-top: 8px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-sub {
  opacity: .75;
  max-width: 60ch;
  margin: 0 auto;
  padding-left: 0;
  transform: none;
  text-align: center;
  font-size: 15px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.home-checks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.home-features {
  position: relative;
  overflow: hidden;
}

.home-checks {
  position: relative;
  overflow: visible;
}

.home-what-check--extended {
  padding-bottom: 56px;
}

.home-features::before,
.home-features::after {
  content: none !important;
  display: none !important;
}

.home-checks.home-what-check--extended {
  position: relative;
  overflow: visible;
}

.home-checks.home-what-check--extended::before {
  content: none !important;
  display: none !important;
}

.home-checks.home-what-check--extended > * {
  position: static;
  z-index: auto;
}

.home-check-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  box-shadow: none;
  padding: 20px 22px 18px;
  transform: translateZ(0);
  transition:
    transform 320ms cubic-bezier(0.16,1,0.3,1),
    box-shadow 520ms cubic-bezier(0.16,1,0.3,1),
    border-color 320ms cubic-bezier(0.16,1,0.3,1),
    background 520ms cubic-bezier(0.16,1,0.3,1);
  will-change: transform, box-shadow;
}

.home-check-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 520ms cubic-bezier(0.16,1,0.3,1);
  background: radial-gradient(600px circle at 30% 20%, rgba(90,150,255,.14), transparent 55%);
}

.home-check-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(3, 10, 26, 0.24);
  border-color: rgba(140,180,255,.20);
  background: rgba(255,255,255,.03);
}

.home-check-card:hover::after {
  opacity: 1;
}

.home-check-card:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 140ms;
}

.home-check-card .check-card-top {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.home-check-card .preview-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  margin: 0 !important;
  transform: none;
  position: static !important;
}

.home-check-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.home-check-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.checks-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.feature-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  box-shadow: none;
  padding: 20px;
  transform: translateZ(0);
  transition:
    transform 320ms cubic-bezier(0.16,1,0.3,1),
    box-shadow 520ms cubic-bezier(0.16,1,0.3,1),
    border-color 320ms cubic-bezier(0.16,1,0.3,1),
    background 520ms cubic-bezier(0.16,1,0.3,1);
  will-change: transform, box-shadow;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 520ms cubic-bezier(0.16,1,0.3,1);
  background: radial-gradient(600px circle at 30% 20%, rgba(90,150,255,.14), transparent 55%);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(3, 10, 26, 0.24);
  border-color: rgba(140,180,255,.20);
  background: rgba(255,255,255,.03);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 140ms;
}

.feature-card h3 {
  margin: 12px 0 8px;
  font-size: 19px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  line-height: 0;
}

.feature-red {
  color: #fecaca;
  background: rgba(248,113,113,.13);
}

.feature-blue {
  color: #bfdbfe;
  background: rgba(96,165,250,.13);
}

.feature-green {
  color: #bbf7d0;
  background: rgba(74,222,128,.12);
}

.feature-violet {
  color: #ddd6fe;
  background: rgba(167,139,250,.14);
}

.home-how {
  text-align: center;
}

.home-how h2 {
  margin: 0;
}

.home-note {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding-left: 0;
}

.home-note .home-pill {
  margin-bottom: 0;
}

.section-head .home-pill,
.section-head .pill,
.section-head .badge {
  margin: 0 auto;
}

.home-steps {
  margin-top: 28px;
}

.home-step-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  box-shadow: none;
  padding: 20px 18px;
  transform: translateZ(0);
  transition:
    transform 320ms cubic-bezier(0.16,1,0.3,1),
    box-shadow 520ms cubic-bezier(0.16,1,0.3,1),
    border-color 320ms cubic-bezier(0.16,1,0.3,1),
    background 520ms cubic-bezier(0.16,1,0.3,1);
  will-change: transform, box-shadow;
  text-align: left;
}

.home-step-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 520ms cubic-bezier(0.16,1,0.3,1);
  background: radial-gradient(600px circle at 30% 20%, rgba(90,150,255,.14), transparent 55%);
}

.home-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(3, 10, 26, 0.24);
  border-color: rgba(140,180,255,.20);
  background: rgba(255,255,255,.03);
}

.home-step-card:hover::after {
  opacity: 1;
}

.home-step-card:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 140ms;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: rgba(120,170,255,0.14);
  border: 1px solid rgba(120,170,255,0.26);
  font-size: 13px;
  font-weight: 700;
}

.step-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(120,170,255,.1);
  color: rgba(222,235,255,.92);
  line-height: 0;
}

.trust-icon svg,
.feature-icon svg,
.step-icon svg,
.card-icon svg,
.legal-icn svg {
  display: block;
  flex: 0 0 auto;
}

.home-step-card h3 {
  margin: 12px 0 8px;
}

.home-step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.home-final-cta {
  display: block;
  position: static;
  overflow: visible;
  margin-top: 40px;
  transform: none !important;
  border-top: 0;
  padding: 0;
  background: transparent !important;
}

.home-final-cta::before {
  content: none !important;
  display: none !important;
}

.home-final-cta::after {
  content: none !important;
  display: none !important;
}

.cta-wrap {
  width: 100%;
}

.home-final-cta .cta-banner {
  margin: 0 auto;
  width: min(1100px, 92%);
}

.final-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(186, 214, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 26%, rgba(6,12,24,0.08) 100%),
    linear-gradient(145deg, rgba(10,16,31,.66), rgba(14,22,40,.58));
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  box-shadow:
    0 14px 28px rgba(2, 8, 24, 0.28),
    0 28px 54px -26px rgba(2, 8, 24, 0.46),
    0 0 0 1px rgba(120, 170, 255, 0.08);
  padding: 20px;
  transform: translateZ(0);
  transition:
    transform 320ms cubic-bezier(0.16,1,0.3,1),
    box-shadow 520ms cubic-bezier(0.16,1,0.3,1),
    border-color 320ms cubic-bezier(0.16,1,0.3,1),
    background 520ms cubic-bezier(0.16,1,0.3,1);
  will-change: transform, box-shadow;
}

.final-cta-card::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(220,236,255,0.42), rgba(255,255,255,0));
  opacity: 0.78;
}

.final-cta-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.52;
  transition: opacity 520ms cubic-bezier(0.16,1,0.3,1);
  background:
    radial-gradient(760px circle at 28% 14%, rgba(90,150,255,.16), transparent 62%),
    radial-gradient(740px circle at 76% 88%, rgba(86, 214, 255, .12), transparent 64%);
}

.final-cta-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px rgba(2, 8, 24, 0.32),
    0 36px 64px -28px rgba(2, 8, 24, 0.52),
    0 0 0 1px rgba(120,170,255,.14);
  border-color: rgba(140,180,255,.22);
}

.final-cta-card:hover::after {
  opacity: 0.72;
}

.final-cta-card:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 140ms;
}

.final-cta-card h2 {
  margin: 0 0 8px;
}

.final-cta-card p {
  margin: 0;
  color: var(--muted);
}

.final-cta-card .btn,
.final-cta-card .btnGhost {
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background 260ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.final-cta-card .btn:hover,
.final-cta-card .btnGhost:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.final-cta-card .btn:active,
.final-cta-card .btnGhost:active {
  transform: translateY(0) scale(0.985);
}

.final-cta-card .btn:focus-visible,
.final-cta-card .btnGhost:focus-visible {
  outline: 2px solid rgba(120,170,255,0.38);
  outline-offset: 2px;
}

/* Premium micro-interactions for generic landing cards */
.home .card:not(.home-step-card):not(.feature-card):not(.home-check-card):not(.final-cta-card) {
  transform: translateZ(0);
  transition:
    transform var(--t-1) var(--ease-out),
    border-color var(--t-1) var(--ease-out),
    box-shadow var(--t-2) var(--ease-soft),
    background var(--t-2) var(--ease-soft);
}

.home .card:not(.home-step-card):not(.feature-card):not(.home-check-card):not(.final-cta-card):hover {
  transform: translateY(-1px);
  border-color: rgba(140,180,255,.22);
  box-shadow: 0 22px 80px rgba(0,0,0,.42);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

@media (max-width: 920px) {
  .home {
    padding-left: 6%;
    padding-right: 6%;
  }

  .home-hero {
    padding: 44px 0 30px;
  }

  .home-section {
    padding: 46px 0;
  }

  .home-what-check--extended {
    padding-bottom: 46px;
  }

  .home-final-cta {
    margin-top: 32px;
    padding: 0;
  }

  .home-page .home-final-cta {
    margin-top: 32px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-trust-copy {
    text-align: center;
  }

  .home-hero .home-trust-grid {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .hero-visual-trust {
    min-width: 100%;
    left: 0;
    transform: none;
  }

  .cta-row {
    justify-content: center;
  }

  .cards-3,
  .grid-2x2,
  .home-checks-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== BUTTON ===== */
:root {
  --btn-font-size: 15px;
}

/* Unified typography for button-like controls across pages. */
:where(
  button,
  .btn,
  .btnPrimary,
  .btnGhost,
  .btnDanger,
  .outline-btn,
  .glow-btn,
  .primary-cta,
  .secondary-link,
  .seg-btn,
  .user-menu-item,
  .empty-cta,
  .open-btn,
  .preview-btn
) {
  font-size: var(--btn-font-size);
  line-height: 1.2;
}

/* Icon-only controls may keep compact sizing. */
:where(.icon-btn, .btnDangerIcon, .preview-close, .icon-btn-close, .close-btn) {
  font-size: inherit;
}

.icon-btn-close {
  --close-size: 34px;
  width: var(--close-size);
  height: var(--close-size);
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(230, 239, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
  flex: 0 0 auto;
}

.icon-btn-close:hover {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.10);
}

.icon-btn-close:focus-visible {
  outline: 2px solid rgba(130, 188, 255, 0.7);
  outline-offset: 1px;
}

.icon-btn-close .close-icon {
  display: block;
  font-size: 18px;
  line-height: 1;
  transform: translateY(0);
  pointer-events: none;
}

/* Never underline links that are styled as buttons/CTAs. */
:where(
  a.btn,
  a.btnPrimary,
  a.btnGhost,
  a.btnDanger,
  a.outline-btn,
  a.glow-btn,
  a.primary-cta,
  a.secondary-link,
  a.empty-cta,
  .btn a,
  .btnPrimary a,
  .btnGhost a,
  .btnDanger a,
  .outline-btn a,
  .glow-btn a,
  .primary-cta a,
  .secondary-link a,
  .hero-cta a,
  .hero-actions a,
  .footer-cta a,
  .security-actions a,
  .about-footer-cta a
) {
  text-decoration: none !important;
}

:where(
  a.btn,
  a.btnPrimary,
  a.btnGhost,
  a.btnDanger,
  a.outline-btn,
  a.glow-btn,
  a.primary-cta,
  a.secondary-link,
  a.empty-cta,
  .btn a,
  .btnPrimary a,
  .btnGhost a,
  .btnDanger a,
  .outline-btn a,
  .glow-btn a,
  .primary-cta a,
  .secondary-link a,
  .hero-cta a,
  .hero-actions a,
  .footer-cta a,
  .security-actions a,
  .about-footer-cta a
):where(:hover, :focus, :focus-visible, :active, :visited) {
  text-decoration: none !important;
}

:where(
  a.btn,
  a.btnPrimary,
  a.btnGhost,
  a.btnDanger,
  a.outline-btn,
  a.glow-btn,
  a.primary-cta,
  a.secondary-link,
  a.empty-cta,
  .btn a,
  .btnPrimary a,
  .btnGhost a,
  .btnDanger a,
  .outline-btn a,
  .glow-btn a,
  .primary-cta a,
  .secondary-link a,
  .hero-cta a,
  .hero-actions a,
  .footer-cta a,
  .security-actions a,
  .about-footer-cta a
) u {
  text-decoration: none !important;
}

.btn {
  padding: 15px 38px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(90deg,var(--primary),var(--accent));
  color: white;
  transition:
    transform 120ms var(--ease-out),
    filter var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out),
    background-position var(--t-fast) var(--ease-out);
}

.btnPrimary {
  background: linear-gradient(90deg,var(--primary),var(--accent));
}

.btn:hover,
a.button:hover,
.primary-cta:hover {
  box-shadow: 0 14px 40px rgba(70,130,255,.25);
  filter: brightness(1.04);
}

.btn:active,
a.button:active {
  transform: scale(0.98);
}

.glow-btn:hover {
  box-shadow: 0 0 25px rgba(37,99,235,0.42);
}

.flash-highlight {
  outline: 1px solid rgba(80,140,255,0.45);
  box-shadow: 0 0 0 6px rgba(80,140,255,0.10);
  border-radius: 16px;
  transition: box-shadow 200ms ease, outline 200ms ease;
}

.upload-legacy-title {
  font-size: 16px;
  font-weight: 600;
}

.upload-legacy-subtitle {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.upload-legacy-meta {
  opacity: .7;
  font-size: 12px;
  margin-top: 8px;
}

.file-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.file-row[hidden] {
  display: none !important;
}

.file-pill {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}

.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  opacity: .75;
  font-size: 12px;
}

.segmented {
  margin-top: 14px;
  display: inline-flex;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}

.seg-btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: .85;
  cursor: pointer;
  font-weight: 600;
}

.seg-btn.is-active {
  background: rgba(120,170,255,.20);
  opacity: 1;
}

.seg-btn:focus-visible {
  outline: 2px solid rgba(120,170,255,.55);
  outline-offset: 2px;
}

.btnGhost {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

#analyzeBtn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ===== ABOUT CARD ===== */
.about-preview {
  margin: 60px auto 0;
  max-width: 800px;
  padding: 35px;
  border-radius: 20px;
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  transition: 0.4s;
}

.home-page .about-preview {
  margin-top: 42px;
  max-width: 620px;
  padding: 18px 22px;
  text-align: center;
}

.about-preview:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.about-preview h3 {
  margin-bottom: 8px;
}

.about-preview p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 520px;
}

/* ===== FEATURES ===== */
.section {
  padding: 90px 10%;
  text-align: center;
}

.dashboard-hero {
  padding-top: 56px;
  padding-bottom: 26px;
}

.dashboard-hero p {
  margin-bottom: 0;
}

.dashboard-shell {
  padding: 0 10% 44px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: start;
}

.dash-left {
  grid-column: 1;
}

.dash-right {
  grid-column: 2;
}

.risk-full {
  grid-column: 1 / -1;
}

.left-stack {
  display: grid;
  gap: 16px;
}

.dashboard-side {
  display: grid;
  gap: 22px;
}

.plan-status-card {
  border-color: rgba(120,170,255,0.26);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(120,170,255,0.12), transparent 58%),
    rgba(255,255,255,0.03);
}

.plan-status-card.is-limit-reached {
  border-color: rgba(255, 198, 90, 0.36);
}

.plan-status-name {
  font-weight: 700;
  font-size: 15px;
}

.plan-status-usage {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(228, 236, 249, 0.88);
}

.plan-status-track {
  margin-top: 12px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.plan-status-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(120,170,255,0.86), rgba(84,146,255,0.94));
  transition: width 260ms var(--ease-out);
}

.plan-status-card.is-limit-reached .plan-status-fill {
  background: linear-gradient(90deg, rgba(255,198,90,0.92), rgba(255,163,70,0.92));
}

.plan-status-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.workspace-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 22px;
  text-align: left;
}

.workspace-card h2 {
  margin-bottom: 8px;
}

.workspace-card h3 {
  margin-bottom: 0;
}

.workspace-card-tight {
  padding: 18px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}

.card-link:hover {
  text-decoration: underline;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(120,170,255,.12);
  color: #dbeafe;
  flex-shrink: 0;
}

.tips-list {
  margin: 10px 0 0;
  padding-left: 18px;
  opacity: .9;
  font-size: 13px;
  line-height: 1.45;
}

.tips-list li + li {
  margin-top: 7px;
}

.privacy-card .muted {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.link-row {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.link-row a {
  color: rgba(120,170,255,.9);
  text-decoration: none;
  font-size: 13px;
}

.link-row a:hover {
  text-decoration: underline;
}

#analyzeBtn {
  margin-top: 18px;
}

#analysisStatus {
  margin-top: 12px;
  color: var(--muted);
}

.empty-state {
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
}

.empty-state-icon {
  margin: 0 auto 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--muted);
}

.empty-state-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-state-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.recent-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 6px;
}

.recent-list::-webkit-scrollbar {
  width: 8px;
}

.recent-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.10);
  border-radius: 10px;
}

.recent-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,.03);
  border-radius: 10px;
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.recent-main {
  min-width: 0;
}

.recent-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-meta {
  margin-top: 7px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.recent-date {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.recent-open {
  text-decoration: none;
  padding: 8px 10px;
  font-size: 13px;
  flex-shrink: 0;
}

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.status-badge.failed {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.3);
  color: #fecaca;
}

.status-badge.processing {
  background: rgba(120, 170, 255, 0.14);
  border-color: rgba(120, 170, 255, 0.3);
  color: #dbeafe;
}

.status-badge.completed {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.26);
  color: #bbf7d0;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: rgba(120,170,255,.85);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge-type.rental {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.26);
  color: #c9f0ff;
}

.badge-type.credit {
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.28);
  color: #e8ddff;
}

.badge-risk.high {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.3);
  color: #fecaca;
}

.badge-risk.medium {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fde68a;
}

.badge-risk.low {
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.28);
  color: #bbf7d0;
}

.risk-stats {
  display: grid;
  gap: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}

.stat-item span {
  color: var(--muted);
}

.stat-item strong {
  color: rgba(255,255,255,.9);
}

.risk-bars {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.risk-bar-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 10px;
}

.risk-bar-label {
  position: relative;
  padding-left: 16px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
}

.risk-bar-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(120,170,255,.45);
  opacity: .9;
}

.risk-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}

.risk-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(120,170,255,.35);
}

.risk-bar-count {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  min-width: 22px;
  text-align: right;
}

.risk-bar-row.risk-high .risk-bar-fill {
  background: var(--risk-high);
}

.risk-bar-row.risk-medium .risk-bar-fill {
  background: var(--risk-medium);
}

.risk-bar-row.risk-low .risk-bar-fill {
  background: var(--risk-low);
}

.risk-bar-row.risk-high .risk-bar-label::before {
  background: rgba(255, 99, 99, 0.55);
}

.risk-bar-row.risk-medium .risk-bar-label::before {
  background: rgba(255, 198, 90, 0.55);
}

.risk-bar-row.risk-low .risk-bar-label::before {
  background: rgba(120, 220, 160, 0.50);
}

.risk-last {
  margin-top: 10px;
  font-size: 12px;
  opacity: .75;
  color: var(--muted);
}

.risk-insight {
  margin-top: 8px;
  font-size: 12px;
  opacity: .85;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  display: none;
}

.latest-report-item {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 12px;
}

.latest-report-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.latest-report-open {
  margin-top: 12px;
  display: inline-flex;
  text-decoration: none;
  padding: 10px 14px;
  font-size: 13px;
}

.latest-card {
  outline: 1px solid rgba(120,170,255,0);
  box-shadow: 0 0 0 0 rgba(120,170,255,0);
}

@keyframes latestHighlight {
  0% {
    outline-color: rgba(120,170,255,0.00);
    box-shadow: 0 0 0 0 rgba(120,170,255,0.00);
    transform: translateY(0);
  }
  18% {
    outline-color: rgba(120,170,255,0.40);
    box-shadow: 0 0 0 10px rgba(120,170,255,0.10);
    transform: translateY(-1px);
  }
  35% {
    outline-color: rgba(120,170,255,0.22);
    box-shadow: 0 0 0 14px rgba(120,170,255,0.07);
    transform: translateY(0);
  }
  75% {
    outline-color: rgba(120,170,255,0.18);
    box-shadow: 0 0 0 10px rgba(120,170,255,0.05);
    transform: translateY(0);
  }
  100% {
    outline-color: rgba(120,170,255,0.00);
    box-shadow: 0 0 0 0 rgba(120,170,255,0.00);
    transform: translateY(0);
  }
}

.latest-card.is-highlight {
  animation: latestHighlight 2.6s ease-out;
}

.progress {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.progress-title {
  font-weight: 600;
  font-size: 14px;
}

.steps {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: .85;
}

.step .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.20);
}

.step.is-active {
  opacity: 1;
}

.step.is-active .dot {
  background: rgba(120,170,255,.9);
  box-shadow: 0 0 0 6px rgba(120,170,255,.12);
}

.step.is-done .dot {
  background: rgba(120,170,255,.55);
}

.progress-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.history-card h2 {
  margin-bottom: 0;
}

.history-toolbar {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}

.history-toolbar-grid {
  display: grid;
  grid-template-columns: 2fr repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.history-control {
  display: grid;
  gap: 6px;
}

.history-control label {
  font-size: 12px;
  color: var(--muted);
}

.history-control input,
.history-control select {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 14px;
}

.history-control input:focus-visible,
.history-control select:focus-visible {
  outline: 2px solid rgba(120,170,255,0.5);
  outline-offset: 1px;
}

.history-control-toggle {
  align-content: end;
}

.history-control-toggle .history-settings-toggle {
  margin-top: 6px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  align-items: center;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 10px;
}

.history-control-toggle .history-settings-toggle .settings-toggle-text {
  display: inline-flex;
  align-items: center;
}

.history-control-toggle .history-settings-toggle:focus-visible {
  outline: 2px solid rgba(120,170,255,0.5);
  outline-offset: 1px;
}

.history-toolbar-foot {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btnIcon {
  display: inline-grid;
  place-items: center;
}

.history-summary {
  font-size: 12px;
  color: var(--muted);
}

.history-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pin-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  border-radius: 10px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  opacity: .78;
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.pin-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.pin-btn.is-pinned {
  opacity: 1;
  border-color: rgba(120,170,255,.4);
  background: rgba(120,170,255,.10);
  box-shadow: 0 0 0 6px rgba(120,170,255,.08);
}

.history-empty-row {
  text-align: center !important;
  color: var(--muted);
  padding: 22px 10px !important;
}

.history-empty .empty-cta {
  margin-top: 14px;
  display: inline-flex;
  text-decoration: none;
}

.btnDanger {
  border: 1px solid rgba(248,113,113,0.3);
  background: rgba(248,113,113,0.12);
  color: #fecaca;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
}

.btnDanger:hover {
  background: rgba(248,113,113,0.18);
}

.btnDangerIcon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(248,113,113,0.25);
  background: rgba(248,113,113,0.1);
  color: #fda4af;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btnDangerIcon:hover {
  background: rgba(248,113,113,0.18);
}

.btnDangerIcon:focus-visible,
.btnDanger:focus-visible {
  outline: 2px solid rgba(248,113,113,0.55);
  outline-offset: 1px;
}

.delete-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(248,113,113,0.25);
  background: rgba(248,113,113,0.1);
  color: #fda4af;
  border-radius: 10px;
  cursor: pointer;
  transform-origin: center;
  will-change: transform;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-btn.delete-btn {
  display: grid;
  place-items: center;
}

.icon-trash {
  display: block;
  transition: transform 160ms ease, opacity 160ms ease, filter 160ms ease;
  opacity: 0.88;
}

.delete-btn:hover,
.delete-btn:focus-visible {
  border-color: rgba(255, 120, 120, 0.35);
  background: rgba(255, 120, 120, 0.08);
}

.delete-btn:hover .icon-trash,
.delete-btn:focus-visible .icon-trash {
  transform: translateY(-1px);
  opacity: 1;
  filter: brightness(1.15);
}

.delete-btn:active {
  transform: scale(0.98);
}

.delete-btn:active .icon-trash {
  transform: translateY(0);
  filter: brightness(1.05);
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 22, 0.74);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2200;
}

.modal {
  min-width: 320px;
  width: min(420px, calc(100vw - 28px));
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15,20,35,.92);
  padding: 16px;
}

.rename-modal {
  width: min(460px, calc(100vw - 28px));
}

.rename-subtext {
  margin-bottom: 12px;
}

.rename-field {
  display: grid;
  gap: 6px;
}

.rename-field input {
  width: 100%;
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
}

.rename-field input:focus-visible {
  outline: 2px solid rgba(120,170,255,0.45);
  outline-offset: 1px;
}

.rename-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.modal h3 {
  margin-bottom: 8px;
}

.confirm-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.plan-modal {
  width: min(560px, calc(100vw - 28px));
}

.plan-options {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.plan-option {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 12px;
  cursor: pointer;
  transition: border-color 180ms var(--ease-out), transform 160ms var(--ease-out), background 180ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.plan-option:hover {
  transform: translateY(-1px);
  border-color: rgba(120,170,255,0.36);
  background: rgba(120,170,255,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.plan-option.is-active {
  border-color: rgba(120,170,255,0.52);
  background: rgba(120,170,255,0.12);
}

.plan-option[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
  box-shadow: none;
}

.plan-option[disabled]:hover {
  transform: none;
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  box-shadow: none;
}

.plan-option-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.plan-option-top strong {
  font-size: 15px;
}

.plan-option-top span {
  font-size: 13px;
  color: rgba(210,225,247,0.88);
}

.plan-option-top .plan-soon {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(222,234,252,0.92);
}

.plan-option-meta {
  margin-top: 6px;
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.duplicate-modal {
  width: min(520px, calc(100vw - 28px));
}

.duplicate-actions {
  flex-wrap: wrap;
}

.history-table-wrap {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.history-table th,
.history-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}

.history-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.history-row {
  transition: background 160ms ease;
}

.history-card .history-row {
  cursor: pointer;
}

.history-card .history-row:hover {
  background: rgba(120,170,255,0.05);
}

.history-file-cell {
  max-width: 280px;
}

.history-file-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-file-original {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-btn {
  padding: 7px 11px;
}

.history-load-more {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.history-load-more[hidden] {
  display: none !important;
}

.history-no-results .empty-cta {
  margin-top: 14px;
}

.danger-zone {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(248,113,113,0.25);
  background: rgba(248,113,113,0.06);
}

.danger-zone h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.danger-zone p {
  margin-bottom: 12px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}

.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 14px;
}

#historyCard {
  margin-top: 12px;
}

.settings-nav {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 8px;
}

.settings-nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
}

.settings-nav a:hover {
  border-color: rgba(120,170,255,0.35);
  color: #fff;
}

.settings-saved {
  margin-top: 6px;
  min-height: 16px;
  font-size: 12px;
  color: rgba(120,170,255,0.9);
  opacity: 0;
  transition: opacity 160ms ease;
}

.settings-saved.is-visible {
  opacity: 1;
}

.settings-stack {
  display: grid;
  gap: 16px;
}

.settings-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.settings-title-row h2 {
  margin: 0;
}

.settings-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(120,170,255,0.12);
}

.settings-label {
  margin-top: 2px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.settings-value {
  font-size: 15px;
  margin-bottom: 10px;
}

.settings-muted {
  color: var(--muted);
  font-size: 13px;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-plan-card {
  margin: 10px 0 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 12px;
}

.settings-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-plan-name {
  margin-bottom: 4px;
}

.settings-preferences-stack {
  display: grid;
  gap: 14px;
}

.settings-retention {
  display: grid;
  gap: 8px;
}

.settings-retention .btnGhost {
  justify-self: start;
}

.settings-retention-select {
  width: min(260px, 100%);
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 8px 12px;
  font-size: 14px;
}

.settings-retention-select:focus-visible {
  outline: 2px solid rgba(120,170,255,0.45);
  outline-offset: 2px;
}

.settings-toggle {
  margin-top: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 0;
  min-height: 22px;
  color: rgba(255,255,255,0.86);
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
}

.settings-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.settings-check {
  grid-column: 1;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)),
    rgba(12,18,33,0.7);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 0 rgba(120,170,255,0);
  display: grid;
  place-items: center;
  color: rgba(220,235,255,0.92);
  transition:
    border-color 220ms var(--ease-out),
    background 220ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.settings-check svg {
  display: block;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.settings-toggle-text {
  grid-column: 2;
  color: rgba(236,243,255,0.86);
  font-size: 14px;
  line-height: 1.35;
}

.settings-toggle:hover .settings-check {
  border-color: rgba(184, 206, 236, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 0 5px rgba(120,170,255,0.06);
}

.settings-toggle input:checked + .settings-check {
  border-color: rgba(130,175,235,0.52);
  background:
    linear-gradient(180deg, rgba(122,174,255,0.24), rgba(120,170,255,0.14)),
    rgba(12,19,36,0.78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 6px rgba(120,170,255,0.11);
}

.settings-toggle input:checked + .settings-check svg {
  opacity: 1;
  transform: scale(1);
}

.settings-toggle input:focus-visible + .settings-check {
  outline: 2px solid rgba(138, 180, 236, 0.5);
  outline-offset: 2px;
}

.settings-toggle input:disabled + .settings-check {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.45);
  box-shadow: none;
}

.settings-toggle input:disabled ~ .settings-toggle-text {
  color: rgba(255,255,255,0.5);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.legal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  text-decoration: none;
  color: rgba(255,255,255,.92);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 220ms ease;
}

.legal-card:hover {
  transform: translateY(-1px);
  border-color: rgba(120,170,255,.28);
  background: rgba(120,170,255,.06);
  box-shadow: 0 0 0 8px rgba(120,170,255,.08);
}

.legal-icn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  display: grid;
  place-items: center;
  flex: none;
  opacity: .95;
}

.legal-text {
  min-width: 0;
  flex: 1;
}

.legal-title {
  font-weight: 700;
  font-size: 14px;
}

.legal-desc {
  font-size: 12.5px;
  opacity: .72;
  margin-top: 2px;
  line-height: 1.2;
}

.legal-arrow {
  opacity: .6;
  font-size: 16px;
  flex: none;
}

.settings-segmented {
  margin-top: 4px;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  align-self: start;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.settings-segmented .seg-btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .settings-segmented .seg-btn {
    min-height: 36px;
    padding: 8px 12px;
  }
}

.legal-reminder {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.legal-reminder p {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
}

.preview-overlay {
  z-index: 2300;
}

.preview-modal {
  width: min(620px, calc(100vw - 28px));
  min-width: 320px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,16,30,0.88);
  backdrop-filter: blur(8px);
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.preview-head h3 {
  margin-bottom: 0;
}

.preview-close {
  --close-size: 32px;
  color: var(--text);
}

.preview-meta {
  margin-top: 14px;
}

.preview-file {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-date {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.preview-summary {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}

.preview-summary h4 {
  font-size: 13px;
  margin-bottom: 8px;
}

.preview-summary ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: rgba(255,255,255,0.84);
  font-size: 13px;
}

.report-actions {
  margin: 2px 0 4px;
}

.report-export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.report-open-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.report-file-meta {
  font-size: 13px;
  color: var(--muted);
}

.report-open-status {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(255, 188, 188, 0.92);
}

#reportContent {
  display: grid;
  gap: 14px;
}

.report-hero-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  padding: 18px;
}

.report-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(199, 216, 241, 0.76);
  margin: 0 0 6px;
}

.report-doc-title {
  margin: 0;
  font-size: 1.24rem;
}

.report-hero-summary {
  margin: 10px 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.report-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-score-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.report-score-gauge {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  border: 2px solid rgba(255,255,255,0.2);
  background: radial-gradient(circle at 50% 24%, rgba(255,255,255,0.14), rgba(255,255,255,0.02) 68%);
  box-shadow: inset 0 0 26px rgba(0,0,0,0.2), 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.report-score-high {
  border-color: rgba(255, 140, 140, 0.58);
}

.report-score-medium {
  border-color: rgba(255, 210, 140, 0.58);
}

.report-score-low {
  border-color: rgba(160, 235, 195, 0.58);
}

.report-score-value {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.report-score-label {
  margin-top: 6px;
  color: rgba(217, 228, 243, 0.8);
  font-size: 12px;
}

.report-section {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.022);
  padding: 14px 14px 12px;
}

.report-section-title {
  margin: 2px 0 10px;
  font-size: 1rem;
}

.report-takeaways {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.report-takeaways li {
  color: rgba(227, 236, 249, 0.88);
  line-height: 1.58;
}

.report-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-meta-item {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.02);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.report-meta-item span {
  font-size: 12px;
  color: var(--muted);
}

.report-meta-item strong {
  font-size: 13px;
  color: rgba(236, 243, 255, 0.92);
}

.report-items {
  display: grid;
  gap: 10px;
}

.report-item-card {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.02);
  padding: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 360ms var(--ease-soft),
    transform 360ms var(--ease-soft),
    border-color 220ms ease;
  transition-delay: var(--item-delay, 0ms);
}

.report-ready .report-item-card {
  opacity: 1;
  transform: translateY(0);
}

.report-item-high {
  border-color: rgba(255, 128, 128, 0.26);
}

.report-item-medium {
  border-color: rgba(255, 204, 128, 0.24);
}

.report-item-low {
  border-color: rgba(140, 224, 180, 0.24);
}

.report-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.report-item-head h4 {
  margin: 0;
  font-size: 0.98rem;
}

.report-item-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.report-item-rec {
  margin-top: 8px !important;
}

.report-item-rec strong {
  color: rgba(236, 243, 255, 0.9);
}

.report-animate {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 360ms var(--ease-soft),
    transform 360ms var(--ease-soft);
  transition-delay: var(--enter-delay, 0ms);
}

.report-ready .report-animate {
  opacity: 1;
  transform: translateY(0);
}

.report-ready .report-score-gauge {
  animation: reportScorePop 500ms var(--ease-spring) both;
}

.report-export-row .btnGhost,
.report-open-row .btnGhost {
  transition:
    transform 160ms var(--ease-out),
    border-color 200ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.report-export-row .btnGhost:hover,
.report-open-row .btnGhost:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(2, 8, 24, 0.24);
}

@keyframes reportScorePop {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.report-remove-btn {
  border-color: rgba(255, 128, 128, 0.35);
  color: rgba(255, 210, 210, 0.95);
}

.report-remove-btn:hover {
  border-color: rgba(255, 128, 128, 0.5);
  background: rgba(255, 120, 120, 0.1);
}

.report-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.report-meta strong {
  color: var(--text);
}

.report-json-title {
  margin: 18px 0 10px;
}

.report-json {
  background: rgba(2, 8, 23, 0.75);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
}

@media print {
  html,
  body {
    background: #fff !important;
    color: #111 !important;
  }

  .no-print,
  .site-header,
  .hero {
    display: none !important;
  }

  .dashboard-shell {
    padding: 0 !important;
  }

  .workspace-card,
  .report-card {
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: #111 !important;
  }

  .report-meta,
  .report-meta p,
  .report-findings,
  .report-findings li,
  .report-json-title,
  #reportContent p,
  #reportContent h2,
  #reportContent h3 {
    color: #111 !important;
  }

  .report-json {
    background: #fff !important;
    border: 1px solid #d4d4d4 !important;
    color: #111 !important;
    white-space: pre-wrap;
    word-break: break-word;
    page-break-inside: avoid;
  }

  a {
    color: #111 !important;
    text-decoration: none !important;
  }
}

@media (max-width: 760px) {
  .report-hero-card {
    grid-template-columns: 1fr;
  }

  .report-score-wrap {
    justify-content: flex-start;
  }

  .report-score-gauge {
    width: 112px;
    height: 112px;
  }

  .report-score-value {
    font-size: 29px;
  }

  .report-meta-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-price {
    font-size: 30px;
  }
}

.home-page .section {
  padding: 64px 10%;
}

/* Keep the last CTA section compact so the darker lower area does not overlap it visually. */
.home-page .home-what-check--extended {
  padding: 56px 10% 48px;
}

.home-page .home-final-cta {
  margin-top: 40px;
}

.security-page .hero {
  max-width: 940px;
  margin: 0 auto;
  padding-top: 18px;
  padding-bottom: 24px;
}

.security-page .hero h1 {
  margin-top: 0;
  margin-bottom: 14px;
}

.security-page .hero p {
  max-width: 760px;
  margin: 0 auto;
}

.contact-page .hero {
  padding-top: 60px;
  padding-bottom: 36px;
}

.security-highlights {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 10%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.security-page .security-highlights {
  margin: 0 auto 10px;
}

.highlight-item {
  position: relative;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px 16px;
  text-align: center;
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 320ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1),
    background 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.highlight-item:hover {
  transform: translateY(-2px);
  border-color: rgba(145, 180, 232, 0.24);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.highlight-item strong {
  display: block;
  font-size: 17px;
  color: white;
}

.highlight-item span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* ===== CONTACT ===== */
.contact-section {
  padding-top: 0;
}

.contact-layout {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 26px;
  text-align: left;
}

.contact-copy {
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.55;
}

.contact-methods {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.contact-method {
  background: rgba(5, 10, 22, 0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.contact-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 5px;
}

.contact-method a {
  color: white;
  text-decoration: none;
}

.contact-method a:hover {
  color: var(--accent);
}

.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  font-size: 14px;
  resize: vertical;
  transition: 0.3s;
}

.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(37,99,235,0.3);
}

.cards {
  display: flex;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.cards > .card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 20px;
  width: 300px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.3s;
}

.cards > .card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.cards > .card p {
  color: var(--muted);
}

/* ===== SECURITY ===== */
.security-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 10% 0;
}

.security-intro {
  max-width: 820px;
  margin: 6px auto 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.72;
}

.security-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Shared internal-page rhythm below fixed header */
.features-page .hero,
.security-page .hero,
.about-page .about-hero {
  padding-top: 18px !important;
  margin-top: 0 !important;
}

.features-page .hero + .section,
.security-page .hero + .security-highlights {
  margin-top: 0;
}

.features-page .hero + .section {
  padding-top: 24px;
}

.security-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px 24px 22px;
  text-align: left;
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 320ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 560ms cubic-bezier(0.16, 1, 0.3, 1),
    background 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.security-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1);
  background: radial-gradient(620px circle at 28% 20%, rgba(90, 150, 255, 0.12), transparent 58%);
}

.security-card:hover {
  transform: translateY(-2px);
  border-color: rgba(145, 180, 232, 0.24);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.security-card:hover::after {
  opacity: 1;
}

.security-card p {
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.68;
}

.security-faq {
  margin-top: 24px;
  text-align: left;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px 20px 8px;
}

.security-faq h3 {
  margin-bottom: 14px;
}

.faq-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: var(--text);
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 15px 4px;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
  transition: color 220ms ease;
}

.faq-item:hover {
  color: #ffffff;
}

.faq-item:first-of-type {
  border-top: none;
}

.faq-icon {
  color: var(--accent);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.faq-answer {
  display: none;
  color: var(--muted);
  padding: 0 4px 15px;
  line-height: 1.66;
}

.faq-item.active + .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.security-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 6px;
}

.outline-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  color: white;
}

.outline-btn:hover {
  border-color: var(--primary);
}

/* ===== UPLOAD ===== */
.upload-subtitle {
  color: var(--muted);
  margin-top: 10px;
}

.upload-box {
  margin-top: 30px;
  padding: 50px;
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  list-style: none;
  cursor: pointer;
  transition: 0.3s;
  color: var(--muted);
}

/* Защита от случайных декоративных кружков из глобальных стилей */
.upload-box::before,
.upload-box::after {
  content: none !important;
  display: none !important;
}

.upload-box:hover {
  border-color: var(--primary);
  background: rgba(37,99,235,0.05);
}

.upload-box.is-dragover {
  border-color: rgba(120,170,255,.75);
  background: rgba(37,99,235,0.08);
}

.upload-box.is-file-selected {
  border-style: solid;
  border-color: rgba(120,170,255,.5);
}

.upload-box:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(120,170,255,.45);
}

/* ===== LEGAL LINKS ===== */
.legal-links {
  width: min(1100px, 92%);
  margin: 24px auto 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* Keep legal links + footer block anchored to bottom consistently on internal pages */
body > .legal-links {
  margin-top: auto;
  padding-top: 24px;
}

.home-page .legal-links {
  margin-top: 36px;
  padding-top: 0;
}

.legal-links a {
  font-size: 13px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color 220ms ease, transform 140ms ease;
}

.legal-links a:hover {
  color: rgba(120,170,255,.95);
}

.legal-links a:active {
  transform: translateY(1px) scale(0.97);
}

html.page-transition-enabled body.about-page .about-hero,
html.page-transition-enabled body.about-page .section,
html.page-transition-enabled body.about-page .legal-links,
html.page-transition-enabled body.features-page .hero,
html.page-transition-enabled body.features-page .section,
html.page-transition-enabled body.features-page .legal-links {
  opacity: 0;
  transform: translateY(14px);
}

html.page-transition-enabled body.page-transition-ready.about-page .about-hero,
html.page-transition-enabled body.page-transition-ready.about-page .section,
html.page-transition-enabled body.page-transition-ready.about-page .legal-links,
html.page-transition-enabled body.page-transition-ready.features-page .hero,
html.page-transition-enabled body.page-transition-ready.features-page .section,
html.page-transition-enabled body.page-transition-ready.features-page .legal-links {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 420ms var(--ease-soft),
    transform 420ms var(--ease-soft);
}

html.page-transition-enabled body.page-transition-ready.about-page .section:nth-of-type(2),
html.page-transition-enabled body.page-transition-ready.features-page .section:nth-of-type(2) {
  transition-delay: 55ms;
}

html.page-transition-enabled body.page-transition-ready.about-page .section:nth-of-type(3),
html.page-transition-enabled body.page-transition-ready.features-page .section:nth-of-type(3) {
  transition-delay: 110ms;
}

html.page-transition-enabled body.page-transition-ready.about-page .section:nth-of-type(4),
html.page-transition-enabled body.page-transition-ready.features-page .section:nth-of-type(4) {
  transition-delay: 165ms;
}

.about-page p,
.about-page li,
.features-page p,
.features-page li,
.security-page p,
.security-page li {
  line-height: 1.72;
}

.about-page .about-hero p,
.features-page .hero p,
.security-page .hero p {
  letter-spacing: 0.01em;
}

.pricing-page .pricing-hero {
  max-width: 940px;
  margin: 0 auto;
  padding-top: 18px;
  padding-bottom: 24px;
}

.pricing-page .pricing-hero p {
  max-width: 760px;
  margin: 0 auto;
}

.pricing-section {
  padding-top: 8px;
}

.pricing-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-card {
  position: relative;
  text-align: left;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--glass-surface);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px) saturate(118%);
  -webkit-backdrop-filter: blur(12px) saturate(118%);
  padding: 20px;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 320ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(620px circle at var(--mx, 22%) var(--my, 18%), rgba(130, 176, 255, 0.18), transparent 52%),
    linear-gradient(120deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01) 38%, rgba(111,171,255,0.08) 100%);
  transition: opacity 300ms var(--ease-soft);
}

.pricing-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(155, 201, 255, 0.3);
  box-shadow:
    0 22px 46px rgba(2, 8, 24, 0.36),
    0 34px 74px -34px rgba(70, 136, 255, 0.34);
}

.pricing-card:hover::after {
  opacity: 1;
}

.pricing-card:active {
  transform: translateY(-2px) scale(0.995);
}

.pricing-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(208, 226, 250, 0.92);
  margin-bottom: 12px;
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    color 220ms var(--ease-out),
    background 220ms var(--ease-out);
}

.pricing-free .pricing-icon {
  border-color: rgba(132, 229, 179, 0.36);
  color: rgba(176, 255, 218, 0.95);
  background: rgba(68, 201, 141, 0.12);
}

.pricing-popular .pricing-icon {
  border-color: rgba(128, 184, 255, 0.4);
  color: rgba(208, 230, 255, 0.96);
  background: rgba(76, 141, 255, 0.14);
}

.pricing-business .pricing-icon {
  border-color: rgba(255, 208, 128, 0.4);
  color: rgba(255, 233, 192, 0.96);
  background: rgba(231, 166, 52, 0.14);
}

.pricing-card:hover .pricing-icon {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(2, 8, 24, 0.24);
}

.pricing-free:hover .pricing-icon {
  border-color: rgba(155, 242, 197, 0.5);
  box-shadow: 0 10px 20px rgba(12, 66, 40, 0.28);
}

.pricing-popular:hover .pricing-icon {
  border-color: rgba(152, 204, 255, 0.54);
  box-shadow: 0 10px 22px rgba(20, 55, 115, 0.34);
}

.pricing-business:hover .pricing-icon {
  border-color: rgba(255, 220, 154, 0.52);
  box-shadow: 0 10px 22px rgba(98, 66, 18, 0.3);
}

.pricing-tier {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 216, 242, 0.8);
}

.pricing-card h3 {
  margin-top: 6px;
}

.pricing-price {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.pricing-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
}

.pricing-sub {
  margin-top: 8px;
  color: rgba(228, 236, 249, 0.86);
}

.pricing-list {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.pricing-list li {
  color: var(--muted);
  line-height: 1.6;
}

.pricing-cta {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

.pricing-cta[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
  filter: none;
  box-shadow: none;
  transform: none;
}

.pricing-cta[disabled]:hover {
  box-shadow: none;
  filter: none;
  transform: none;
}

.pricing-cta.plan-btn--soon,
.pricing-cta.plan-btn--soon:disabled,
.pricing-cta.plan-btn--soon[aria-disabled="true"] {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: rgba(245, 249, 255, 0.78);
  text-decoration: none;
  border: none;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.64;
  transform: none;
  filter: saturate(0.78) brightness(0.9);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16);
  transition: none;
}

.pricing-cta.plan-btn--soon:hover,
.pricing-cta.plan-btn--soon:disabled:hover,
.pricing-cta.plan-btn--soon[aria-disabled="true"]:hover,
.pricing-cta.plan-btn--soon:active,
.pricing-cta.plan-btn--soon:disabled:active,
.pricing-cta.plan-btn--soon[aria-disabled="true"]:active {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: rgba(245, 249, 255, 0.78);
  transform: none;
  filter: saturate(0.78) brightness(0.9);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16);
  transition: none;
}

.pricing-note {
  margin-top: 10px;
  color: rgba(186, 206, 235, 0.74);
  font-size: 12px;
}

.pricing-popular {
  border-color: rgba(136, 188, 255, 0.4);
  box-shadow:
    0 16px 36px rgba(2, 8, 24, 0.36),
    0 26px 56px -28px rgba(54, 126, 255, 0.34);
}

.pricing-popular::before {
  content: "Most popular";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(136,188,255,0.45);
  background: rgba(120,170,255,0.16);
  color: rgba(221,235,255,0.96);
}

.pricing-faq-section {
  padding-top: 8px;
}

.pricing-faq-head {
  max-width: 1120px;
  margin: 0 auto;
}

.pricing-faq-head p {
  margin-top: 8px;
  color: var(--muted);
}

.pricing-faq {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.pricing-faq details {
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.024);
  box-shadow: 0 10px 26px rgba(2, 8, 24, 0.2);
  overflow: hidden;
  transition:
    border-color 240ms var(--ease-out),
    background 240ms var(--ease-out),
    box-shadow 280ms var(--ease-out);
}

.pricing-faq details:first-of-type {
  margin-top: 0;
}

.pricing-faq details:hover {
  border-color: rgba(142, 194, 255, 0.28);
}

.pricing-faq details[open] {
  border-color: rgba(152, 204, 255, 0.38);
  background: rgba(120,170,255,0.06);
  box-shadow:
    0 14px 30px rgba(2, 8, 24, 0.28),
    0 0 0 1px rgba(120,170,255,0.18) inset;
}

.pricing-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  font-weight: 600;
  color: rgba(238, 244, 255, 0.92);
  line-height: 1.4;
}

.pricing-faq summary::-webkit-details-marker {
  display: none;
}

.pricing-faq summary::after {
  content: "+";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(223, 236, 255, 0.94);
  font-size: 16px;
  line-height: 1;
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    background 220ms var(--ease-out);
}

.pricing-faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  border-color: rgba(148, 200, 255, 0.45);
  background: rgba(120,170,255,0.16);
}

.pricing-faq p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--muted);
  line-height: 1.64;
  white-space: normal;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 12px;
  padding: 18px 0 22px;
  text-align: center;
  color: rgba(255,255,255,.55);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12.5px;
}

.home-page footer {
  margin-top: 12px;
  padding: 18px 0 22px;
}

/* ===== AUTH PAGE LAYOUT ===== */
.auth-layout {
  width: min(980px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.auth-side {
  border-radius: 28px;
  padding: 30px 28px;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    linear-gradient(145deg, rgba(8, 21, 54, 0.9), rgba(6, 15, 38, 0.8));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 24px 60px rgba(3, 11, 28, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  align-self: center;
}

.auth-brand {
  color: #a8dbff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
}

.auth-side h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
}

.auth-side p {
  color: rgba(228, 239, 255, 0.78);
  font-size: 15px;
  line-height: 1.6;
}

.auth-side-list {
  margin-top: 6px;
  list-style: none;
  display: grid;
  gap: 9px;
}

.auth-side-list li {
  color: rgba(223, 238, 255, 0.92);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-side-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #46b4ff, #3ee5de);
  box-shadow: 0 0 10px rgba(70, 180, 255, 0.65);
}

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-box-page {
  width: min(460px, 100%);
}

.auth-home-link {
  margin-top: 18px;
}

.auth-home-link a {
  color: #9fd8ff;
}

.auth-success-wrap {
  display: grid;
  gap: 14px;
  text-align: center;
}

.auth-success-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  color: #0b2e22;
  background: linear-gradient(145deg, #8bf6c0, #5fe8b1);
  box-shadow:
    0 12px 28px rgba(38, 215, 150, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.75);
}

.auth-page .auth-box {
  background:
    linear-gradient(170deg, rgba(14, 31, 74, 0.92), rgba(8, 20, 49, 0.88)),
    linear-gradient(145deg, #101f4a, #081534);
  border-color: rgba(130, 188, 255, 0.2);
  box-shadow:
    0 22px 55px rgba(0, 8, 28, 0.58),
    0 0 80px rgba(19, 104, 255, 0.2);
}

.auth-page .input-group input {
  background: rgba(245, 250, 255, 0.92);
  color: #0e1d3f;
  border-color: rgba(142, 175, 215, 0.45);
}

.auth-page .input-group input::placeholder {
  color: rgba(44, 61, 99, 0.62);
}

.auth-page .input-group input:focus {
  box-shadow: 0 0 0 3px rgba(63, 146, 255, 0.2);
}

.auth-page .auth-subtitle {
  color: rgba(210, 225, 245, 0.85);
}

.auth-page .switch-text {
  color: rgba(207, 223, 245, 0.85);
}

/* ===== AUTH MODAL ===== */
.auth-modal {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.6), rgba(0,0,0,0.85));
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-box {
  position: relative;
  width: 420px;
  padding: 50px 40px;
  border-radius: 24px;
  background: linear-gradient(145deg, #111827, #0f172a);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 60px rgba(37,99,235,0.15),
    0 20px 60px rgba(0,0,0,0.6);
  text-align: center;
  animation: slideUp 0.4s ease;
}

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

.auth-box h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 30px;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  font-size: 14px;
  transition: 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(37,99,235,0.3);
}

.full-btn {
  width: 100%;
  margin-top: 10px;
}

.auth-ui-form {
  text-align: left;
}

.auth-error {
  display: none;
  color: #fca5a5;
  font-size: 12px;
  margin: -10px 2px 12px;
}

.auth-error.visible {
  display: block;
}

.auth-success-text {
  color: #86efac;
}

.auth-help {
  margin: -8px 2px 12px;
  text-align: right;
  font-size: 12px;
}

.auth-help-link {
  color: rgba(173, 216, 255, 0.95);
  text-decoration: none;
}

.auth-help-link:hover {
  text-decoration: underline;
}

.auth-divider {
  margin: 14px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

.auth-switch {
  text-align: center;
}

.auth-switch-btn {
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.auth-switch-btn:hover {
  text-decoration: underline;
}

.google-btn {
  margin-top: 14px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.google-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.google-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.switch-text {
  margin-top: 25px;
  font-size: 14px;
  color: var(--muted);
}

.switch-text span {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.switch-text span:hover {
  text-decoration: underline;
}

.auth-close {
  --close-size: 36px;
  position: absolute;
  top: 14px;
  right: 14px;
}
@media (max-width: 920px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
  }

  .auth-side {
    padding: 28px 22px;
  }

  .auth-side h1 {
    font-size: clamp(24px, 7vw, 34px);
  }
}

@media (max-width: 640px) {
  .auth-page {
    padding: 16px;
  }

  .auth-side {
    border-radius: 22px;
  }

  .auth-box {
    padding: 34px 20px;
    border-radius: 20px;
    width: 100%;
  }
}
@media (min-width: 1024px) {
  .hero {
    padding: 38px 10% 18px;
  }

  .dashboard-shell {
    padding: 0 10% 36px;
  }

  .settings-layout {
    margin-top: 10px;
  }

  #historyCard {
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .home {
    padding-left: 6%;
    padding-right: 6%;
  }

  .home-hero {
    padding-top: 34px;
    padding-bottom: 24px;
  }

  .home-section {
    padding: 36px 0;
  }

  .home-trust {
    padding: 14px 0 4px;
  }

  .home-what-check--extended {
    padding-bottom: 36px;
  }

  .home-final-cta {
    margin-top: 24px;
    padding: 0;
  }

  .home-page .home-final-cta {
    margin-top: 24px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .cta-row .btn {
    width: 100%;
  }

  .hero {
    padding: 34px 8% 18px;
  }

  .hero h1 {
    margin-bottom: 10px;
  }

  .hero p {
    margin-bottom: 14px;
    font-size: 16px;
  }
}

.home [id] {
  scroll-margin-top: 94px;
}

@media (max-width: 860px) {
  .site-header__inner {
    padding: 10px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .header-right {
    margin-left: auto;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header-actions {
    margin-left: 0;
  }

  .home {
    padding-left: 6%;
    padding-right: 6%;
  }

  .hero-grid,
  .cards-3,
  .grid-2x2,
  .home-checks-grid {
    grid-template-columns: 1fr;
  }

  .home-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-highlights {
    grid-template-columns: 1fr;
    padding: 0 10%;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    padding: 0 6% 34px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .risk-full {
    grid-column: 1;
  }

  .workspace-card {
    padding: 16px;
  }

  .card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-table {
    min-width: 620px;
  }

  .history-toolbar-grid {
    grid-template-columns: 1fr;
  }

  .history-toolbar-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-plan-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-reminder {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* ===== TOAST CENTER ===== */
.toast-center {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 90vw);
  display: grid;
  gap: 10px;
  z-index: 3200;
  pointer-events: none;
}

.toast-card {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(10, 18, 38, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.34);
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.toast-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-card.is-leaving {
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
}

.toast-badge {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.26);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(232, 241, 255, 0.95);
  background: rgba(255,255,255,0.06);
}

.toast-content {
  min-width: 0;
}

.toast-message {
  margin: 0;
  color: rgba(232, 241, 255, 0.95);
  font-size: 13px;
  line-height: 1.35;
}

.toast-close {
  --close-size: 26px;
  border: none;
  border-radius: 8px;
  color: rgba(230, 239, 255, 0.82);
  background: rgba(255,255,255,0.06);
}

.toast-close:hover {
  background: rgba(255,255,255,0.12);
}

.toast-close:focus-visible {
  outline: 2px solid rgba(130, 188, 255, 0.7);
  outline-offset: 1px;
}

.toast-card[data-type="success"] {
  border-color: rgba(95, 232, 177, 0.45);
}

.toast-card[data-type="success"] .toast-badge {
  border-color: rgba(95, 232, 177, 0.6);
  color: rgba(177, 255, 223, 0.96);
  background: rgba(95, 232, 177, 0.15);
}

.toast-card[data-type="error"] {
  border-color: rgba(255, 124, 124, 0.54);
}

.toast-card[data-type="error"] .toast-badge {
  border-color: rgba(255, 124, 124, 0.7);
  color: rgba(255, 214, 214, 0.96);
  background: rgba(255, 124, 124, 0.16);
}

.toast-card[data-type="warning"] {
  border-color: rgba(255, 198, 95, 0.54);
}

.toast-card[data-type="warning"] .toast-badge {
  border-color: rgba(255, 198, 95, 0.72);
  color: rgba(255, 236, 196, 0.98);
  background: rgba(255, 198, 95, 0.14);
}

.toast-card[data-type="info"] {
  border-color: rgba(127, 191, 255, 0.48);
}

.toast-card[data-type="info"] .toast-badge {
  border-color: rgba(127, 191, 255, 0.68);
  color: rgba(211, 234, 255, 0.98);
  background: rgba(127, 191, 255, 0.14);
}

@media (max-width: 640px) {
  .toast-center {
    top: 12px;
    width: 92vw;
    gap: 8px;
  }

  .toast-card {
    padding: 11px 12px;
    border-radius: 12px;
  }
}

/* ===== Unified Glass Cards + Home Rhythm ===== */
:root {
  --glass-surface:
    linear-gradient(180deg, rgba(255,255,255,0.052) 0%, rgba(255,255,255,0.024) 42%, rgba(8,13,25,0.08) 100%),
    linear-gradient(145deg, rgba(11,18,34,0.66), rgba(14,22,39,0.56));
  --glass-border: rgba(255,255,255,0.1);
  --glass-shadow:
    0 16px 36px rgba(2, 8, 24, 0.3),
    0 26px 56px -28px rgba(2, 8, 24, 0.55);
  --glass-shadow-hover:
    0 20px 42px rgba(2, 8, 24, 0.34),
    0 34px 70px -30px rgba(2, 8, 24, 0.6);
  --glass-radius: 18px;
  --glass-pad: 22px;
  --card-title-size: 1.02rem;
  --card-text-size: 0.94rem;
  --card-text-color: rgba(224, 232, 247, 0.74);
  --card-line-height: 1.55;
}

.feature-card,
.home-step-card,
.home-check-card,
.final-cta-card,
.workspace-card,
#historyCard,
.history-toolbar,
.security-card,
.security-faq,
.highlight-item,
.contact-card,
.meta-card,
.faq-block,
.footer-cta,
.cards > .card {
  border-radius: var(--glass-radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-surface);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px) saturate(118%);
  -webkit-backdrop-filter: blur(12px) saturate(118%);
}

.feature-card,
.home-step-card,
.home-check-card,
.final-cta-card,
.workspace-card,
.security-card,
.contact-card,
.meta-card,
.footer-cta,
.cards > .card {
  padding: var(--glass-pad);
}

.feature-card h2,
.feature-card h3,
.home-step-card h2,
.home-step-card h3,
.home-check-card h2,
.home-check-card h3,
.final-cta-card h2,
.final-cta-card h3,
.workspace-card h2,
.workspace-card h3,
.security-card h2,
.security-card h3,
.contact-card h2,
.contact-card h3,
.meta-card h2,
.meta-card h3,
.footer-cta h2,
.footer-cta h3,
.cards > .card h2,
.cards > .card h3 {
  font-size: var(--card-title-size);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p,
.home-step-card p,
.home-check-card p,
.final-cta-card p,
.workspace-card p,
.security-card p,
.contact-card p,
.meta-card p,
.footer-cta p,
.cards > .card p,
.workspace-card li,
.security-card li,
.contact-card li,
.meta-card li {
  color: var(--card-text-color);
  font-size: var(--card-text-size);
  line-height: var(--card-line-height);
}

.feature-card,
.home-step-card,
.home-check-card,
.final-cta-card,
.workspace-card,
.security-card,
.contact-card,
.meta-card,
.footer-cta,
.cards > .card {
  position: relative;
  transform: translateZ(0);
  transition:
    transform 340ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 340ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 560ms cubic-bezier(0.16, 1, 0.3, 1),
    background 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card::after,
.home-step-card::after,
.home-check-card::after,
.final-cta-card::after,
.workspace-card::after,
.security-card::after,
.contact-card::after,
.meta-card::after,
.footer-cta::after,
.cards > .card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 560ms cubic-bezier(0.16, 1, 0.3, 1);
  background: radial-gradient(620px circle at 28% 20%, rgba(90,150,255,.12), transparent 58%);
}

.feature-card:hover,
.home-step-card:hover,
.home-check-card:hover,
.final-cta-card:hover,
.workspace-card:hover,
.security-card:hover,
.contact-card:hover,
.meta-card:hover,
.footer-cta:hover,
.cards > .card:hover {
  transform: translateY(-1px);
  border-color: rgba(145, 180, 232, 0.24);
  box-shadow: var(--glass-shadow-hover);
}

.feature-card:hover::after,
.home-step-card:hover::after,
.home-check-card:hover::after,
.final-cta-card:hover::after,
.workspace-card:hover::after,
.security-card:hover::after,
.contact-card:hover::after,
.meta-card:hover::after,
.footer-cta:hover::after,
.cards > .card:hover::after {
  opacity: 1;
}

.home-hero {
  padding: 60px 0 44px;
}

.home-page {
  --section-padding-y: 50px;
  --section-gap: 100px;
}

.hero-trust-copy {
  margin-top: 14px;
}

.home-hero .home-trust-grid {
  margin-top: 14px;
}

.home-page .home-section {
  padding: var(--section-padding-y) 0;
}

.home-steps,
.grid-2x2,
.home-checks-grid {
  margin-top: 24px;
}

.home-checks.home-what-check--extended {
  padding-bottom: 64px;
}

.home-checks.home-what-check--extended .home-final-cta {
  margin-top: 0;
  background: transparent !important;
}

.home-final-cta {
  padding: 0 !important;
}

/* ===== Home Pricing Block ===== */
.home-pricing-section {
  margin-top: 0;
}

.home-pricing-section .section-head {
  margin-bottom: 14px;
}

.home-pricing-section .section-title {
  font-size: clamp(30px, 3vw, 40px);
}

.home-pricing-section .section-sub {
  max-width: 68ch;
}

.home-pricing-section .home-pricing-grid {
  margin-top: 0;
}

.home-pricing-section .home-pricing-grid > .pricing-card {
  min-width: 0;
}

.section-spacing {
  display: grid;
  gap: var(--section-gap);
}

.section-spacing > * {
  min-width: 0;
}

.home-checks.home-what-check--extended .section-spacing {
  margin-top: var(--section-gap);
}

.home-checks.home-what-check--extended .section-spacing .home-final-cta {
  margin-top: 0 !important;
}

@media (max-width: 920px) {
  .home-page {
    --section-padding-y: 40px;
    --section-gap: 80px;
  }

  .home-hero {
    padding: 44px 0 30px;
  }

  .home-pricing-section .home-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-checks.home-what-check--extended {
    padding-bottom: 44px;
  }

}

@media (max-width: 640px) {
  .home-page {
    --section-padding-y: 34px;
    --section-gap: 68px;
  }

  .home-pricing-section .section-head {
    margin-bottom: 12px;
  }

  .home-pricing-section .home-pricing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

}
