:root {
  --red: #ed0033;
  --ink: #171719;
  --muted: #66656c;
  --paper: #fbf8f6;
  --line: #e7e1dd;
  --green: #09865b;
  --blue: #1769e0;
  --orange: #e96816;
  --radius: 24px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.nav {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(23, 23, 25, .08);
  background: rgba(251, 248, 246, .88);
  backdrop-filter: blur(16px);
}
.nav__inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 148px; height: auto; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav__links a { text-decoration: none; font-size: 14px; font-weight: 650; }

.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink); font: inherit; font-weight: 750;
  text-decoration: none; cursor: pointer;
}
.button--primary { border-color: var(--red); background: var(--red); color: white; }
.button--dark { border-color: var(--ink); background: var(--ink); color: white; }

.hero__grid > div:first-child {
  animation: sabiRiseIn .7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero__visual {
  animation: sabiFadeIn .85s cubic-bezier(0.22, 1, 0.36, 1) .08s both;
}
@keyframes sabiFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes sabiRiseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__grid > div:first-child,
  .hero__visual,
  .consent-progress__track span {
    animation: none !important;
    transition: none !important;
  }
}
.hero__grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 52px; }
.eyebrow { color: var(--red); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(48px, 7vw, 92px); line-height: .94; letter-spacing: -.065em; }
h2 { margin-bottom: 18px; font-size: clamp(34px, 5vw, 62px); line-height: 1; letter-spacing: -.05em; }
.lead { color: var(--muted); font-size: clamp(18px, 2.2vw, 24px); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.micro { margin-top: 16px; color: var(--muted); font-size: 13px; }
.hero__visual {
  margin: 0;
  position: relative; overflow: hidden; border-radius: 36px 36px 36px 10px;
  box-shadow: 0 28px 80px rgba(52, 31, 26, .16);
}
.hero__visual img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__tag {
  position: absolute; left: 20px; bottom: 20px; max-width: 270px;
  padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); font-weight: 750;
}

.section { padding: 96px 0; }
.section--white { background: white; }
.section--dark { background: #141416; color: white; }
.section__head { max-width: 760px; margin-bottom: 46px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.card__number { color: var(--red); font-size: 13px; font-weight: 850; }
.card h3 { margin: 34px 0 10px; font-size: 24px; }
.card p { color: var(--muted); line-height: 1.6; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.feature--flip { direction: rtl; }
.feature--flip > * { direction: ltr; }
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; background: #f1e9e6; }
.feature__copy { max-width: 510px; }
.feature__copy li { margin: 14px 0; line-height: 1.5; }

.secret {
  display: grid; align-items: end; color: white;
  aspect-ratio: 1600 / 686;
  min-height: 0;
  background: linear-gradient(90deg, rgba(17,17,18,.88), rgba(17,17,18,.08)),
    url("/assets/sabi-secret.webp") center 40% / cover no-repeat;
}
.secret__copy { max-width: 650px; padding: clamp(28px, 6vw, 72px) 0; }

.price-teaser { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: end; }
.price-big { font-size: clamp(62px, 10vw, 118px); font-weight: 900; letter-spacing: -.07em; line-height: .8; }

.grow {
  display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden;
  align-items: center; border-radius: 36px; background: #f1e9e6;
}
.grow__copy { align-self: center; padding: 52px; }
.grow img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.pricing-hero {
  padding: 72px 20px 42px; text-align: center;
  background: linear-gradient(rgba(251,248,246,.92), rgba(251,248,246,.92)),
    url("/assets/sabi-pattern.webp") center/700px;
  border-radius: 0 0 40px 40px;
}
.pricing-hero h1 { margin-inline: auto; }
.billing-controls {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px;
}
.billing-controls label {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: white;
}
.billing-controls input[type="number"] { width: 64px; border: 0; font: inherit; font-weight: 750; }
.toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: white; }
.toggle button { padding: 10px 15px; border: 0; border-radius: 999px; background: transparent; font: inherit; cursor: pointer; }
.toggle button[aria-pressed="true"] { color: white; background: var(--ink); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: white; }
.plan--featured { border: 2px solid var(--blue); transform: translateY(-10px); }
.plan__badge { position: absolute; top: -14px; left: 20px; padding: 6px 10px; border-radius: 999px; color: white; background: var(--blue); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.plan__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--plan-color); }
.plan h2 { margin: 14px 0 6px; font-size: 28px; letter-spacing: -.04em; }
.plan__price { margin: 22px 0 4px; font-size: 36px; font-weight: 900; letter-spacing: -.045em; }
.plan__period { min-height: 38px; color: var(--muted); font-size: 13px; }
.plan ul { flex: 1; padding-left: 20px; color: #3c3b40; line-height: 1.5; }
.plan li { margin: 10px 0; }
.plan .button { width: 100%; margin-top: 12px; }

.compare { width: 100%; border-collapse: collapse; background: white; border-radius: 20px; overflow: hidden; }
.compare th, .compare td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
.compare-wrap .compare { min-width: 760px; }

.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; }
details { padding: 20px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 14px 0 0; color: var(--muted); line-height: 1.55; }
footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.legal-shell { width: min(860px, calc(100% - 32px)); margin-inline: auto; padding: 72px 0 96px; }
.legal-content { padding: clamp(24px, 5vw, 56px); border: 1px solid var(--line); border-radius: 28px; background: white; }
.legal-content h1 { font-size: clamp(38px, 6vw, 64px); }
.legal-content h2 { margin-top: 48px; font-size: clamp(26px, 4vw, 38px); }
.legal-content h3 { margin-top: 30px; font-size: 22px; }
.legal-content p, .legal-content li { line-height: 1.72; }
.legal-content li { margin-bottom: 8px; }
.legal-content hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }
.legal-content code { padding: 2px 6px; border-radius: 6px; background: #f4efec; }
.legal-content table { width: 100%; border-collapse: collapse; }
.legal-content th, .legal-content td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-footer { display: flex; flex-wrap: wrap; gap: 16px 24px; }

.signup-shell { width: min(760px, calc(100% - 32px)); margin-inline: auto; padding: 72px 0 96px; }
.consent-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), #fff 40%),
    radial-gradient(120% 80% at 0% 0%, rgba(237,0,51,.06), transparent 55%);
  box-shadow: 0 18px 50px rgba(52, 31, 26, .06);
}
.consent-card h1 { max-width: 14ch; font-size: clamp(36px, 6vw, 56px); }
.consent-card .lead { max-width: 38ch; font-size: clamp(16px, 2vw, 19px); }
.consent-progress { margin: 28px 0 8px; }
.consent-progress__track {
  height: 8px; border-radius: 999px; background: #efeae6; overflow: hidden;
}
.consent-progress__track span {
  display: block; width: 0; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #ed0033, #ff5a72);
  transition: width .35s ease;
}
.consent-progress__label {
  margin: 10px 0 0; color: var(--muted); font-size: 13px; font-weight: 650;
}
.consent-identity {
  display: grid; gap: 14px; margin: 28px 0 8px;
}
.consent-identity label { display: grid; gap: 8px; }
.consent-identity span { font-size: 13px; font-weight: 750; }
.consent-identity input {
  min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; font: inherit; color: var(--ink);
}
.consent-identity input:focus {
  outline: 2px solid rgba(237, 0, 51, .25); border-color: var(--red);
}
.consent-card fieldset { margin: 18px 0 22px; padding: 0; border: 0; }
.consent-row {
  display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start;
  margin: 12px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.consent-row:hover { border-color: #d7cfc9; transform: translateY(-1px); }
.consent-row.is-checked {
  border-color: rgba(9, 134, 91, .45);
  background: linear-gradient(180deg, #f3fbf7, #fff);
}
.consent-row input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); }
.consent-row__body { display: grid; gap: 4px; }
.consent-row__body strong { font-size: 15px; letter-spacing: -.01em; }
.consent-row__body strong em {
  margin-left: 6px; font-style: normal; font-size: 11px; font-weight: 750;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.consent-row__body > span { color: var(--muted); line-height: 1.5; font-size: 14px; }
.consent-row__body a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.consent-row--optional { background: #faf7f5; }
.consent-card button:disabled { cursor: not-allowed; opacity: .45; }
.consent-submit { width: 100%; margin-top: 4px; }
.consent-status { min-height: 24px; margin-top: 14px; font-weight: 700; color: var(--muted); }
.consent-status[data-state="ready"] { color: var(--green); }
.consent-status[data-state="error"] { color: var(--red); }

@media (max-width: 900px) {
  .nav__links > a:not(.button) { display: none; }
  .hero__grid, .feature, .price-teaser, .grow, .faq { grid-template-columns: 1fr; }
  .hero { padding-top: 42px; }
  .cards { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan--featured { transform: none; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 22px, 1180px); }
  .nav__inner { min-height: 62px; }
  .nav__links { gap: 8px; }
  .nav__links .button { min-height: 40px; padding: 0 14px; font-size: 12px; }
  .section { padding: 68px 0; }
  .plans { grid-template-columns: 1fr; }
  .grow__copy { padding: 30px; }
  .secret {
    aspect-ratio: 3 / 4;
    background-position: 62% 35%;
  }
  .legal-shell, .signup-shell { width: min(100% - 22px, 860px); padding: 36px 0 68px; }
}
