*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --paper: #f0efe4;
  --paper-deep: #e3e8d6;
  --surface: #fffdf5;
  --white: #ffffff;
  --ink: #1c2a20;
  --ink-soft: #52604b;
  --ink-faint: #7c8874;
  --rule: #cbd4bc;
  --rule-strong: #aebb99;
  --stamp: #1c6845;
  --stamp-dark: #163f2b;
  --stamp-soft: #ddeedf;
  --pen-blue: #244b73;
  --pen-blue-soft: #e1e7ee;
  --pen-red: #b23e31;
  --pen-red-soft: #f3e1dc;
  --shadow-sm: 0 8px 20px rgba(28, 42, 32, 0.08);
  --shadow-md: 0 14px 34px rgba(28, 42, 32, 0.12);
  --shadow-lg: 0 22px 55px rgba(28, 42, 32, 0.16);
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(249, 250, 244, 0.94) 0%, rgba(240, 239, 228, 0.94) 54%, rgba(227, 232, 214, 0.96) 100%),
    repeating-linear-gradient(to bottom, rgba(174, 187, 153, 0.14) 0, rgba(174, 187, 153, 0.14) 1px, transparent 1px, transparent 52px);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.page {
  min-height: 100vh;
  padding: 20px 20px 32px;
}

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.topbar {
  min-height: 64px;
  position: sticky;
  top: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 10px 9px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(252, 251, 244, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(145deg, #247851, var(--stamp));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.16), 0 6px 14px rgba(28, 104, 69, 0.22);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--stamp);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: var(--stamp-dark);
  box-shadow: 0 10px 24px rgba(28, 104, 69, 0.22);
}

.button-outline {
  border-color: var(--rule-strong);
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  border-color: var(--ink-soft);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.button-red {
  background: var(--pen-red);
  color: var(--white);
}

.button-red:hover {
  background: #872d24;
  box-shadow: 0 10px 24px rgba(178, 62, 49, 0.2);
}

.stamp-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(174, 187, 153, 0.7);
  border-radius: 999px;
  background: rgba(255, 253, 245, 0.68);
  color: var(--stamp-dark);
  box-shadow: inset 0 -1px 0 rgba(174, 187, 153, 0.2);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: none;
}

.stamp-badge.blue {
  border-color: rgba(36, 75, 115, 0.22);
  background: rgba(225, 231, 238, 0.62);
  color: var(--pen-blue);
}

.stamp-badge.red {
  border-color: rgba(178, 62, 49, 0.22);
  background: rgba(243, 225, 220, 0.66);
  color: var(--pen-red);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: 34px;
  align-items: center;
  padding: 54px 0 42px;
}

.hero h1,
.section-head h2,
.feature-card h3,
.visual-copy h2,
.cta-band h2,
.modal-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: 0;
}

.hero h1 {
  max-width: 620px;
  margin-top: 16px;
  font-size: clamp(2.25rem, 4vw, 3.8rem);
  line-height: 1.04;
  font-weight: 650;
}

.hero-copy {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.62;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-visual {
  min-width: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 253, 245, 0.96));
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hero-visual:hover,
.image-frame:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.hero-visual::before,
.image-frame::before {
  content: attr(data-frame-label);
  display: flex;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid var(--rule);
  padding: 0 12px;
  background: linear-gradient(180deg, #ffffff, var(--surface));
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-visual img {
  width: 100%;
  border-radius: 0 0 6px 6px;
}

.section {
  padding: 46px 0;
  border-top: 1px solid var(--rule-strong);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.section-head h2 {
  max-width: 660px;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.15;
  font-weight: 650;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 253, 245, 0.98));
  box-shadow: var(--shadow-sm);
  padding: 22px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.feature-card:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 650;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.visual-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: center;
}

.visual-row.reverse {
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
}

.image-frame {
  min-width: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 253, 245, 0.96));
  box-shadow: var(--shadow-md);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.image-frame img {
  width: 100%;
  border-radius: 0 0 6px 6px;
}

.visual-copy h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  line-height: 1.15;
  font-weight: 650;
}

.visual-copy p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.62;
}

.proof-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
}

.proof-list li {
  display: flex;
  gap: 10px;
  color: var(--ink);
  line-height: 1.5;
  list-style: none;
}

.proof-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--pen-blue);
  transform: none;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gateway-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 253, 245, 0.98));
  box-shadow: var(--shadow-sm);
  padding: 22px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gateway-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.gateway-card span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gateway-card strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
}

.gateway-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.gateway-card a {
  width: fit-content;
  color: var(--stamp);
  font-weight: 800;
}

.step-grid {
  display: grid;
  gap: 14px;
  counter-reset: mock-step;
}

.step-card {
  counter-increment: mock-step;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 253, 245, 0.98));
  box-shadow: var(--shadow-sm);
  padding: 18px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.step-card:hover {
  border-color: rgba(178, 62, 49, 0.34);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-number {
  display: grid;
  gap: 4px;
  color: var(--pen-red);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-number::after {
  content: counter(mock-step, decimal-leading-zero);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.step-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: 0;
}

.step-card p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.step-card a {
  color: var(--pen-red);
  font-weight: 800;
  white-space: nowrap;
}

.step-card .button {
  width: fit-content;
  white-space: nowrap;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border: 1px solid var(--stamp);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(221, 238, 223, 0.82)),
    var(--stamp-soft);
  box-shadow: var(--shadow-sm);
  padding: 28px 30px;
}

.cta-band h2 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 650;
}

.cta-band p {
  max-width: 500px;
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--ink);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(28, 42, 32, 0.4);
  backdrop-filter: blur(6px);
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--rule-strong);
}

.modal-head h2 {
  font-size: 1.3rem;
  font-weight: 650;
}

.modal-head p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.close-button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 1.3rem;
  line-height: 1;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 20px 22px 22px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 0 12px;
}

.field textarea {
  min-height: 90px;
  padding-top: 10px;
  line-height: 1.5;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--stamp);
  box-shadow: 0 0 0 3px rgba(31, 92, 63, 0.14);
  outline: none;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--pen-red);
  box-shadow: 0 0 0 3px rgba(182, 57, 45, 0.12);
}

.hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.form-actions {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.form-status {
  min-height: 18px;
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 600;
}

.form-status.success {
  color: var(--stamp);
}

.form-status.error {
  color: var(--pen-red);
}

.lead-form[aria-busy="true"] {
  cursor: progress;
}

.lead-form .button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.lead-form[data-delivered="true"] .button:disabled {
  cursor: default;
  opacity: 1;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1000px) {
  .hero,
  .visual-row,
  .visual-row.reverse {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .gateway-grid,
  .step-card {
    grid-template-columns: 1fr;
  }

  .step-card a,
  .step-card .button {
    width: fit-content;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 14px 14px 26px;
  }

  .topbar {
    top: 8px;
    max-width: calc(100vw - 28px);
    padding: 8px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .topbar .button-primary {
    min-height: 38px;
    padding: 0 12px;
  }

  .hero {
    gap: 24px;
    padding: 34px 0 26px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8.4vw, 2.25rem);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .hero > *,
  .visual-row > *,
  .section-head,
  .hero-visual,
  .image-frame,
  .cta-band,
  .footer {
    max-width: calc(100vw - 28px);
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .section {
    padding: 34px 0;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
