/* ==========================================================================
   Compliance Landing — main.css
   Palette: only #0A0A0A (ink) and #FAFAFA (paper). Grays via rgba/opacity.
   Fonts: IBM Plex Serif (headings) / Sans (body) / Mono (labels), self-hosted.
   ========================================================================== */

/* ---------- Fonts: IBM Plex Sans (body) ---------- */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ---------- Fonts: IBM Plex Serif (headings) ---------- */
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-serif-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-serif-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-serif-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-serif-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ---------- Fonts: IBM Plex Mono (labels, price) ---------- */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* ---------- Base (mobile-first) ---------- */
body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #0A0A0A;
  background-color: #FAFAFA;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  color: rgba(10, 10, 10, 0.82);
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: rgba(10, 10, 10, 0.4);
}

ul,
ol {
  padding-left: 1.25rem;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

section {
  padding-top: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

section h2 {
  margin-bottom: 24px;
}

/* ---------- Hero (inverse) ---------- */
.hero {
  background-color: #0A0A0A;
  color: #FAFAFA;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero h1 {
  max-width: 20ch;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: rgba(250, 250, 250, 0.78);
  max-width: 60ch;
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 13px 24px;
  border: 1px solid #FAFAFA;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

/* Tactile press feedback for buttons/CTA */
.btn:active {
  transform: translateY(1px) scale(0.97);
}

.btn-primary {
  background-color: #FAFAFA;
  color: #0A0A0A;
  border-color: #FAFAFA;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* On paper (light) sections, the primary button inverts to ink */
.lead .btn-primary {
  background-color: #0A0A0A;
  color: #FAFAFA;
  border-color: #0A0A0A;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Gentle arrival cue on the lead form when reached via the hero CTA */
@keyframes lead-arrive {
  0%   { box-shadow: 0 0 0 0 rgba(10, 10, 10, 0); }
  30%  { box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.18); }
  100% { box-shadow: 0 0 0 0 rgba(10, 10, 10, 0); }
}

#lead-form:target {
  animation: lead-arrive 1s ease;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
  #lead-form:target { animation: none; }
  .products .card { transition: none; }
  .products .card:hover { transform: none; box-shadow: none; }
}

/* ---------- Steps (how it works) ---------- */
.steps {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.step {
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 2px;
  padding: 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 0.95rem;
  color: #FAFAFA;
  background-color: #0A0A0A;
  border-radius: 2px;
  margin-bottom: 14px;
}

.step h3 {
  margin-bottom: 8px;
}

/* ---------- Card grid (checks, products) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 2px;
  padding: 22px;
  background-color: #FAFAFA;
}

.card h3 {
  margin-bottom: 8px;
}

.product .price {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 1.25rem;
  color: #0A0A0A;
  margin-bottom: 10px;
}

/* Product card hover animation */
.products .card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.products .card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 10, 10, 0.4);
  box-shadow: 0 6px 22px rgba(10, 10, 10, 0.1);
}

/* Free-offer banner (inverse, above the paid cards) */
.free-offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  margin-bottom: 28px;
  border: 1px solid #0A0A0A;
  border-radius: 2px;
  background-color: #0A0A0A;
  color: #FAFAFA;
}

.free-offer__label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.7);
  margin-bottom: 6px;
}

.free-offer h3 {
  color: #FAFAFA;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.free-offer p {
  color: rgba(250, 250, 250, 0.82);
  max-width: 60ch;
}

/* Conversion pitch section (inverse) */
.pitch {
  background-color: #0A0A0A;
  color: #FAFAFA;
}

.pitch h2 {
  max-width: 24ch;
}

.pitch p {
  color: rgba(250, 250, 250, 0.82);
  max-width: 60ch;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ---------- Lead form ---------- */
.lead > .container > p {
  max-width: 60ch;
  margin-bottom: 28px;
}

.form {
  max-width: 560px;
}

/* Submit: full-width on mobile, auto on desktop */
.form .btn {
  width: 100%;
  margin-top: 4px;
}

.form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-row label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.65);
  margin-bottom: 7px;
}

.form-row input[type='url'],
.form-row input[type='text'] {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 1rem;
  color: #0A0A0A;
  background-color: #FAFAFA;
  border: 1px solid rgba(10, 10, 10, 0.28);
  border-radius: 2px;
  padding: 12px 14px;
  width: 100%;
}

.form-row input::placeholder {
  color: rgba(10, 10, 10, 0.4);
}

.form-row input:focus {
  outline: none;
  border-color: #0A0A0A;
  box-shadow: 0 0 0 1px #0A0A0A;
}

.form-row input:invalid:not(:placeholder-shown) {
  border-color: rgba(10, 10, 10, 0.7);
}

/* Consent row: checkbox + inline label */
.form-consent label {
  flex-direction: row;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 0.92rem;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(10, 10, 10, 0.82);
  margin-bottom: 0;
}

.form-consent input[type='checkbox'] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: #0A0A0A;
  flex-shrink: 0;
}

/* Keep the consent text+link as one flowing block beside the checkbox */
.form-consent .consent-text {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}

/* Back-to-top button (fixed, appears after scrolling) */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #0A0A0A;
  color: #FAFAFA;
  border: 1px solid #FAFAFA;
  border-radius: 2px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top.is-visible:hover {
  opacity: 0.85;
}

/* ---------- Form status messages ---------- */
#form-status {
  margin-top: 16px;
  font-size: 0.95rem;
  min-height: 1.2em;
}

#form-status.is-sending {
  color: rgba(10, 10, 10, 0.6);
}

#form-status.is-done {
  color: #0A0A0A;
  font-weight: 600;
  border-left: 2px solid #0A0A0A;
  padding-left: 12px;
}

#form-status.is-error {
  color: #0A0A0A;
  border-left: 2px solid #0A0A0A;
  padding-left: 12px;
  background-color: rgba(10, 10, 10, 0.05);
  padding-top: 8px;
  padding-bottom: 8px;
}

/* ---------- Footer (inverse) ---------- */
.footer {
  background-color: #0A0A0A;
  color: #FAFAFA;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer p {
  color: rgba(250, 250, 250, 0.72);
  margin-bottom: 6px;
}

.footer a {
  color: #FAFAFA;
}

.footer a:hover {
  text-decoration-color: rgba(250, 250, 250, 0.5);
}

/* ---------- Privacy page ---------- */
.privacy {
  padding-top: 48px;
  padding-bottom: 64px;
}

.privacy h1 {
  margin-top: 12px;
  margin-bottom: 28px;
}

.privacy section {
  border-bottom: none;
  padding-top: 0;
  padding-bottom: 28px;
}

.privacy h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.privacy p {
  margin-bottom: 10px;
}

.privacy ul {
  margin-top: 6px;
}

.privacy li {
  margin-bottom: 6px;
  color: rgba(10, 10, 10, 0.82);
}

/* ==========================================================================
   Desktop / tablet — breakpoint 768px
   ========================================================================== */
@media (min-width: 768px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: 2.9rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .free-offer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .free-offer .btn {
    flex-shrink: 0;
  }

  .form .btn {
    width: auto;
  }
}
