:root {
  color-scheme: light dark;
  --bg: #f3f1ea;
  --surface: #fbfaf6;
  --surface-strong: #ffffff;
  --ink: #171a16;
  --muted: #62685f;
  --soft: #e8e6de;
  --line: #d2d4cb;
  --accent: #244f3a;
  --accent-hover: #183e2b;
  --accent-ink: #ffffff;
  --max: 1180px;
  --narrow: 760px;
  --radius: 18px;
  --shadow: 0 30px 80px rgb(35 45 37 / 9%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f120f;
    --surface: #171b17;
    --surface-strong: #1b201b;
    --ink: #f1f2ec;
    --muted: #b0b7ad;
    --soft: #212721;
    --line: #343c34;
    --accent: #9ccdaf;
    --accent-hover: #b3dfc3;
    --accent-ink: #102017;
    --shadow: 0 30px 80px rgb(0 0 0 / 30%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentcolor 45%, transparent);
  text-underline-offset: 0.24em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: currentcolor;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

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

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

.site-header,
footer,
main {
  width: min(100% - 4rem, var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.site-header nav,
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  align-items: center;
}

.site-header nav a,
footer nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.site-header nav a:hover,
footer nav a:hover {
  color: var(--ink);
}

.wordmark {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 760;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  display: block;
  width: 2.7rem;
  height: auto;
  flex: 0 0 auto;
}

section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  border-top: 1px solid var(--line);
}

.hero {
  min-height: min(820px, calc(100vh - 84px));
  padding-top: clamp(4rem, 8vw, 8rem);
  border-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7.5rem);
}

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

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  font-weight: 720;
}

h2 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.3rem, 4.6vw, 4.5rem);
  font-weight: 690;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 59ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.eyebrow,
.step,
.mode-label {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.fine,
.section-intro,
.link-row {
  color: var(--muted);
}

.fine {
  max-width: 62ch;
  font-size: 0.9rem;
}

.section-intro {
  max-width: 65ch;
  margin-bottom: 3rem;
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin: 2.25rem 0 1.15rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.button:hover {
  border-color: var(--muted);
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

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

.text-link {
  padding: 0.5rem 0.2rem;
  font-weight: 650;
}

.product-shot {
  min-width: 0;
  margin: 0;
}

.product-shot-frame {
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: var(--surface-strong);
}

.product-shot figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-shot figcaption span {
  max-width: 54ch;
}

.product-shot figcaption strong,
.product-shot figcaption a {
  color: var(--ink);
}

.product-shot figcaption a {
  flex: 0 0 auto;
  font-weight: 700;
}

.product-evidence {
  align-items: center;
}

.product-evidence-copy .section-intro {
  margin-bottom: 0;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-grid article,
.boundary-grid article,
.requirement-list article,
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.workflow-grid article {
  grid-column: span 2;
  padding: 1.5rem;
}

.workflow-grid article:nth-child(4) {
  grid-column: 2 / span 2;
}

.workflow-grid article p:last-child,
.boundary-grid article p:last-child,
.requirement-list article p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.split-section,
.pricing-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.prose-stack {
  max-width: 62ch;
  padding-top: 1.4rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.prose-stack p:first-child {
  margin-top: 0;
}

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

.boundary-grid article {
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.requirement-list {
  display: grid;
  gap: 0.85rem;
}

.requirement-list article {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.25rem;
}

.requirement-number {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.requirement-list h3,
.requirement-list article p {
  margin-top: 0;
}

.link-row {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.price-card {
  padding: clamp(1.7rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.price {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 730;
  letter-spacing: -0.06em;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  vertical-align: top;
}

.price-period {
  margin-top: 0.6rem;
  color: var(--muted);
  font-weight: 650;
}

.check-list {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.check-list li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.65rem;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "✓";
  font-weight: 800;
}

.faq-list {
  max-width: var(--narrow);
  margin-top: 3rem;
}

details {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
}

details p {
  max-width: 65ch;
  margin-bottom: 0;
  color: var(--muted);
}

.closing {
  text-align: center;
}

.closing h2,
.closing .actions {
  margin-inline: auto;
  justify-content: center;
}

.narrow {
  width: min(100%, var(--narrow));
  margin-inline: auto;
}

.legal-hero {
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 0;
}

.legal-hero h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.legal-section {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.legal-section h2 {
  max-width: 22ch;
  margin-top: 3.5rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.legal-section h2:first-child {
  margin-top: 0;
}

.legal-section p,
.legal-section li {
  max-width: 72ch;
}

.legal-section li + li {
  margin-top: 0.65rem;
}

.seller-identity {
  max-width: 62ch;
  padding: 1.2rem 1.35rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--muted);
  font-style: normal;
}

.seller-identity strong {
  color: var(--ink);
}

.legal-config-error {
  max-width: 62ch;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 700;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
}

.footer-brand p {
  max-width: 34ch;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: grid;
  gap: 0.9rem;
  justify-items: end;
}

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

  .hero {
    min-height: 0;
  }

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

  .hero-shot,
  .result-shot {
    max-width: 760px;
  }

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

  .workflow-grid article,
  .workflow-grid article:nth-child(4) {
    grid-column: auto;
  }

  .workflow-grid article:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-header,
  footer,
  main {
    width: min(100% - 2rem, var(--max));
  }

  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    padding: 1rem 0;
    gap: 0.75rem;
  }

  .site-header nav {
    gap: 0.45rem 1rem;
  }

  .site-header nav a {
    font-size: 0.86rem;
  }

  section {
    padding: 4rem 0;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .workflow-grid,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid article:last-child {
    grid-column: auto;
  }

  .requirement-list article {
    grid-template-columns: 2rem 1fr;
  }

  .product-shot figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-links {
    justify-items: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
