/* === Tokens === */
:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #10B981;
  --color-neutral-dark: #312E81;
  --color-neutral-light: #F5F3FF;
  --color-text: #1E1B4B;
  --color-muted: #4B5563;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 20px rgba(49, 46, 129, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(49, 46, 129, 0.22);
  --shadow-lg: 0 30px 60px -30px rgba(49, 46, 129, 0.35);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
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; line-height: 1.15; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-neutral-dark); }
p { margin: 0 0 1rem; }
.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; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }
.eyebrow { text-transform: uppercase; font-size: .8rem; letter-spacing: .16em; color: var(--color-primary); font-weight: 600; margin-bottom: .75rem; }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.5rem; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: 0 10px 30px -10px rgba(99,102,241,.55); }
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 18px 40px -12px rgba(99,102,241,.7); }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border-color: rgba(49,46,129,.2); }
.btn-ghost:hover { transform: translateY(-2px); text-decoration: none; background: var(--color-neutral-light); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(16,185,129,.55); }
.btn-accent:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 18px 40px -12px rgba(16,185,129,.7); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

/* === Header (glass) === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 243, 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 .25s, box-shadow .25s;
}
.site-header.scrolled { background: rgba(255,255,255,0.9); box-shadow: 0 8px 30px -20px rgba(49,46,129,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .75rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 26px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; }
.primary-nav { display: none; }
.primary-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(49,46,129,.08); box-shadow: 0 20px 40px -20px rgba(49,46,129,.3); gap: .25rem; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; padding: .6rem .25rem; position: relative; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.primary-nav .nav-cta { color: var(--color-primary); font-weight: 600; }

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; position: static; padding: 0; background: none; box-shadow: none; border: 0; gap: 1.5rem; }
  .primary-nav a { padding: .25rem 0; }
  .primary-nav a:not(.nav-cta)::after { content: ""; display: block; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .primary-nav a:not(.nav-cta):hover::after,
  .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .primary-nav a:hover { text-decoration: none; }
  .primary-nav .nav-cta { border: 1px solid var(--color-primary); border-radius: 999px; padding: .45rem 1rem; }
  .primary-nav .nav-cta:hover { background: var(--color-primary); color: #fff; text-decoration: none; }
}

/* === Hero (centered) === */
.hero { position: relative; padding-block: 4rem 3rem; text-align: center; overflow: hidden; background: linear-gradient(180deg, var(--color-neutral-light) 0%, #ffffff 100%); }
.hero-glow { position: absolute; inset: -20% 10% auto 10%; height: 60%; background: radial-gradient(ellipse at center, rgba(129,140,248,.35), transparent 65%); filter: blur(40px); z-index: 0; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero-sub { max-width: 52ch; margin: 1rem auto 2rem; font-size: 1.15rem; color: var(--color-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 3rem; }
.hero-figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 1000px; margin-inline: auto; }
.hero-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
@media (min-width: 768px) {
  .hero { padding-block: 6rem 4rem; }
}

/* === Sections === */
.section { padding-block: 4rem; }
.section-tinted { background: var(--color-neutral-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }

/* === Grids & cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: #fff; border-radius: var(--radius-md); padding: 1.75rem;
  border: 1px solid rgba(49,46,129,.08); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: block; color: inherit;
}
.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; }
.card p { color: var(--color-muted); margin-bottom: 0; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(16,185,129,.15)); color: var(--color-primary); margin-bottom: 1rem; }

/* === Testimonial === */
.testimonial-section { background: var(--color-neutral-light); }
.testimonial { margin: 0; text-align: center; padding: 2rem 1rem; }
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.5vw, 1.65rem); color: var(--color-neutral-dark); line-height: 1.4; margin-bottom: 1rem; }
.testimonial cite { font-style: normal; color: var(--color-muted); font-weight: 500; }

/* === 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,.85); max-width: 46ch; margin: 0 auto 1.75rem; }

/* === Pricing === */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.pricing-card { position: relative; background: #fff; border-radius: var(--radius-md); border: 1px solid rgba(49,46,129,.12); padding: 2.25rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured { border: 2px solid var(--color-accent); box-shadow: var(--shadow-md); }
.pricing-card__badge { position: absolute; top: -12px; right: 1.5rem; background: var(--color-accent); color: #fff; font-family: var(--font-heading); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 999px; }
.pricing-card__plan { font-size: 1.15rem; color: var(--color-primary); margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .1em; }
.pricing-card__price { font-family: var(--font-heading); font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; color: var(--color-neutral-dark); margin-bottom: 1rem; line-height: 1.1; }
.pricing-card__lede { color: var(--color-muted); margin-bottom: 1.25rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; flex-grow: 1; }
.pricing-card__features li { display: flex; gap: .6rem; padding: .5rem 0; border-top: 1px solid rgba(49,46,129,.06); align-items: flex-start; }
.pricing-card__features li span { color: var(--color-accent); font-weight: 700; flex-shrink: 0; }
.pricing-card__cta { margin: 0; }
.pricing-card__cta .btn { width: 100%; }

/* === FAQ === */
.faq details { border-top: 1px solid rgba(49,46,129,.12); padding: 1.25rem 0; }
.faq details:last-of-type { border-bottom: 1px solid rgba(49,46,129,.12); }
.faq summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); font-size: 1.1rem; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.5rem; color: var(--color-primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--color-muted); margin-top: .75rem; margin-bottom: 0; }

/* === Contact === */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-details { font-style: normal; margin-bottom: 1.5rem; line-height: 1.7; }
.hours { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.hours th, .hours td { text-align: left; padding: .5rem .25rem; border-bottom: 1px solid rgba(49,46,129,.08); font-weight: 400; }
.hours th { font-weight: 600; color: var(--color-neutral-dark); font-family: var(--font-heading); }

.contact-form { background: #fff; border-radius: var(--radius-md); padding: 2rem; border: 1px solid rgba(49,46,129,.08); box-shadow: var(--shadow-sm); }
.contact-form h2 { margin-top: 0; }
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field label { font-weight: 500; margin-bottom: .4rem; color: var(--color-neutral-dark); font-size: .95rem; }
.field input, .field textarea { font-family: var(--font-body); font-size: 1rem; padding: .75rem .9rem; border: 1px solid rgba(49,46,129,.2); border-radius: 10px; background: #fff; color: var(--color-text); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--color-muted); margin-bottom: 1.25rem; }
.form-consent input { margin-top: .2rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: var(--color-neutral-light); padding-top: 3.5rem; padding-bottom: 1.5rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; }
.site-footer p, .site-footer address { color: rgba(245,243,255,.75); font-style: normal; line-height: 1.7; }
.site-footer a { color: var(--color-neutral-light); display: block; padding: .2rem 0; }
.site-footer a:hover { color: #fff; }
.footer-logo img { height: 60px; margin-bottom: .75rem; filter: brightness(0) invert(1); }
.legal-nav { margin-top: 1rem; display: flex; gap: 1rem; }
.legal-nav a { display: inline; font-size: .9rem; }
.copyright { padding-top: 1.5rem; margin: 0; text-align: center; color: rgba(245,243,255,.6); font-size: .9rem; }

/* === 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 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); max-width: 720px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-banner button { font-family: var(--font-heading); font-size: .9rem; font-weight: 600; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--color-neutral-light); transition: transform .15s, background .15s; }
.cookie-banner button:hover { transform: translateY(-1px); background: rgba(255,255,255,.08); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; }
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; margin-top: .5rem; }

/* === Reveal motion === */
.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; }
  html { scroll-behavior: auto; }
}
