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

:root {
  --ink:     #0f0e0d;
  --paper:   #f5f1eb;
  --warm:    #ede8e0;
  --accent:  #c94f1e;
  --accent2: #e8a87c;
  --muted:   #7a7570;
  --border:  #d4cfc7;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* ── Layout ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── Nav ── */
nav {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.nav-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
}

/* ── Hero ── */
.hero {
  padding: 48px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 11px;
  border-radius: 2px;
  margin-bottom: 18px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 7.6vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
h1 em { font-style: italic; color: var(--accent); }

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}
.hero-badges span {
  background: var(--warm);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── Form Card ── */
.form-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: 28px 22px;
}
.form-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.25;
}
.form-card > p {
  font-size: 0.88rem;
  color: #a09a92;
  margin-bottom: 22px;
  line-height: 1.55;
}
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #a09a92;
  margin-bottom: 6px;
}
.form-group input,
.form-group select {
  width: 100%;
  background: #1e1c1a;
  border: 1px solid #3a3632;
  color: var(--paper);
  padding: 14px 15px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder { color: #5a5550; }
.form-group input:focus,
.form-group select:focus { border-color: var(--accent2); }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a5550' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group select option { background: #1e1c1a; }

.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px 20px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-primary:active { background: #a83d15; }

.form-footnote {
  font-size: 0.74rem;
  color: #5a5550;
  text-align: center;
  margin-top: 12px;
}
.form-founder-quote {
  font-size: 0.75rem;
  color: #a09a92;
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 18px;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}
.form-trust {
  font-size: 0.78rem;
  color: #a09a92;
  text-align: center;
  margin-top: 10px;
}

/* Modern validation styles */
.form-group {
  position: relative;
}
.form-group input.touched:invalid:not(:placeholder-shown),
.form-group select.touched:invalid:not([value=""]) {
  border-color: #d32f2f;
  background-color: rgba(211, 47, 47, 0.03);
}
.form-group input.touched:valid:not(:placeholder-shown),
.form-group select.touched:valid:not([value=""]) {
  border-color: #2a8a4a;
}
.error-msg {
  display: none !important;
  font-size: 0.75rem;
  color: #d32f2f;
  margin-top: 4px;
  font-weight: 500;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}
.error-msg.show { 
  display: block !important; 
  visibility: visible;
  height: auto;
  margin-top: 4px !important;
}

.success-msg {
  display: none !important;
  text-align: center;
  padding: 24px 10px;
  color: #2a8a4a !important;
  font-weight: 500;
  font-size: 1rem;
}
.success-msg.show {
  display: block !important;
  color: #2a8a4a !important;
}
.success-msg p, .success-msg ol {
  font-size: 0.88rem;
  font-weight: 400;
  margin-top: 10px;
  text-align: center;
}
.success-msg ol {
  text-align: left;
  padding-left: 18px;
  line-height: 1.8;
}

/* Button states */
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-primary.loading {
  position: relative;
  color: transparent;
}
.btn-primary.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Stats ── */
.stats-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}
.stat {
  background: var(--paper);
  padding: 26px 20px;
  text-align: center;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Section Headings ── */
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
h2.section-title em { font-style: italic; color: var(--accent); }

/* ── Problem ── */
.problem-section {
  padding: 0 0 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.problem-desc {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.75;
}
.problem-desc p { margin-bottom: 14px; }
.problem-desc p:last-child { margin-bottom: 0; }
.problem-desc strong { color: var(--ink); }

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.problem-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 15px;
  background: var(--warm);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
}
.problem-list li .icon { font-size: 1.25rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.problem-list li .text { font-size: 0.9rem; color: var(--ink); line-height: 1.55; }
.problem-list li .text strong { display: block; font-weight: 500; margin-bottom: 2px; }

hr.divider { border: none; border-top: 1px solid var(--border); margin: 0 0 60px; }

/* ── Who ── */
.who-section { padding: 0 0 60px; }
.who-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.who-card {
  padding: 22px 18px;
  background: var(--warm);
  border-radius: 4px;
  border: 1px solid var(--border);
}
.who-card .role {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.who-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 7px;
  line-height: 1.3;
}
.who-card p { font-size: 0.87rem; color: var(--muted); line-height: 1.6; }

/* ── Diff ── */
.diff-section {
  padding: 0 0 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.diff-list { list-style: none; }
.diff-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.diff-item:last-child { border-bottom: none; }
.diff-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
}
.diff-item h3 { font-weight: 500; font-size: 0.95rem; margin-bottom: 4px; }
.diff-item p { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

/* ── Comparison Table ── */
.vs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.vs-wrap table {
  width: 100%;
  min-width: 380px;
  border-collapse: collapse;
  font-size: 0.83rem;
}
.vs-wrap th {
  background: var(--warm);
  padding: 10px 11px;
  text-align: left;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.vs-wrap td {
  padding: 11px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}
.vs-wrap tr:last-child td { border-bottom: none; }
.vs-wrap td:first-child { color: var(--ink); white-space: normal; }
.vs-wrap td.yes { color: #2a8a4a; font-weight: 500; }
.vs-wrap td.no { color: #b04018; }
.vs-wrap .our-col { background: rgba(201,79,30,0.05); }
.table-note { font-size: 0.74rem; color: var(--muted); margin-top: 9px; }

/* ── Founder ── */
.founder-section {
  background: var(--ink);
  color: var(--paper);
  padding: 52px 0;
  margin: 0 0 60px;
}
.founder-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--accent);
  line-height: 0.5;
  display: block;
  margin-bottom: 20px;
}
.founder-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 22px;
  color: #e8e0d5;
}
.founder-name {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a09a92;
}

/* ── How it works ── */
.how-section { padding: 0 0 60px; }
.how-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.how-card {
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.how-card .step-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.how-card h3 { font-weight: 500; font-size: 0.95rem; margin-bottom: 5px; }
.how-card p { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

/* ── Bottom CTA ── */
.bottom-cta {
  padding: 0 0 72px;
  text-align: center;
}
.bottom-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.bottom-cta > p {
  font-size: 0.97rem;
  color: var(--muted);
  margin-bottom: 26px;
}
.bottom-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto 12px;
}
.bottom-form .input-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bottom-form input[type="hidden"] {
  display: none;
}
.bottom-form .captcha-group {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  order: 1; /* mobile: captcha after email */
}
.bottom-form input {
  background: var(--warm);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 15px 16px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  -webkit-appearance: none;
}
.bottom-form input::placeholder { color: var(--muted); }
.bottom-form input:focus { border-color: var(--accent); }
.bottom-form input.touched:invalid:not(:placeholder-shown) {
  border-color: #d32f2f;
  background-color: rgba(211, 47, 47, 0.03);
}
.bottom-form input.touched:valid:not(:placeholder-shown) {
  border-color: #2a8a4a;
}
.bottom-form .error-msg {
  display: none !important;
  font-size: 0.75rem;
  color: #d32f2f;
  margin-top: 4px;
  font-weight: 500;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}
.bottom-form .error-msg.show { 
  display: block !important;
  visibility: visible;
  height: auto;
  margin-top: 4px !important;
}
.bottom-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px 22px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  order: 2; /* mobile: button after captcha */
}
.bottom-form button:active { background: #a83d15; }
.bottom-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.bottom-form button.loading {
  color: transparent;
}
.bottom-form button.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.bottom-note { font-size: 0.76rem; color: var(--muted); }

/* ── Product Mockup ── */
.mockup-section {
  padding: 60px 0 48px;
  text-align: center;
}
.mockup-card {
  background: var(--ink);
  border-radius: 8px;
  padding: 28px 24px;
  margin-top: 32px;
  overflow: hidden;
}
.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2a2825;
}
.mockup-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--paper);
}
.mockup-tagline {
  font-size: 0.72rem;
  color: #5a5550;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mockup-table-wrap { overflow-x: auto; }
.mockup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}
.mockup-table th {
  color: #5a5550;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  padding: 8px 12px;
  border-bottom: 1px solid #2a2825;
}
.mockup-table td {
  color: var(--paper);
  padding: 12px 12px;
  border-bottom: 1px solid #1a1815;
  white-space: nowrap;
}
.mockup-table tbody tr:last-child td { border-bottom: none; }
.tag {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag-insurance { background: #1e3040; color: #6fb3d9; }
.tag-warranty  { background: #1e3028; color: #6dba8a; }
.tag-contract  { background: #3a2818; color: #e8a87c; }
.tag-license   { background: #2a1e38; color: #b89ae0; }
.status {
  font-size: 0.78rem;
  font-weight: 500;
}
.status-ok     { color: #2a8a4a; }
.status-warn   { color: #d4a017; }
.status-urgent { color: #c94f1e; }
.mockup-note {
  font-size: 0.72rem;
  color: #5a5550;
  margin-top: 18px;
  font-style: italic;
}

/* ── Footer ── */
footer {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
footer p { font-size: 0.76rem; color: var(--muted); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-left { animation: fadeUp 0.6s ease both; }
.form-card  { animation: fadeUp 0.6s 0.1s ease both; }

/* Mobile: show form card above hero text */
@media (max-width: 919px) {
  .form-card { order: -1; }
}

/* ════════════════════════════
   TABLET 600px+
════════════════════════════ */
@media (min-width: 600px) {
  .container { padding: 0 28px; }

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

  .who-grid { display: grid; grid-template-columns: 1fr 1fr; }

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

  .bottom-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .bottom-form .input-group {
    flex: 1 1 auto;
    min-width: 220px;
  }
  .bottom-form input { width: 100%; }
  .bottom-form .captcha-group {
    flex: 0 0 100%;
    justify-content: center;
    margin-top: 12px;
    order: 2; /* desktop: captcha row below button */
  }
  .bottom-form button {
    order: 1; /* desktop: button before captcha */
  }

  footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
}

/* ════════════════════════════
   DESKTOP 920px+
════════════════════════════ */
@media (min-width: 920px) {
  .container { padding: 0 32px; }

  /* Hero: side-by-side */
  .hero {
    flex-direction: row;
    align-items: flex-start;
    padding: 72px 0 60px;
    gap: 60px;
  }
  .hero-left { flex: 1; }
  .form-card {
    width: 400px;
    flex-shrink: 0;
    position: sticky;
    top: 28px;
    padding: 36px 30px;
  }
  .form-card h2 { font-size: 1.45rem; }

  /* Problem: side-by-side */
  .problem-section {
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
  }
  .problem-section > div { flex: 1; }
  .problem-section > ul { flex: 1; }

  /* Who: 3 cols */
  .who-grid { grid-template-columns: repeat(3, 1fr); }

  /* Diff: side-by-side */
  .diff-section {
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
  }
  .diff-section > div:first-child { width: 370px; flex-shrink: 0; }
  .diff-section > div:last-child { flex: 1; }
}
