:root {
  --ink: #1d2220;
  --muted: #626b66;
  --paper: #fbfaf6;
  --card: #ffffff;
  --thread: #c63f31;
  --thread-dark: #992f25;
  --mint: #dceee5;
  --line: #dedfd8;
  --sun: #f3c873;
  --shadow: 0 22px 60px rgba(29, 34, 32, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(243, 200, 115, .24), transparent 22rem),
    linear-gradient(180deg, #fffdf7 0%, var(--paper) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--thread-dark);
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--thread);
  font-size: 20px;
  line-height: 1;
}

.pilot-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(255,255,255,.74);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 60px;
  align-items: center;
  padding: 66px 0 76px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--thread-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  letter-spacing: -.045em;
  line-height: 1.04;
}

h1 {
  max-width: 770px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 500;
}

h3 { font-size: 21px; }

.lead {
  max-width: 660px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 23px;
  background: var(--thread);
  color: #fff;
  box-shadow: 0 12px 30px rgba(216, 79, 62, .24);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.button:hover { transform: translateY(-2px); background: var(--thread-dark); }
.button.secondary { background: var(--ink); box-shadow: none; }
.button[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.microcopy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.seam-card {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(29,34,32,.08);
  border-radius: 34px;
  padding: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.fabric {
  position: relative;
  min-height: 250px;
  border: 1px solid #d7d0c4;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(120,105,83,.055) 1px, transparent 1px),
    linear-gradient(rgba(120,105,83,.055) 1px, transparent 1px),
    #f4ead8;
  background-size: 7px 7px;
}

.bad-thread, .good-thread {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 4px;
}

.bad-thread {
  top: 43%;
  background: repeating-linear-gradient(90deg, var(--thread) 0 18px, transparent 18px 25px);
  transform: rotate(-1deg);
}

.bad-thread::before, .bad-thread::after {
  position: absolute;
  top: -13px;
  width: 29px;
  height: 25px;
  border: 4px solid var(--thread);
  border-radius: 50%;
  content: "";
}

.bad-thread::before { left: 32%; }
.bad-thread::after { left: 63%; width: 38px; }

.good-thread {
  top: 68%;
  background: repeating-linear-gradient(90deg, #2f7460 0 15px, transparent 15px 21px);
}

.result-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--mint);
  color: #245444;
  font-size: 13px;
  font-weight: 800;
}

.result-title { margin: 14px 0 8px; font-size: 22px; }
.result-text { margin: 0; color: var(--muted); }

.section { padding: 80px 0; }
.section.tint { background: #f1f5ef; }

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head p { color: var(--muted); font-size: 18px; }

.steps, .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step, .feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  background: rgba(255,255,255,.84);
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
}

.step p, .feature p { margin-bottom: 0; color: var(--muted); }

.safety {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 42px;
  border-radius: 32px;
  padding: 42px;
  background: var(--ink);
  color: #fff;
}

.safety p, .safety li { color: #ced4d0; }
.safety ul { margin: 0; padding-left: 20px; }
.safety li + li { margin-top: 10px; }

.price-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 34px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.price {
  margin: 0 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 60px;
  line-height: 1;
}

.price-note { margin: 0; color: var(--muted); }

.waitlist {
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding-top: 30px;
}

.inline-form {
  display: flex;
  max-width: 630px;
  gap: 10px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #cfd2cc;
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(216, 79, 62, .14);
  border-color: var(--thread);
}

.form-page {
  max-width: 820px;
  margin: 42px auto 90px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(24px, 5vw, 54px);
  background: #fff;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field { margin-bottom: 22px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-weight: 800; }
.field small { display: block; margin-top: 6px; color: var(--muted); }

.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 16px 0;
}

.check input { width: 18px; height: 18px; margin-top: 3px; }
.check label { color: var(--muted); }

.consent-group {
  margin: 28px 0;
  border: 0;
  padding: 0;
}

.consent-group legend {
  margin-bottom: 10px;
  font-weight: 850;
}

.notice {
  margin: 20px 0;
  border-left: 4px solid var(--sun);
  padding: 13px 16px;
  background: #fff8e8;
  color: #5c513b;
}

.legal {
  max-width: 800px;
  padding: 45px 0 90px;
}

.legal h2 { margin-top: 40px; font-size: 30px; }
.legal p, .legal li { color: #4e5752; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 820px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .pilot-pill { font-size: 10px; }
  .hero, .safety, .price-card { grid-template-columns: 1fr; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .hero { gap: 34px; padding-top: 42px; }
  .seam-card { min-height: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
