/* ==========================================================================
   NextGenAI LLC — nextgenai.top
   Global stylesheet. Light editorial theme. No external dependencies.
   ========================================================================== */

/* -------------------------------- Tokens -------------------------------- */
:root {
  color-scheme: light;

  --bg:            #fbfaf9;
  --bg-2:          #f4f2ef;
  --surface:       #ffffff;
  --surface-2:     #f6f4f1;
  --border:        rgba(20, 19, 26, .10);
  --border-strong: rgba(20, 19, 26, .20);

  --text:          #14131a;
  --text-muted:    #55525f;
  --text-dim:      #6d6a77;   /* AA-compliant on --bg and --bg-2 */

  --brand:         #4f46e5;   /* indigo — primary                        */
  --brand-2:       #c2410c;   /* orange — accent, AA-compliant as text   */
  --brand-2-vivid: #ea580c;   /* brighter orange — decorative fills only */
  --brand-3:       #7c3aed;   /* violet — support                        */

  --gradient:      linear-gradient(115deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-warm: linear-gradient(100deg, #4f46e5 0%, #7c3aed 52%, #ea580c 100%);
  --gradient-soft: linear-gradient(115deg, rgba(79, 70, 229, .055), rgba(234, 88, 12, .045));

  --success:       #047857;
  --danger:        #b91c1c;

  --radius:        16px;
  --radius-sm:     10px;
  --radius-lg:     26px;

  --shadow-sm:     0 1px 2px rgba(20, 19, 26, .05);
  --shadow:        0 1px 2px rgba(20, 19, 26, .04), 0 16px 40px -18px rgba(20, 19, 26, .18);
  --shadow-lift:   0 2px 4px rgba(20, 19, 26, .05), 0 22px 48px -20px rgba(20, 19, 26, .24);
  --shadow-brand:  0 12px 30px -12px rgba(79, 70, 229, .55);

  --maxw:          1180px;
  --nav-h:         72px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.022em;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.32rem); }
p  { margin: 0 0 1.05em; color: var(--text-muted); }

::selection { background: rgba(79, 70, 229, .18); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------- Layout --------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: clamp(64px, 9vw, 116px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 74px) 0; }
.section--alt { background: var(--bg-2); }

.section-head { max-width: 680px; margin: 0 auto clamp(38px, 5vw, 60px); text-align: center; }
.section-head p { font-size: 1.04rem; }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 16px;
  padding: 6px 13px;
  border: 1px solid rgba(194, 65, 12, .30);
  border-radius: 999px;
  background: rgba(194, 65, 12, .07);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
}

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

/* ------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { box-shadow: 0 18px 40px -14px rgba(79, 70, 229, .65); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--sm { padding: 10px 18px; font-size: .875rem; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

/* -------------------------------- Header -------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(251, 250, 249, .86);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px -10px rgba(20, 19, 26, .25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  font-size: 1.06rem;
  letter-spacing: -.02em;
  flex-shrink: 0;
  color: var(--text);
}
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .7);
  flex-shrink: 0;
}
.brand__mark svg { width: 19px; height: 19px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__links a.is-active { color: var(--brand); background: rgba(79, 70, 229, .09); font-weight: 600; }

.nav__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  place-items: center;
}
.nav__toggle span {
  display: block;
  width: 17px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: background .2s;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(56px, 9vw, 104px)) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}
.hero--page { padding-bottom: clamp(40px, 5vw, 64px); }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__bg::before {
  content: "";
  position: absolute;
  top: -300px; left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 130vw);
  height: 720px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(79, 70, 229, .16), transparent 70%);
  filter: blur(20px);
}
.hero__bg::after {
  content: "";
  position: absolute;
  top: 40px; right: -200px;
  width: 640px; height: 640px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(234, 88, 12, .13), transparent 70%);
  filter: blur(30px);
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 19, 26, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 19, 26, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 26%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 26%, #000 20%, transparent 78%);
}

.hero__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hero__inner p.lead {
  font-size: clamp(1.02rem, 1.8vw, 1.19rem);
  max-width: 640px;
  margin-inline: auto;
  color: var(--text-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: center;
  margin-top: 30px;
}
.hero__note {
  margin-top: 20px;
  font-size: .85rem;
  color: var(--text-dim);
}

/* Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trust svg { width: 16px; height: 16px; color: var(--brand-2); flex-shrink: 0; }

/* --------------------------------- Cards -------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, .30);
  box-shadow: var(--shadow-lift);
}
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card h3 { margin-bottom: .4em; }
.card p { margin-bottom: 0; font-size: .95rem; }

.card__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  margin-bottom: 18px;
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .7);
}
.card__icon svg { width: 22px; height: 22px; color: #fff; }

.card__list { margin-top: 16px; display: grid; gap: 8px; }
.card__list li {
  display: flex;
  gap: 9px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.card__list li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-2);
}

/* Numbered process steps */
.step { position: relative; padding-top: 8px; }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(194, 65, 12, .30);
  background: rgba(194, 65, 12, .08);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-2);
  margin-bottom: 16px;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.stat__value {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -.03em;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat__label { font-size: .84rem; color: var(--text-dim); margin-top: 6px; }

/* Split feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split__media {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(79, 70, 229, .10), rgba(194, 65, 12, .07));
  padding: 26px;
  box-shadow: var(--shadow);
}
.mock {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(20, 19, 26, .15); }
.mock__body { padding: 18px; display: grid; gap: 12px; }
.mock__row { display: flex; align-items: center; gap: 12px; }
.mock__thumb {
  width: 74px; height: 44px;
  border-radius: 7px;
  background: var(--gradient);
  flex-shrink: 0;
  display: grid; place-items: center;
}
.mock__thumb svg { width: 16px; height: 16px; color: #fff; }
.mock__lines { flex: 1; display: grid; gap: 7px; }
.mock__line { height: 8px; border-radius: 99px; background: rgba(20, 19, 26, .10); }
.mock__line.w-70 { width: 70%; }
.mock__line.w-45 { width: 45%; }
.mock__line.w-90 { width: 90%; }
.mock__track {
  height: 26px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.mock__track::after {
  content: "";
  position: absolute;
  inset: 3px auto 3px 3px;
  width: 58%;
  border-radius: 5px;
  background: var(--gradient);
}

/* Checklist */
.checklist { display: grid; gap: 13px; margin: 22px 0 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: .96rem; }
.checklist svg { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.checklist strong { color: var(--text); }

/* -------------------------------- Pricing ------------------------------- */
.price-matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.svc-price {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.svc-price:hover { border-color: rgba(79, 70, 229, .28); box-shadow: var(--shadow); }
.svc-price__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.svc-price__head .card__icon { margin-bottom: 0; flex-shrink: 0; }
.svc-price__head h3 { margin-bottom: .25em; }
.svc-price__head p { margin: 0; font-size: .9rem; }

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; flex: 1; }

.tier {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.tier--pro {
  border-color: rgba(79, 70, 229, .35);
  background: linear-gradient(180deg, rgba(79, 70, 229, .07), var(--surface) 60%);
}
.tier__name {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tier--pro .tier__name { color: var(--brand); }
.tier__price {
  font-size: 1.85rem;
  font-weight: 750;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.15;
  margin: 6px 0 2px;
}
.tier__price small { font-size: .78rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0; display: block; margin-top: 2px; }
.tier__list { display: grid; gap: 7px; margin: 14px 0 0; flex: 1; }
.tier__list li {
  display: flex;
  gap: 8px;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.tier__list li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 7px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand-2);
}
.tier .btn { margin-top: 18px; }

.price-footnote {
  max-width: 760px;
  margin: 30px auto 0;
  text-align: center;
  font-size: .88rem;
  color: var(--text-dim);
}
.price-footnote a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------- FAQ ---------------------------------- */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s;
}
.faq__item[open] { border-color: rgba(79, 70, 229, .30); box-shadow: var(--shadow); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--brand-2);
  transition: transform .25s ease;
  flex-shrink: 0;
  line-height: 1;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 20px 18px; }
.faq__a p { margin: 0; font-size: .95rem; }
.faq__a a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------- CTA ---------------------------------- */
.cta-band {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(38px, 6vw, 62px) clamp(24px, 5vw, 56px);
  text-align: center;
  background: linear-gradient(140deg, rgba(79, 70, 229, .10), rgba(194, 65, 12, .08));
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255, 255, 255, .7), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: .35em; }
.cta-band p { max-width: 560px; margin-inline: auto; color: var(--text-muted); }
.cta-band .hero__actions { margin-top: 26px; }

/* --------------------------------- Forms -------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 52px); align-items: start; }

.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(24px, 3.5vw, 38px);
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .87rem; font-weight: 600; color: var(--text); }
.field label span { color: var(--brand-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 132px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386828f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field--row .field { margin-bottom: 0; }

.form-consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .84rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.55;
}
.form-consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.form-consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  border: 1px solid;
}
.form-status.is-visible { display: block; }
.form-status.is-success { border-color: rgba(4, 120, 87, .35); background: rgba(4, 120, 87, .07); color: #065f46; }
.form-status.is-error   { border-color: rgba(185, 28, 28, .35); background: rgba(185, 28, 28, .06); color: #991b1b; }

.info-list { display: grid; gap: 16px; }
.info-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.info-item svg { width: 21px; height: 21px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.info-item h4 { margin: 0 0 4px; font-size: .95rem; }
.info-item p, .info-item address {
  margin: 0;
  font-size: .92rem;
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.6;
}
.info-item a { color: var(--brand); }
.info-item a:hover { text-decoration: underline; }

/* -------------------------------- Legal --------------------------------- */
.legal { padding: calc(var(--nav-h) + 56px) 0 clamp(56px, 8vw, 96px); }
.legal__wrap { max-width: 860px; margin-inline: auto; }
.legal__meta {
  font-size: .85rem;
  color: var(--text-dim);
  padding-bottom: 22px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--border);
}
.legal h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin-bottom: .35em; }
.legal h2 {
  font-size: 1.3rem;
  margin: 2.4em 0 .7em;
  padding-top: 4px;
  letter-spacing: -.015em;
}
.legal h2:first-of-type { margin-top: 1.4em; }
.legal h3 { font-size: 1.04rem; margin: 1.7em 0 .5em; }
.legal p, .legal li { color: var(--text-muted); font-size: .97rem; }
.legal ul, .legal ol { margin: 0 0 1.1em; padding-left: 22px; list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: .5em; }
.legal a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--brand-2); }
.legal strong { color: var(--text); font-weight: 600; }
.legal address {
  font-style: normal;
  color: var(--text-muted);
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin: 1.2em 0;
  font-size: .95rem;
  line-height: 1.75;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: .92rem;
  background: var(--surface);
}
.legal table th, .legal table td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-muted);
}
.legal table th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.legal-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 8px; }
.legal-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.legal-index a:hover {
  border-color: rgba(79, 70, 229, .35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--text);
}
.legal-index a::after { content: "→"; color: var(--brand-2); }

/* -------------------------------- Footer -------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: clamp(48px, 6vw, 72px) 0 30px;
  margin-top: auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px 28px;
  padding-bottom: 40px;
}
.footer__about p { font-size: .92rem; max-width: 320px; margin-top: 16px; }
.footer__about address {
  font-style: normal;
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: 14px;
}
.footer__about address a { color: var(--brand); }
.footer__about address a:hover { text-decoration: underline; }
.footer__col h4 {
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: .92rem; color: var(--text-muted); transition: color .2s; }
.footer__col a:hover { color: var(--brand); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--text-dim);
}
.footer__bottom p { margin: 0; font-size: .85rem; color: var(--text-dim); }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__legal-links a:hover { color: var(--brand); }

/* ------------------------------ Animations ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------- Breadcrumbs ------------------------------ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .84rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .price-matrix { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav__toggle { display: grid; }
  .nav__cta .btn--ghost { display: none; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 12px; right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 12px 14px; font-size: 1rem; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .field--row { grid-template-columns: 1fr; gap: 18px; }
  .trust { gap: 10px 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* -------------------------------- Print --------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .hero__bg, .grid-overlay, .cta-band { display: none !important; }
  .legal { padding-top: 0; }
  .legal p, .legal li, .legal h1, .legal h2, .legal h3 { color: #000; }
  .legal a { color: #000; }
}
