:root {
  --paper: #f2f5ef;
  --pine: #0e3a2c;
  --pine-deep: #0a2c21;
  --ink: #142e24;
  --moss: #1e6b48;
  --leaf: #d6f25c;
  --line: #d3dfd4;
  --sheet: #fffcf7;
  --danger: #8e3328;
  --candle-down: #c47a68;
  --footer-text: #d7e8de;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --section: 48px;
  --stack: 24px;
  --card: 20px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

::selection {
  background: var(--leaf);
  color: var(--pine-deep);
}

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  background: var(--leaf);
  color: var(--pine-deep);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  display: block;
  width: auto;
  height: 40px;
  max-width: min(273px, 58vw);
  object-fit: contain;
  object-position: left center;
}

.brand-mark img {
  width: 40px;
  height: 40px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.menu a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--leaf); }
.menu a:not(.btn) { transition: color 160ms ease; }
.menu a:not(.btn):hover { color: var(--moss); }

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--leaf);
  color: var(--pine-deep);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.btn:hover {
  background: #e7ff86;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(14, 58, 44, 0.12);
}
.btn:active { background: #c6e24a; transform: translateY(0); }

.menu a.btn { box-shadow: none; color: var(--pine-deep); }

.text-link {
  color: var(--pine);
  font-weight: 600;
  text-underline-offset: 3px;
}

.hero,
.page-head,
.block,
.claim {
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 40px;
  align-items: end;
}

.hero h1,
.page-head h1 {
  margin: 0 0 var(--stack);
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero h1 { max-width: 8em; }

.lead,
.prose,
.practices p,
.steps p,
.aside p,
.sheet,
.form-status {
  font-family: var(--serif);
}

.lead {
  margin: 0;
  max-width: 38ch;
  font-size: 1.3rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  margin-top: var(--stack);
}

.stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--pine);
}

.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}

.fallback {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  height: 68%;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.fallback i {
  display: block;
  flex: 1;
  height: calc(var(--h) * 100%);
  border-radius: 3px 3px 0 0;
  background: var(--leaf);
}

.fallback i.down { background: var(--candle-down); }

.stage.is-live .fallback { visibility: hidden; }

.stage-caption {
  margin: 12px 0 0;
  color: var(--moss);
  font-size: 0.95rem;
}

.block h2,
.claim h2,
.page-head + .block h2,
.prose h2 {
  margin: var(--stack) 0;
  max-width: 16em;
  font-family: var(--sans);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.practices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card);
}

.practices article {
  padding-top: 20px;
  border-top: 2px solid var(--pine);
}

.practices h3,
.steps h3,
.aside h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.practices p,
.steps p {
  margin: 0 0 16px;
  font-size: 1.125rem;
  line-height: 1.6;
}

.practices a,
.prose a,
.aside a,
.form-status a {
  color: var(--pine);
  font-family: var(--sans);
  font-weight: 600;
  text-underline-offset: 3px;
}

.claim {
  background: var(--pine);
  color: var(--footer-text);
}

.claim h2 { color: var(--leaf); }

.claim .prose,
.prose {
  font-size: 1.2rem;
  line-height: 1.65;
}

.claim .prose,
.prose p,
.prose > ul,
.prose h2 { max-width: 64ch; }

.prose p,
.aside p,
.form-status p { margin: 0 0 16px; }

.block > .wrap > h2:first-child,
.claim .wrap > h2:first-child,
.prose > h2:first-child { margin-top: 0; }

.prose ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.prose li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 20px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--moss);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps span {
  display: block;
  margin-bottom: 8px;
  color: var(--moss);
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.after-steps { margin: var(--stack) 0 0; }

.talk-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.talk-row p {
  margin: 0;
  max-width: 36ch;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
}

.wa {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--pine-deep);
  box-shadow: 0 8px 24px rgba(10, 44, 33, 0.18);
}

.wa:hover { background: #e7ff86; }
.wa:active { background: #c6e24a; }

.note-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: start;
}

.sheet {
  margin: 0;
  padding: 28px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.stamp {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 8px;
  border: 1.5px solid var(--danger);
  color: var(--danger);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.note { margin: 0; }

.note div { margin: 0 0 14px; }

.note dt {
  margin: 0 0 2px;
  color: var(--moss);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
}

.note dd {
  margin: 0;
  font-size: 1.2rem;
}

.page-head { background: var(--paper); }

.page-head h1 { max-width: 14em; }

.limit {
  margin: var(--stack) 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--leaf);
  max-width: 52ch;
}

.limit p { margin: 0; }

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 48px;
  align-items: start;
}

.field { margin-bottom: 8px; }

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #b7c7bb;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 148px;
  resize: vertical;
}

::placeholder { color: #3d5548; opacity: 1; }

[aria-invalid="true"] { border-color: var(--danger); }

.field-error {
  min-height: 0;
  margin: 6px 0 8px;
  color: var(--danger);
  font-size: 0.92rem;
}

.field-error:empty { display: none; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0 20px;
}

.check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 3px;
  accent-color: var(--pine);
}

.check label {
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-status:empty { display: none; }

.form-status {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid var(--pine);
  max-width: 52ch;
}

.aside {
  padding-top: 20px;
  border-top: 2px solid var(--pine);
}

.aside p { font-size: 1.125rem; line-height: 1.6; }

h2,
h3,
.anchor { scroll-margin-top: 88px; }

.site-footer {
  background: var(--pine-deep);
  color: var(--footer-text);
  padding: 48px 0 32px;
}

.ft-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.site-footer .brand {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--paper);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.site-footer a { color: var(--footer-text); transition: color 160ms ease; }
.site-footer a:hover { color: var(--leaf); }

.disclaimer {
  max-width: 78ch;
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal { margin: 0; font-size: 0.92rem; }

@media (max-width: 900px) {
  .hero-grid,
  .note-layout,
  .form-grid { grid-template-columns: 1fr; }

  .stage { min-height: 420px; }
}

.hero,
.page-head,
.block { background: var(--paper); }

.line-icon { display: block; color: var(--moss); flex: none; }

.icon-title { display: flex; align-items: center; gap: 12px; }
.icon-title .line-icon { color: var(--pine); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card);
  margin-top: var(--stack);
}

.stat,
.feature,
.versus-card,
.flow-node,
.journey li,
.practices article {
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.stat,
.feature {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.stat b {
  display: block;
  margin: 8px 0 4px;
  color: var(--pine);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat > span,
.feature p,
.flow-node span,
.versus p,
.journey p { font-family: var(--serif); }

.stat > span { display: block; }

.practices article:hover,
.stat:hover,
.feature:hover,
.versus-card:hover,
.flow-node:hover,
.journey li:hover,
.steps li:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(14, 58, 44, 0.1), 0 0 0 1px rgba(214, 242, 92, 0.9);
}

.practices article:hover .line-icon,
.stat:hover .line-icon,
.feature:hover .line-icon,
.versus-card:hover .line-icon,
.flow-node:hover .line-icon,
.point:hover .line-icon,
.icon-title:hover .line-icon,
.steps li:hover .line-icon {
  transform: translateY(-3px) rotate(-8deg);
}

.line-icon { transition: transform 200ms ease; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card);
  margin: var(--stack) 0;
}

.feature { border-top: 2px solid var(--pine); }
.feature h3 { margin: 12px 0 8px; font-size: 1.2rem; }
.feature p { margin: 0; }

.chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card);
  margin-top: var(--stack);
}

.chips p {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(214, 242, 92, 0.4);
  border-radius: 14px;
}

.chips .line-icon { color: var(--leaf); }

.pipeline,
.flow-nodes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr) 52px minmax(0, 1.15fr);
  gap: var(--card);
  align-items: center;
}

.flow { margin: var(--stack) 0; }
.flow figcaption,
.candles figcaption,
.journey-note {
  margin: 0 0 16px;
  color: var(--moss);
  font-size: 0.98rem;
}

.flow-branch { display: grid; gap: var(--card); }

.flow-node {
  min-height: 112px;
  padding: 14px 12px;
  background: var(--sheet);
  border: 1.5px solid var(--pine);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.flow-node strong { font-size: 1.05rem; }
.flow-node span { font-size: 0.98rem; }
.flow-node.flow-note { background: var(--pine); color: var(--leaf); }
.flow-node.flow-note .line-icon { color: var(--leaf); }
.flow-arrow { width: 100%; height: 28px; color: var(--moss); }

.versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card);
  margin: var(--stack) 0;
}

.versus-card {
  position: relative;
  min-height: 230px;
  padding: 28px 24px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.versus-note { box-shadow: inset 0 0 0 2px var(--leaf); }
.versus h3 { margin: 14px 0 8px; font-size: 1.7rem; }
.versus p { margin: 0; font-size: 1.25rem; }

.strike {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  color: var(--danger);
  pointer-events: none;
}

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--card);
  margin: var(--stack) 0;
  padding: 28px 0 0;
  list-style: none;
}

.journey::before,
.journey::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 7px;
  height: 2px;
}

.journey::before { background: var(--line); }
.journey::after { background: var(--moss); transform: scaleX(1); transform-origin: left center; }

.journey-node {
  position: absolute;
  top: -28px;
  left: 16px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--pine);
  border-radius: 50%;
  background: var(--leaf);
}

.journey li {
  position: relative;
  margin: 0;
  padding: 16px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.journey strong { display: block; margin-bottom: 6px; }
.journey p { margin: 0; }
.journey-note { margin-top: 8px; }

.candles { margin: 0; }
.candles-svg { display: block; width: 100%; height: auto; }
.candles .wick { fill: none; stroke: var(--moss); stroke-width: 2; }
.candles .bar { fill: var(--moss); }
.candles .bar.down { fill: var(--candle-down); }
.candles .candle-line { fill: none; stroke: var(--pine); stroke-width: 2.5; }

.ring-stage {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--pine);
}

.ring-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}

.ring-stage canvas:active { cursor: grabbing; }

.ring-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 460px;
  padding: 24px;
}

.ring-fallback span {
  padding: 22px 18px;
  border-radius: 16px;
  background: var(--sheet);
  color: var(--pine);
  font-weight: 600;
}

.ring-stage.is-live .ring-fallback { visibility: hidden; }

.flip { perspective: 1200px; width: 100%; min-width: 280px; }
.flip-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.flip-inner {
  display: grid;
  min-height: 420px;
  transform-style: preserve-3d;
  transition: transform 600ms ease;
}
.flip.is-open .flip-inner { transform: rotateY(180deg); }
.flip-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
}
.flip-face .sheet { height: 100%; }
.flip-back { transform: rotateY(180deg); }
.flip-hint {
  margin: 18px 0 0;
  color: var(--moss);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
}
.flip-btn:hover .sheet { box-shadow: 0 16px 36px rgba(14, 58, 44, 0.1); }

.prose li.point,
.point-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-left: 0;
}

.prose li.point::before { display: none; }

.js:not(.reduce) .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js:not(.reduce) .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--d, 0ms);
}

.js:not(.reduce) [data-draw] .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.js:not(.reduce) [data-draw].is-in .draw {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.15s ease;
}

.js:not(.reduce) .line-icon path,
.js:not(.reduce) .line-icon circle,
.js:not(.reduce) .line-icon rect,
.js:not(.reduce) .line-icon line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.js:not(.reduce) .is-in .line-icon path,
.js:not(.reduce) .is-in .line-icon circle,
.js:not(.reduce) .is-in .line-icon rect,
.js:not(.reduce) .is-in .line-icon line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 800ms ease;
}

.js:not(.reduce) .journey:not(.is-in)::after { transform: scaleX(0); }
.js:not(.reduce) .journey.is-in::after { transition: transform 1.1s ease; }

.js:not(.reduce) .candles:not(.is-in) .bar {
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: scaleY(0.2);
}

.js:not(.reduce) .candles.is-in .bar {
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: scaleY(1);
  transition: transform 600ms ease;
}

@media (max-width: 800px) {
  .js .nav-toggle { display: inline-flex; }

  .js .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 24px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .js .menu.is-open { display: flex; }

  .js .menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .js .menu a.btn { margin-top: 8px; }

  .practices,
  .steps,
  .stats,
  .features,
  .chips,
  .versus,
  .journey { grid-template-columns: 1fr; }

  .pipeline,
  .flow-nodes { grid-template-columns: 1fr; }

  .flow-arrow { width: 36px; height: 36px; margin: 0 auto; transform: rotate(90deg); }

  .journey { padding-top: 0; }
  .journey::before,
  .journey::after { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .journey-node { top: 18px; left: -28px; }
  .journey li { margin-left: 28px; }

  :root { --section: 40px; }

  .hero h1,
  .page-head h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .stage { min-height: 300px; border-radius: 16px; }
  .sheet { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .line-icon,
  .stat,
  .feature,
  .versus-card,
  .flow-node,
  .journey li,
  .practices article,
  .flip-inner { transition: none; }
  .btn:hover,
  .practices article:hover,
  .stat:hover,
  .feature:hover,
  .versus-card:hover,
  .flow-node:hover,
  .journey li:hover,
  .steps li:hover { transform: none; }
}

@media print {
  .site-header,
  .nav-toggle,
  .stage,
  .actions,
  .wa { display: none !important; }
  body { background: #fff; color: #000; }
  .claim,
  .site-footer { background: #fff; color: #000; }
  .claim h2,
  .site-footer a { color: #000; }
  a { text-decoration: underline; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
