:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #EEF2FF;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --shadow-sm: 0 2px 20px rgba(49, 46, 129, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(49, 46, 129, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(49, 46, 129, 0.35);
}

/* === Reset === */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: #1e1b4b;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); letter-spacing: -0.02em; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.1; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 760px; }
.section { padding-block: 4rem; }
.section-alt { background: var(--color-neutral-light); }
.section-head { margin-bottom: 2.5rem; }
.section-head.center { text-align: center; }
.center { text-align: center; }
.mt { margin-top: 2rem; }
.eyebrow { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-primary); font-weight: 600; margin-bottom: 0.75rem; }
.sub { font-size: 1.1rem; color: #4c4a75; margin-bottom: 1.5rem; }
.lede { font-size: 1.15rem; color: #3d3b6b; max-width: 60ch; }

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(49,46,129,0.08);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(255,255,255,0.92); box-shadow: 0 4px 24px -12px rgba(49,46,129,0.15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1160px; margin-inline: auto; padding: 0.75rem 1.25rem; }
.logo { display: inline-flex; }
.logo img { height: 72px; width: auto; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-neutral-dark); display: block; border-radius: 2px; transition: transform .2s; }
.primary-nav { display: none; flex-direction: column; gap: 0.25rem; }
.primary-nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid rgba(49,46,129,0.08); box-shadow: var(--shadow-md); }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; padding: 0.5rem 0; position: relative; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-cta { background: var(--color-primary); color: #fff !important; padding: 0.5rem 1rem !important; border-radius: 999px; }
.nav-cta:hover { background: var(--color-neutral-dark); text-decoration: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; align-items: center; gap: 1.5rem; position: static; padding: 0; background: none; box-shadow: none; border: 0; }
  .primary-nav a { padding: 0.25rem 0; font-size: 0.95rem; }
  .primary-nav a:not(.nav-cta)::after { content: ""; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .primary-nav a:not(.nav-cta):hover { text-decoration: none; }
  .primary-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
}
@media (min-width: 768px) {
  .logo img { height: 96px; }
}

/* === Buttons === */
.btn { display: inline-block; padding: 0.85rem 1.5rem; border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; box-shadow: 0 8px 24px -8px rgba(99,102,241,0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(99,102,241,0.7); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border-color: rgba(49,46,129,0.2); }
.btn-ghost:hover { background: var(--color-neutral-light); text-decoration: none; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* === Hero card === */
.hero { padding-block: 3rem; background: linear-gradient(135deg, var(--color-neutral-light), #fff 70%); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 500px; height: 500px; background: radial-gradient(circle, rgba(34,197,94,0.12), transparent 65%); pointer-events: none; }
.hero-card__inner {
  max-width: 880px; margin-inline: auto;
  background: #fff;
  padding: 2.5rem 1.75rem;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid rgba(49,46,129,0.06);
}
.hero-card__inner h1 { max-width: 22ch; }
.hero-card__figure { margin: 2rem 0 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.hero-card__figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
@media (min-width: 768px) {
  .hero { padding-block: 5rem; }
  .hero-card__inner { padding: 4rem; }
}

/* === Figures === */
.figure-wide { margin: 2rem 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.figure-wide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* === Grid & cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff;
  border: 1px solid rgba(49,46,129,0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  color: inherit;
  display: block;
}
.card svg { color: var(--color-primary); margin-bottom: 0.75rem; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
a.card-link { text-decoration: none; color: inherit; }
a.card-link:hover { text-decoration: none; }

/* === Quote === */
.quote { background: var(--color-neutral-light); border-radius: var(--radius); padding: 2rem; margin: 0; border-left: 4px solid var(--color-primary); }
.quote p { font-size: 1.15rem; font-style: italic; color: #2d2b5c; margin-bottom: 1rem; }
.quote cite { display: block; font-style: normal; font-weight: 600; color: var(--color-neutral-dark); }

/* === CTA band === */
.cta-band { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; padding-block: 4rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 60ch; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--color-neutral-dark); box-shadow: 0 8px 24px -8px rgba(0,0,0,0.35); }
.cta-band .btn-primary:hover { background: var(--color-accent); color: #fff; }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.pricing-card {
  position: relative;
  padding: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(49,46,129,0.12);
  background: #fff;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.pricing-card--featured { border: 2px solid var(--color-accent); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.pricing-card__badge { position: absolute; top: -14px; right: 20px; background: var(--color-accent); color: #fff; padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.pricing-card__plan { margin-bottom: 0.25rem; }
.pricing-card__price { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--color-primary); margin: 0 0 0.75rem; }
.pricing-card__lede { color: #4c4a75; margin-bottom: 1.25rem; font-size: 0.95rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; }
.pricing-card__features li { display: flex; gap: 0.5rem; padding: 0.4rem 0; font-size: 0.95rem; }
.pricing-card__features li span { color: var(--color-accent); font-weight: 700; }
.pricing-card__cta { align-self: stretch; text-align: center; }

/* === FAQ === */
.faq details { border: 1px solid rgba(49,46,129,0.1); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--color-neutral-dark); font-family: var(--font-heading); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--color-primary); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq p { margin-top: 0.75rem; margin-bottom: 0; color: #4c4a75; }

/* === Contact form === */
.contact-form { display: grid; gap: 1.25rem; margin-top: 2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; color: var(--color-neutral-dark); font-size: 0.95rem; }
.field input, .field textarea { font-family: var(--font-body); font-size: 1rem; padding: 0.75rem 0.9rem; border: 1px solid rgba(49,46,129,0.2); border-radius: 10px; background: #fff; color: #1e1b4b; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: #4c4a75; }
.form-consent input { margin-top: 0.25rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: #cbd5f5; padding-block: 3rem 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.site-footer .logo img { height: 64px; filter: brightness(0) invert(1); }
.site-footer .tagline { color: #a5b4fc; margin-top: 0.75rem; font-size: 0.95rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.35rem; }
.site-footer a { color: #cbd5f5; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.6; font-size: 0.95rem; color: #cbd5f5; margin-bottom: 1rem; }
.legal-links { flex-direction: row !important; gap: 1rem !important; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }
.copyright { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: #a5b4fc; }

/* === Cookie banner === */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; display: none; z-index: 9999; background: var(--color-neutral-dark); color: var(--color-neutral-light); padding: 1.25rem; border-radius: 16px; box-shadow: 0 20px 50px -10px rgba(0,0,0,0.4); max-width: 620px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions .btn-ghost { color: var(--color-neutral-light); border-color: rgba(255,255,255,0.3); }
.cookie-banner__actions .btn-ghost:hover { background: rgba(255,255,255,0.1); }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: 0.6rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
