:root {
  color-scheme: light;
  --page: #ffffff;
  --wash: #f5f7f4;
  --wash-strong: #edf1eb;
  --ink: #171a16;
  --muted: #62695f;
  --soft: #8a9186;
  --line: #d9dfd4;
  --line-strong: #bfc8ba;
  --green: #286f58;
  --green-dark: #174936;
  --green-soft: #dfeee7;
  --amber: #c78a2c;
  --amber-soft: #fbefd9;
  --shadow: 0 28px 80px rgba(23, 26, 22, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(217, 223, 212, 0.72);
  background: rgba(255, 255, 255, 0.88);
  padding: 18px clamp(18px, 5vw, 72px);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.workflow-preview,
.phone-status,
.phone-title,
.composer,
.guardrail-grid,
.use-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 17px;
  font-weight: 820;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(23, 26, 22, 0.14);
  border-radius: 10px;
  padding: 0;
  object-fit: contain;
}

.site-nav {
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.site-nav a:hover,
.secondary-link:hover {
  color: var(--green-dark);
}

.header-cta {
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 820;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1fr);
  gap: clamp(34px, 6vw, 84px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 74px);
  align-items: center;
  padding: clamp(54px, 8vw, 96px) 0 42px;
}

.hero-copy {
  max-width: 620px;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(78px, 10.5vw, 158px);
  font-weight: 560;
  letter-spacing: 0;
  line-height: 0.86;
}

.hero-lede {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-body,
.section-heading p,
.guardrail-copy p,
.final-cta p {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

.hero-body {
  max-width: 610px;
  margin: 24px 0 0;
}

.hero-actions {
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.primary-button,
.secondary-link,
.header-cta {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.primary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 860;
  padding: 0 22px;
}

.primary-button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.secondary-link {
  color: var(--muted);
  font-size: 15px;
  font-weight: 820;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 640px;
  place-items: center;
}

.blueprint-line {
  position: absolute;
  border: 1px solid rgba(40, 111, 88, 0.18);
  pointer-events: none;
}

.line-a {
  inset: 10% 0 20% 13%;
  border-right: 0;
  border-bottom: 0;
}

.line-b {
  right: 6%;
  bottom: 12%;
  width: 44%;
  height: 42%;
  border-left: 0;
  border-top: 0;
}

.phone-shell {
  position: relative;
  width: min(366px, 100%);
  padding: 9px;
  border: 1px solid rgba(23, 26, 22, 0.12);
  border-radius: 46px;
  background: linear-gradient(160deg, #ffffff, #eef2ec);
  box-shadow: var(--shadow);
}

.phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 1170 / 2532;
  overflow: hidden;
  border-radius: 38px;
  background: #f5f7f4;
  box-shadow: inset 0 0 0 1px rgba(23, 26, 22, 0.08);
}

.demo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 460ms ease;
}

.demo-slide.is-active {
  opacity: 1;
}

.phone-status {
  justify-content: space-between;
  padding: 48px 24px 12px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 780;
}

.phone-title {
  justify-content: space-between;
  padding: 2px 22px 16px;
}

.phone-title span {
  max-width: 230px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-title button,
.composer button,
.patch-panel button {
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 860;
  padding: 9px 12px;
}

.html-page {
  margin: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(23, 26, 22, 0.08);
}

.doc-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}

.doc-grid {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 12px;
  margin-top: 14px;
}

.doc-card,
.doc-note {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  text-align: left;
}

.doc-card {
  display: grid;
  min-height: 160px;
  gap: 12px;
  align-content: space-between;
  padding: 14px;
}

.doc-card span,
.doc-note span,
.composer span,
.patch-panel span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-card strong {
  font-size: 17px;
  line-height: 1.25;
}

.doc-card.selected,
.doc-note.selected {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(40, 111, 88, 0.12);
}

.mini-chart {
  display: flex;
  height: 90px;
  align-items: end;
  gap: 7px;
}

.mini-chart i {
  display: block;
  width: 22px;
  border-radius: 5px 5px 2px 2px;
  background: var(--green);
}

.mini-chart i:nth-child(1) {
  height: 52px;
}

.mini-chart i:nth-child(2) {
  height: 78px;
  background: var(--amber);
}

.mini-chart i:nth-child(3) {
  height: 38px;
  background: #9aa49a;
}

.doc-note {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 13px 14px;
}

.doc-note strong {
  font-size: 15px;
}

.composer {
  justify-content: space-between;
  gap: 12px;
  margin: 16px 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.composer div {
  display: grid;
  gap: 5px;
}

.composer strong {
  font-size: 14px;
  line-height: 1.25;
}

.patch-panel {
  display: grid;
  gap: 9px;
  margin: 14px 18px 18px;
  border: 1px solid rgba(199, 138, 44, 0.42);
  border-radius: 8px;
  background: var(--amber-soft);
  padding: 14px;
  transform: translateY(0);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.patch-panel strong {
  font-size: 15px;
}

.patch-panel p {
  margin: 0;
  color: #594123;
  font-size: 13px;
  line-height: 1.45;
}

.patch-panel button {
  width: fit-content;
  background: var(--ink);
  color: #fff;
}

.patch-panel.is-muted {
  opacity: 0.62;
  transform: translateY(8px);
}

.demo-pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    left 760ms cubic-bezier(0.22, 0.61, 0.36, 1),
    top 760ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 320ms ease;
  will-change: left, top;
}

.demo-pointer.is-visible {
  opacity: 1;
}

.demo-pointer__dot {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(23, 26, 22, 0.92));
  box-shadow:
    0 10px 24px rgba(23, 26, 22, 0.34),
    0 0 0 7px rgba(255, 255, 255, 0.16);
}

.demo-pointer__dot::after {
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 2px solid var(--green);
  opacity: 0;
  content: "";
  transform: scale(0.4);
}

.demo-pointer.is-tapping .demo-pointer__dot {
  animation: demo-press 440ms ease;
}

.demo-pointer.is-tapping .demo-pointer__dot::after {
  animation: demo-ripple 560ms ease-out;
}

.demo-pulse {
  animation: demo-pulse 540ms ease;
}

@keyframes demo-press {
  0%,
  100% {
    transform: scale(1);
  }
  42% {
    transform: scale(0.78);
  }
}

@keyframes demo-ripple {
  0% {
    opacity: 0.6;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

@keyframes demo-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  38% {
    transform: scale(0.97);
  }
}

.workflow-preview {
  width: min(980px, calc(100% - 36px));
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -28px auto 88px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.step {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  padding: 0 14px;
}

.step.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.section-block {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 118px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: end;
  margin-bottom: 42px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.section-heading h2,
.guardrail-copy h2,
.beta-copy h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 540;
  letter-spacing: 0;
  line-height: 0.98;
}

.section-heading p,
.guardrail-copy p,
.final-cta p {
  margin: 0;
}

.workflow-map {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-strong);
}

.workflow-map article {
  position: relative;
  min-height: 230px;
  border-right: 1px solid var(--line);
  padding: 24px 18px 0;
}

.workflow-map article:last-child {
  border-right: 0;
}

.workflow-map article::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.workflow-map span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.workflow-map h3,
.guardrail-grid h3,
.use-list h3 {
  margin: 16px 0 10px;
  font-size: 22px;
  line-height: 1.05;
}

.workflow-map p,
.guardrail-grid p,
.use-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.guardrail-section {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: clamp(30px, 7vw, 94px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.beta-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(30px, 7vw, 86px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.guardrail-copy p {
  margin-top: 24px;
}

.beta-copy p {
  max-width: 620px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

.guardrail-grid {
  align-items: stretch;
  gap: 14px;
}

.guardrail-grid article,
.use-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.guardrail-icon {
  display: block;
  width: 82px;
  height: 82px;
  border-radius: 14px;
  object-fit: contain;
}

.use-list {
  align-items: stretch;
  gap: 14px;
}

.use-list article {
  flex: 1 1 0;
  min-width: 0;
  background: var(--wash);
}

.beta-steps {
  display: grid;
  gap: 12px;
}

.beta-steps article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  padding: 18px;
}

.beta-steps span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.beta-steps h3 {
  margin: 1px 0 0;
  font-size: 21px;
  line-height: 1.05;
}

.beta-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.final-cta {
  display: grid;
  justify-items: center;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(40, 111, 88, 0.08), transparent 46%, rgba(199, 138, 44, 0.08)),
    var(--wash);
  padding: clamp(54px, 8vw, 88px) 24px;
  text-align: center;
}

.final-cta p {
  max-width: 620px;
  margin: 22px 0 30px;
}

.policy-document a:hover {
  color: var(--green-dark);
}

.policy-page {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 9vw, 96px) 0 88px;
}

.policy-document {
  display: grid;
  gap: 18px;
}

.policy-date {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-document h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 540;
  letter-spacing: 0;
  line-height: 0.9;
}

.policy-document h2 {
  margin: 28px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.policy-document p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.72;
}

.policy-document a {
  color: var(--green-dark);
  font-weight: 820;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .section-grid,
  .guardrail-section,
  .beta-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-visual {
    min-height: auto;
  }

  .phone-shell {
    width: min(390px, calc(100vw - 36px));
  }

  .workflow-map {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .workflow-map article {
    min-height: auto;
    border-top: 1px solid var(--line);
    border-right: 0;
    padding: 22px 18px;
  }

  .guardrail-grid,
  .use-list {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 18px;
  }

  .header-cta {
    padding: 9px 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(72px, 21vw, 110px);
  }

  .hero-lede {
    font-size: clamp(32px, 10vw, 46px);
  }

  .phone-shell {
    border-radius: 40px;
  }

  .phone-screen {
    border-radius: 33px;
  }

  .workflow-preview {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 44px;
    padding-right: 18px;
    padding-left: 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scroll-padding: 18px;
    scroll-snap-type: x proximity;
  }

  .step {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .section-block {
    padding: 58px 0;
  }
}

.access-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.access-modal[hidden] {
  display: none;
}

.access-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 26, 22, 0.52);
  backdrop-filter: blur(4px);
}

.access-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--page);
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
}

.access-modal-dialog h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 34px);
  line-height: 1.05;
}

.access-modal-dialog p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.access-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--wash);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.access-modal-close:hover {
  color: var(--ink);
}

.access-form {
  display: grid;
  gap: 16px;
}

.access-field {
  display: grid;
  gap: 8px;
}

.access-field span {
  font-size: 13px;
  font-weight: 760;
  color: var(--muted);
}

.access-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--page);
  color: var(--ink);
  font: inherit;
  padding: 0 14px;
}

.access-field input:focus {
  outline: 2px solid rgba(40, 111, 88, 0.35);
  outline-offset: 1px;
  border-color: var(--green);
}

.access-form-status {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.access-form-status.is-error {
  color: #9b2c2c;
}

.access-form-status.is-success {
  color: var(--green-dark);
}

.access-form-submit {
  width: 100%;
  justify-content: center;
  border: 0;
}

.access-form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.access-turnstile {
  min-height: 65px;
}

body.access-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
