/* === Tokens === */
:root {
  --color-primary: #0891B2;
  --color-secondary: #22D3EE;
  --color-accent: #059669;
  --color-neutral-dark: #164E63;
  --color-neutral-light: #ECFEFF;
  --color-text: #0f2933;
  --color-muted: #4b6572;
  --color-border: rgba(22, 78, 99, 0.12);
  --color-white: #ffffff;
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 20px rgba(15, 41, 51, 0.06);
  --shadow-md: 0 20px 60px -30px rgba(15, 41, 51, 0.35);
  --shadow-lg: 0 30px 80px -30px rgba(8, 145, 178, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -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); line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-neutral-dark); }
p { margin: 0 0 1rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--color-neutral-dark);
  color: var(--color-neutral-light); padding: .5rem 1rem; z-index: 10000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; margin-inline: auto; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 500; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease-ui), box-shadow .2s var(--ease-ui), background .2s var(--ease-ui); text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: var(--color-white);
  box-shadow: 0 10px 30px -12px rgba(8, 145, 178, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(8, 145, 178, 0.7); text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--color-neutral-dark);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-neutral-light); transform: translateY(-2px); text-decoration: none; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(236, 254, 255, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease-ui), box-shadow .25s var(--ease-ui), border-color .25s var(--ease-ui);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 20px -12px rgba(15, 41, 51, 0.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .85rem; 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 { width: 24px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .2s var(--ease-ui), opacity .2s var(--ease-ui); }
.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); }

.primary-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-white); padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border); flex-direction: column; gap: .25rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-neutral-dark); font-family: var(--font-heading); font-weight: 500;
  padding: .6rem 0; text-decoration: none; position: relative;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-cta { color: var(--color-primary) !important; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; position: static; background: transparent; padding: 0;
    border: 0; flex-direction: row; align-items: center; gap: 1.6rem;
  }
  .primary-nav a { padding: .25rem 0; }
  .primary-nav a:not(.nav-cta)::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--color-primary); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease-ui);
  }
  .primary-nav a:not(.nav-cta):hover::after,
  .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-cta {
    padding: .55rem 1.1rem !important; border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
    color: var(--color-white) !important;
  }
  .nav-cta:hover { text-decoration: none; transform: translateY(-1px); }
  .logo img { height: 96px; }
}

/* === Hero (saas-spotlight) === */
.hero { position: relative; overflow: hidden; padding-block: 3rem 2rem; }
.saas-hero {
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(5, 150, 105, 0.14), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(34, 211, 238, 0.18), transparent 60%),
    linear-gradient(180deg, var(--color-neutral-light), #ffffff 90%);
}
.hero-grid { display: grid; gap: 2.25rem; align-items: center; }
.hero-copy .eyebrow {
  display: inline-block; font-family: var(--font-heading); font-weight: 500;
  font-size: .8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 1rem;
  padding: .35rem .75rem; background: rgba(5, 150, 105, 0.08); border-radius: 999px;
}
.hero-copy h1 { margin-bottom: 1rem; }
.hero-copy .lede { font-size: 1.15rem; color: var(--color-muted); max-width: 56ch; margin-bottom: 1.75rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-visual img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.hero-copy-center { text-align: center; margin-inline: auto; max-width: 780px; }
.hero-copy-center .lede { margin-inline: auto; }
.hero-slim { padding-block: 3.5rem 1.5rem; }

.proof-strip {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.25rem 2.5rem; font-family: var(--font-heading); font-weight: 500;
  color: var(--color-neutral-dark); font-size: .95rem;
  padding: 1rem 1.25rem; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
}
.proof-strip span::before { content: '✦ '; color: var(--color-accent); margin-right: .3rem; }

@media (min-width: 900px) {
  .hero { padding-block: 5rem 3rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
  .hero-copy h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
  .hero-visual img { aspect-ratio: 4/5; }
}

/* === Sections === */
.section { padding-block: 3.5rem; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.25rem; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }
.intro h2 { text-align: center; }
.intro p { color: var(--color-muted); font-size: 1.05rem; text-align: center; }
.intro.alt { background: linear-gradient(180deg, var(--color-neutral-light) 0%, #ffffff 100%); }

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

/* === Cards / Grids === */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .cards-5 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-ui), box-shadow .2s var(--ease-ui);
  display: flex; flex-direction: column; gap: .75rem;
  color: var(--color-text);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); margin: 0; font-size: .98rem; }
a.card-link { text-decoration: none; color: inherit; }
a.card-link:hover { text-decoration: none; }
.icon {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  color: var(--color-primary); background: rgba(8, 145, 178, 0.08);
}
.stat-number {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3rem); color: var(--color-accent);
  margin: 0 0 .25rem; line-height: 1;
}

/* === Testimonial === */
.testimonial-section { background: var(--color-neutral-light); }
.testimonial {
  margin: 0; padding: 2.5rem 1.5rem; text-align: center; position: relative;
}
.testimonial p {
  font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.5;
  color: var(--color-neutral-dark); margin-bottom: 1.25rem;
  quotes: "\201C" "\201D";
}
.testimonial p::before { content: open-quote; }
.testimonial p::after { content: close-quote; }
.testimonial cite { font-style: normal; color: var(--color-muted); font-size: .95rem; }
.quote-mark { width: 36px; height: 36px; color: var(--color-secondary); margin: 0 auto 1rem; opacity: .9; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: var(--color-neutral-light);
}
.cta-band .cta-inner { text-align: center; max-width: 780px; margin-inline: auto; }
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(236, 254, 255, 0.85); font-size: 1.05rem; margin-bottom: 1.5rem; }
.cta-band .btn-primary {
  background: var(--color-white); color: var(--color-neutral-dark);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.35);
}
.cta-band .btn-primary:hover { background: var(--color-neutral-light); }

/* === Pricing === */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .pricing-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.pricing-card {
  position: relative; padding: 2.25rem; border-radius: var(--radius-md);
  background: var(--color-white); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s var(--ease-ui), box-shadow .2s var(--ease-ui);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured {
  border: 2px solid var(--color-accent);
  box-shadow: 0 25px 60px -25px rgba(5, 150, 105, 0.4);
}
.pricing-card__badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--color-accent); color: var(--color-white);
  padding: .3rem .7rem; font-size: .75rem; font-family: var(--font-heading);
  font-weight: 500; border-radius: 999px; letter-spacing: 0.04em;
}
.pricing-card__plan { color: var(--color-neutral-dark); font-size: 1.1rem; margin-bottom: .25rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.pricing-card__price { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700; color: var(--color-neutral-dark); margin-bottom: .75rem; line-height: 1.1; }
.pricing-card__lede { color: var(--color-muted); margin-bottom: 1.25rem; font-size: .98rem; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-direction: column; gap: .6rem; }
.pricing-card__features li { display: flex; gap: .55rem; align-items: flex-start; color: var(--color-text); font-size: .95rem; }
.check { color: var(--color-accent); font-weight: 700; flex-shrink: 0; }
.pricing-card__cta { margin-top: auto; align-self: stretch; text-align: center; }

/* === FAQ === */
.faq details {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: .75rem;
  transition: box-shadow .2s var(--ease-ui);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-family: var(--font-heading); font-weight: 500;
  color: var(--color-neutral-dark); font-size: 1.05rem; padding-right: 2rem;
  position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--color-primary); font-weight: 400;
  transition: transform .2s var(--ease-ui);
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: .75rem; color: var(--color-muted); }

/* === Contact form === */
.form-section { background: var(--color-neutral-light); }
.form-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 1.4fr 1fr; gap: 3.5rem; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-heading); font-weight: 500; margin-bottom: .35rem; color: var(--color-neutral-dark); font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; font: inherit;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-white); color: var(--color-text);
  transition: border-color .2s var(--ease-ui), box-shadow .2s var(--ease-ui);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}
.form-consent { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; color: var(--color-muted); margin: .5rem 0 1.25rem; }
.form-consent input { margin-top: .25rem; }
.contact-side h3 { margin-top: 1.25rem; }
.contact-side h3:first-child { margin-top: 0; }
.hours { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .93rem; }
.hours th, .hours td { padding: .35rem .5rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.hours th { font-weight: 500; color: var(--color-neutral-dark); font-family: var(--font-heading); }
.hours td { color: var(--color-muted); }

/* === Contact band === */
.contact-band h2 { text-align: center; }
.contact-band p { text-align: center; color: var(--color-muted); font-size: 1.05rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: var(--color-neutral-light);
  padding-block: 3rem 1.5rem; margin-top: 3rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.1fr; } }
.site-footer h4 { color: var(--color-neutral-light); margin-bottom: .85rem; }
.site-footer a { color: rgba(236, 254, 255, 0.85); }
.site-footer a:hover { color: var(--color-secondary); text-decoration: none; }
.footer-logo img { height: 60px; filter: brightness(0) invert(1); }
.tagline { color: rgba(236, 254, 255, 0.7); font-size: .95rem; margin-top: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.site-footer address { font-style: normal; color: rgba(236, 254, 255, 0.85); font-size: .95rem; line-height: 1.7; }
.legal-links { flex-direction: row !important; flex-wrap: wrap; gap: .75rem !important; margin-top: 1rem !important; font-size: .88rem; }
.copyright { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(236, 254, 255, 0.15); color: rgba(236, 254, 255, 0.6); font-size: .85rem; text-align: center; }

/* === 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);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.4); max-width: 640px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .85rem; font-size: .95rem; color: rgba(236, 254, 255, 0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions .btn-ghost { color: var(--color-neutral-light); border-color: rgba(236, 254, 255, 0.3); }
.cookie-banner__actions .btn-ghost:hover { background: rgba(236, 254, 255, 0.1); }
.cookie-banner__actions .btn-primary { background: var(--color-accent); }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs label { display: inline-flex; align-items: center; gap: .5rem; }
.cookie-banner__prefs .btn-primary { align-self: flex-start; margin-top: .5rem; background: var(--color-accent); }

/* === Reveal (scroll-in) === */
.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; }
}
