/* === Tokens === */
:root {
  --color-primary: #0369A1;
  --color-secondary: #0EA5E9;
  --color-accent: #22C55E;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --color-bg: #FFFFFF;
  --color-text: #0C4A6E;
  --color-muted: #476A80;
  --font-heading: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(3, 105, 161, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(3, 105, 161, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(3, 105, 161, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-secondary); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--color-muted); }
.small { font-size: .9rem; }
.eyebrow { font-family: var(--font-heading); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--color-secondary); font-weight: 600; margin-bottom: 1rem; }

.section { padding: 3.5rem 0; }
.section-tint { background: var(--color-neutral-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); font-size: 1.1rem; }

@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(12, 74, 110, 0.08);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 24px -12px rgba(3, 105, 161, 0.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.logo--footer img { filter: brightness(1); }

.primary-nav { display: none; align-items: center; gap: 1.75rem; }
.primary-nav a {
  font-weight: 500; font-size: .95rem; color: var(--color-neutral-dark);
  position: relative; padding: .25rem 0;
}
.primary-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--color-secondary); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.primary-nav a:not(.btn):hover::after,
.primary-nav a.is-current::after { transform: scaleX(1); }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: transparent; border: 0; padding: .5rem; cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
}
@media (max-width: 899px) {
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(12, 74, 110, 0.08);
    box-shadow: 0 12px 32px -12px rgba(3, 105, 161, 0.15);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .75rem 0; border-bottom: 1px solid rgba(12, 74, 110, 0.06); }
  .primary-nav a:last-child { border-bottom: 0; margin-top: .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: .95rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
  text-align: center; white-space: nowrap;
}
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(3, 105, 161, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(3, 105, 161, 0.55); color: #fff; }
.btn-accent {
  background: var(--color-accent); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(34, 197, 94, 0.5);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(34, 197, 94, 0.6); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--color-primary);
  border-color: rgba(3, 105, 161, 0.25);
}
.btn-ghost:hover { border-color: var(--color-primary); background: rgba(3, 105, 161, 0.05); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid rgba(14, 165, 233, 0.4); outline-offset: 2px; }

/* === Hero (card archetype) === */
.hero-card-band {
  position: relative;
  padding: 3rem 0 4rem;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(14, 165, 233, 0.14), transparent 70%),
    radial-gradient(50% 50% at 10% 100%, rgba(34, 197, 94, 0.08), transparent 70%),
    linear-gradient(180deg, var(--color-neutral-light), #fff 90%);
  overflow: hidden;
}
@media (min-width: 768px) { .hero-card-band { padding: 5rem 0 6rem; } }
.hero-card {
  max-width: 880px; margin: 0 auto;
  background: #fff; border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(12, 74, 110, 0.06);
  text-align: center;
}
@media (min-width: 768px) { .hero-card { padding: 4rem 3.5rem; } }
.hero-card h1 { max-width: 20ch; margin: 0 auto .9rem; }
.hero-card .lede { font-size: 1.15rem; color: var(--color-muted); max-width: 52ch; margin: 0 auto 1.75rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 2rem; }
.hero-card__figure { margin: 2rem 0 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 20px 40px -20px rgba(3, 105, 161, 0.35); }
.hero-card__figure img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* === Cards grid === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff; border: 1px solid rgba(12, 74, 110, 0.08);
  border-radius: var(--radius-md); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.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(14, 165, 233, 0.15), rgba(3, 105, 161, 0.12));
  color: var(--color-primary); margin-bottom: 1rem;
}

/* === 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;
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(12, 74, 110, 0.12);
  background: #fff;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--highlight {
  border-color: var(--color-accent); border-width: 2px;
  box-shadow: 0 20px 40px -20px rgba(34, 197, 94, 0.3);
}
.pricing-card__badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--color-accent); color: #fff;
  padding: .25rem .65rem; border-radius: 999px;
  font-family: var(--font-heading); font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.pricing-card__plan { font-size: 1.35rem; margin-bottom: .35rem; }
.pricing-card__price { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--color-primary); margin-bottom: .75rem; letter-spacing: -0.02em; }
.pricing-card__lede { color: var(--color-muted); margin-bottom: 1.25rem; font-size: .95rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; }
.pricing-card__features li { display: flex; gap: .5rem; padding: .4rem 0; font-size: .95rem; border-bottom: 1px solid rgba(12, 74, 110, 0.06); }
.pricing-card__features li:last-child { border-bottom: 0; }
.pricing-card__cta { align-self: stretch; text-align: center; }

/* === Testimonial === */
.testimonial {
  position: relative;
  background: var(--color-neutral-light);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.75rem 2rem;
  margin: 0;
  border-left: 4px solid var(--color-secondary);
  box-shadow: var(--shadow-sm);
}
.testimonial .quote-mark { color: rgba(14, 165, 233, 0.2); position: absolute; top: 1rem; right: 1.25rem; }
.testimonial p { font-size: 1.15rem; line-height: 1.6; color: var(--color-neutral-dark); font-style: italic; margin-bottom: 1rem; }
.testimonial cite { display: block; font-style: normal; font-weight: 600; color: var(--color-primary); font-size: .95rem; }

/* === CTA band === */
.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(14, 165, 233, 0.35), transparent 70%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(240, 249, 255, 0.85); max-width: 560px; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.cta-band .muted { color: rgba(240, 249, 255, 0.7); }

/* === Contact === */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; } }
.hours { border-collapse: collapse; width: 100%; margin-top: 1rem; font-size: .95rem; }
.hours caption { text-align: left; font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); padding-bottom: .5rem; }
.hours th, .hours td { padding: .55rem .75rem; border-bottom: 1px solid rgba(12, 74, 110, 0.08); text-align: left; }
.hours th { font-weight: 500; color: var(--color-muted); }

.contact-form { background: #fff; padding: 1.75rem; border-radius: var(--radius-md); box-shadow: var(--shadow-md); border: 1px solid rgba(12, 74, 110, 0.06); }
.contact-form h2 { margin-bottom: 1.25rem; }
.contact-form label { display: block; font-weight: 500; font-size: .9rem; color: var(--color-neutral-dark); margin-bottom: 1rem; }
.contact-form input,
.contact-form textarea {
  display: block; width: 100%; margin-top: .35rem;
  padding: .7rem .85rem; border: 1px solid rgba(12, 74, 110, 0.2);
  border-radius: var(--radius-sm); font: inherit; color: inherit; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18); }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--color-muted); font-weight: 400; }
.form-consent input { width: auto; margin: .2rem 0 0; }
.form-success { color: var(--color-accent); font-weight: 600; margin-top: 1rem; }

/* === FAQ === */
.faq details {
  background: #fff; border: 1px solid rgba(12, 74, 110, 0.1);
  border-radius: var(--radius-md); padding: 1rem 1.25rem;
  margin-bottom: .75rem; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  cursor: pointer; font-family: var(--font-heading); font-weight: 600;
  color: var(--color-neutral-dark); list-style: none; padding-right: 2rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--color-secondary); font-weight: 400; line-height: 1;
  transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: .75rem; color: var(--color-muted); }

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

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: rgba(240, 249, 255, 0.85);
  padding: 3.5rem 0 1.5rem; margin-top: 2rem;
}
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer a { color: rgba(240, 249, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: rgba(240, 249, 255, 0.6); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: .3rem 0; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: .75rem 1rem; font-size: .85rem; margin-top: 1rem; }
.copyright { border-top: 1px solid rgba(240, 249, 255, 0.12); padding-top: 1.25rem; font-size: .85rem; color: rgba(240, 249, 255, 0.55); }

/* === 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: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
  max-width: 640px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .9rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(240, 249, 255, 0.15); }
.cookie-banner__prefs label { font-size: .9rem; display: flex; gap: .5rem; align-items: center; }
.cookie-banner .btn-ghost { color: #fff; border-color: rgba(240, 249, 255, 0.3); }
.cookie-banner .btn-ghost:hover { background: rgba(240, 249, 255, 0.08); border-color: rgba(240, 249, 255, 0.5); color: #fff; }
@media (min-width: 640px) { .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; } }

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