:root {
  color-scheme: light;
  --ink: #14201c;
  --ink-soft: #3d4a44;
  --paper: #e8eee8;
  --paper-deep: #d5e0d6;
  --leaf: #1f6b4a;
  --leaf-deep: #145239;
  --wash: #f3f6f2;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% -10%, #c9ddd0 0%, transparent 55%),
    radial-gradient(900px 600px at 100% 8%, #b7cfc4 0%, transparent 50%),
    linear-gradient(180deg, var(--wash) 0%, var(--paper) 42%, #eef2ee 100%);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--leaf-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.75rem;
  z-index: 20;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--wash) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  line-height: 0;
}

.wordmark img {
  display: block;
  height: 1.55rem;
  width: auto;
}

.top-nav {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 500;
}

.top-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: min(92vh, 920px);
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(380px, 1.15fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
}

.brand {
  margin: 0 0 0.85rem;
  line-height: 0;
  animation: rise 700ms var(--ease) both;
}

.brand-logo {
  display: block;
  width: min(100%, 17rem);
  height: auto;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--ink);
  animation: rise 700ms var(--ease) 80ms both;
}

.lede {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
  text-wrap: pretty;
  animation: rise 700ms var(--ease) 140ms both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
  animation: rise 700ms var(--ease) 200ms both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    transform 160ms var(--ease),
    background 160ms var(--ease),
    color 160ms var(--ease),
    border-color 160ms var(--ease);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--ink);
  color: #f4faf5;
}

.btn-primary:hover {
  background: var(--leaf-deep);
  color: #f4faf5;
}

.btn-ghost {
  background: color-mix(in srgb, white 55%, transparent);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--ink) 28%, transparent);
  color: var(--ink);
}

/* Product preview — fills and centers in the hero’s right column */
.hero-stage {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rise 900ms var(--ease) 120ms both;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 4% 2% 2%;
  background:
    radial-gradient(ellipse at 50% 45%, color-mix(in srgb, #9fc4b0 55%, transparent), transparent 68%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

.product {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 16px;
  background: color-mix(in srgb, white 78%, #e8eee8);
  outline: 1px solid oklch(0 0 0 / 0.1);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--ink) 6%, transparent),
    0 24px 48px color-mix(in srgb, var(--ink) 14%, transparent);
  overflow: hidden;
  transform: none;
  animation: settle 1.1s var(--ease) 200ms both;
}

.product-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, white 70%, transparent);
}

.product-chrome .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
}

.product-chrome .dot:nth-child(1) {
  background: #e3b6a8;
}
.product-chrome .dot:nth-child(2) {
  background: #e2d2a4;
}
.product-chrome .dot:nth-child(3) {
  background: #b5d0be;
}

.product-title {
  margin-left: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.product-title img {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 22%;
}

.product-body {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) 1fr;
  min-height: 420px;
}

.product-library {
  padding: 0.85rem 0.7rem;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, #e8eee8 55%, white);
}

.product-label {
  margin: 0 0 0.65rem 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
}

.product-library ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.product-library li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.45rem 0.4rem;
  border-radius: 8px;
  color: var(--ink-soft);
}

.product-library li.is-active {
  background: color-mix(in srgb, white 80%, transparent);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.product-library strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.product-library em {
  display: block;
  margin-top: 0.12rem;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--ink-soft);
  opacity: 0.9;
}

.spine {
  width: 18px;
  height: 26px;
  border-radius: 2px 4px 4px 2px;
  outline: 1px solid oklch(0 0 0 / 0.1);
}

.spine-a {
  background: linear-gradient(180deg, #1f6b4a, #145239);
}
.spine-b {
  background: linear-gradient(180deg, #3d4a44, #14201c);
}
.spine-c {
  background: linear-gradient(180deg, #c4b59a, #8a7a5c);
}

.product-reader {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #eef4ef;
}

.product-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, white 55%, #eef4ef);
}

.product-toolbar .seg {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  color: var(--ink-soft);
}

.product-toolbar .seg.is-on {
  background: var(--ink);
  color: #f4faf5;
}

.product-toolbar .theme {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  outline: 1px solid oklch(0 0 0 / 0.12);
}

.theme-light {
  background: #eef4ef;
}
.theme-owl {
  background: #0d1a14;
}
.theme-sepia {
  background: #f0ebe0;
}

.theme.is-on {
  outline: 2px solid var(--leaf);
  outline-offset: 1px;
}

.product-toolbar .progress {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.product-page {
  flex: 1;
  padding: 1.35rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.page-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
}

.product-page p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
}

.product-page mark {
  background: color-mix(in srgb, #ffe066 70%, transparent);
  color: inherit;
  padding: 0 0.12em;
  border-radius: 2px;
}

.band {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 980px;
  margin: 0 auto;
}

.band-alt {
  max-width: none;
  margin: 0;
  background: color-mix(in srgb, white 42%, transparent);
  border-block: 1px solid var(--line);
}

.band-alt > * {
  max-width: 980px;
  margin-inline: auto;
}

.band h2,
.doc h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-lede {
  margin: 0.65rem 0 0;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  text-wrap: pretty;
}

.steps,
.promises {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li,
.promises li {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, white 58%, transparent);
  display: grid;
  gap: 0.35rem;
}

.steps strong,
.promises strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.steps span,
.promises li {
  color: var(--ink-soft);
}

.promises strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.cta-band .section-lede {
  max-width: 48ch;
}

.site-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
}

.footer-brand {
  line-height: 0;
}

.footer-brand img {
  display: block;
  height: 1.35rem;
  width: auto;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.15rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

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

.fine {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Legal / help docs */
.doc-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 4rem;
}

.doc h1 {
  margin-bottom: 0.35rem;
}

.doc .meta {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.doc h2 {
  margin: 1.75rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.doc p,
.doc li {
  color: var(--ink-soft);
}

.doc p,
.doc ul,
.doc ol {
  margin: 0.55rem 0 0;
}

.doc ul,
.doc ol {
  padding-left: 1.2rem;
}

.doc .note {
  margin-top: 1.25rem;
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  background: color-mix(in srgb, white 60%, transparent);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
    gap: 2.25rem;
  }

  .hero-stage {
    order: 0;
    min-height: auto;
    margin-top: 0.35rem;
  }

  .hero-stage::before {
    inset: 12% 0 0;
  }

  .product {
    animation: rise 700ms var(--ease) 120ms both;
  }

  .product-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-library {
    display: none;
  }

  .product-page {
    min-height: 220px;
  }

  .brand-logo {
    width: min(100%, 13.5rem);
  }
}

@media (max-width: 520px) {
  .product-toolbar .seg:nth-child(2) {
    display: none;
  }
}

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

  .brand,
  .hero h1,
  .lede,
  .cta-row,
  .hero-stage,
  .product {
    animation: none;
  }

  .product {
    transform: none;
  }

  .btn:active {
    transform: none;
  }
}
