:root {
  --bg: #0f172a;
  --surface: #101a35;
  --surface-alt: #132047;
  --accent: #3d7bf7;
  --accent-strong: #2353c8;
  --accent-soft: rgba(61, 123, 247, 0.12);
  --text: #f8fafc;
  --muted: #a1b1d0;
  --success: #38d6a4;
  --danger: #ff6b6b;
  --shadow: 0 28px 50px rgba(15, 23, 42, 0.45);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: 200ms ease;
  --max-width: min(1120px, 90vw);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(
      circle at top right,
      rgba(61, 123, 247, 0.35),
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.brand-name {
  font-size: 2rem;
}

.policy-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.policy-hero {
  padding: clamp(4rem, 9vh, 6rem) 0;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(61, 123, 247, 0.25),
    rgba(15, 23, 42, 0.9)
  );
}

.policy-hero h1 {
  font-size: clamp(2.25rem, 4vw, 2.9rem);
  margin-bottom: 1rem;
}

.policy-intro {
  max-width: 720px;
  margin: 0 auto;
  color: #cdd7f6;
  font-size: 1.05rem;
  line-height: 1.7;
}

.policy-content {
  padding: clamp(3rem, 7vh, 4.5rem) 0;
  background: rgba(15, 23, 42, 0.85);
}

.policy-section {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(16, 26, 53, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.35);
}

.policy-section h2 {
  margin-top: 0;
  font-size: 1.65rem;
  margin-bottom: 1rem;
}

.policy-section p {
  color: var(--muted);
  line-height: 1.7;
}

.policy-sections {
  display: grid;
  gap: 2rem;
}

.policy-table-wrapper {
  margin-top: 1.75rem;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.policy-table th,
.policy-table td {
  padding: 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  vertical-align: top;
  color: var(--muted);
}

.policy-table th {
  background: rgba(61, 123, 247, 0.08);
  color: var(--text);
  font-weight: 600;
}

.policy-table tr:last-of-type th,
.policy-table tr:last-of-type td {
  border-bottom: none;
}

.policy-table th[scope="row"] {
  width: 18rem;
  color: var(--text);
}

.policy-meta {
  margin-top: 1.5rem;
}

.hidden {
  display: none !important;
}

.container {
  width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.35rem;
}

.brand-logo {
  width: 2.75rem;
  height: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.header-nav a {
  position: relative;
  padding-bottom: 0.25rem;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.header-nav a:hover {
  color: var(--text);
}

.header-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(4.5rem, 10vh, 7.5rem) 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(
      rgba(15, 23, 42, 0.75),
      rgba(15, 23, 42, 0.85)
    ),
    url("../assets/hero-img.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  max-width: 680px;
  padding: 0 0.5rem;
}

.hero-copy h1 {
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  line-height: 1.1;
}

.hero-copy p {
  color: #d7e3ff;
  margin: 0;
  font-size: 1.15rem;
}

.hero-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.hero-highlights li {
  position: relative;
  padding-left: 1.75rem;
  font-weight: 600;
  color: #f1f5ff;
  font-size: 1.05rem;
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--success));
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(61, 123, 247, 0.25);
}

.start-btn {
  margin-top: 0.75rem;
  font-size: 1.15rem;
  padding: 1.15rem 3rem;
}

.hero-note {
  margin: 0;
  font-size: 0.95rem;
  color: #c6d3ff;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.primary-btn:hover {
  transform: translateY(-2px);
}

.primary-btn.is-loading {
  opacity: 0.72;
  pointer-events: none;
  position: relative;
}

.primary-btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

.assessment {
  padding: clamp(3.5rem, 7vh, 5rem) 0;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-heading p {
  color: var(--muted);
}

.question-flow {
  display: grid;
  gap: 1.75rem;
  justify-items: center;
  text-align: center;
  padding: 0;
  width: 100%;
}

.question-card,
.processing-state {
  background: linear-gradient(145deg, var(--surface), rgba(19, 32, 71, 0.85));
  padding: 2.5rem clamp(1.75rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.35);
  max-width: 640px;
  width: 100%;
}

.question-card h3 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.question-flow button {
  padding: 1.1rem 2.75rem;
  font-size: 1.05rem;
  min-width: 200px;
}

.option-disclaimer {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.outline-btn {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
}

.outline-btn:hover {
  border-color: var(--accent);
  background: rgba(61, 123, 247, 0.1);
}

.ghost-btn {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.15);
}

.ghost-btn:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.25);
}

.processing-state {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.25);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

.success-panel {
  padding: clamp(4rem, 8vh, 6rem) 0;
  background: linear-gradient(
    145deg,
    rgba(56, 214, 164, 0.15),
    rgba(61, 123, 247, 0.15)
  );
  text-align: center;
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.success-copy {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.success-copy h2 {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  margin: 0;
}

.success-copy p {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

.cta-btn {
  padding: 1.25rem 1.25rem;
  font-size: 1.2rem;
  line-height: 1.4;
  border-radius: var(--radius-md);
  text-align: center;
}

.supporting-note {
  font-size: 0.9rem;
  color: #9fb2d9;
}

.click-wall {
  padding: clamp(3rem, 6vh, 4.5rem) 0;
  background: var(--surface);
}

.click-wall-loading {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin: 3rem auto;
  max-width: 320px;
  text-align: center;
  color: var(--muted);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.offer-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: grid;
  gap: 1rem;
  transition: transform var(--transition), border var(--transition),
    background var(--transition);
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 123, 247, 0.4);
  background: rgba(61, 123, 247, 0.08);
}

.offer-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.offer-card p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 2rem 0;
  background: rgba(10, 15, 30, 0.95);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-disclaimer {
  margin-top: 1.5rem;
  color: #93a4c6;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-disclaimer p {
  margin: 0 0 0.75rem;
}

.footer-disclaimer p:last-of-type {
  margin-bottom: 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  z-index: 100;
}

.modal {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 2.75rem clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  position: relative;
  max-width: 420px;
  text-align: center;
  border: 1px solid rgba(255, 107, 107, 0.4);
}

.modal h2 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal p {
  color: var(--muted);
  margin-bottom: 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  padding: 0.25rem 0.75rem;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.15);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .brand {
    font-size: 1.5rem;
  }

  .brand-name {
    font-size: 1.5rem;
  }

  .brand-logo {
    width: 3rem;
  }

  .header-nav {
    display: none;
  }

  .site-header {
    padding: 0.75rem 0;
  }

  .header-content {
    padding: 1.25rem 0;
  }

  .container {
    padding: 0 0.5rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .question-card,
  .success-panel,
  .click-wall,
  .hero {
    padding-inline: 0;
  }

  .question-card,
  .processing-state {
    padding: 2rem 1.5rem;
  }

  button {
    width: 100%;
    justify-content: center;
  }

  .button-row {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
