/* ==========================================================================
   AI Advokat — v2
   Venture AI Labs design system: warm neutrals, deep blue accent,
   PT Serif headlines, Onest body. Restrained motion via Motion CDN.
   ========================================================================== */

:root {
  /* Warm paper neutrals */
  --bg:           #FAFAF9;
  --bg-elev:      #FFFCF7;
  --bg-tint:      #F1EEE6;
  --ink:          #0F0F0F;
  --ink-soft:     #2A2723;
  --muted:        #6B6760;
  --muted-soft:   #A6A097;
  --line:         #E6E1D5;
  --line-soft:    #EFEBE0;

  /* Dark graphite (used for cases + final CTA) — not pure black */
  --dark-bg:      #0F0F0F;
  --dark-elev:    #1A1815;
  --dark-line:    #2A2723;
  --dark-ink:     #FAFAF9;
  --dark-muted:   #A6A097;

  /* Accent — deep blue + wine */
  --accent:       #1e3a5f;
  --accent-2:     #2A4F7A;
  --accent-soft:  #DDE4EF;
  --accent-deep:  #122747;
  --accent-ink:   #FAFAF9;
  --wine:         #6b1f2e;
  --wine-soft:    #EDD9DC;

  /* Type */
  --serif: 'PT Serif', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --sans:  'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Geometry */
  --container:        1200px;
  --container-narrow: 880px;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;

  /* Motion */
  --easing: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: 'ss01', 'cv11';
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.section--first { border-top: none; padding-top: 64px; }

.section--dark {
  background: var(--dark-bg);
  color: var(--dark-ink);
  border-top-color: var(--dark-bg);
}

.section--dark + .section { border-top-color: var(--line); }

.section--tint { background: var(--bg-tint); }
.section--tint + .section { border-top-color: var(--line); }

/* ---------- Eyebrow (Onest uppercase + tracking) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.section--dark .eyebrow { color: var(--dark-muted); }
.section--dark .eyebrow .dot { background: var(--accent-2); }

/* ---------- Section title (PT Serif) ---------- */
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.06;
  margin: 0 0 20px;
  text-wrap: balance;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 64px;
  line-height: 1.5;
}

.section--dark .section-lede { color: var(--dark-muted); }

/* ---------- HEADER (sticky) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--easing), background 0.25s var(--easing);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 17px;
  color: var(--ink);
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  position: relative;
  line-height: 1;
}

.brand__word b { font-weight: 600; }
.brand__word span { color: var(--muted); font-weight: 400; }

.section--dark .brand,
.site-footer .brand { color: inherit; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--bg);
  transition: transform 0.18s var(--easing), background 0.2s var(--easing),
              box-shadow 0.2s var(--easing), border-color 0.2s var(--easing);
  text-align: center;
  white-space: nowrap;
  will-change: transform;
}

.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--lg {
  padding: 18px 32px;
  font-size: 17px;
  border-radius: 12px;
}

.btn--xl {
  padding: 22px 38px;
  font-size: 18px;
  border-radius: 12px;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--bg-elev); border-color: var(--ink); transform: none; }

.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-2); }

.btn--invert {
  background: var(--bg);
  color: var(--accent-deep);
}
.btn--invert:hover { background: var(--bg-elev); color: var(--accent); }

.btn .arrow {
  width: 14px; height: 14px;
  transition: transform 0.2s var(--easing);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- HERO ---------- */
.hero {
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: center;
}

.hero__copy { max-width: 560px; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}
.hero__tag .pill {
  padding: 3px 10px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 28px;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  position: relative;
}

.hero__sub {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 40px;
}

.hero__sub b { color: var(--ink); font-weight: 500; }

.hero__cta-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hint {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.hint b { color: var(--ink); font-weight: 500; }

/* ---------- HERO TECH-DEMO ---------- */
.tech-demo {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 30px 60px -28px rgba(15,15,15,0.18),
    0 12px 24px -14px rgba(15,15,15,0.08);
}

.tech-demo__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.tech-demo__chrome-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tech-demo__chrome-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.tech-demo__chrome-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.tech-demo__chrome-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
.tech-demo.is-scanning .tech-demo__chrome-status::before {
  opacity: 1;
}

.tech-demo__body {
  position: relative;
  padding: 28px 28px 32px;
  height: calc(100% - 50px);
}

.tech-demo__doc {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.tech-demo__line {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: var(--line-soft);
  transition: background 0.4s var(--easing);
}
.tech-demo__line--short { width: 65%; }
.tech-demo__line--mid   { width: 86%; }

.tech-demo__line--violation {
  background: var(--line);
}
.tech-demo__line--violation.is-flagged {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(30, 58, 95, 0.18);
}

.tech-demo__cite {
  position: absolute;
  right: -4px;
  top: -22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  white-space: nowrap;
}
.tech-demo__cite::before {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 16px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

.tech-demo__sweep {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 32px;
  background:
    linear-gradient(180deg,
      rgba(30, 58, 95, 0) 0%,
      rgba(30, 58, 95, 0.05) 50%,
      rgba(30, 58, 95, 0) 100%);
  border-top: 1px solid rgba(30, 58, 95, 0.2);
  pointer-events: none;
  opacity: 0;
}

.tech-demo__summary {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(8px);
}
.tech-demo__summary-num {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.tech-demo__summary-label {
  letter-spacing: -0.005em;
}
.tech-demo__summary-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero__layout { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { max-width: 100%; }
  .tech-demo { max-width: 560px; margin: 0 auto; }
}

/* ---------- WHAT YOU GET ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benefit {
  padding: 56px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 280px;
}

.benefit + .benefit {
  border-left: 1px solid var(--line);
}

.benefit__num {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.benefit__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
}
.benefit__icon svg { width: 28px; height: 28px; }

.benefit h3 {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

.benefit__hint {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- REPORT EXAMPLE ---------- */
.report-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow:
    0 30px 60px -28px rgba(15,15,15,0.18),
    0 12px 24px -14px rgba(15,15,15,0.08);
}

.report-frame__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.report-frame__dots {
  display: flex; gap: 6px;
}
.report-frame__dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line);
}
.report-frame__title { flex: 1; text-align: center; }
.report-frame__action {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-slot {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: var(--bg-tint);
  padding: 24px;
}

.report-frame__caption {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- REPORT CAROUSEL ---------- */
.report__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}
.report__head-text { flex: 1; }
.report__head-text .section-lede { margin-bottom: 0; }

.report-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -8px;
  padding: 8px;
}
.report-carousel::-webkit-scrollbar { display: none; }
.report-carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 16px; }

.report-carousel .report-frame {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.report__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.report__controls .cases__dots {
  margin-top: 0;
}

@media (max-width: 760px) {
  .report__head { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ---------- CASES (dark, slider) ---------- */
.cases__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.cases__nav {
  display: flex;
  gap: 10px;
}

.cases__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  transition: background 0.2s var(--easing), border-color 0.2s var(--easing),
              color 0.2s var(--easing), opacity 0.2s var(--easing);
}
.cases__arrow:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}
.cases__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.cases__arrow svg { width: 18px; height: 18px; }

.cases {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}
.cases::-webkit-scrollbar { display: none; }
.cases:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; border-radius: 8px; }

.case {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: center;
}

.cases__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.cases__dots button {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  border: none;
  background: var(--dark-line);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s var(--easing), width 0.2s var(--easing);
}
.cases__dots button.is-active {
  background: var(--accent-2);
  width: 44px;
}

.case__photo {
  width: 280px;
  height: 360px;
  border-radius: 14px;
  background: var(--dark-elev);
  overflow: hidden;
  border: 1px solid var(--dark-line);
}

.case__quote-mark {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--dark-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.case__quote-mark::before {
  content: ''; width: 32px; height: 1px; background: var(--dark-muted);
}

.case__quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 400;
  font-style: italic;
  margin: 28px 0 36px;
  color: var(--dark-ink);
  text-wrap: balance;
}

.case__quote em { font-style: italic; color: var(--bg-tint); }

.case__signature {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: var(--dark-muted);
  font-style: normal;
}
.case__signature .name { color: var(--dark-ink); font-weight: 500; }
.case__signature .sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--dark-muted);
}

/* ---------- METRICS ---------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 16px;
}

.metric {
  padding: 48px 28px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.metric + .metric { border-left: 1px solid var(--line); }

.metric__num {
  font-family: var(--serif);
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
  font-feature-settings: 'tnum';
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.metric__unit {
  font-size: 0.55em;
  color: var(--accent);
  font-weight: 700;
  margin-left: 4px;
}
.metric__suffix {
  font-size: 0.42em;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-left: 6px;
  align-self: center;
  font-family: var(--sans);
  text-transform: uppercase;
}
.metric__multi {
  font-size: 0.85em;
  font-weight: 700;
  color: var(--accent);
  margin-right: 2px;
}

.metric__label {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: balance;
}

.metrics__note {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted-soft);
  line-height: 1.6;
  letter-spacing: 0.04em;
  max-width: 720px;
}

@media (max-width: 760px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric { padding: 32px 22px; }
  .metric:nth-child(2) { border-left: 1px solid var(--line); }
  .metric:nth-child(3), .metric:nth-child(4) { border-top: 1px solid var(--line); }
  .metric:nth-child(3) { border-left: none; }
  .metric:nth-child(4) { border-left: 1px solid var(--line); }
}

/* ---------- SECURITY ---------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}

.sec-card {
  background: var(--bg-elev);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 200px;
}

.sec-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.sec-card__icon svg { width: 26px; height: 26px; }

.sec-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

@media (max-width: 760px) {
  .security-grid { grid-template-columns: 1fr; }
  .sec-card { min-height: auto; padding: 28px 24px; }
}

/* ---------- PRICING ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.plan {
  padding: 36px 32px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: border-color 0.25s var(--easing),
              transform 0.25s var(--easing),
              box-shadow 0.25s var(--easing);
}

.plan:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow:
    0 24px 48px -28px rgba(30, 58, 95, 0.25),
    0 10px 20px -14px rgba(30, 58, 95, 0.15);
}

.plan--featured {
  background: var(--dark-bg);
  color: var(--dark-ink);
  border-color: var(--dark-bg);
}
.plan--featured:hover {
  border-color: var(--accent-2);
  box-shadow:
    0 0 0 1px rgba(30, 58, 95, 0.5),
    0 28px 60px -30px rgba(30, 58, 95, 0.55),
    0 14px 28px -18px rgba(0, 0, 0, 0.5);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 5px 12px;
  background: var(--wine);
  color: var(--accent-ink);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  line-height: 1.4;
}

.plan__name {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan--featured .plan__name { color: var(--dark-muted); }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan__price .from {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
}
.plan--featured .plan__price .from { color: var(--dark-muted); }
.plan__price .num {
  font-family: var(--serif);
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.plan__price .unit {
  font-size: 16px;
  color: var(--muted);
}
.plan--featured .plan__price .unit { color: var(--dark-muted); }

.plan__notes {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.plan--featured .plan__notes { color: #D6D2C5; }

.plan__notes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan__notes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.plan__notes li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
  flex-shrink: 0;
}
.plan--featured .plan__notes li::before { background: var(--accent-2); }

.plan .btn {
  margin-top: auto;
  width: 100%;
}

/* Pricing tiers dropdown */
.plan__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.plan__toggle-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--easing);
}
.plan__toggle.is-open .plan__toggle-chevron {
  transform: rotate(180deg);
}

.plan__tiers {
  display: flex;
  flex-direction: column;
  max-height: 0;
  opacity: 0;
  margin-top: -8px;
  transform: translateY(-4px);
  transition: max-height 0.32s var(--easing), opacity 0.25s var(--easing),
              transform 0.25s var(--easing), margin-top 0.25s var(--easing);
  pointer-events: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.plan__tiers.is-open {
  max-height: 240px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 4px;
  pointer-events: auto;
}

.tier-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 0.2s var(--easing), color 0.2s var(--easing);
}
.tier-row:last-child { border-bottom: none; }
.tier-row:hover {
  color: var(--accent);
  padding-left: 8px;
}

.tier-row__pages {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  flex-shrink: 0;
}

.tier-row__divider {
  flex: 1;
  height: 1px;
  background-image: linear-gradient(90deg, var(--line) 50%, transparent 50%);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  opacity: 0.7;
}

.tier-row__price {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
  letter-spacing: -0.005em;
}
.tier-row__price em {
  font-style: normal;
  font-family: var(--sans);
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-left: 4px;
  letter-spacing: 0;
}

.tier-row__arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.3;
  transition: opacity 0.2s var(--easing), transform 0.2s var(--easing);
}
.tier-row:hover .tier-row__arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Dark variant for featured plan */
.plan__tiers--dark {
  border-top-color: var(--dark-line);
  border-bottom-color: var(--dark-line);
}
.plan__tiers--dark .tier-row {
  color: #D6D2C5;
  border-bottom-color: var(--dark-line);
}
.plan__tiers--dark .tier-row:hover {
  color: var(--bg);
}
.plan__tiers--dark .tier-row__divider {
  background-image: linear-gradient(90deg, var(--dark-line) 50%, transparent 50%);
}
.plan__tiers--dark .tier-row__price {
  color: var(--bg);
}
.plan__tiers--dark .tier-row__price em {
  color: var(--dark-muted);
}

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--ink);
  transition: color 0.2s var(--easing);
  line-height: 1.3;
}
.faq-item__btn:hover { color: var(--accent); }

.faq-item__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  transition: transform 0.3s var(--easing), background 0.2s var(--easing),
              border-color 0.2s var(--easing);
}
.faq-item__icon::before, .faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  border-radius: 1px;
}
.faq-item__icon::before { width: 12px; height: 1.5px; }
.faq-item__icon::after { width: 1.5px; height: 12px; transition: transform 0.3s var(--easing); }

.faq-item.is-open .faq-item__icon { background: var(--accent); border-color: var(--accent); }
.faq-item.is-open .faq-item__icon::before,
.faq-item.is-open .faq-item__icon::after { background: var(--accent-ink); }
.faq-item.is-open .faq-item__icon::after { transform: rotate(90deg); }

.faq-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--easing);
}

.faq-item__answer {
  padding: 0 0 28px;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- FINAL CTA (dark) ---------- */
.final-cta {
  padding: 140px 0 160px;
  text-align: center;
}

.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--dark-ink);
  text-wrap: balance;
}
.final-cta h2 em {
  font-style: italic;
  color: var(--accent-2);
}

.final-cta__sub {
  font-size: 19px;
  color: var(--dark-muted);
  margin: 0 auto 48px;
  max-width: 540px;
}

.final-cta .hint { color: var(--dark-muted); margin-top: 18px; }
.final-cta .hint b { color: var(--dark-ink); }

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  background: var(--bg);
}
.site-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer__legal {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-soft);
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.site-footer__links {
  display: flex; gap: 28px;
}
.site-footer__links a:hover { color: var(--ink); }

/* ---------- ENTRANCE STATES (Motion targets) ---------- */
[data-anim] {
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}
[data-anim="fade"] {
  transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .section { padding: 88px 0; }
  .benefits { grid-template-columns: 1fr; }
  .benefit + .benefit { border-left: none; border-top: 1px solid var(--line); }
  .benefit { min-height: auto; padding: 40px 28px; }
  .case { grid-template-columns: 1fr; gap: 36px; }
  .case__photo { width: 220px; height: 280px; }
  .cases { gap: 24px; }
  .cases__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .final-cta { padding: 96px 0 112px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .site-header__inner { padding: 0 20px; height: 60px; }
  .hero { padding: 48px 0 64px; }
  .hero__sub { font-size: 17px; }
  .section-title { font-size: 32px; }
  .case__quote { font-size: 24px; }
  .plan__price .num { font-size: 48px; }
  .faq-item__btn { font-size: 19px; padding: 22px 0; }
  .site-footer__row { flex-direction: column; align-items: flex-start; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim] { opacity: 1; transform: none; }
  .tech-demo__sweep { display: none; }
  .tech-demo__line--violation { background: var(--accent-soft); }
  .tech-demo__cite { opacity: 1; transform: none; }
  .tech-demo__summary { opacity: 1; transform: none; }
  .btn:hover, .plan:hover, .metric:hover { transform: none !important; }
}
