:root {
  --bg: #ebe4d8;
  --surface: #f3ede3;
  --surface-raised: #faf7f2;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #d4c9b8;
  --primary: #0f5c56;
  --primary-deep: #0a4540;
  --primary-fg: #ffffff;
  --primary-soft: #d7ebe8;
  --accent: #c4a35a;
  --success: #1b7a4e;
  --max: 68rem;
  --legal-max: 44rem;
  --font-display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --radius: 0.5rem;
  --shadow: 0 18px 40px rgba(28, 25, 23, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    linear-gradient(180deg, rgba(15, 92, 86, 0.06) 0%, transparent 28rem),
    radial-gradient(900px 420px at 92% -8%, rgba(196, 163, 90, 0.14), transparent 55%),
    var(--bg);
}

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

a {
  color: var(--primary-deep);
  text-underline-offset: 0.15em;
}

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

.shell {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.5rem 0.75rem;
  z-index: 200;
}

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

/* Full-bleed bar so sticky survives the whole page (not trapped in .shell). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease),
    background 200ms var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.06);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.35rem;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem 1.35rem;
  margin-left: auto;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  padding: 0.45rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.header-cta {
  flex-shrink: 0;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.7rem 1.15rem;
  min-height: 2.6rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.25rem 0 3.75rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero .lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 180ms var(--ease), border-color 180ms var(--ease),
    color 180ms var(--ease), transform 180ms var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

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

.btn-primary:visited {
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-frame {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise-in 700ms var(--ease) both;
}

.product-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, white);
  color: var(--muted);
  font-size: 0.78rem;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--line);
}

.dot:nth-child(1) {
  background: #c47b6a;
}
.dot:nth-child(2) {
  background: #c4a35a;
}
.dot:nth-child(3) {
  background: #6aa38a;
}

.product-body {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  min-height: 17rem;
}

.product-nav {
  padding: 0.85rem 0.7rem;
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  border-right: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.product-nav strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
}

.product-nav span {
  display: block;
  padding: 0.35rem 0.4rem;
  border-radius: 0.35rem;
  margin-bottom: 0.2rem;
}

.product-nav span.is-active {
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-weight: 650;
}

.product-main {
  padding: 0.9rem;
}

.product-main h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-family: var(--font-display);
}

.mock-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}

.mock-row small {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 0.72rem;
  font-weight: 700;
}

.badge.warn {
  background: #f5e6c8;
  color: #7a5a12;
}

.section {
  padding: 3.5rem 0;
}

.section[id],
.band[id] {
  scroll-margin-top: 5.5rem;
}

.section.is-arrived .section-head h2,
.band.is-arrived .section-head h2 {
  animation: title-arrive 520ms var(--ease) both;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.15rem 1.2rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.card p,
.card li {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.8rem;
  font-weight: 700;
}

.flow {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.flow-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.4rem;
  align-items: stretch;
}

.flow-node {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.65rem;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 650;
}

.flow-node span {
  display: block;
  margin-top: 0.25rem;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.1rem;
}

.band {
  background: color-mix(in srgb, var(--primary) 9%, var(--surface));
  border-block: 1px solid var(--line);
}

.band .shell {
  padding-block: 3.5rem;
}

.list-check {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-check li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--primary);
}

.callout {
  margin-top: 1rem;
  padding: 0.95rem 1.05rem;
  border-left: 3px solid var(--primary);
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 0.95rem;
}

.legal {
  padding: 2.5rem 0 4rem;
  max-width: var(--legal-max);
}

.legal h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.legal .meta {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal h2 {
  margin: 2rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
}

.legal h3 {
  margin: 1.35rem 0 0.4rem;
  font-size: 1.02rem;
}

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

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

.legal .toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}

.legal .toc a {
  text-decoration: none;
}

.site-footer {
  margin-top: 1rem;
  padding: 2.5rem 0 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.footer-grid h3 {
  margin: 0 0 0.55rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.footer-grid a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.35rem;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

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

@keyframes title-arrive {
  from {
    opacity: 0.55;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .flow-row {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 0.15rem 0;
  }

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

  .product-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-nav strong {
    width: 100%;
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 900px) {
  .header-bar {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
    margin-left: auto;
    order: 2;
  }

  .header-cta {
    order: 3;
  }

  .nav {
    display: none;
    order: 4;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.15rem;
    padding: 0.35rem 0 0.5rem;
    border-top: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.55rem 0;
  }

  .hero {
    padding-top: 2rem;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 2rem;
  }
}

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

  .product-frame,
  .btn,
  .section.is-arrived .section-head h2,
  .band.is-arrived .section-head h2 {
    animation: none;
    transition: none;
  }
}
