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

:root {
  color-scheme: light;
  --purple-900: #2a0e4f;
  --purple-700: #4b1f7a;
  --purple-500: #6d28d9;
  --purple-200: #e9d5ff;
  --orange-700: #c2410c;
  --orange-500: #f97316;
  --orange-200: #fed7aa;
  --gray-950: #0b0b10;
  --gray-800: #1f2430;
  --gray-200: #e5e7eb;
  --gray-50: #f8fafc;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --info: #4b1f7a;
  --color-bg: var(--gray-50);
  --color-surface: #ffffff;
  --color-text: var(--gray-950);
  --color-muted: #5b6170;
  --color-border: var(--gray-200);
  --color-primary: var(--orange-500);
  --color-primary-hover: var(--orange-700);
  --color-secondary: var(--purple-500);
  --color-secondary-hover: var(--purple-700);
  --color-link: var(--purple-500);
  --color-link-hover: var(--purple-700);
  --color-badge-bg: var(--orange-200);
  --color-badge-text: var(--orange-700);
  --focus-ring: 0 0 0 3px rgba(249, 115, 22, 0.35);
  --shadow: 0 14px 32px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 10px 24px rgba(17, 24, 39, 0.1);
  --hero-gradient: linear-gradient(120deg, #4b1f7a 0%, #6d28d9 60%, rgba(249, 115, 22, 0.22) 100%);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--color-secondary);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 999;
}

.site-header .brand {
  color: var(--color-text);
}

.site-header .nav-links a {
  color: var(--color-muted);
}

.site-header .nav-links a.active,
.site-header .nav-links a:hover {
  color: var(--color-text);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a.active,
.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hero {
  padding: 70px 0 40px;
  background: linear-gradient(120deg, #1b0f2d 0%, #2a0e4f 55%, #c2410c 120%);
  color: #f8fafc;
}

.hero-book .hero-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.hero-book__intro {
  max-width: 720px;
}

.hero-book .form {
  margin-top: 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 16px 0 12px;
  color: #f8fafc;
}

.hero p {
  color: rgba(248, 250, 252, 0.82);
  margin-bottom: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.button:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  background: var(--color-primary-hover);
}

.button.secondary {
  background: var(--color-secondary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}

.button.secondary:hover {
  box-shadow: var(--shadow);
  background: var(--color-secondary-hover);
}

.button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.section {
  padding: 50px 0;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.section-subtitle {
  color: var(--color-muted);
  margin-bottom: 28px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  color: var(--color-text);
}

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

.highlight {
  background: rgba(109, 40, 217, 0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-badge-bg);
  color: var(--color-badge-text);
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.split {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.list {
  padding-left: 18px;
  color: var(--color-muted);
}

.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.95rem;
}

.form {
  display: grid;
  gap: 14px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form input:focus-visible,
.form textarea:focus-visible,
.form select:focus-visible {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
}

.form input:disabled,
.form textarea:disabled,
.form select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 600;
}

.hero-panel {
  background-image: none;
  background-color: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.hero-panel h2 {
  margin-top: 0;
}

.hero-panel ul {
  padding-left: 18px;
  color: var(--color-muted);
}

.testimonial-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

.testimonial-viewport {
  overflow: hidden;
  width: 100%;
  transition: height 0.25s ease;
}

.testimonial-track {
  display: flex;
  width: 100%;
  min-width: 0;
  scroll-behavior: smooth;
  transition: transform 0.35s ease;
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.testimonial-card p {
  margin-top: 0;
  color: var(--color-text);
}

.testimonial-meta {
  margin-top: 12px;
  font-weight: 600;
  color: var(--color-secondary);
}

.testimonial-list {
  margin: 12px 0;
  padding-left: 18px;
  color: var(--color-muted);
}

.testimonial-control {
  white-space: nowrap;
}

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -12px 24px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(6px);
}

.consent-banner.is-hidden {
  display: none;
}

.consent-banner__inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 0;
}

.consent-message {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  max-width: 620px;
}

.consent-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-actions .button {
  box-shadow: none;
  padding: 10px 16px;
}

.consent-link {
  font-weight: 600;
  color: var(--color-secondary);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.consent-modal.is-hidden {
  display: none;
}

.consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.consent-modal__panel {
  position: relative;
  z-index: 1;
  width: min(680px, 92vw);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  border: 1px solid var(--color-border);
  padding: 22px 24px;
}

.consent-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.consent-modal__header h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.consent-modal__header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.consent-modal__close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
  padding: 4px;
}

.consent-modal__tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 18px;
}

.consent-modal__tab {
  padding: 8px 6px 12px;
  font-weight: 600;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  background: transparent;
  border: none;
  cursor: default;
}

.consent-modal__tab.is-active {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}

.consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.consent-option + .consent-option {
  margin-top: 12px;
}

.consent-option h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.consent-option p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.consent-toggle {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #e2e8f0;
  position: relative;
  flex-shrink: 0;
}

.consent-toggle::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.consent-toggle.is-on {
  background: rgba(109, 40, 217, 0.2);
}

.consent-toggle.is-on::after {
  left: 22px;
  background: var(--color-secondary);
}

.consent-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 20px;
}

.consent-modal__actions .button {
  box-shadow: none;
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
  }

  .testimonial-carousel {
    grid-template-columns: 1fr;
  }

  .testimonial-control {
    width: 100%;
  }

  .consent-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .consent-modal__panel {
    padding: 18px 18px;
  }

  .consent-modal__actions {
    justify-content: flex-start;
  }
}
