/* ModernBroke landing — offer redesign (R6).
   Premium, trustworthy, fast. System: Manrope (self-hosted, variable) + craft.
   Palette: teal/emerald (non-WB). Финальный копирайт — за R11/фаундером. */

/* ---------- Fonts: self-hosted Manrope (variable 200–800), split by script ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  /* ink / neutrals */
  --ink: #15161c;
  --ink-2: #41475a;
  --ink-3: #5c6370;
  --ink-4: #8a90a0;
  --paper: #ffffff;
  --paper-2: #f6f6fb;
  --paper-3: #eef0f7;
  --line: #e6e7ef;
  --line-2: #d8dae6;

  /* brand (teal/emerald — намеренно НЕ фиолетовый цвет WB) */
  --brand: #0f766e;
  --brand-2: #0d9488;
  --brand-strong: #115e59;
  --brand-ink: #134e4a;
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --grad: linear-gradient(135deg, #0d9488 0%, #0f766e 55%, #115e59 100%);

  /* dark surface */
  --dark: #0d1a17;
  --dark-2: #16302c;
  --on-dark: #e6f3f0;
  --on-dark-2: #9db8b2;
  --on-dark-line: rgba(255, 255, 255, 0.12);

  /* shape */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --pill: 999px;

  /* elevation */
  --sh-sm: 0 1px 2px rgba(20, 22, 30, 0.05), 0 1px 1px rgba(20, 22, 30, 0.03);
  --sh: 0 6px 20px -6px rgba(20, 22, 30, 0.12), 0 2px 8px -3px rgba(20, 22, 30, 0.07);
  --sh-lg: 0 28px 56px -20px rgba(19, 78, 74, 0.26), 0 10px 22px -10px rgba(20, 22, 30, 0.12);
  --sh-brand: 0 12px 28px -8px rgba(15, 118, 110, 0.45);

  /* layout */
  --container: 1080px;
  --narrow: 760px;
  --pad-x: clamp(20px, 5vw, 28px);
  --section-y: clamp(60px, 9vw, 108px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t: 180ms var(--ease);

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* defensive: no horizontal scroll on any viewport */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

section {
  padding-block: var(--section-y);
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.95rem, 6.4vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--t);
}

a:hover {
  color: var(--brand-strong);
}

/* centered section headings for the marketing flow */
:where(.pains, .why, .how, .features, .pricing, .faq, .lead) > .container > h2 {
  text-align: center;
  max-width: 22ch;
  margin-inline: auto;
}

/* ---------- Focus (accessibility) ---------- */
:focus-visible {
  outline: 2.5px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.85em 1.6em;
  border: 0;
  border-radius: var(--r);
  background: var(--paper-3);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--t),
    box-shadow var(--t),
    background var(--t),
    filter var(--t);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--sh-brand);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: saturate(1.08) brightness(1.04);
  box-shadow: 0 18px 36px -10px rgba(15, 118, 110, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-small {
  min-height: 40px;
  padding: 0.55em 1.1em;
  font-size: 0.95rem;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.logo::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background:
    var(--grad),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size:
    cover,
    14px 14px;
  box-shadow: var(--sh-brand);
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  position: relative;
  color: var(--ink-2);
  font-weight: 550;
  font-size: 0.98rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header .btn {
  margin-left: 4px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px) clamp(48px, 7vw, 80px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(42% 55% at 78% 12%, rgba(13, 148, 136, 0.18), transparent 70%),
    radial-gradient(38% 50% at 12% 0%, rgba(17, 94, 89, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  margin-bottom: 0.5em;
}

.hero-sub {
  max-width: 52ch;
  margin: 0 auto 1.9em;
  font-size: clamp(1.08rem, 2.4vw, 1.27rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.hero .btn-primary {
  font-size: 1.06rem;
  padding-inline: 1.9em;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 1.35em 0 0;
  font-size: 0.92rem;
  color: var(--ink-3);
}

.hero-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Hero visual — pure-CSS storefront mock (decorative, no copy) */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: clamp(34px, 5vw, 52px) auto 0;
  perspective: 1600px;
}

.mock-window {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform: rotateX(7deg) scale(0.99);
  transform-origin: center top;
  transition: transform 500ms var(--ease);
}

.hero-art:hover .mock-window {
  transform: rotateX(2deg) scale(1);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}

.mock-bar span:nth-child(1) {
  background: #ff5f57;
}
.mock-bar span:nth-child(2) {
  background: #febc2e;
}
.mock-bar span:nth-child(3) {
  background: #28c840;
}

.mock-url {
  flex: 1;
  height: 18px;
  margin-left: 8px;
  border-radius: var(--pill);
  background: var(--paper-3);
}

.mock-body {
  padding: 18px;
}

.mock-topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.mock-topnav b {
  width: 64px;
  height: 14px;
  border-radius: 5px;
  background: var(--grad);
}

.mock-topnav i {
  width: 34px;
  height: 9px;
  border-radius: 5px;
  background: var(--paper-3);
}

.mock-topnav i:last-child {
  margin-left: auto;
  width: 46px;
  height: 18px;
  background: var(--brand-100);
}

.mock-banner {
  position: relative;
  overflow: hidden;
  height: 96px;
  margin-bottom: 16px;
  border-radius: var(--r);
  background: linear-gradient(120deg, var(--brand-50), var(--brand-100));
}

.mock-banner::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 45%;
  height: 12px;
  border-radius: 5px;
  background: var(--brand);
  box-shadow:
    0 22px 0 -2px rgba(15, 118, 110, 0.35),
    0 40px 0 -4px rgba(15, 118, 110, 0.2);
}

.mock-banner::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 84px;
  height: 30px;
  border-radius: var(--r-sm);
  background: var(--grad);
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-card {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px;
}

.mock-card::before {
  content: "";
  display: block;
  height: 52px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: var(--paper-3);
}

.mock-card i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--paper-3);
}

.mock-card i + i {
  margin-top: 5px;
  width: 60%;
}

.mock-card b {
  display: block;
  width: 38px;
  height: 12px;
  margin-top: 8px;
  border-radius: 4px;
  background: var(--brand-100);
}

.mock-badge {
  position: absolute;
  right: -14px;
  bottom: -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--paper);
  color: #16a34a;
  box-shadow: var(--sh);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- Pains ---------- */
.pains {
  background: var(--paper-2);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 44px);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--sh-sm);
  transition:
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
  border-color: var(--brand-100);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-50);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p {
  color: var(--ink-2);
}

/* highlighted pull-quote / callout */
.pains-footer,
.pricing-anchor {
  max-width: var(--narrow);
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding: 22px 26px;
  border: 1px solid var(--brand-100);
  border-left: 4px solid var(--brand);
  border-radius: var(--r);
  background: var(--brand-50);
  color: var(--ink-2);
  font-size: 1.05rem;
}

.pricing-anchor {
  text-align: center;
  border-left-width: 1px;
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink-3);
  font-size: 0.98rem;
}

/* ---------- Why it sells (offer flow) ---------- */
.why {
  background: var(--paper);
}

.section-lead {
  max-width: 60ch;
  margin: 0.9em auto 0;
  text-align: center;
  color: var(--ink-2);
  font-size: 1.06rem;
}

.why-flow {
  list-style: none;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.why-flow li {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--sh-sm);
  transition:
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t);
}

.why-flow li:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
  border-color: var(--brand-100);
}

.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-50);
}

.why-icon svg {
  width: 24px;
  height: 24px;
}

.why-flow h3 {
  margin-bottom: 0.4em;
}

.why-flow li > p {
  color: var(--ink-2);
}

@media (min-width: 720px) {
  .why-flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  /* arrow connectors between steps of the flow */
  .why-flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -11px;
    top: 45px;
    width: 14px;
    height: 14px;
    border-top: 2px solid var(--brand);
    border-right: 2px solid var(--brand);
    transform: rotate(45deg);
    opacity: 0.45;
  }
}

/* ---------- How / steps ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--sh-sm);
  transition:
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t);
}

.steps li:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
  border-color: var(--brand-100);
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--grad);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: var(--sh-brand);
}

.step-icon {
  position: absolute;
  top: 28px;
  right: 24px;
  width: 26px;
  height: 26px;
  color: var(--ink-4);
}

.steps h3 {
  margin-bottom: 0.4em;
}

.steps p {
  color: var(--ink-2);
}

.how-footer {
  max-width: var(--narrow);
  margin: 28px auto 0;
  text-align: center;
  color: var(--ink-3);
}

/* ---------- Features ---------- */
.feature-list {
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature-list li {
  position: relative;
  padding: 20px 22px 20px 56px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink-2);
  transition:
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t);
}

.feature-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
  border-color: var(--brand-100);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background:
    var(--brand-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 16px 16px no-repeat;
}

.feature-list li b {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Honest (dark) ---------- */
.honest {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
}

.honest::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 540px;
  height: 540px;
  background: radial-gradient(closest-side, rgba(13, 148, 136, 0.25), transparent);
  pointer-events: none;
}

.honest .container {
  position: relative;
  max-width: var(--narrow);
  text-align: center;
}

.honest h2 {
  color: #fff;
}

.honest-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  border-radius: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--on-dark-line);
}

.honest-icon svg {
  width: 26px;
  height: 26px;
}

.honest p {
  margin-top: 1.1em;
  color: var(--on-dark-2);
  font-size: 1.06rem;
}

/* ---------- Pricing ---------- */
.pricing {
  background: var(--paper-2);
}

.pricing-note {
  text-align: center;
  margin: 0.8em auto 0;
  color: var(--ink-3);
}

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 720px;
  margin: clamp(32px, 4vw, 48px) auto 0;
}

.plan {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  text-align: center;
  box-shadow: var(--sh-sm);
  transition:
    transform var(--t),
    box-shadow var(--t);
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
}

.plan-featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--sh-lg);
}

.plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 5px 16px;
  border-radius: var(--pill);
  background: var(--grad);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--sh-brand);
}

.plan h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 700;
}

.price {
  margin: 0.45em 0 0.9em;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.plan-featured .price {
  color: var(--brand);
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  text-align: left;
  color: var(--ink-2);
}

.plan ul li {
  position: relative;
  padding-left: 28px;
}

.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    var(--brand-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
}

.pricing-fineprint {
  list-style: none;
  max-width: var(--narrow);
  margin: 28px auto 0;
  padding: 0;
  display: grid;
  gap: 9px;
  color: var(--ink-3);
  font-size: 0.95rem;
}

.pricing-fineprint li {
  position: relative;
  padding-left: 22px;
}

.pricing-fineprint li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.center {
  text-align: center;
  margin-top: clamp(28px, 4vw, 40px);
}

/* ---------- FAQ ---------- */
.faq .container {
  max-width: var(--narrow);
}

.faq details {
  margin-top: 12px;
  padding: 4px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--sh-sm);
  transition:
    border-color var(--t),
    box-shadow var(--t);
}

.faq details[open] {
  border-color: var(--brand-100);
  box-shadow: var(--sh);
}

.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 16px 36px 16px 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color var(--t);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--brand);
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2.4px solid currentColor;
  border-bottom: 2.4px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform var(--t);
}

.faq details[open] summary::after {
  transform: translateY(-35%) rotate(-135deg);
  color: var(--brand);
}

.faq p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--ink-2);
}

.faq details[open] p {
  animation: fade-in 0.35s var(--ease);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Lead form ---------- */
.lead {
  background: radial-gradient(120% 130% at 50% 0%, var(--brand-50), var(--paper-2));
}

.lead .container {
  max-width: 620px;
}

.lead > .container > p {
  text-align: center;
  margin: 0.8em auto 0;
  max-width: 52ch;
  color: var(--ink-2);
}

.lead-form,
.thanks {
  margin: clamp(28px, 4vw, 40px) auto 0;
  max-width: 520px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}

.lead-form {
  display: grid;
  gap: 16px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--ink);
}

.lead-form input[type="email"],
.lead-form input[type="text"],
.lead-form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition:
    border-color var(--t),
    box-shadow var(--t);
}

.lead-form input::placeholder {
  color: var(--ink-4);
}

.lead-form input[type="email"]:focus,
.lead-form input[type="text"]:focus,
.lead-form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-100);
}

.lead-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235c6370' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.lead-form label.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.lead-form label.consent input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--brand);
  cursor: pointer;
}

.lead-form .btn {
  margin-top: 4px;
  width: 100%;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.form-error {
  text-align: center;
  color: #c0271c;
  font-weight: 600;
}

.thanks {
  text-align: center;
}

.thanks::before {
  content: "";
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background:
    #dcfce7
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 30px 30px no-repeat;
}

.thanks h3 {
  font-size: 1.4rem;
}

.thanks p {
  margin-top: 0.6em;
  color: var(--ink-2);
}

/* ---------- Footer ---------- */
.footer {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-3);
  background: var(--paper);
}

.footer a {
  color: var(--ink-2);
  font-weight: 550;
}

.footer a:hover {
  color: var(--brand);
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive (mobile-first → up) ---------- */
@media (max-width: 640px) {
  .nav {
    display: none;
  }
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
  .plans {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .plan-featured {
    transform: scale(1.04);
  }
  .plan-featured:hover {
    transform: scale(1.04) translateY(-4px);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: must override element-level transitions for users who opt out of motion */
    animation-duration: 0.001ms !important;
    /* biome-ignore lint/complexity/noImportantStyles: a11y reduced-motion override */
    animation-iteration-count: 1 !important;
    /* biome-ignore lint/complexity/noImportantStyles: a11y reduced-motion override */
    transition-duration: 0.001ms !important;
  }
  .mock-window {
    transform: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
