:root {
  --bg: #faf5f2;
  --panel: #fffdfb;
  --ink: #241d1f;
  --muted: #756a6c;
  --line: #e6d9d2;
  --accent: #a24857;
  --accent-dark: #7d3542;
  --accent-soft: #f3dee1;
  --warning: #a86a1a;
  --warning-soft: #f7e9d2;
  --focus: #2b6fdd;
  --shadow: 0 22px 60px rgba(36, 29, 31, 0.14);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(162, 72, 87, 0.08), transparent 28rem),
    linear-gradient(180deg, #faf5f2 0%, #f6efe9 55%, #fdfbf9 100%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input {
  min-height: 44px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  left: 1rem;
  position: fixed;
  top: -6rem;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 245, 242, 0.88);
  border-bottom: 1px solid rgba(230, 217, 210, 0.82);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand,
.variant-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand {
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
}

.variant-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.variant-nav a {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.72);
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.variant-nav a.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero {
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.hero-grid,
.pricing-grid,
.form-grid,
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0.7rem 0 0.35rem;
  font-size: 1.15rem;
}

.hero-sub,
.section-heading p,
.form-grid > div > p,
.detail-card p,
.pricing-grid p,
.final-panel p {
  color: var(--muted);
}

.hero-sub {
  margin: 1.2rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.85rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: rgba(255, 253, 251, 0.72);
  border-color: var(--line);
  color: var(--ink);
}

.microcopy,
.disclosure {
  margin-top: 0.95rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.phone-shell {
  width: min(100%, 330px);
  margin: 0 auto;
  border: 1px solid rgba(36, 29, 31, 0.18);
  border-radius: 36px;
  padding: 0.8rem;
  background: #1f1a1b;
  box-shadow: var(--shadow);
}

.phone-hero {
  transform: rotate(1.2deg);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  color: #fbf8f7;
  padding: 0.3rem 0.65rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.app-screen {
  min-height: 500px;
  border-radius: 28px;
  padding: 1rem;
  background: linear-gradient(180deg, #fffdfb, #f4ede8);
  color: var(--ink);
}

.app-topline,
.app-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.privacy-pill {
  white-space: nowrap;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
}

.metric-card,
.service-card {
  padding: 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.metric-card span,
.metric-card small,
.service-card span,
.service-card small {
  display: block;
  color: rgba(255, 255, 255, 0.74);
}

.metric-card strong,
.service-card strong {
  display: block;
  margin: 0.25rem 0;
  font-size: 2.15rem;
  line-height: 1.1;
}

.metric-card.compact strong {
  font-size: 1.8rem;
}

.attention-card {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.attention-card p {
  margin: 0.08rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
}

.status-dot.warning {
  background: var(--warning);
}

.muted {
  background: #faf5f0;
}

.mini-list {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.8rem;
}

.mockup-grid,
.steps-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.mockup-grid .phone-shell {
  width: 100%;
  max-width: 325px;
}

.mock-caption {
  min-height: 3.4rem;
  margin: 0.85rem 0 0.1rem;
  color: #fbf8f7;
  font-weight: 800;
  text-align: center;
}

.app-title-row button,
.mock-primary {
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 0.4rem 0.75rem;
}

.field-label {
  display: block;
  margin: 0.2rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.mock-input {
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 800;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.chips span {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.form-preview,
.deadline-list {
  display: grid;
  gap: 0.55rem;
}

.form-preview div,
.deadline-list div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.form-preview span,
.deadline-list span {
  color: var(--muted);
}

.mock-primary {
  width: 100%;
  margin-top: 0.85rem;
}

.mock-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 800;
}

.note-card {
  margin: 0.85rem 0 0;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--warning-soft);
  color: #6b3f08;
}

.problem-band {
  background: var(--ink);
  color: #fff;
}

.problem-band .eyebrow,
.problem-band p {
  color: #e6c3ca;
}

.problem-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.problem-list li {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.steps-grid article,
.detail-card,
.price-panel,
.validation-form,
.final-panel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 251, 0.76);
}

.step-number {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.detail-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.privacy-card {
  background: var(--accent-soft);
}

.pricing-section {
  background: #f0e6df;
}

.price-panel {
  display: grid;
  gap: 0.8rem;
}

legend,
.form-field > label,
.form-field legend {
  font-weight: 800;
}

.price-panel label,
.form-field label,
.checkbox-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  cursor: pointer;
}

.price-panel input,
.form-field input[type="checkbox"],
.checkbox-row input {
  width: 1.1rem;
  height: 1.1rem;
  min-height: auto;
  margin-top: 0.22rem;
  flex: 0 0 auto;
}

.price-panel p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-grid {
  align-items: start;
}

.debug-hint {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 8px;
  background: var(--warning-soft);
  color: #6b3f08;
}

.validation-form {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-field select,
.form-field input[type="email"] {
  width: 100%;
  border: 1px solid #d9c9bf;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 0.85rem;
}

.form-field label span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.checkbox-row {
  align-items: center;
  padding: 0.6rem 0;
}

.form-submit {
  width: 100%;
}

.form-error {
  margin: 0;
  color: #a13122;
  font-weight: 800;
}

.result-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdf7f8;
}

.result-panel.unqualified {
  background: #fff8ed;
}

.result-panel h3 {
  margin-top: 0;
}

.final-cta {
  padding-top: 2rem;
}

.final-panel {
  text-align: center;
}

.final-panel .button {
  margin-top: 1rem;
}

.debug-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  width: min(420px, calc(100% - 2rem));
  max-height: 58vh;
  overflow: auto;
  border: 1px solid #2d2426;
  border-radius: 8px;
  background: #161112;
  color: #f7e9ec;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.debug-header,
.debug-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.debug-links {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.debug-links a,
.debug-links button,
.debug-header button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7e9ec;
  padding: 0.35rem 0.55rem;
  text-decoration: none;
  cursor: pointer;
}

#eventLog {
  margin: 0;
  padding: 0.75rem;
  white-space: pre-wrap;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .pricing-grid,
  .form-grid,
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .mockup-grid,
  .steps-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .phone-hero {
    transform: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .variant-nav {
    justify-content: flex-start;
  }

  .hero-actions .button,
  .button {
    width: 100%;
  }

  .section {
    padding: 2.7rem 0;
  }

  .app-screen {
    min-height: 470px;
  }

  .metric-card strong,
  .service-card strong {
    font-size: 1.8rem;
  }

  .debug-panel {
    max-height: 34vh;
  }
}
