/* =========================================================
   VARIO24 — styles.css
   Design system → layout → components → responsive → a11y
   Mobile-first. Pure CSS3, no frameworks.
========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --navy: #0F172A;
  --blue: #2563EB;
  --blue-bright: #3B82F6;
  --white: #FFFFFF;
  --bg: #F8FAFC;
  --muted: #64748B;

  /* Derived */
  --navy-800: #1E293B;
  --border: #E2E8F0;
  --border-soft: #EEF2F7;
  --ink: #0F172A;
  --ink-soft: #334155;

  --gradient: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  --gradient-soft: linear-gradient(135deg, #EFF4FF 0%, #F8FAFC 100%);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, .12);
  --shadow-blue: 0 12px 30px rgba(37, 99, 235, .28);

  /* Spacing / layout */
  --container: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(2.75rem, 8vw, 6.5rem);

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --nav-h: 88px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; color: var(--navy); }

/* Section-wide scroll offset so anchors clear sticky header */
[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg); }

.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.section__title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: .75rem; }
.section__sub { color: var(--muted); font-size: 1.075rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .85rem;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue);
}

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Icons ---------- */
.ico {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ico--lg { width: 30px; height: 30px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 650;
  font-size: .975rem;
  min-height: 44px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(37, 99, 235, .34); }

.btn--ghost { background: #fff; color: var(--navy); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--blue); border-color: #cdddff; }
.btn--outline:hover { background: #eef4ff; border-color: var(--blue); }

.btn--lg { padding: .95rem 1.8rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--whatsapp { background: #25D366; color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .28); }
.btn--whatsapp:hover { background: #1ebe5b; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 211, 102, .34); }
.btn--viber { background: #7360F2; color: #fff; box-shadow: 0 10px 24px rgba(115, 96, 242, .28); }
.btn--viber:hover { background: #5e4be0; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(115, 96, 242, .34); }
.btn--whatsapp .ico, .btn--viber .ico { width: 20px; height: 20px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-soft);
}

.nav {
  position: relative;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* Centered brand (absolute so the link groups can flank it) */
.nav__brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.nav__brand img { width: auto; height: 84px; }

.nav__menu { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 2vw, 2rem); }
.nav__right { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__list { display: flex; align-items: center; gap: clamp(.6rem, 1.6vw, 1.6rem); }
.nav__link {
  position: relative;
  color: var(--ink-soft);
  font-weight: 550;
  font-size: .96rem;
  padding: .35rem 0;
  transition: color .18s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav__link:hover { color: var(--navy); }
.nav__link.is-active { color: var(--blue); }
.nav__link.is-active::after { transform: scaleX(1); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav__toggle-bar {
  width: 20px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  margin: 0 auto;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 1rem;
  background: #eef4ff;
  color: var(--blue);
  border: 1px solid #dbe7ff;
  border-radius: var(--r-pill);
  font-size: .85rem;
  font-weight: 650;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(37,99,235,.5); animation: pulse 2s infinite; }

.badge {
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 700;
  background: var(--gradient);
  color: #fff;
}
.badge--soft { background: #eef4ff; color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(59,130,246,.10), transparent 60%),
    radial-gradient(45% 50% at 0% 20%, rgba(37,99,235,.08), transparent 60%),
    var(--white);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.05rem, 6vw, 4rem);
  margin: 1.1rem 0 1.1rem;
  letter-spacing: -.03em;
}
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 34ch; margin: 0 0 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
.hero__contact { margin-bottom: 1.5rem; }
.hero__contact-label { display: block; color: var(--muted); font-size: .85rem; margin-bottom: .55rem; }
.hero__contact-btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: .5rem 1.3rem;
  color: var(--muted); font-size: .92rem; margin: 0 0 2rem;
}
.hero__trust li { display: flex; align-items: center; gap: .5rem; }
.hero__trust .ico { color: #16a34a; width: 18px; height: 18px; flex: none; }

.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 2rem); margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--border-soft); text-align: center; }
.stat__num { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.stat__label { margin: 0; color: var(--muted); font-size: .82rem; }

/* Browser mockup */
.hero__mockup { position: relative; }
.browser {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .4s ease;
}
.hero__mockup:hover .browser { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.browser__bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .7rem .9rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}
.browser__dot { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.browser__dot:nth-child(1) { background: #f87171; }
.browser__dot:nth-child(2) { background: #fbbf24; }
.browser__dot:nth-child(3) { background: #34d399; }
.browser__url {
  margin-left: .6rem; flex: 1;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: .72rem; color: var(--muted);
  padding: .25rem .8rem;
}
.browser__viewport { padding: 1.2rem; background: linear-gradient(180deg,#fff, #fbfcfe); }

.mock-nav { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.mock-logo { width: 60px; height: 16px; border-radius: 5px; background: var(--navy); }
.mock-links { display: flex; gap: .5rem; margin-left: auto; }
.mock-links i { width: 30px; height: 8px; border-radius: 4px; background: #e2e8f0; }
.mock-btn { width: 54px; height: 22px; border-radius: var(--r-pill); background: var(--gradient); }

.mock-hero { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.3rem; }
.mock-h1 { height: 18px; width: 85%; border-radius: 6px; background: #cbd5e1; }
.mock-h1.short { width: 55%; }
.mock-p { height: 9px; width: 70%; border-radius: 4px; background: #e2e8f0; }
.mock-p.short { width: 45%; }
.mock-cta { margin-top: .4rem; width: 90px; height: 26px; border-radius: var(--r-pill); background: var(--gradient); }

.mock-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; }
.mock-card { height: 56px; border-radius: 10px; background: linear-gradient(135deg,#eef4ff,#f8fafc); border: 1px solid var(--border-soft); }

.floating-badge {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: var(--r-pill);
  padding: .5rem .9rem;
  font-size: .82rem;
  font-weight: 650;
  color: var(--navy);
  animation: float 4s ease-in-out infinite;
}
.floating-badge--1 { top: 12%; left: -6%; }
.floating-badge--2 { bottom: 10%; right: -4%; animation-delay: 1.2s; }

/* ---------- Trust bar ---------- */
.trustbar { border-block: 1px solid var(--border-soft); background: var(--white); }
.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: 1.5rem;
}
.trustbar__item {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  justify-content: flex-start;
  text-align: center;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: .98rem;
}
.trustbar__item .ico { color: var(--blue); }
/* Conditional line break — only active under 400px (see media query below) */
.br-sm { display: none; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dbe7ff; }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--gradient-soft);
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.card__title { font-size: 1.2rem; margin-bottom: .5rem; }
.card__text { color: var(--muted); margin: 0; font-size: .97rem; }

.note {
  margin: 2.25rem auto 0;
  max-width: 780px;
  background: #fff;
  border: 1px dashed var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
  color: var(--ink-soft);
  font-size: .95rem;
}
.note--center { text-align: center; border-left: none; border: 1px dashed var(--border); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem, 3vw, 2rem); counter-reset: none; position: relative; list-style: none; margin: 0; padding: 0; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.step__num {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-blue);
  margin: 0 auto 1.1rem;
}
.step__title { font-size: 1.2rem; margin-bottom: .5rem; }
.step__text { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Portfolio ---------- */
.portfolio__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.portfolio__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.portfolio__preview {
  aspect-ratio: 16 / 10;
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
}
.portfolio__preview span {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
  padding: .5rem 1rem;
  z-index: 1;
  text-align: center;
}
.portfolio__preview::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.18));
}
/* Live scaled thumbnail of the actual demo site */
.portfolio__frame {
  position: absolute; top: 0; left: 0;
  width: 400%; height: 400%;
  border: 0;
  transform: scale(.25);
  transform-origin: top left;
  pointer-events: none;
  background: #fff;
}
.portfolio__preview:has(.portfolio__frame)::after { display: none; }
.portfolio__preview-link { position: absolute; inset: 0; z-index: 3; }
.portfolio__card:hover .portfolio__preview-link { cursor: pointer; }
.portfolio__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.portfolio__industry { font-size: .78rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.portfolio__name { font-size: 1.22rem; margin: .3rem 0 .5rem; }
.portfolio__desc { color: var(--muted); font-size: .93rem; margin: 0 0 1rem; flex: 1; }
.portfolio__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.portfolio__time { font-size: .8rem; font-weight: 650; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .35rem; }
.portfolio__time::before { content: "⚡"; }
.portfolio__note {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin: clamp(1.6rem, 4vw, 2.4rem) auto 0; max-width: 60ch;
  text-align: center; color: var(--muted); font-size: .9rem;
}
.portfolio__note .ico { width: 18px; height: 18px; color: var(--blue); flex: none; }

/* ---------- Pricing ---------- */
.pricing { max-width: 720px; margin-inline: auto; }
.pricing__card {
  position: relative;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(59,130,246,.10), transparent 60%),
    #fff;
  border: 1px solid #dbe7ff;
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-lg);
}
.pricing__head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border-soft); margin-bottom: 1.4rem; }
.pricing__name { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.pricing__type { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; }
.pricing__amount { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 850; letter-spacing: -.03em; color: var(--navy); }
.pricing__features { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 1.2rem; margin-bottom: 1.75rem; }
.pricing__features li { position: relative; padding-left: 1.85rem; font-size: .95rem; color: var(--ink-soft); }
.pricing__features li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: var(--shadow-blue);
}
.pricing__features li::after {
  content: "";
  position: absolute; left: 5px; top: 8px;
  width: 8px; height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.pricing__foot { margin: 1rem 0 0; text-align: center; color: var(--muted); font-size: .86rem; }

/* ---------- Plans (monthly) ---------- */
.plans { align-items: stretch; gap: clamp(1.5rem, 3vw, 2.5rem); }
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan--featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #f5f9ff, #fff 40%);
}
.plan__badge {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  padding: .35rem 1rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-blue);
  white-space: nowrap;
}
.plan__name { font-size: 1.3rem; margin-bottom: .35rem; }
.plan__price { margin: 0 0 1.3rem; }
.plan__amount { font-size: 2.1rem; font-weight: 850; color: var(--navy); letter-spacing: -.02em; }
.plan__period { color: var(--muted); font-weight: 500; }
.plan__features { display: grid; gap: .6rem; margin-bottom: 1.6rem; flex: 1; }
.plan__features li { position: relative; padding-left: 1.65rem; font-size: .93rem; color: var(--ink-soft); }
.plan__features li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
}
.plan__features li:first-child { font-weight: 650; color: var(--navy); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin: 0;
  transition: transform .22s ease, box-shadow .22s ease;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stars { color: #f59e0b; letter-spacing: .12em; font-size: 1.05rem; margin-bottom: .85rem; }
.testimonial__text { margin: 0 0 1.3rem; font-size: 1.02rem; color: var(--ink-soft); }
.testimonial__author { display: flex; align-items: center; gap: .8rem; }
.testimonial__author strong { display: block; color: var(--navy); font-size: .98rem; }
.testimonial__author em { color: var(--muted); font-style: normal; font-size: .85rem; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  flex: none;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq-item h3 { margin: 0; }
.faq-item__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.3rem;
  background: none; border: none; cursor: pointer;
  text-align: left;
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--navy);
}
.faq-item__q:hover { color: var(--blue); }
.faq-item__icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 100%; height: 2px; background: var(--blue);
  border-radius: 2px; transform: translateY(-50%);
  transition: transform .25s ease;
}
.faq-item__icon::after { transform: translateY(-50%) rotate(90deg); }
.faq-item__q[aria-expanded="true"] .faq-item__icon::after { transform: translateY(-50%) rotate(0); }
.faq-item__a { padding: 0 1.3rem; }
.faq-item__a p { margin: 0; padding-bottom: 1.2rem; color: var(--muted); }
.faq-item[data-open] { border-color: #dbe7ff; box-shadow: var(--shadow-sm); }

/* ---------- CTA + form ---------- */
.cta {
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(59,130,246,.18), transparent 60%),
    var(--navy);
  color: #fff;
}
.cta .section__title, .cta__title { color: #fff; }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta__title { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 1rem; }
.cta__lead { color: #cbd5e1; font-size: 1.1rem; margin: 0 0 1.5rem; }
.cta__list { display: grid; gap: .7rem; margin: 0 0 1.5rem; }
.cta__list li { display: flex; align-items: center; gap: .6rem; color: #e2e8f0; }
.cta__list .ico { color: var(--blue-bright); width: 20px; height: 20px; }
.cta__order-btn { margin: .4rem 0 1.2rem; }
.cta__contact { color: #94a3b8; margin: 0; }
.cta__contact a { color: var(--blue-bright); font-weight: 600; }

.form-wrap {
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.form__title { font-size: 1.4rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field__label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink-soft); }
.field__label span[aria-hidden] { color: var(--blue); }
.field__input {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
textarea.field__input { resize: vertical; min-height: 96px; }
.field__input[aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.field__error { color: #dc2626; font-size: .82rem; margin: .35rem 0 0; min-height: 0; }
.field__error:empty { display: none; }

.radio-row { display: flex; gap: 1.2rem; }
.radio, .checkbox { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .95rem; color: var(--ink-soft); }
.field--check .checkbox { align-items: flex-start; }
.checkbox input, .radio input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; margin-top: .15rem; }

.form__status { margin: 1rem 0 0; padding: .85rem 1rem; border-radius: var(--r-sm); font-size: .95rem; font-weight: 600; }
.form__status.is-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form__status.is-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #cbd5e1; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__logo-chip { display: inline-flex; background: #fff; padding: .6rem .9rem; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.footer__logo-chip img { height: 38px; width: auto; }
.footer__desc { margin: 1.1rem 0 .9rem; font-size: .93rem; max-width: 34ch; }
.footer__slogan { font-weight: 700; color: #fff; margin: 0; }
.footer__title { color: #fff; font-size: .95rem; margin-bottom: 1rem; letter-spacing: .02em; }
.footer__col ul { display: grid; gap: .55rem; }
.footer__col a { color: #cbd5e1; font-size: .93rem; transition: color .18s ease; }
.footer__col a:hover { color: #fff; }
.footer__socials { display: flex; gap: .6rem; margin-top: 1.1rem; }
.footer__socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid #334155;
  border-radius: var(--r-sm);
  color: #cbd5e1;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.footer__socials a:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding-block: 1.5rem;
  border-top: 1px solid #1e293b;
  font-size: .85rem;
  color: #94a3b8;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-blue);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(4px); }
.modal__panel {
  position: relative;
  background: #fff;
  border-radius: var(--r-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
  animation: pop .28s ease;
}
.modal__close {
  position: absolute; top: .9rem; right: .9rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  color: var(--navy);
}
.modal__close:hover { background: #fff; color: var(--blue); }
.modal__preview { aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.5rem; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.modal__body { padding: 1.6rem; }
.modal__title { font-size: 1.5rem; margin: .6rem 0 .6rem; }
.modal__desc { color: var(--muted); margin: 0 0 1.1rem; }
.modal__body .badge--soft { margin-bottom: 1.2rem; }
.modal__body #modal-link { margin-top: .3rem; }
.modal__panel--wide { max-width: 620px; }

/* Intake form inside the dialog */
#intake-form { margin-top: 1.4rem; }
#intake-form .modal__title { margin-top: 0; }
.field__hint { color: var(--muted); font-weight: 500; }
.field-stack { display: grid; gap: .6rem; }
.radio-row--wrap { flex-wrap: wrap; gap: .8rem 1.2rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  z-index: 300;
  background: var(--navy);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 3px solid rgba(37,99,235,.55); outline-offset: 2px; border-radius: 4px; }

/* ---------- Keyframes ---------- */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,.5); } 70% { box-shadow: 0 0 0 8px rgba(37,99,235,0); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mockup { order: -1; max-width: 520px; margin-inline: auto; }
  .browser { transform: none; }
  .floating-badge--1 { left: 2%; }
  .floating-badge--2 { right: 2%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .trustbar__grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .cta__grid { grid-template-columns: 1fr; }
  .plans { }

  /* Mobile nav */
  .nav__toggle { display: flex; }
  /* Keep the logo centered in the bar; hamburger sits on the right */
  .nav__toggle { margin-left: auto; }
  .nav__right { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1rem var(--gutter) 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s ease, opacity .25s ease, visibility .25s;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: .9rem .25rem; border-bottom: 1px solid var(--border-soft); font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 1rem; text-align: center; }
  .nav__cta.btn { width: 100%; }
}

@media (max-width: 640px) {
  /* Compact header + logo (desktop keeps the large logo) */
  :root { --nav-h: 64px; }
  .nav__brand img { height: 80px; }

  .grid--3 { grid-template-columns: 1fr; }
  .trustbar__grid { grid-template-columns: 1fr 1fr; }
  .pricing__features { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.2rem; }
  .floating-badge { display: none; }

  /* Lead with the message: hide the decorative mockup, stack CTAs full-width */
  .hero__mockup { display: none; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  /* Center standalone (non-box) text on phones */
  .hero__content { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__trust { flex-direction: column; align-items: flex-start; width: fit-content; margin-inline: auto; }
  .hero__stats { justify-content: center; }
  .cta__intro { text-align: center; }
  .cta__list { width: fit-content; margin-inline: auto; }
  .cta__list li { justify-content: flex-start; }

  /* Minimal, centered footer */
  .footer__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.25rem; padding-bottom: 1.75rem; }
  .footer__brand { order: 1; }
  .footer__col--contact { order: 2; }
  .footer__col--nav { order: 3; }
  .footer__col--legal { order: 4; }
  .footer__desc { display: none; }
  .footer__title { display: none; }
  .footer__col--nav ul,
  .footer__col--legal ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; }
  .footer__col--contact ul { justify-items: center; }
  .footer__socials { justify-content: center; margin-top: .8rem; }
  .footer__bottom { justify-content: center; text-align: center; }

  /* Modals become full-screen sheets so long forms scroll naturally */
  .modal { padding: 0; }
  .modal__panel,
  .modal__panel--wide {
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }
}

@media (max-width: 400px) {
  .br-sm { display: inline; }
}

/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .browser { transform: none; }
}
