:root {
  --bg: #f4faf5;
  --bg-elevated: rgba(255, 255, 255, 0.8);
  --bg-soft: rgba(255, 255, 255, 0.52);
  --panel-bg: rgba(255, 255, 255, 0.92);
  --panel-bg-soft: rgba(255, 255, 255, 0.84);
  --panel-glow: rgba(255, 255, 255, 0.7);
  --panel-tint: rgba(217, 238, 226, 0.34);
  --panel-stroke: rgba(6, 146, 86, 0.16);
  --text: #102118;
  --muted: #5f7368;
  --accent: #069256;
  --accent-strong: #04653c;
  --warm: #d9eee2;
  --shadow: 0 24px 60px rgba(15, 53, 31, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --content-width: 1180px;
  --copy-font: "Avenir Next", "Segoe UI", sans-serif;
  --display-font: "Iowan Old Style", "Palatino Linotype", serif;
  --mono-font: "SF Mono", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--copy-font);
  background:
    radial-gradient(circle at top left, rgba(6, 146, 86, 0.08), transparent 26%),
    radial-gradient(circle at 86% 10%, rgba(6, 146, 86, 0.06), transparent 18%),
    linear-gradient(180deg, #f8fcf8 0%, #f2f8f3 100%);
}

#logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(6, 146, 86, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 146, 86, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(6, 146, 86, 0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 146, 86, 0.085) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
  opacity: 0.46;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 36px 0 96px;
}

.page-shell--narrow {
  max-width: 840px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6, 146, 86, 0.16), rgba(6, 146, 86, 0.04));
  border: 1px solid var(--panel-stroke);
  box-shadow: var(--shadow);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent-strong);
}

.hero,
.story-grid,
.privacy-callout,
.site-footer-card,
.founder-card {
  border: 1px solid var(--panel-stroke);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, var(--panel-glow), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 246, 0.9)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), var(--panel-tint));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28),
    var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  padding: 54px;
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.story-copy h2,
.privacy-callout h2,
.site-footer-card h2,
.policy-layout h1 {
  margin: 0;
  font-family: var(--display-font);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.1rem);
  margin-bottom: 24px;
}

.lede,
.privacy-points p,
.feature-card p,
.policy-layout p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.hero-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #f7fdf8;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--panel-stroke);
  background: rgba(255, 255, 255, 0.68);
}

.signal-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.signal-list li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent);
}

.hero-panel {
  display: grid;
  gap: 20px;
}

.phone-chrome {
  position: relative;
  min-height: 520px;
  padding: 72px 20px 20px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(210, 240, 223, 0.82), rgba(189, 220, 201, 0.52)),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.85), transparent 36%);
  border: 1px solid rgba(6, 146, 86, 0.14);
  overflow: hidden;
}

.phone-chrome::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 18%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cpath fill='none' stroke='rgba(8,77,46,0.12)' stroke-width='1' d='M20 230c60-24 92-58 132-108 26-33 56-58 128-71'/%3E%3Cpath fill='none' stroke='rgba(8,77,46,0.08)' stroke-width='1' d='M-20 268c88-12 140-38 191-94 47-52 89-81 149-94'/%3E%3C/svg%3E") center/cover;
  pointer-events: none;
}

.notch {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 3;
  width: 140px;
  height: 32px;
  margin: 0;
  border-radius: 999px;
  background: rgba(7, 17, 12, 0.88);
  transform: translateX(-50%);
}

.lock-scene {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
}

.lock-time {
  margin: 0;
  text-align: center;
  font-family: var(--display-font);
  font-size: 5rem;
  letter-spacing: -0.06em;
  opacity: 0.7;
}

.lock-widget {
  position: absolute;
  top: 148px;
  left: 22px;
  display: grid;
  gap: 8px;
  color: #4C5F54;
  min-width: 188px;
  opacity: 0;
  transform: translateY(8px);
  transition: transform 220ms ease, opacity 220ms ease;
}

.lock-widget__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 1.1rem;
  font-weight: 700;
}

.lock-widget__row strong {
  font-family: var(--mono-font);
  font-size: 1.55rem;
}

.lock-widget__row--meta {
  font-size: 0.98rem;
  font-weight: 600;
  color: #4C5F54;
}

.lock-widget__logo {
  min-width: 32px;
  text-align: center;
  font-size: 0.86rem;
}

.app-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 92px 28px 28px;
  border-radius: 36px;
  background: rgba(252, 253, 250, 0.8);
  color: #152218;
  opacity: 0;
  transform: translateY(28px);
  transition: transform 220ms ease, opacity 220ms ease;
  box-shadow: none;
}

.app-preview__hero {
  display: grid;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(16, 33, 24, 0.08);
}

.app-preview__eyebrow {
  color: #6b786f;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.app-preview__hero h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 2rem;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.app-preview__hero p,
.app-preview__fact p {
  margin: 0;
  color: #627066;
  font-size: 0.88rem;
  line-height: 1.5;
}

.app-preview__fact {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(16, 33, 24, 0.06);
}

.app-preview__fact:last-child {
  border-bottom: 0;
}

.app-preview__fact strong {
  font-size: 0.98rem;
}

.mini-scoreboard {
  align-self: stretch;
  margin-top: auto;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(12, 29, 19, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  transition: transform 220ms ease, opacity 220ms ease;
}

.mini-scoreboard__top,
.mini-scoreboard__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-scoreboard__top {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.mini-scoreboard__teams {
  font-size: 1.08rem;
  font-weight: 700;
}

.mini-scoreboard__teams strong {
  font-family: var(--mono-font);
  font-size: 1.45rem;
}

.mini-scoreboard__meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
}

.scene-switcher,
.feature-strip {
  display: grid;
  gap: 12px;
}

.scene-switcher {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scene-pill,
.process-step {
  width: 100%;
  border: 1px solid var(--panel-stroke);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, color 180ms ease;
}

.scene-pill {
  padding: 12px 10px;
  font-weight: 700;
}

.process-step {
  padding: 14px 16px;
  text-align: left;
}

.scene-pill:hover,
.process-step:hover {
  transform: translateY(-1px);
}

.scene-pill.is-active,
.process-step.is-active {
  border-color: rgba(6, 146, 86, 0.38);
  background: rgba(6, 146, 86, 0.08);
  color: var(--text);
}

.feature-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 40px;
}

.feature-card {
  padding: 28px 28px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 249, 246, 0.78)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(217, 238, 226, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 12px 24px rgba(15, 53, 31, 0.04);
}

.feature-card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.feature-index {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: 0.84rem;
}

.story-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 34px 40px;
  padding: 44px;
  margin-bottom: 40px;
  overflow: hidden;
}

.story-summary {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 6px;
}

.story-summary p {
  margin: 0;
}

.story-copy h2,
.privacy-callout h2,
.site-footer-card h2,
.policy-layout h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 18px;
}

.process-card {
  min-height: 170px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 249, 246, 0.78)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(217, 238, 226, 0.24));
  border: 1px solid var(--panel-stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.process-card--flow {
  grid-column: 1 / -1;
  display: grid;
  gap: 24px;
}

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 40px;
  min-height: 240px;
  isolation: isolate;
}

.pipeline__rail {
  position: absolute;
  top: 50%;
  left: 7%;
  right: 7%;
  height: 2px;
  background: rgba(122, 129, 125, 0.28);
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.pipeline__node {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 148px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(16, 33, 24, 0.08);
  background: rgba(250, 252, 249, 0.98);
  box-shadow: 0 12px 34px rgba(15, 53, 31, 0.06);
}

.pipeline__node--accent {
  border-color: rgba(6, 146, 86, 0.2);
  background: rgba(232, 245, 238, 0.98);
}

.pipeline__node--accent span {
  color: var(--accent);
}

.pipeline__kicker {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.pipeline__node strong {
  font-size: 1.35rem;
  font-family: var(--display-font);
  font-weight: 700;
}

.pipeline__node small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.pipeline__line {
  display: none;
  height: 2px;
  margin: 0;
  background: transparent;
  overflow: visible;
  z-index: 1;
}

.pipeline__pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(6, 146, 86, 0.9) 0%, rgba(6, 146, 86, 0.18) 55%, transparent 72%);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  animation: pipelinePulse 4.2s linear infinite;
}

.pipeline__pulse--b {
  animation-delay: 1.6s;
}

.pipeline__pulse--c {
  animation-delay: 3.2s;
}

.process-copy {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.process-copy p {
  margin: 0;
}

.process-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.privacy-callout,
.site-footer-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  padding: 42px 44px;
  margin-bottom: 40px;
}

.founder-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 36px;
  padding: 36px;
  margin-bottom: 40px;
  align-items: center;
}

.founder-portrait {
  position: relative;
  min-height: 380px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(16, 33, 24, 0.08);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.62), transparent 32%),
    linear-gradient(180deg, rgba(226, 240, 232, 0.78), rgba(212, 228, 218, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 18px 38px rgba(15, 53, 31, 0.08);
}

.founder-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-copy {
  display: grid;
  gap: 16px;
}

.founder-copy h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.founder-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.founder-notes {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.founder-notes p {
  padding: 14px 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 250, 247, 0.8)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(217, 238, 226, 0.18));
  border: 1px solid var(--panel-stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.privacy-points {
  display: grid;
  gap: 12px;
}

.privacy-points p {
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 250, 247, 0.8)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(217, 238, 226, 0.18));
  border: 1px solid var(--panel-stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.policy-body {
  background:
    radial-gradient(circle at top left, rgba(6, 146, 86, 0.08), transparent 24%),
    linear-gradient(180deg, #f7fcf7 0%, #eef7f0 100%);
}

.policy-layout {
  border: 1px solid var(--panel-stroke);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, var(--panel-glow), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 246, 0.9)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), var(--panel-tint));
  padding: 40px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28),
    var(--shadow);
}

.policy-lede {
  margin-top: 8px;
  margin-bottom: 28px;
  color: var(--accent);
}

.policy-layout section + section {
  margin-top: 26px;
}

.policy-layout h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

body[data-scene="widget"] .mini-scoreboard {
  opacity: 0;
  transform: translateY(14px);
}

body[data-scene="widget"] .lock-widget {
  opacity: 1;
  transform: translateY(0);
}

body[data-scene="privacy"] .mini-scoreboard {
  opacity: 0;
  transform: translateY(14px);
}

body[data-scene="privacy"] .lock-widget {
  opacity: 0;
}

body[data-scene="privacy"] .app-preview {
  opacity: 1;
  transform: translateY(0);
}

body[data-scene="privacy"] .lock-time {
  opacity: 0;
}

body[data-scene="privacy"] .phone-chrome {
  background: rgba(252, 253, 250, 0.8);
}

body[data-scene="privacy"] .phone-chrome::after {
  opacity: 0;
}

body[data-scene="privacy"] .lock-scene {
  opacity: 0;
}

@keyframes pipelinePulse {
  0% {
    left: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .hero,
  .story-grid,
  .privacy-callout,
  .site-footer-card,
  .founder-card,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .scene-switcher {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .story-summary {
    padding-top: 0;
  }

  .pipeline {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
  }

  .pipeline__rail {
    display: none;
  }

  .pipeline__line {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 2px;
    height: 56px;
    margin: 0 auto;
    background: rgba(122, 129, 125, 0.28);
  }

  .pipeline__pulse {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-name: pipelinePulseVertical;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--content-width));
    padding-top: 20px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .story-grid,
  .privacy-callout,
  .site-footer-card,
  .founder-card,
  .policy-layout,
  .feature-card {
    padding: 24px;
  }

  .founder-portrait {
    min-height: 300px;
  }

  .phone-chrome {
    min-height: 440px;
  }

  .lock-time {
    font-size: 3.9rem;
  }
}

@keyframes pipelinePulseVertical {
  0% {
    top: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

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

  .pipeline__pulse {
    animation: none;
    opacity: 0.28;
  }

  .button,
  .scene-pill,
  .process-step,
  .lock-widget,
  .app-preview,
  .mini-scoreboard {
    transition: none;
  }
}
