:root {
  color-scheme: light dark;
  --background: #f7f2ec;
  --background-deep: #efe4d8;
  --surface: #fffcf8;
  --surface-muted: #f3e6d8;
  --elevated-surface: #ead7c4;
  --text: #2b211c;
  --text-muted: #705c50;
  --border: #dbc6b3;
  --accent: #ff6a1a;
  --accent-strong: #c94a0a;
  --on-accent: #ffffff;
  --focus: #8b451f;
  --media: #1b1411;
  --media-surface: #2c201a;
  --success: #237a5a;
  --content-width: 74rem;
  --article-width: 54rem;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  min-width: 18rem;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--accent-strong);
  overflow-wrap: anywhere;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent); }

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.85rem;
  transform: translateY(-180%);
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--text);
  border-radius: 0.55rem;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner,
.site-footer,
.landing-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { color: var(--text); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 0.82rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand strong,
.brand small { display: block; }

.brand strong { line-height: 1.2; }

.brand small {
  margin-top: 0.1rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  min-height: 2.75rem;
  padding: 0.58rem 0.8rem;
  color: var(--text-muted);
  border-radius: 0.65rem;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
  background: var(--surface-muted);
}

.landing-shell { padding: clamp(2.5rem, 7vw, 6.5rem) 0 5rem; }

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

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

.product-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.058em;
}

.hero-summary {
  max-width: 40rem;
  margin: 1.6rem 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.66rem 1rem;
  border-radius: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-links .primary-link {
  color: var(--on-accent);
  background: var(--accent);
}

.hero-links .primary-link:hover { background: var(--accent-strong); }

.hero-links .secondary-link {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: var(--text);
  font-size: 0.95rem;
}

.privacy-note span {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  color: var(--on-accent);
  background: var(--success);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-visual {
  display: grid;
  min-width: 0;
  place-items: center;
}

.hero-screenshot {
  display: block;
  width: min(100%, 26rem);
  height: auto;
  max-height: 46rem;
  object-fit: contain;
  background: var(--media);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}

.workflow {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--border);
}

.workflow h2 {
  max-width: 16ch;
  margin: 2rem 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--border);
}

.workflow-list li {
  min-width: 0;
  padding: 1.5rem;
}

.workflow-list li + li { border-left: 1px solid var(--border); }

.workflow-list strong,
.workflow-list span { display: block; }

.workflow-list strong {
  margin-bottom: 0.4rem;
  color: var(--accent-strong);
  font-size: 0.88rem;
}

.workflow-list span { color: var(--text-muted); }

.page-shell {
  width: min(calc(100% - 2rem), var(--article-width));
  margin: 3rem auto 4rem;
}

.legal-document {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 3.4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}

.legal-document > h1:first-child {
  margin: 0 0 0.55rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.legal-document > h1:first-child + p {
  display: inline-block;
  margin: 0 0 1.8rem;
  padding: 0.34rem 0.68rem;
  color: var(--text-muted);
  background: var(--surface-muted);
  border-radius: 999px;
  font-size: 0.88rem;
}

.legal-document h2 {
  margin: 2.7rem 0 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.legal-document h3 {
  margin: 2rem 0 0.55rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

.legal-document p,
.legal-document ul { margin-block: 0.8rem; }

.legal-document ul { padding-left: 1.35rem; }
.legal-document li { padding-left: 0.25rem; }
.legal-document li + li { margin-top: 0.42rem; }

.legal-document code {
  padding: 0.12rem 0.32rem;
  color: var(--text);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
}

.site-footer p { margin: 0.2rem 0; }

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

.footer-links a {
  color: var(--text-muted);
  font-weight: 550;
  text-decoration: none;
}

@media (max-width: 54rem) {
  .product-hero { grid-template-columns: 1fr; }
  .hero-visual {
    width: min(100%, 34rem);
    margin-inline: auto;
  }
}

@media (max-width: 44rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    padding-block: 1rem;
  }

  .site-nav { width: 100%; }
  .site-nav a {
    flex: 1;
    text-align: center;
  }

  .page-shell,
  .landing-shell { width: min(calc(100% - 1rem), var(--content-width)); }

  .landing-shell { padding-top: 2.8rem; }
  .product-hero h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .hero-screenshot { max-height: none; }

  .workflow-list { grid-template-columns: 1fr; }
  .workflow-list li + li {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .legal-document { border-radius: 0.85rem; }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

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

@media (prefers-color-scheme: dark) {
  :root {
    --background: #16110e;
    --background-deep: #1b1410;
    --surface: #211814;
    --surface-muted: #302119;
    --elevated-surface: #3a281e;
    --text: #fff5ec;
    --text-muted: #cdb5a4;
    --border: #50382b;
    --accent: #ff9138;
    --accent-strong: #ffb06d;
    --on-accent: #28140a;
    --focus: #ffb06d;
    --media: #0f0c0a;
    --media-surface: #281c16;
    --success: #52b78d;
  }
}

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