/* GREEN MOUNTAIN landing page, 2026 layout. Brand colours from portal docs/fork/brand.md. */
:root {
  --night: #0b2418;
  --forest: #14532d;
  --leaf: #15803d;
  --leaf-hover: #166534;
  --sprout: #4ade80;
  --ink: #0b2418;
  --muted: #3d5246;
  --tint: #f1f7f2;
  --tile: #eef5f0;
  --line: #d5e3d8;
  --white: #ffffff;
  --on-night: #e8f2ea;
  --on-night-muted: #a7bfae;
  --night-line: rgba(232, 242, 234, 0.14);
  --error: #b42318;

  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --radius: 12px;
  --radius-lg: 24px;
  --container: 1200px;
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(11, 36, 24, 0.06), 0 12px 32px rgba(11, 36, 24, 0.08);
}

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

[hidden] {
  display: none !important;
}

:root {
  interpolate-size: allow-keywords;
}

::selection {
  background: rgba(74, 222, 128, 0.35);
  color: var(--night);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--sprout);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--leaf);
}

.label::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 16px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 9px 0 0 currentColor, 18px 0 0 currentColor;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--night);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--leaf);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--leaf-hover);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--night);
}

.btn-light:hover {
  background: var(--on-night);
  color: var(--night);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

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

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

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* Header: transparent over the hero, solid once the page scrolls */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-top {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

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

.brand img {
  width: 34px;
  height: 34px;
}

.brand .logo-on-dark {
  display: none;
}

.wordmark {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

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

.nav a {
  position: relative;
}

.nav a[aria-current='true']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--leaf);
}

.site-header.is-top .nav a[aria-current='true']::after {
  background: var(--sprout);
}

.nav-toggle .i-close,
.site-header.nav-open .nav-toggle .i-menu {
  display: none;
}

.site-header.nav-open .nav-toggle .i-close {
  display: inline;
}

.site-header.is-top .brand,
.site-header.is-top .nav a {
  color: var(--white);
}

.site-header.is-top .nav a:hover {
  color: var(--sprout);
}

.site-header.is-top .brand .logo-on-light {
  display: none;
}

.site-header.is-top .brand .logo-on-dark {
  display: block;
}

.site-header.is-top .header-cta {
  background: var(--white);
  color: var(--night);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.site-header.is-top .nav-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 26, 17, 0.35) 0%, rgba(7, 26, 17, 0) 30%, rgba(11, 36, 24, 0) 76%, rgba(11, 36, 24, 0.9) 100%);
}

.ridge-far {
  transform: translateY(calc(var(--hero-p, 0) * 26px));
}

.ridge-mid {
  transform: translateY(calc(var(--hero-p, 0) * 46px));
}

.ridge-near,
.scene-dots {
  transform: translateY(calc(var(--hero-p, 0) * 70px));
}

.scene-dots circle {
  animation: blink 1.4s ease-in-out infinite;
}

.scene-dots circle:nth-child(2) {
  animation-delay: 0.18s;
}

.scene-dots circle:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 1;
  }
  30% {
    opacity: 0.35;
  }
}

.hero-content {
  max-width: 1040px;
  padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px));
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--on-night);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pill:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sprout);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

.pill-link {
  color: var(--sprout);
  font-weight: 600;
}

.pill-link::after {
  content: ' \2192';
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero .lead {
  max-width: 40em;
  margin: 24px auto 0;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(232, 242, 234, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-facts {
  padding-bottom: 36px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(232, 242, 234, 0.22);
}

.facts dt {
  color: var(--sprout);
}

.facts dd {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-night);
}

/* Sections */
.section {
  padding: 112px 0;
}

.section-tint {
  background: var(--tint);
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 56px;
}

.split-head h2 {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 500;
  color: var(--night);
}

.split-head > p {
  font-size: 18px;
  color: var(--muted);
}

/* Flow diagram: data sources -> AI card -> destination software. Lines are drawn by site.js. */
.section-flow {
  background:
    radial-gradient(circle at 1px 1px, rgba(20, 83, 45, 0.13) 1px, transparent 0) 0 0 / 22px 22px,
    #f6faf7;
}

.flow {
  position: relative;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 224px;
  gap: 0 64px;
  align-items: center;
}

.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.flow-line {
  fill: none;
  stroke: rgba(20, 83, 45, 0.16);
  stroke-width: 1.5;
  transition: stroke 0.3s ease;
}

.flow-line.is-active {
  stroke: var(--leaf);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  animation: flowdash 0.9s linear infinite;
}

@keyframes flowdash {
  to {
    stroke-dashoffset: -14;
  }
}

.flow-port {
  fill: var(--white);
  stroke: rgba(20, 83, 45, 0.28);
  stroke-width: 1.5;
}

.flow-port.is-active {
  stroke: var(--leaf);
  fill: var(--sprout);
}

.flow-dot {
  fill: var(--leaf);
  stroke: var(--white);
  stroke-width: 2;
}

.flow-col {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.flow-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  opacity: 0.62;
  cursor: pointer;
  transition: opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.flow-node:hover {
  opacity: 0.9;
}

.flow-node.is-active {
  opacity: 1;
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.1), var(--shadow);
}

.node-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.node-icon svg {
  width: 20px;
  height: 20px;
}

.flow-node.is-active .node-icon {
  background: var(--forest);
  color: var(--sprout);
}

.node-text {
  min-width: 0;
}

.node-text strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.node-text small {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.node-status {
  position: absolute;
  top: -10px;
  right: 12px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--leaf);
}

.node-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sprout);
  animation: blink 1.4s ease-in-out infinite;
}

.flow-out .flow-node.is-active .node-status {
  display: inline-flex;
}

.flow-node-more {
  padding: 0;
  opacity: 1;
  background: transparent;
  border: 1.5px dashed #b9cdbf;
  cursor: default;
}

.flow-node-more:hover {
  opacity: 1;
}

.flow-node-more a {
  display: block;
  width: 100%;
  padding: 13px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.flow-node-more a:hover {
  color: var(--forest);
}

.flow-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(11, 36, 24, 0.12);
  overflow: hidden;
}

.flow-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.flow-card-head img {
  width: 28px;
  height: 28px;
}

.flow-card-title {
  font-weight: 700;
  font-size: 15px;
}

.flow-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  font-size: 11px;
}

.flow-tag {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.flow-card-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 400px;
}

.flow-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  border-right: 1px solid var(--line);
}

.flow-task {
  display: block;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.flow-task:hover {
  background: #f8fbf9;
}

.flow-task.is-active {
  background: var(--tint);
  border-left-color: var(--leaf);
}

.flow-tasks li:last-child .flow-task {
  border-bottom: 0;
}

.flow-task strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}

.flow-task small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}

.flow-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 24px;
  transition: opacity 0.25s ease;
}

.flow-detail.is-swapping {
  opacity: 0;
}

.flow-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--forest);
  font-size: 12.5px;
  font-weight: 600;
}

.chip-arrow::before {
  content: '\2192';
  color: var(--muted);
}

.flow-detail-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.ai-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.16) 0%, rgba(21, 128, 61, 0.05) 100%);
  border: 1px solid rgba(21, 128, 61, 0.2);
}

.ai-label {
  color: var(--leaf);
}

.ai-box p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.55;
}

.ai-box .typing {
  display: none;
  padding: 10px 0 4px;
}

.ai-box .typing span {
  background: var(--leaf);
}

.ai-box.is-thinking .typing {
  display: inline-flex;
}

.ai-box.is-thinking p {
  display: none;
}

.flow-meta {
  font-size: 13.5px;
  color: var(--muted);
}

.typing {
  display: inline-flex;
  gap: 6px;
}

.typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sprout);
  animation: typing 1.4s ease-in-out infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.18s;
}

.typing span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  30% {
    opacity: 0.4;
    transform: translateY(-3px);
  }
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.stat {
  border-top: 1px solid var(--forest);
  padding-top: 24px;
}

.stat-num {
  font-variant-numeric: tabular-nums;
  font-size: clamp(3.4rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--forest);
}

.stat-text {
  margin-top: 16px;
  font-size: 17px;
}

.stat-src {
  margin-top: 10px;
  color: var(--muted);
}

.sources {
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
}

/* Services bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 340px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--tile);
}

.tile {
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.tile:hover {
  box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.22), var(--shadow);
}

.tile-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: stretch;
}

.tile-wide .tile-text {
  flex: 1 1 0;
}

.tile-wide .snippet {
  flex: 1 1 0;
}

.tile-text .mono {
  color: var(--leaf);
}

.tile h3 {
  margin-top: 14px;
  font-size: 23px;
  font-weight: 600;
}

.tile p {
  margin-top: 10px;
  color: var(--muted);
}

.tile-dark {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(74, 222, 128, 0.16) 0%, rgba(74, 222, 128, 0) 60%),
    var(--night);
  color: var(--on-night);
}

.tile-dark .tile-text .mono {
  color: var(--sprout);
}

.tile-dark h3 {
  color: var(--white);
}

.tile-dark p {
  color: var(--on-night-muted);
}

.snippet {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.search-box {
  position: relative;
  padding: 16px 18px 16px 46px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 15px;
}

.search-box::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -9px;
  border: 2px solid var(--forest);
  border-radius: 50%;
}

.search-box::after {
  content: '';
  position: absolute;
  left: 31px;
  top: 50%;
  width: 7px;
  height: 2px;
  margin-top: 5px;
  background: var(--forest);
  transform: rotate(45deg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--forest);
}

.snippet-message {
  padding: 18px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.message-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--forest) url('/assets/brand/gm-mark-dark.svg') center / 18px no-repeat;
}

.message-text {
  font-size: 14.5px;
  line-height: 1.5;
}

.message-text strong {
  color: var(--forest);
}

.message-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--leaf);
}

.snippet-check {
  list-style: none;
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 14.5px;
  gap: 10px;
}

.snippet-check li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.snippet-check li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
}

.snippet-check li.done::before {
  border-color: var(--leaf);
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.snippet-timeline {
  gap: 0;
  padding-left: 4px;
}

.tl-row {
  position: relative;
  display: grid;
  grid-template-columns: 16px 96px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--night-line);
  font-size: 15px;
}

.tl-row:last-child {
  border-bottom: 0;
}

.tl-row span:nth-child(2) {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--white);
}

.tl-row em {
  font-style: normal;
  color: var(--on-night-muted);
}

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--on-night-muted);
}

.tl-dot.on {
  border-color: var(--sprout);
  background: var(--sprout);
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.18);
}

/* Process on dark */
.section-dark {
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(21, 128, 61, 0.35) 0%, rgba(21, 128, 61, 0) 70%),
    var(--night);
  color: var(--on-night);
}

.section-dark .label {
  color: var(--sprout);
}

.section-dark .split-head h2 {
  color: var(--white);
}

.section-dark .split-head > p {
  color: var(--on-night-muted);
}

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

.step {
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
}

.step-num {
  color: var(--sprout);
}

.step h3 {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 500;
  color: var(--white);
}

.step p {
  margin-top: 12px;
  color: var(--on-night-muted);
}

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.principle {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.principle svg {
  width: 26px;
  height: 26px;
  color: var(--leaf);
}

.principle h3 {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 600;
}

.principle p {
  margin-top: 8px;
  font-size: 16px;
  color: var(--muted);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.faq-title {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 500;
  color: var(--night);
}

.faq-more {
  margin-top: 18px;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  min-height: 44px;
  font-weight: 500;
  font-size: 19px;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--forest);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary svg {
  transform: rotate(45deg);
}

.faq-list details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
}

.faq-list details[open]::details-content {
  block-size: auto;
}

.faq-list .answer {
  padding: 0 0 24px;
  color: var(--muted);
  max-width: 40em;
}

/* Articles */
.articles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.article {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--tile);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
}

.article h3 {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 600;
}

.article p {
  margin-top: 10px;
  color: var(--muted);
}

.subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-top: 16px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.subscribe .field {
  flex: 1 1 260px;
  margin: 0;
}

.subscribe .note {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--muted);
}

/* Contact */
.contact {
  background:
    radial-gradient(60% 70% at 0% 100%, rgba(21, 128, 61, 0.35) 0%, rgba(21, 128, 61, 0) 70%),
    var(--night);
  color: var(--on-night);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.contact .label {
  color: var(--sprout);
}

.contact h2 {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 500;
  color: var(--white);
}

.contact .intro {
  margin-top: 16px;
  font-size: 18px;
  color: var(--on-night-muted);
}

.direct {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.direct li {
  display: flex;
  gap: 14px;
}

.direct svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--sprout);
}

.direct .mono {
  color: var(--on-night-muted);
}

.direct a {
  color: var(--white);
}

.direct a:hover {
  color: var(--sprout);
}

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field .opt {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #b9cdbf;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2);
}

.field [aria-invalid='true'] {
  border-color: var(--error);
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 14px;
  color: var(--error);
}

.field-error.is-visible {
  display: block;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--leaf);
  cursor: pointer;
}

.check + .field-error {
  margin: -2px 0 12px 32px;
}

.form-actions {
  margin-top: 20px;
}

.form-actions .btn {
  width: 100%;
}

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-ok {
  display: none;
  background: var(--tint);
  color: var(--forest);
}

.form-status.is-visible.is-ok {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.form-status.is-ok::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.form-status.is-error {
  background: #fdecea;
  color: var(--error);
}

/* Footer */
.site-footer {
  background: var(--night);
  color: var(--on-night-muted);
  border-top: 1px solid var(--night-line);
  padding: 40px 0 48px;
  font-size: 14px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .tagline {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 500;
  color: var(--sprout);
}

.site-footer .legal {
  margin-top: 10px;
  line-height: 1.7;
}

.footer-word {
  margin-top: 40px;
}

.footer-word svg {
  width: 100%;
  height: auto;
}

.footer-word text {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-weight: 700;
  font-size: 120px;
}

.site-footer a {
  color: var(--on-night);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: flex-start;
}

/* Contour lines of the two-peak mountain */
.topo {
  background:
    url('/assets/brand/topo-light.svg') right -260px top -140px / 1200px auto no-repeat,
    var(--tint);
}

.topo-dark {
  background:
    url('/assets/brand/topo-dark.svg') left -380px bottom -260px / 1300px auto no-repeat,
    radial-gradient(60% 70% at 0% 100%, rgba(21, 128, 61, 0.35) 0%, rgba(21, 128, 61, 0) 70%),
    var(--night);
}

/* Process: the climb from the foot of the mountain to the summit */
.ascent {
  position: relative;
  height: 140px;
  margin-bottom: 12px;
}

.ascent svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
}

.ascent path {
  fill: none;
  stroke: var(--sprout);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.ascent.is-in path,
html:not(.js) .ascent path {
  stroke-dashoffset: 0;
}

.ascent-dot,
.ascent-peak {
  position: absolute;
  transform: translate(-50%, -50%);
}

.ascent-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--sprout);
}

.ascent-dot.d1 {
  left: 2%;
  top: 88%;
}

.ascent-dot.d2 {
  left: 36.4%;
  top: 60%;
}

.ascent-dot.d3 {
  left: 70.8%;
  top: 32%;
}

.ascent-peak {
  left: 100%;
  top: 6%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.14);
}

.ascent-peak img {
  width: 24px;
  height: 24px;
}

/* Reveal on scroll (only when JS runs, so the page never stays hidden) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Mobile call-to-action bar */
.mobile-cta {
  display: none;
}

/* Article pages */
.post {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 64px) 24px 40px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.post-head {
  margin-top: 28px;
}

.post-head h1 {
  margin-top: 16px;
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.post-meta {
  margin-top: 18px;
  color: var(--muted);
}

.post-lead {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
}

.post-body {
  margin-top: 40px;
  font-size: 17.5px;
  line-height: 1.75;
}

.post-body h2 {
  margin-top: 48px;
  font-size: 26px;
  font-weight: 600;
}

.post-body h3 {
  margin-top: 28px;
  font-size: 20px;
  font-weight: 600;
}

.post-body p,
.post-body ul,
.post-body ol {
  margin-top: 14px;
}

.post-body li + li {
  margin-top: 6px;
}

.post-body table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 15.5px;
}

.post-body th,
.post-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.post-body th {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.callout {
  margin-top: 32px;
  padding: 24px 26px;
  border-radius: 20px;
  background: var(--tint);
  border: 1px solid var(--line);
}

.callout h2,
.callout h3 {
  margin-top: 0;
}

.callout ol {
  margin-bottom: 0;
}

.post-sources {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.post-sources ol {
  padding-left: 20px;
}

.post-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.post-cta {
  max-width: 760px;
  margin: 24px auto 96px;
  padding: 32px;
  border-radius: 24px;
  background:
    url('/assets/brand/topo-dark.svg') right -320px top -200px / 900px auto no-repeat,
    var(--night);
  color: var(--on-night);
}

.post-cta h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
}

.post-cta p {
  margin-top: 10px;
  color: var(--on-night-muted);
}

.post-cta .btn {
  margin-top: 22px;
}

.article-link {
  color: inherit;
  text-decoration: none;
}

.article-link:hover h3 {
  color: var(--leaf);
}

.article .read-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--leaf);
  font-weight: 600;
  font-size: 15px;
}

/* Security and compliance page */
.post-wide {
  max-width: 960px;
}

.trust-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.trust-fact {
  padding: 24px;
  border-radius: 20px;
  background: var(--tile);
}

.trust-fact svg {
  width: 26px;
  height: 26px;
  color: var(--leaf);
}

.trust-fact h2 {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
}

.trust-fact p {
  margin-top: 6px;
  font-size: 15.5px;
  color: var(--muted);
}

.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.status-ok {
  background: #dcfce7;
  color: var(--forest);
}

.status-wip {
  background: #fef3c7;
  color: #7c4a03;
}

.status-na {
  background: #eef2f0;
  color: var(--muted);
}

/* Legal page */
.doc {
  max-width: 760px;
  padding: calc(var(--header-h) + 64px) 24px 96px;
  margin: 0 auto;
}

/* Trang ngắn (404): đẩy chân trang xuống đáy màn hình. */
.doc-fill {
  min-height: calc(100svh - 300px);
}

.doc h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
}

.doc h2 {
  margin-top: 40px;
  font-size: 22px;
  font-weight: 600;
}

.doc p,
.doc ul {
  margin-top: 12px;
}

.doc .draft {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff4e5;
  color: #8a4b00;
  font-size: 14px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1100px) {
  .flow {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .flow-lines {
    display: none;
  }

  .flow-col {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
  }

  .flow-in {
    order: 1;
  }

  .flow-card {
    order: 2;
  }

  .flow-out {
    order: 3;
  }

  .node-status {
    top: -9px;
  }
}

@media (max-width: 1024px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .split-head,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split-head {
    align-items: start;
    margin-bottom: 40px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .tile-wide {
    grid-column: auto;
    flex-direction: column;
  }

  .tile {
    min-height: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ascent {
    display: none;
  }

  .step {
    padding: 24px 0 28px;
  }
}

@media (max-width: 860px) {
  .nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.nav-open,
  .site-header.nav-open.is-top {
    background: var(--white);
    border-bottom-color: var(--line);
  }

  .site-header.nav-open.is-top .brand {
    color: var(--forest);
  }

  .site-header.nav-open.is-top .brand .logo-on-light {
    display: block;
  }

  .site-header.nav-open.is-top .brand .logo-on-dark {
    display: none;
  }

  .site-header.nav-open.is-top .nav-toggle {
    background: var(--white);
    border-color: var(--line);
    color: var(--ink);
  }

  .site-header.nav-open .nav {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }

  .site-header.nav-open .nav a,
  .site-header.nav-open.is-top .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    color: var(--ink);
  }

  .site-header.nav-open .nav a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 80px 0;
  }

  .hero-content {
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .pill-link,
  .hero-facts {
    display: none;
  }

  .hero {
    padding-bottom: 46vw;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stats,
  .principles,
  .articles,
  .form-row {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 32px;
  }

  .tile,
  .article {
    padding: 24px;
  }

  .tl-row {
    grid-template-columns: 16px 84px 1fr;
    font-size: 14px;
  }

  .flow-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .flow-node {
    padding: 10px;
    gap: 10px;
  }

  .node-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .node-text strong {
    font-size: 14px;
  }

  .node-text small,
  .flow-tag {
    display: none;
  }

  .flow-node-more {
    grid-column: 1 / -1;
  }

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

  .flow-tasks {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }

  .flow-tasks li {
    flex: 0 0 auto;
  }

  .flow-task {
    border: 0;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .flow-tasks li:last-child .flow-task {
    border-bottom: 3px solid transparent;
  }

  .flow-task.is-active,
  .flow-tasks li:last-child .flow-task.is-active {
    border-bottom-color: var(--leaf);
  }

  .flow-task small {
    display: none;
  }

  .flow-detail {
    padding: 18px;
  }

  .flow-detail-title {
    font-size: 18px;
  }

  .form-card {
    padding: 24px 20px;
  }

  .subscribe {
    padding: 22px 20px;
  }

  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }

  .mobile-cta.is-visible {
    transform: translateY(0);
  }

  .mobile-cta .btn {
    width: 100%;
  }

  .site-footer {
    padding-bottom: 104px;
  }

  .post-cta {
    margin: 24px 20px 72px;
    padding: 24px;
  }

  .post-body {
    font-size: 16.5px;
  }

  .trust-facts {
    grid-template-columns: 1fr;
  }

  /* Mỗi hàng thành một thẻ; nhãn cột lấy từ data-label vì thead bị ẩn. */
  .table-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td {
    display: block;
  }

  .table-stack tr {
    padding: 6px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .table-stack tr + tr {
    margin-top: 12px;
  }

  .table-stack td {
    padding: 10px 0;
    border-bottom: 0;
  }

  .table-stack td + td {
    border-top: 1px solid var(--line);
  }

  .table-stack td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
