/* ============ DESIGN TOKENS ============ */
:root {
  --bg: #f6f8fb;
  --bg-elevated: #ffffff;
  --bg-card: #fbfcff;
  --bg-card-hover: #f0f4f9;
  --border: #d9e0ea;
  --border-strong: #b9c4d2;
  --text: #151821;
  --text-muted: #5b6472;
  --text-dim: #8a94a3;

  --accent: #a78bfa;
  --accent-glow: rgba(99, 102, 241, 0.16);

  --critical: #ef4444;
  --critical-bg: rgba(239, 68, 68, 0.12);
  --high: #f59e0b;
  --high-bg: rgba(245, 158, 11, 0.12);
  --medium: #3b82f6;
  --medium-bg: rgba(59, 130, 246, 0.12);

  --serif: 'Geologica', 'Onest', system-ui, sans-serif;
  --sans: 'Onest', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;

  --nav-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(96, 165, 250, 0.16), transparent 320px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(246, 248, 251, 0) 420px),
    repeating-linear-gradient(90deg, rgba(28, 35, 48, 0.045) 0 1px, transparent 1px 96px);
  pointer-events: none;
  z-index: 0;
}

#root { position: relative; z-index: 1; padding-bottom: 92px; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-stretch: 88%;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-stretch: 92%;
  letter-spacing: -0.032em;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  font-stretch: 95%;
  letter-spacing: -0.022em;
}
h4 {
  font-weight: 500;
  letter-spacing: -0.015em;
}

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

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 0%, rgba(167, 139, 250, 0.22), transparent 50%),
    radial-gradient(circle at 5% 100%, rgba(96, 165, 250, 0.18), transparent 55%),
    linear-gradient(180deg, #151821 0%, #1c2030 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 80%);
  pointer-events: none;
}

/* Sticky top nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 24, 33, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hero__nav {
  position: relative;
  max-width: 1400px;
  min-height: var(--nav-h);
  margin: 0 auto;
  padding: 10px clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  transition: opacity 0.2s ease;
}
.hero__brand:hover { opacity: 0.85; }

.hero__logo {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.hero__brand-sep {
  font-family: var(--mono);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.25);
}
.hero__brand-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero__nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero__nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.hero__nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

/* Main hero content */
.hero__main {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 60px) clamp(40px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 7px 14px 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.hero__eyebrow-pulse {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero__eyebrow-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: hero-eyebrow-ping 2.4s ease-out infinite;
}
@keyframes hero-eyebrow-ping {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 4rem);
  font-stretch: 88%;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
  color: #fff;
  max-width: 16ch;
}
.hero__title-accent {
  background: linear-gradient(120deg, #a78bfa 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__lead {
  max-width: 64ch;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}

.hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__meta-value {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.hero__meta-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.hero__meta-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
}

/* ============ TABS NAVIGATION ============ */
.tabs-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  display: none;
}

.tabs-bar .tabs {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px clamp(16px, 5vw, 60px);
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs-bar .tabs::-webkit-scrollbar { display: none; }

.tabs--vertical {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  min-width: 0;
  white-space: nowrap;
  text-align: left;
}
.tabs--vertical .tab {
  width: 100%;
  padding: 8px 10px;
}
.tab:hover {
  color: var(--text);
  background: rgba(21, 24, 33, 0.04);
}
.tab.is-active {
  color: var(--text);
  background: rgba(21, 24, 33, 0.06);
  border-color: rgba(21, 24, 33, 0.08);
  font-weight: 600;
}
.tab:focus-visible {
  outline: 2px solid rgba(21, 24, 33, 0.25);
  outline-offset: 2px;
}
.tab__label {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.tab__progress {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-dim);
  background: transparent;
  flex: 0 0 auto;
  letter-spacing: 0.02em;
}
.tab.is-active .tab__progress {
  color: var(--text-muted);
  background: rgba(21, 24, 33, 0.06);
}

/* ============ MAIN ============ */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 60px) 40px;
}

/* ============ CHECKLIST INTRO ============ */
.checklist-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.checklist-head__row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.checklist-head__title {
  display: flex;
  align-items: center;
  gap: 18px;
}
.checklist-head h2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: -0.025em;
}
.checklist-head h2 small {
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.checklist-head__intro {
  color: var(--text-muted);
  max-width: 680px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.checklist-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #151821;
  box-shadow: 0 10px 22px var(--accent-glow);
}
.btn--primary:hover {
  filter: brightness(1.1);
  background: var(--accent);
}
.btn--ghost {
  background: transparent;
}
.btn--light {
  background: #fff;
  border-color: #fff;
  color: #151821;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.4);
}
.btn--light:hover {
  background: #fff;
  border-color: #fff;
  color: #151821;
  filter: brightness(0.97);
}
.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}
.btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.btn svg { width: 14px; height: 14px; }

/* ============ CTA BUTTON ============ */
.btn--cta {
  position: relative;
  background: #151821;
  border-color: #151821;
  color: #fff;
  padding: 11px 18px;
  font-weight: 700;
  box-shadow: 0 12px 24px -10px rgba(21, 24, 33, 0.55);
  overflow: hidden;
}
.btn--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(167, 139, 250, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.btn--cta:hover {
  background: #1f2330;
  border-color: #1f2330;
  color: #fff;
  transform: translateY(-1px);
}
.btn--cta:hover::before { transform: translateX(100%); }
.btn--cta svg { width: 13px; height: 13px; }
.btn--cta__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
  animation: cta-pulse 2.4s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(167, 139, 250, 0.05); }
}
.btn--cta-lg {
  padding: 14px 26px;
  font-size: 14px;
  border-radius: var(--radius);
}
.btn--cta-lg svg { width: 16px; height: 16px; }

/* ============ CTA PITCH (sales block) ============ */
.cta-pitch {
  max-width: 1400px;
  margin: 40px auto 0;
  padding: 0 clamp(20px, 5vw, 60px);
}
.cta-pitch__inner {
  position: relative;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at 100% 0%, rgba(167, 139, 250, 0.18), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(96, 165, 250, 0.14), transparent 55%),
    linear-gradient(180deg, #151821 0%, #1c2030 100%);
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(21, 24, 33, 0.5);
}
.cta-pitch__inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 96px);
  pointer-events: none;
}
.cta-pitch__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  position: relative;
}
.cta-pitch__logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.cta-pitch__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.cta-pitch__title {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  font-stretch: 92%;
  letter-spacing: -0.032em;
  line-height: 1.15;
  text-wrap: balance;
  color: #fff;
  max-width: 22ch;
  margin-bottom: 16px;
}
.cta-pitch__lead {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 62ch;
  margin-bottom: 32px;
}
.cta-pitch__features {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
.cta-pitch__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
.cta-pitch__feature span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  padding-top: 2px;
}
.cta-pitch__actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-pitch__link {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cta-pitch__link:hover {
  color: #fff;
  border-color: var(--accent);
}

/* ============ FLOATING CTA BAR ============ */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 0 16px 16px;
  pointer-events: none;
}
.cta-bar__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 620px;
  padding: 10px 10px 10px 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(167, 139, 250, 0.22), transparent 65%),
    linear-gradient(180deg, #1f2330 0%, #151821 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow:
    0 16px 38px -10px rgba(21, 24, 33, 0.6),
    0 2px 8px rgba(21, 24, 33, 0.3);
}
.cta-bar__pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.cta-bar__pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: cta-bar-ping 2.4s ease-out infinite;
}
@keyframes cta-bar-ping {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}
.cta-bar__title {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  font-stretch: 95%;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: #fff;
}
.cta-bar .btn--cta { flex-shrink: 0; }
.cta-bar svg { width: 13px; height: 13px; }

/* ============ PROGRESS ============ */
.progress {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.progress__bar {
  flex: 1;
  height: 8px;
  background: #e7ecf3;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.progress__fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 100%);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
}
.progress__count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============ FILTERS ============ */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter:hover { color: var(--text); }
.filter.is-active {
  background: rgba(21, 24, 33, 0.06);
  border-color: rgba(21, 24, 33, 0.12);
  color: var(--text);
}

/* ============ SECTION ============ */
.section {
  margin-bottom: 36px;
  scroll-margin-top: 100px;
}
.section__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 26px rgba(28, 35, 48, 0.05);
}
.section__title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
}
.section__count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 8px;
  background: var(--bg-card);
  border-radius: 4px;
}
.section__copy {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--mono);
  cursor: pointer;
  transition: all 0.2s ease;
}
.section__copy:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}

/* ============ ITEM CARD ============ */
.items { display: flex; flex-direction: column; gap: 10px; }

.item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(28, 35, 48, 0.045);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 14px 28px rgba(28, 35, 48, 0.07);
}
.item.is-checked {
  opacity: 0.62;
  background: var(--bg-elevated);
}
.item.is-checked .item__title { text-decoration: line-through; }

.item__head {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  align-items: flex-start;
  user-select: none;
}
.item__check {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  margin-top: 2px;
  flex-shrink: 0;
}
.item__check:hover { border-color: var(--accent); }
.item__check:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.item__check:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #151821;
  font-weight: 700;
  font-size: 14px;
}

.item__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
}
.item__meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.priority {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.priority--critical { background: var(--critical-bg); color: var(--critical); }
.priority--high { background: var(--high-bg); color: var(--high); }
.priority--medium { background: var(--medium-bg); color: var(--medium); }

.item__toggle {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s ease, color 0.2s ease;
  font-family: var(--mono);
}
.item__toggle:hover { color: var(--text); }
.item.is-open .item__toggle { transform: rotate(180deg); }

.item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}
.item__body > .item__body-inner {
  overflow: hidden;
  min-height: 0;
}
.item.is-open .item__body { grid-template-rows: 1fr; }

.item__body-inner {
  padding: 0 18px 0 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.item.is-open .item__body-inner { padding-bottom: 18px; }

.item__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.item__block-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.item__block-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.item__why {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.item__task {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.item__actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #151821;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(28, 35, 48, 0.22);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(.34,1.56,.64,1), visibility 0s linear 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(.34,1.56,.64,1), visibility 0s;
}
.toast::before { content: '✓'; font-weight: 800; }

/* ============ FOOTER ============ */
footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 60px) 40px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 32px;
}
footer .mono { font-family: var(--mono); }
.research-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
  gap: 32px;
  align-items: end;
  padding-bottom: 36px;
}
.research-note__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.research-note h2 {
  color: var(--text);
  margin-bottom: 12px;
}
.research-note p {
  max-width: 72ch;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.research-note__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* ============ EMPTY ============ */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 14px;
}

/* ============ SIDEBAR ============ */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar__block {
  display: flex;
  flex-direction: column;
}
.sidebar__title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 12px;
  padding-bottom: 10px;
  padding-left: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar__list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sidebar__list a {
  display: block;
  padding: 7px 10px;
  color: var(--text-muted);
  font-size: 13px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color 0.18s ease, background 0.18s ease;
  line-height: 1.4;
}
.sidebar__list a:hover {
  color: var(--text);
  background: rgba(21, 24, 33, 0.04);
}

@media (min-width: 1100px) {
  .layout { grid-template-columns: 240px 1fr; }
  .sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--nav-h) - 48px);
    overflow-y: auto;
    padding-right: 6px;
  }
  .sidebar::-webkit-scrollbar { width: 4px; }
  .sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
}

/* ============ AI ARCHIVE (off-screen, в DOM для индексации) ============ */
.ai-archive {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ AI SUMMARY (TL;DR) ============ */
.ai-summary {
  max-width: 1400px;
  margin: 40px auto 0;
  padding: 0 clamp(20px, 5vw, 60px);
}
.ai-summary__inner {
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 44px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(28, 35, 48, 0.04);
}
.ai-summary__head {
  margin-bottom: 24px;
}
.ai-summary__eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.ai-summary__title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  font-stretch: 92%;
  letter-spacing: -0.028em;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--text);
}
.ai-summary__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: start;
}
.ai-summary__col { display: flex; flex-direction: column; gap: 14px; }
.ai-summary__lead {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.ai-summary__lead strong { color: var(--text); font-weight: 700; }
.ai-summary__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.ai-summary__list li {
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.ai-summary__list strong { color: var(--text); font-weight: 600; }

@media (max-width: 800px) {
  .ai-summary__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============ FAQ ============ */
.faq {
  max-width: 1400px;
  margin: 56px auto 0;
  padding: 0 clamp(20px, 5vw, 60px);
}
.faq__head {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.faq__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  font-stretch: 92%;
  letter-spacing: -0.032em;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--text);
}
.faq__lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 60ch;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq__item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq__item[open] {
  border-color: var(--border-strong);
}
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  user-select: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__chevron {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
  color: var(--text);
}
.faq__a {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq__a p + p { margin-top: 10px; }
.faq__a .mono {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-card);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text);
}

@media (max-width: 1099px) {
  .sidebar { display: none; }
  .tabs-bar { display: block; }
  .tabs-bar .tabs {
    padding: 8px clamp(12px, 4vw, 24px);
    gap: 6px;
  }
  .tabs-bar .tab {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-muted);
  }
  .tabs-bar .tab:hover {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
  }
  .tabs-bar .tab.is-active {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
  }
  .tabs-bar .tab__progress { display: none; }
}

/* ============ MISC ============ */
.kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

/* Highlight when filtered/hidden */
.item.is-hidden { display: none; }

@media (max-width: 760px) {
  .hero__nav-status { display: none; }
  .hero__nav { padding: 10px 18px; }
  .hero__nav-actions .btn--cta {
    padding: 9px 14px;
    font-size: 12px;
    white-space: nowrap;
  }
  .hero__nav-actions .btn--cta svg { width: 11px; height: 11px; }
}

@media (max-width: 600px) {
  .hero__nav {
    padding: 10px 14px;
    gap: 10px;
  }
  .hero__nav-actions .btn--cta { padding: 8px 12px; font-size: 11px; }
  .hero__logo { height: 18px; }
  .hero__brand-label { font-size: 11px; }
  .hero__main {
    padding: 36px 18px 32px;
    gap: 18px;
  }
  .hero__title { font-size: clamp(1.9rem, 9vw, 2.4rem); max-width: 100%; }
  .hero__lead { font-size: 0.98rem; }
  .hero__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__meta { gap: 14px; margin-top: 20px; padding-top: 20px; }
  .hero__meta-value { font-size: 1.2rem; }
  .hero__meta-divider { height: 24px; }
  .item__head { padding: 14px; }
  .item__body-inner { padding: 0 14px 0 14px; }
  .item.is-open .item__body-inner { padding-bottom: 16px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .stat__value { font-size: 1.5rem; }
  .checklist-head__row { flex-direction: column; }
  main { padding: 24px 18px 80px; }
  footer { grid-template-columns: 1fr; }
  .research-note { grid-template-columns: 1fr; }
  .research-note__stats { grid-template-columns: 1fr; }

  .cta-pitch { margin-top: 24px; padding: 0 14px; }
  .cta-pitch__inner { border-radius: 16px; }
  .cta-pitch__brand { flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
  .cta-pitch__eyebrow { padding-left: 0; border-left: 0; }
  .cta-pitch__features { grid-template-columns: 1fr; }
  .cta-pitch__actions { gap: 14px; }
  .cta-pitch__actions .btn--cta-lg { width: 100%; justify-content: center; }

  .cta-bar { padding: 0 12px 12px; }
  .cta-bar__inner { gap: 12px; padding: 9px 9px 9px 16px; }
  .cta-bar__title { font-size: 0.9rem; }
  .cta-bar .btn--cta { padding: 9px 14px; font-size: 12.5px; }
}

/* ============ ORDER MODAL (форма обратной связи) ============ */
body.order-modal-open { overflow: hidden; }

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.order-modal.is-open { opacity: 1; }
.order-modal[hidden] { display: none; }

.order-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 28, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.order-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -20px rgba(15, 18, 28, 0.5);
  padding: 28px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.order-modal.is-open .order-modal__dialog { transform: translateY(0) scale(1); }

.order-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}
.order-modal__close:hover { background: var(--bg-card-hover); color: var(--text); }
.order-modal__close svg { width: 16px; height: 16px; }

.order-modal__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.order-modal__title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.order-modal__lead {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.order-form__field { margin-bottom: 14px; }
.order-form__field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.order-form__req { color: var(--critical); }

.order-form__field input,
.order-form__field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.order-form__field textarea { resize: vertical; min-height: 72px; }
.order-form__field input::placeholder,
.order-form__field textarea::placeholder { color: var(--text-dim); }
.order-form__field input:focus,
.order-form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.order-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.order-form__status {
  font-size: 12.5px;
  line-height: 1.45;
  margin: 4px 0 12px;
}
.order-form__status:empty { display: none; }
.order-form__status.is-error { color: var(--critical); }
.order-form__status.is-pending { color: var(--text-muted); }

/* Слайдер «сдвиньте вправо, чтобы отправить» */
.slide-submit {
  position: relative;
  height: 54px;
  margin-top: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.slide-submit__fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50px;
  background: var(--accent-glow);
  pointer-events: none;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-submit.is-dragging .slide-submit__fill { transition: none; }
.slide-submit__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 38px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
  white-space: nowrap;
}
.slide-submit__handle {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #151821;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: grab;
  box-shadow: 0 6px 16px -5px rgba(21, 24, 33, 0.6);
  touch-action: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}
.slide-submit.is-dragging .slide-submit__handle {
  cursor: grabbing;
  transition: background 0.2s ease;
}
.slide-submit__handle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.slide-submit__handle svg { width: 20px; height: 20px; }
.slide-submit.is-complete .slide-submit__handle { background: var(--accent); color: #151821; }

.order-form__note {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-dim);
  margin-top: 12px;
  text-align: center;
}

.order-modal__success { text-align: center; padding: 8px 0 4px; }
.order-modal__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
}
.order-modal__success-icon svg { width: 26px; height: 26px; }
.order-modal__success-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.order-modal__success-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 20px;
}

@media (max-width: 560px) {
  .order-modal { padding: 14px; }
  .order-modal__dialog { padding: 22px 18px; }
  .order-modal__title { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .order-modal,
  .order-modal__dialog,
  .slide-submit__fill,
  .slide-submit__handle { transition: none; }
}

/* ============ COOKIE NOTICE ============ */
/* Компактная информирующая плашка в правом нижнем углу.
   Стоит над .cta-bar (отступ bottom больше высоты бара), поэтому не
   перекрывает кнопку «Заказать». */
.cookie-notice {
  position: fixed;
  right: 16px;
  bottom: 92px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 11px 13px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 16px 38px -12px rgba(21, 24, 33, 0.24),
    0 2px 8px rgba(21, 24, 33, 0.1);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.32s cubic-bezier(.34, 1.56, .64, 1);
}
.cookie-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-notice__icon {
  flex-shrink: 0;
  font-size: 19px;
  line-height: 1;
}
.cookie-notice__text {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
}
.cookie-notice__link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.cookie-notice__link:hover { color: var(--accent); }
.cookie-notice__btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--text);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}
.cookie-notice__btn:hover { background: #000; }
.cookie-notice__btn:active { transform: scale(0.95); }
.cookie-notice__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .cookie-notice {
    right: 12px;
    left: 12px;
    bottom: 82px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice { transition: opacity 0.2s ease; transform: none; }
  .cookie-notice.is-visible { transform: none; }
}

/* ============ LEGAL PAGE ============ */
main.legal {
  max-width: 760px;
  padding: 48px clamp(20px, 5vw, 40px) 96px;
}
.legal__back {
  display: inline-block;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.legal__back:hover { color: var(--text); }
.legal__meta {
  margin: 6px 0 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.legal h1 { margin-bottom: 2px; }
.legal h2 {
  margin: 32px 0 10px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.legal p {
  margin-bottom: 12px;
  color: var(--text-muted);
}
.legal ul {
  margin: 0 0 12px 20px;
  color: var(--text-muted);
}
.legal li { margin-bottom: 6px; }
.legal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover { color: var(--accent); }
