:root {
  --ink: #201c15;
  --ink-soft: #5b5346;
  --muted: #8a8171;
  --line: rgba(32, 28, 21, 0.12);
  --line-strong: rgba(32, 28, 21, 0.2);
  --bg: #f6f1e6;
  --bg-elevated: #fffdf9;
  --accent: #2f4a3c;
  --accent-hover: #22392e;
  --accent-soft: #e7efe6;
  --accent-ring: rgba(47, 74, 60, 0.22);
  --gold: #b1793c;
  --gold-soft: #f4e9d7;
  --danger: #a3372b;
  --danger-soft: #f6e6e0;
  --warn-bg: #f7ecd3;
  --warn-ink: #8a5b12;
  --ok-bg: #e7efe6;
  --ok-ink: #2f4a3c;
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Inter', 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --mono: 'IBM Plex Mono', 'Consolas', ui-monospace, monospace;
  --shell: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 460px at 8% -8%, rgba(47, 74, 60, 0.07), transparent 55%),
    radial-gradient(760px 420px at 100% 0%, rgba(177, 121, 60, 0.08), transparent 52%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ——— Shell ——— */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(246, 241, 230, 0.82);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0;
}

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

.nav a.btn {
  padding: 0.4rem 0.8rem;
  color: var(--ink);
}

.nav a.btn-primary,
.nav a.btn-primary:hover {
  color: #fff;
}

.nav-logout {
  display: inline;
  margin: 0;
}

button.linkish {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.35rem 0;
}

button.linkish:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

main {
  min-height: calc(100vh - 150px);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer p {
  margin: 0;
}

.footer__note {
  margin-top: 0.45rem !important;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.9;
}

.footer a {
  color: var(--ink-soft);
}

/* ——— Generic hero (docs/terms) ——— */

.hero {
  padding: 5rem 1.5rem 4rem;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  font-weight: 600;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-weight: 400;
}

.price-line {
  color: var(--muted);
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

/* ——— Landing: split hero ——— */

.landing-page {
  overflow-x: clip;
}

.landing-hero {
  position: relative;
  padding: 3.5rem 1.5rem 5rem;
  overflow: hidden;
}

.landing-hero__field {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(32, 28, 21, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.landing-hero__grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 3.5rem;
  align-items: center;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.2rem;
  animation: land-fade-up 0.7s var(--ease) both;
}

.landing-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.landing-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1.15rem;
  font-weight: 600;
  color: var(--ink);
  max-width: none;
  animation: land-fade-up 0.7s var(--ease) 0.06s both;
}

.landing-lead {
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  max-width: 32rem;
  animation: land-fade-up 0.7s var(--ease) 0.12s both;
}

.landing-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0 0 2.1rem;
  padding: 0;
  list-style: none;
  animation: land-fade-up 0.7s var(--ease) 0.18s both;
}

.landing-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.landing-checklist__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.landing-checklist__icon svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-checklist strong {
  color: var(--ink);
  font-weight: 600;
}

.cta-row {
  animation: land-fade-up 0.7s var(--ease) 0.24s both;
}

.landing-trust {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  animation: land-fade-up 0.7s var(--ease) 0.3s both;
}

.landing-trust svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-lg {
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

/* ——— Hero live demo widget ——— */

.hero-demo {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 40px 90px -30px rgba(32, 28, 21, 0.22);
  padding: 1.5rem;
  animation: land-rise 0.8s var(--ease) 0.1s both;
}

.hero-demo::before {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.hero-demo__tabs {
  display: flex;
  gap: 0.3rem;
  padding: 0.25rem;
  width: fit-content;
  background: var(--accent-soft);
  border-radius: 10px;
  margin-bottom: 1.35rem;
}

.hero-demo__tab {
  border: 0;
  background: transparent;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
  cursor: pointer;
}

.hero-demo__tab.is-active {
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(32, 28, 21, 0.1);
}

.hero-demo__panel {
  display: none;
}

.hero-demo__panel.is-active {
  display: block;
  animation: land-fade-up 0.4s var(--ease) both;
}

.hero-demo__label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-demo__input {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1.02rem;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.hero-demo__input:focus {
  outline: none;
}

.hero-demo__list {
  margin-top: 0.5rem;
  list-style: none;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elevated);
}

.hero-demo__list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.hero-demo__list li:hover,
.hero-demo__list li.is-active {
  background: var(--accent-soft);
}

.hero-demo__list li strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-demo__list li span {
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-demo__status {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 1.2em;
}

.hero-demo__ghost {
  margin: 1.1rem 0 0;
  padding: 0.7rem 0.85rem 0.75rem;
  border-radius: 10px;
  border: 1px dashed rgba(32, 28, 21, 0.16);
  background: rgba(32, 28, 21, 0.03);
  opacity: 0.72;
}

.hero-demo__ghost-label {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-demo__ghost-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-demo__ghost-grid--3 {
  /* same vertical stack */
}

.hero-demo__ghost-grid > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.38rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(32, 28, 21, 0.06);
}

.hero-demo__ghost-grid > div:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}

.hero-demo__ghost-grid span {
  display: block;
  flex: 0 0 auto;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}

.hero-demo__ghost-grid b {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: right;
  font-family: var(--mono);
  opacity: 0.85;
}

.hero-demo__ghost-grid b.is-filled {
  color: var(--ink-soft);
  opacity: 1;
}

/* ——— Bento: modules ——— */

.landing-section {
  padding: 4.5rem 1.5rem;
}

.landing-section__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.landing-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.landing-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.55rem;
  font-weight: 600;
}

.landing-section__lead {
  margin: 0;
  color: var(--ink-soft);
  max-width: 34rem;
  font-size: 1.02rem;
}

.landing-modules {
  border-top: 1px solid var(--line);
}

/* ——— Address validation benefits ——— */

.landing-validate {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.9) 0%, transparent 40%),
    var(--bg);
}

.landing-validate > .landing-section__inner > h2 {
  max-width: 22ch;
}

.landing-validate > .landing-section__inner > .landing-section__lead {
  margin-bottom: 2.4rem;
  max-width: 40rem;
}

.validate-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 2.75rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.validate-compare__col {
  padding: 1.6rem 1.75rem 1.6rem 0;
}

.validate-compare__col + .validate-compare__col {
  padding-left: 1.75rem;
  padding-right: 0;
  border-left: 1px solid var(--line);
}

.validate-compare__col h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.validate-compare__col--ok h3 {
  color: var(--accent);
}

.validate-compare__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.validate-compare__col li {
  position: relative;
  padding: 0 0 0.7rem 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.validate-compare__col li:last-child {
  padding-bottom: 0;
}

.validate-compare__col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.55;
}

.validate-compare__col--ok li::before {
  background: var(--accent);
  opacity: 0.85;
}

.validate-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  row-gap: 0;
}

.validate-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.validate-points__n {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.validate-points h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.validate-points p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 36rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.bento-card {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.bento-card:hover {
  box-shadow: 0 24px 48px -24px rgba(32, 28, 21, 0.18);
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.bento-card__soon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bento-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bento-card > p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.pvz-mock {
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}

.pvz-mock__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.pvz-mock__top span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.pvz-mock__body {
  padding: 0.85rem 0.9rem;
}

.pvz-mock__map {
  position: relative;
  height: 96px;
  border-radius: 10px;
  margin-bottom: 0.7rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 40%, rgba(47, 74, 60, 0.14), transparent 42%),
    radial-gradient(circle at 70% 65%, rgba(177, 121, 60, 0.12), transparent 45%),
    linear-gradient(145deg, #e9e3d3 0%, #f2eee2 55%, #e2dbc8 100%);
}

.pvz-mock__pin {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 700;
}

.pvz-mock__pin span {
  transform: rotate(45deg);
}

.pvz-mock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
}

.pvz-mock__row:last-child {
  margin-bottom: 0;
}

.pvz-mock__row.is-selected {
  background: var(--accent-soft);
  border-color: rgba(47, 74, 60, 0.22);
}

.pvz-mock__row b {
  font-weight: 650;
}

.pvz-mock__row span {
  color: var(--muted);
  font-size: 0.74rem;
}

/* ——— Timeline "how it works" ——— */

.landing-how {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: none;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--line-strong) 96%, transparent);
}

.timeline-steps li {
  position: relative;
  min-width: 0;
  padding-top: 3.5rem;
}

.timeline-steps__n {
  position: absolute;
  top: -0.5rem;
  left: -0.1rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.28;
  line-height: 1;
}

.timeline-steps h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.timeline-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.timeline-steps code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* ——— Trust bar ——— */

.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-bar__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 2.4rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.trust-bar__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.trust-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 2.4rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.trust-bar__icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-bar__item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.trust-bar__item span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ——— Pricing panel ——— */

.pricing-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.pricing-col {
  position: relative;
  padding: 2.2rem 2rem;
}

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

.pricing-col--accent {
  background: linear-gradient(165deg, var(--accent-soft) 0%, transparent 60%);
}

.pricing-ribbon {
  position: absolute;
  top: 1.6rem;
  right: 2rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pricing-col h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.pricing-col__price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0.6rem 0 1.3rem;
  letter-spacing: -0.02em;
}

.pricing-col__price span {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-col ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pricing-col li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.pricing-col li svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  margin-top: 0.15rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.pricing-col .btn {
  width: 100%;
}

/* ——— Final CTA banner ——— */

.landing-final {
  position: relative;
  padding: 5rem 1.5rem;
  text-align: center;
  overflow: hidden;
  background: var(--accent);
  color: #f3f0e6;
}

.landing-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(243, 240, 230, 0.14) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(760px 420px at 50% 30%, #000 0%, transparent 72%);
}

.landing-final__inner {
  position: relative;
  width: min(640px, 100%);
  margin: 0 auto;
}

.landing-final h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.4rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.65rem;
  color: #fff;
  font-weight: 600;
}

.landing-final p {
  margin: 0 0 1.6rem;
  color: rgba(243, 240, 230, 0.78);
}

.landing-final .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--accent);
}

.landing-final .btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--accent-hover);
}

@keyframes land-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes land-rise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .landing-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .landing-hero__title {
    max-width: none;
  }

  .hero-demo {
    max-width: 480px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .validate-compare {
    grid-template-columns: 1fr;
  }

  .validate-compare__col {
    padding: 1.35rem 0;
  }

  .validate-compare__col + .validate-compare__col {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .validate-points {
    grid-template-columns: 1fr;
  }

  .timeline-steps {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .timeline-steps::before {
    display: none;
  }

  .trust-bar__inner {
    grid-template-columns: 1fr;
  }

  .pricing-panel {
    grid-template-columns: 1fr;
  }

  .pricing-col + .pricing-col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-demo__panel.is-active,
  .landing-eyebrow,
  .landing-hero__title,
  .landing-lead,
  .landing-checklist,
  .cta-row,
  .landing-trust,
  .hero-demo {
    animation: none;
  }
}

.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 2.75rem 1.5rem;
}

.section.narrow {
  max-width: 560px;
}

.section h1,
.section h2 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 0.85rem;
}

.section h1 {
  font-size: clamp(1.75rem, 3vw, 2.15rem);
}

.section h2 {
  font-size: 1.45rem;
}

.steps {
  padding-left: 1.2rem;
  color: var(--ink-soft);
  margin: 0;
}

.steps li {
  margin-bottom: 0.65rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}

.plan {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
}

.plan h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.plan-accent {
  border-color: rgba(47, 74, 60, 0.24);
  background: linear-gradient(165deg, var(--accent-soft) 0%, var(--bg-elevated) 55%);
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin: 0.65rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.plan-price span {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.plan p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ——— Buttons ——— */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background: var(--bg-elevated);
  color: var(--ink);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.btn:hover {
  text-decoration: none;
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.btn:active {
  transform: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background: rgba(32, 28, 21, 0.05);
  border-color: var(--line);
  color: var(--ink);
}

.btn-danger {
  background: transparent;
  border-color: rgba(163, 55, 43, 0.35);
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger-soft);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
}

/* ——— Forms ——— */

.form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  margin: 1.35rem 0;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 550;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.form label.check {
  flex-direction: row;
  align-items: center;
  font-weight: 500;
  gap: 0.55rem;
  color: var(--ink);
}

.form input[type='text'],
.form input[type='email'],
.form input[type='password'],
.form input[type='url'],
.form input:not([type]) {
  font: inherit;
  font-weight: 450;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.hint {
  font-weight: 400;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.4;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  margin: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.5);
}

legend {
  padding: 0 0.4rem;
  font-weight: 650;
  color: var(--ink);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}

.crumb {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.crumb a {
  color: var(--muted);
  font-weight: 500;
}

.crumb a:hover {
  color: var(--accent);
}

/* ——— Auth (plain, non-split fallback) ——— */

.auth {
  padding-top: 3.5rem;
}

.auth h1 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.auth .form {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth .muted {
  margin-top: 1.1rem;
  text-align: center;
}

/* ——— Feedback ——— */

.flash {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0.65rem 0;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.flash.error,
.flash.err {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(163, 55, 43, 0.25);
}

.flash.ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
  border-color: rgba(47, 74, 60, 0.2);
}

.flash.warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-color: rgba(138, 91, 18, 0.2);
}

.code {
  background: #201c15;
  color: #f0ead9;
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
  border: 1px solid #37312433;
}

.code code {
  font-family: inherit;
  white-space: pre;
}

/* ——— Scan ——— */

.scan-panel {
  margin-top: 0.85rem;
  padding: 1.05rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(32, 28, 21, 0.05);
}

.scan-list {
  margin: 0.55rem 0 1rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.scan-list li {
  margin-bottom: 0.4rem;
}

.scan-list code {
  font-family: var(--mono);
  font-size: 0.8em;
  background: var(--bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--ink);
}

/* ——— Публичная документация ——— */

.docs-hero {
  margin-bottom: 2rem;
}

.docs-hero__eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-hero h1 {
  margin: 0.5rem 0 0.6rem;
}

.docs-hero p {
  margin: 0;
  color: var(--muted);
}

.docs-steps {
  display: grid;
  gap: 1.1rem;
}

.docs-card {
  position: relative;
  padding: 1.6rem 1.6rem 1.6rem 4.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elevated);
}

.docs-card__number {
  position: absolute;
  top: 1.6rem;
  left: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.docs-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.docs-card p {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
}

.docs-key-values,
.docs-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.docs-key-values span,
.docs-fields code {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.docs-key-values b,
.docs-fields small {
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
}

.docs-card__note {
  margin-bottom: 0;
}

/* ——— Tilda editor mock ——— */

.tf-mock {
  margin: 1.1rem 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-family: var(--font);
}

.tf-mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tf-mock__head svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.tf-mock__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--ink-soft);
  font-size: 13px;
  border: 1px solid var(--line);
}

.tf-mock__row--anchor {
  background: var(--accent-soft);
  outline: 1.5px solid rgba(47, 74, 60, 0.25);
}

.tf-mock__drag {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: -2px;
}

.tf-mock__text {
  flex: 1;
  min-width: 0;
}

.tf-mock__text b {
  font-weight: 700;
  color: var(--ink);
}

.tf-mock__chev {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tf-mock__chev.is-open {
  stroke: var(--accent);
  transform: rotate(90deg);
}

.tf-mock__detail {
  margin: -2px 0 10px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 74, 60, 0.25);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: var(--bg-elevated);
}

.tf-mock__detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 12.5px;
}

.tf-mock__detail-row + .tf-mock__detail-row {
  border-top: 1px dashed var(--line);
}

.tf-mock__detail-row span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.tf-mock__detail-row b {
  color: var(--ink);
}

.tf-mock__detail-row code {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

@media (max-width: 640px) {
  .hero {
    padding: 3.25rem 1.15rem 2.75rem;
  }

  .topbar-inner,
  .section {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .auth .form {
    padding: 1.15rem;
  }

  .docs-card {
    padding: 4rem 1.1rem 1.2rem;
  }

  .docs-card__number {
    top: 1.2rem;
    left: 1.1rem;
  }

  .docs-key-values,
  .docs-fields {
    grid-template-columns: 1fr;
  }
}
