:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f6f4;
  --ink: #181a1d;
  --ink-soft: #3f4347;
  --muted: #6d7176;
  --faint: #92969b;
  --line: #deded8;
  --line-strong: #bfc0ba;
  --dark: #101113;
  --dark-soft: #1d1f23;
  --accent: #a7f04a;
  --danger-soft: #fff4f1;
  --danger-line: #d6aea7;
  --focus: #275efe;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(15, 16, 18, 0.12);
  --headline: "Host Grotesk", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Atkinson Hyperlegible", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  margin: 0;
  overflow-x: hidden;
}

body:has(.contact-modal[open]) {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
.btn,
.header-action {
  font-family: "Host Grotesk", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
  text-wrap: balance;
}

p {
  color: var(--ink-soft);
  max-width: 68ch;
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 70%, transparent);
  outline-offset: 3px;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes record-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 18px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 9px;
  font-family: var(--headline);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.brand-mark img {
  height: 23px;
  object-fit: contain;
  width: 23px;
}

.site-nav {
  display: none;
}

.header-action {
  background: var(--dark);
  border: 1px solid var(--dark);
  border-radius: 6px;
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  min-height: 40px;
  padding: 9px 13px;
}

.header-action:hover,
.header-action:focus {
  background: #000000;
}

main {
  margin-inline: auto;
  max-width: 1600px;
  padding: 18px 18px 70px;
  width: 100%;
}

.hero {
  display: grid;
  gap: clamp(48px, 10svh, 84px);
  isolation: isolate;
  min-height: auto;
  overflow: clip;
  padding: clamp(42px, 9svh, 72px) 0 64px;
  position: relative;
}

.hero-copy,
.hero-artifact {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-content: end;
  display: grid;
  gap: 26px;
  min-height: min(720px, calc(100svh - 126px));
  padding-bottom: clamp(28px, 8svh, 76px);
}

.hero-copy > * {
  animation: rise-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy > p {
  animation-delay: 80ms;
}

.hero-actions {
  animation-delay: 150ms;
}

.hero h1 {
  font-size: clamp(46px, 12.5vw, 64px);
  line-height: 0.96;
  max-width: 11.2ch;
}

.hero p {
  font-size: clamp(17px, 4.4vw, 20px);
  line-height: 1.45;
  max-width: 29ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.btn {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 12px 17px;
  text-decoration: none;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--dark);
  border: 1px solid var(--dark);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #000000;
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--surface-soft);
  color: var(--ink);
}

.hero-artifact {
  align-self: end;
  margin-top: clamp(20px, 8svh, 72px);
}

.artifact-shell,
.plain-artifact,
.receipt-stack,
.control-artifact,
.demo-carousel,
.final-ask,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.artifact-shell {
  animation: record-in 760ms 190ms cubic-bezier(0.16, 1, 0.3, 1) both;
  overflow: hidden;
}

.artifact-top {
  align-items: center;
  background: var(--dark);
  color: #ffffff;
  display: flex;
  font-family: var(--headline);
  font-weight: 700;
  justify-content: space-between;
  padding: 13px 14px;
}

.artifact-time {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
}

.launch-summary {
  align-items: flex-start;
  background: var(--danger-soft);
  border-bottom: 1px solid var(--danger-line);
  display: flex;
  gap: 12px;
  padding: 16px 14px;
}

.summary-icon {
  align-items: center;
  border: 1px solid var(--danger-line);
  border-radius: 999px;
  color: var(--dark);
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.launch-summary div {
  display: grid;
  gap: 4px;
}

.launch-summary strong {
  font-size: 18px;
  line-height: 1.15;
}

.launch-summary span:not(.summary-icon) {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
}

.record-list,
.loop-list,
.plain-artifact,
.receipt-stack,
.control-artifact {
  display: grid;
}

.record-row,
.loop-row,
.request-row,
.receipt,
.control-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 14px;
}

.record-row:last-child,
.loop-row:last-child,
.request-row:last-child,
.receipt:last-child,
.control-row:last-child {
  border-bottom: 0;
}

.record-row span,
.request-row span,
.receipt span,
.control-row > span:last-child,
.demo-record span,
.modal-kicker,
.modal-record span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.record-row strong,
.request-row strong,
.receipt strong,
.control-row strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.28;
}

.loop-row {
  align-items: start;
  animation: rise-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  grid-template-columns: 34px minmax(0, 1fr);
}

.loop-row:nth-child(1) {
  animation-delay: 260ms;
}

.loop-row:nth-child(2) {
  animation-delay: 320ms;
}

.loop-row:nth-child(3) {
  animation-delay: 380ms;
}

.loop-row:nth-child(4) {
  animation-delay: 440ms;
}

.loop-step {
  align-items: center;
  background: var(--dark);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-family: var(--headline);
  font-size: 13px;
  font-weight: 700;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.loop-row div {
  display: grid;
  gap: 4px;
}

.loop-row span:not(.loop-step),
.brief-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.loop-row strong,
.brief-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.28;
}

.loop-row.is-dark {
  background: var(--dark);
}

.loop-row.is-dark span:not(.loop-step),
.loop-row.is-dark strong {
  color: #ffffff;
}

.loop-row.is-dark .loop-step {
  background: var(--accent);
  color: var(--dark);
}

.section {
  display: grid;
  gap: 22px;
  padding: 56px 0;
}

.section-copy {
  display: grid;
  gap: 14px;
}

.section h2,
.final-ask h2,
.modal-header h2 {
  font-size: clamp(34px, 10vw, 56px);
}

.section p,
.final-ask p,
.modal-body > p {
  font-size: 18px;
  line-height: 1.44;
}

.risk-section {
  border-block: 1px solid var(--line);
}

.receipt-stack {
  box-shadow: none;
}

.receipt {
  background: #ffffff;
}

.receipt:nth-child(2),
.receipt:nth-child(4) {
  background: var(--surface-soft);
}

.control-artifact {
  box-shadow: none;
  overflow: hidden;
}

.control-row {
  align-items: start;
  grid-template-columns: 34px minmax(0, 1fr);
}

.control-row > span:last-child {
  grid-column: 2;
}

.control-step {
  align-items: center;
  background: var(--dark);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-family: var(--headline);
  font-size: 14px;
  font-weight: 700;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.control-row.is-strong {
  background: var(--dark);
  color: #ffffff;
}

.control-row.is-strong strong,
.control-row.is-strong > span:last-child {
  color: #ffffff;
}

.control-row.is-strong .control-step {
  background: var(--accent);
  color: var(--dark);
}

.demo-section {
  padding-top: 34px;
  padding-bottom: 58px;
}

.demo-heading {
  max-width: 780px;
}

.demo-carousel {
  box-shadow: none;
  overflow: hidden;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.demo-carousel:hover {
  box-shadow: 0 22px 70px rgba(15, 16, 18, 0.1);
  transform: translateY(-2px);
}

.carousel-controls {
  align-items: center;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.carousel-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
  width: 42px;
}

.carousel-button:hover,
.carousel-button:focus {
  background: var(--dark);
  border-color: var(--dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.carousel-dots {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.carousel-dots button {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  height: 10px;
  padding: 0;
  width: 10px;
}

.carousel-dots button[aria-current="true"] {
  background: var(--dark);
  border-color: var(--dark);
  width: 28px;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-slide {
  display: grid;
  flex: 0 0 100%;
  gap: 0;
}

.video-shell {
  background: var(--dark);
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

.video-shell iframe,
.video-placeholder {
  border: 0;
  display: block;
  height: 100%;
  min-height: 260px;
  width: 100%;
}

.video-placeholder {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 35%),
    var(--dark);
  color: #ffffff;
  padding: 20px;
  text-align: left;
}

.video-placeholder-inner {
  align-content: end;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  height: 100%;
  min-height: 220px;
  padding: 18px;
}

.video-play {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: var(--dark);
  display: inline-flex;
  font-size: 24px;
  height: 48px;
  justify-content: center;
  transition: transform 160ms ease;
  width: 48px;
}

.video-placeholder:hover .video-play,
.video-placeholder:focus .video-play {
  transform: scale(1.06);
}

.video-placeholder strong {
  font-family: var(--headline);
  font-size: 28px;
  line-height: 1;
}

.video-placeholder span:not(.video-play) {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.video-placeholder-action {
  color: #ffffff !important;
  font-weight: 700;
  margin-top: 4px;
}

.demo-record {
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 18px;
}

.demo-record strong {
  color: var(--ink);
  font-family: var(--headline);
  font-size: 24px;
  line-height: 1.05;
}

.demo-record p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.42;
}

.control-brief {
  border-block: 1px solid var(--line);
  display: grid;
  gap: 24px;
  padding: 58px 0;
}

.brief-copy {
  display: grid;
  gap: 14px;
}

.brief-copy h2 {
  font-size: clamp(34px, 10vw, 56px);
}

.brief-copy p {
  font-size: 18px;
  line-height: 1.44;
}

.brief-grid {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: grid;
  overflow: hidden;
}

.brief-card {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 18px;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.brief-card:last-child {
  border-bottom: 0;
}

.brief-card:nth-child(2) {
  background: var(--surface-soft);
}

.brief-card.is-dark {
  background: var(--dark);
}

.brief-card.is-dark span,
.brief-card.is-dark strong {
  color: #ffffff;
}

.final-ask {
  align-items: start;
  display: grid;
  gap: 22px;
  margin-top: 14px;
  padding: 24px;
}

.final-ask p {
  margin-top: 12px;
}

.contact-modal {
  background: transparent;
  border: 0;
  color: var(--ink);
  margin: auto;
  max-width: min(620px, calc(100vw - 28px));
  padding: 0;
  width: 100%;
}

.contact-modal::backdrop {
  background: rgba(10, 10, 12, 0.58);
}

.contact-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100svh - 28px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.modal-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 20px;
}

.modal-header h2 {
  margin-top: 4px;
}

.modal-close {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.modal-body {
  display: grid;
  gap: 18px;
  overflow-y: auto;
  padding: 20px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
}

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

.form-field input,
.form-field textarea {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

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

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--dark);
  outline: 3px solid color-mix(in srgb, var(--focus) 16%, transparent);
}

.form-status {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  min-height: 20px;
}

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

.modal-fallback {
  color: var(--muted);
  font-size: 14px;
}

.modal-fallback a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal-record {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.modal-record div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 14px;
}

.modal-record div:last-child {
  border-bottom: 0;
}

.modal-record a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal-footer {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 20px 20px;
}

@media (min-width: 640px) {
  .site-header {
    padding-inline: 24px;
  }

  main {
    padding-inline: 24px;
  }

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

  .site-nav a {
    border-radius: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 10px;
    text-decoration: none;
  }

  .site-nav a:hover,
  .site-nav a:focus {
    background: var(--surface-soft);
    color: var(--ink);
  }

  .record-row,
  .loop-row,
  .request-row,
  .receipt {
    align-items: center;
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .loop-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .demo-slide {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  }

  .demo-record {
    border-left: 1px solid var(--line);
    border-top: 0;
    align-content: center;
  }
}

@media (min-width: 880px) {
  .site-header {
    padding-inline: clamp(76px, 11vw, 230px);
  }

  main {
    padding-inline: clamp(76px, 11vw, 230px);
  }

  .hero {
    align-items: start;
    gap: 58px;
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: clamp(96px, 10vh, 140px) 140px;
  }

  .hero-copy {
    gap: 18px;
    justify-items: center;
    margin-inline: auto;
    max-width: 1180px;
    min-height: auto;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(64px, 5.35vw, 88px);
    line-height: 1;
    max-width: 1120px;
  }

  .hero p {
    font-size: 20px;
    line-height: 1.5;
    max-width: 70ch;
  }

  .hero-artifact {
    align-self: center;
    justify-self: center;
    margin-top: 0;
    width: 100%;
  }

  .artifact-shell {
    margin-inline: auto;
    max-width: 1160px;
  }

  .launch-summary {
    align-items: center;
    padding: 18px 24px;
  }

  .loop-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .loop-row {
    align-content: start;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    grid-template-columns: 1fr;
    min-height: 132px;
    padding: 20px;
  }

  .loop-row:last-child {
    border-right: 0;
  }

  .loop-row strong {
    font-size: 15px;
    line-height: 1.32;
  }

  .record-row {
    grid-template-columns: 180px minmax(0, 1fr);
    padding: 16px 18px;
  }

  .section {
    gap: clamp(28px, 5vw, 70px);
    grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
    padding: 82px 0;
  }

  .section h2,
  .final-ask h2 {
    font-size: clamp(46px, 5vw, 72px);
  }

  .section-copy {
    align-self: center;
  }

  .risk-section .section-copy {
    order: 2;
  }

  .risk-section .receipt-stack {
    order: 1;
  }

  .demo-section {
    display: grid;
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .demo-heading {
    justify-items: center;
    margin-inline: auto;
    max-width: 880px;
    text-align: center;
  }

  .video-shell,
  .video-shell iframe,
  .video-placeholder {
    min-height: 390px;
  }

  .video-placeholder-inner {
    min-height: 350px;
    padding: 26px;
  }

  .demo-record {
    padding: 26px;
  }

  .final-ask {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 34px;
  }

  .control-brief {
    gap: 34px;
    padding: 82px 0;
  }

  .brief-copy {
    max-width: 1040px;
  }

  .brief-copy h2 {
    font-size: clamp(48px, 5.4vw, 78px);
    max-width: 14ch;
  }

  .brief-copy p {
    font-size: 20px;
    max-width: 64ch;
  }

  .brief-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .brief-card {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    min-height: 170px;
    padding: 20px;
  }

  .brief-card:hover {
    transform: translateY(-2px);
  }

  .brief-card:last-child {
    border-right: 0;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding-inline: 12px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    height: 28px;
    width: 28px;
  }

  .header-action {
    font-size: 13px;
    min-height: 38px;
    padding-inline: 10px;
  }

  main {
    padding-inline: 14px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 46px);
    max-width: 10.8ch;
  }

  .hero p {
    font-size: 16px;
    max-width: 30ch;
  }

  .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

}
