:root {
  --bg: #f2ece2;
  --paper: rgba(251, 247, 241, 0.92);
  --paper-strong: #fffdf9;
  --ink: #171613;
  --muted: #605b53;
  --line: rgba(23, 22, 19, 0.1);
  --line-strong: rgba(23, 22, 19, 0.16);
  --accent: #b3512f;
  --accent-soft: rgba(179, 81, 47, 0.1);
  --shadow-lg: 0 28px 60px rgba(28, 19, 10, 0.08);
  --shadow-md: 0 14px 28px rgba(28, 19, 10, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(179, 81, 47, 0.12), transparent 28%),
    linear-gradient(180deg, #f3eee5 0%, #f1ece3 100%);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(23, 22, 19, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 22, 19, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 82%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.top-bar,
.site-header,
.section-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.top-bar {
  padding: 16px 0 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: #f8f3ea;
  font-size: 0.86rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(23, 22, 19, 0.74);
}

.header-button {
  min-height: 46px;
  padding: 0 18px;
  box-shadow: none;
}

.section-shell {
  padding: 76px 0 0;
}

.hero {
  padding-top: 28px;
}

.hero-layout,
.split-section,
.pricing-card,
.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
  gap: 56px;
  align-items: start;
}

.hero-copy {
  max-width: 700px;
  padding-top: 18px;
}

.eyebrow,
.section-heading > p:first-child,
.panel-header p,
.panel-header span,
.form-topline p,
.form-topline span,
.example-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.8);
  color: var(--accent);
}

h1 {
  margin-top: 20px;
  max-width: 12.2ch;
  font-size: clamp(2.75rem, 4.7vw, 4.55rem);
  line-height: 0.95;
}

.hero-subheadline,
.section-subheading,
.hero-microcopy,
.why-intro,
.closing-line,
.trust-line,
.faq-list p,
.success-state p,
.step-message {
  color: var(--muted);
}

.hero-subheadline {
  max-width: 52ch;
  margin: 24px 0 0;
  font-size: 1.08rem;
}

.hero-bullets,
.example-card ul,
.fit-card ul,
.pricing-meta ul,
.faq-list,
.point-list {
  margin: 0;
  padding: 0;
}

.hero-bullets {
  display: grid;
  gap: 12px;
  margin-top: 0;
  list-style: none;
  max-width: none;
}

.hero-bullets li {
  position: relative;
  padding-left: 22px;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-actions,
.section-actions,
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-microcopy {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: 0.95rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 18px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  background: var(--ink);
  color: #f8f3ea;
  box-shadow: 0 16px 30px rgba(23, 22, 19, 0.12);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.9);
  color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.wide {
  width: 100%;
}

.hero-panel,
.info-card,
.point-card,
.example-card,
.step-card,
.fit-card,
.faq-list details {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.hero-panel {
  padding: 28px;
  box-shadow: var(--shadow-lg);
  margin-top: 8px;
}

.panel-header,
.form-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--accent);
}

.quick-step,
.expanded-form {
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.95);
  padding: 24px;
}

.hero-panel-notes {
  display: grid;
  gap: 0;
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-panel-notes .hero-bullets li {
  font-size: 0.98rem;
}

.hero-panel-notes .hero-microcopy {
  max-width: none;
}

.step-message {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--accent-soft);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field,
.field-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field span {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 124px;
}

.success-state {
  padding-top: 8px;
}

.selected-site {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
}

.section-subheading {
  margin: 18px 0 0;
  max-width: 62ch;
  line-height: 1.6;
  font-size: 1.02rem;
}

.card-grid,
.steps-grid,
.fit-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

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

.info-card,
.point-card,
.example-card,
.step-card,
.fit-card {
  padding: 28px;
}

.info-card h3,
.point-card h3,
.example-card h3,
.step-card h3,
.fit-card h3 {
  font-size: 1.24rem;
  line-height: 1.05;
}

.info-card p,
.point-card p,
.step-card p,
.fit-card li,
.example-card li,
.pricing-meta li {
  color: var(--muted);
}

.info-card p,
.point-card p,
.step-card p {
  margin: 12px 0 0;
}

.section-footnote {
  margin: 24px 0 0;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.74);
  color: var(--muted);
}

.split-section {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.why-intro,
.closing-line {
  margin: 0;
}

.point-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.closing-line {
  margin-top: 22px;
  font-weight: 700;
  color: var(--ink);
}

.example-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 0.95fr;
  gap: 22px;
  margin-top: 32px;
  align-items: stretch;
}

.example-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.example-score {
  grid-row: span 2;
}

.example-fixes {
  grid-column: 2 / 4;
}

.example-card-dark {
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.08);
}

.example-card-dark .example-label,
.example-card-dark h3,
.example-card-dark li {
  color: #f8f3ea;
}

.example-card h3 {
  font-size: clamp(2.9rem, 4vw, 3.5rem);
}

.example-card ul,
.fit-card ul,
.pricing-meta ul {
  padding-left: 18px;
}

.example-card li,
.fit-card li,
.pricing-meta li {
  margin-bottom: 12px;
}

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

.step-card {
  min-height: 220px;
}

.step-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
}

.fit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fit-card.muted {
  background: rgba(245, 239, 231, 0.96);
}

.pricing-card {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(180deg, #181714 0%, #23201b 100%);
  color: #f8f3ea;
  box-shadow: 0 28px 60px rgba(23, 22, 19, 0.16);
}

.pricing-copy {
  max-width: 58ch;
}

.pricing-copy h2 {
  margin-top: 10px;
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
}

.pricing-card .section-subheading,
.trust-line,
.pricing-meta li {
  color: rgba(248, 243, 234, 0.78);
}

.pricing-meta {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-card .primary-button {
  background: #f8f3ea;
  color: var(--ink);
}

.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.faq-list details {
  padding: 22px 24px;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin: 12px 0 0;
}

.final-cta {
  align-items: center;
  gap: 36px;
  margin-top: 8px;
  padding: 38px 40px;
  padding-bottom: 38px;
  border-radius: 32px;
  background: linear-gradient(180deg, #181714 0%, #23201b 100%);
  color: #f8f3ea;
  box-shadow: 0 28px 60px rgba(23, 22, 19, 0.14);
}

.final-cta h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.final-cta p {
  color: rgba(248, 243, 234, 0.78);
}

.final-cta .hero-microcopy {
  color: rgba(248, 243, 234, 0.64);
}

.final-cta .primary-button {
  background: #f8f3ea;
  color: var(--ink);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(179, 81, 47, 0.3);
  outline-offset: 2px;
}

body.modal-open {
  overflow: hidden;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 22, 19, 0.42);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(92vh, 960px);
  border-radius: 34px;
  border: 1px solid var(--line);
  background: #fbf7f1;
  box-shadow: 0 36px 90px rgba(23, 22, 19, 0.22);
  overflow: hidden;
}

.modal-content {
  position: relative;
  overflow: auto;
  max-height: min(92vh, 960px);
  padding: 34px;
}

.modal-header {
  max-width: 56ch;
  padding-right: 56px;
}

.modal-header h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.modal-subheading {
  margin: 16px 0 0;
  color: var(--muted);
}

.modal-card {
  margin-top: 28px;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.95);
}

.modal-card .field + .primary-button,
#beta-form .primary-button {
  margin-top: 18px;
}

.modal-microcopy {
  max-width: none;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(23, 22, 19, 0.06);
  color: var(--ink);
  box-shadow: none;
}

.modal-close span {
  line-height: 1;
  font-size: 1.8rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .hero-layout,
  .split-section,
  .pricing-card,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .steps-grid,
  .fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .example-score,
  .example-fixes {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-copy {
    max-width: 760px;
    padding-top: 0;
  }

  .hero-panel {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .top-bar,
  .site-header,
  .section-shell {
    width: min(1200px, calc(100% - 28px));
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .header-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-button {
    display: none;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 12vw, 3.9rem);
  }

  .hero-actions,
  .section-actions,
  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .field-grid,
  .card-grid,
  .steps-grid,
  .fit-grid,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .section-shell {
    padding-top: 52px;
  }

  .hero-panel,
  .quick-step,
  .expanded-form,
  .modal-card,
  .info-card,
  .point-card,
  .example-card,
  .step-card,
  .fit-card,
  .faq-list details,
  .pricing-card,
  .final-cta {
    border-radius: 24px;
  }

  .pricing-card,
  .final-cta {
    padding: 28px;
  }

  .pricing-meta {
    padding: 20px;
  }

  .step-card {
    min-height: 0;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-panel-notes {
    margin-top: 16px;
    padding-top: 18px;
  }

  .hero-microcopy {
    max-width: none;
  }

  .modal-shell {
    padding: 12px;
    place-items: end center;
  }

  .modal-dialog {
    width: 100%;
    max-height: calc(100vh - 12px);
    border-radius: 28px 28px 0 0;
  }

  .modal-content {
    max-height: calc(100vh - 12px);
    padding: 24px;
  }

  .modal-header {
    padding-right: 52px;
  }

  .modal-card {
    padding: 22px;
  }

  .modal-close {
    top: 14px;
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
