:root {
  --black: #050505;
  --white: #ffffff;
  --paper: #f6f5f0;
  --soft: #ecebe5;
  --line: #d6d4cb;
  --muted: #66645e;
  --muted-dark: #bdbab0;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--black);
}

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

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

.brand-word {
  white-space: nowrap;
  letter-spacing: 0;
  text-transform: none;
}

.brand-os {
  display: inline-block;
  margin-left: 0.06em;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  font-weight: 900;
  line-height: 1;
  vertical-align: baseline;
  letter-spacing: 0.02em;
}

section {
  scroll-margin-top: 112px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px clamp(18px, 5vw, 64px) 9px;
  border-bottom: 1px solid rgba(5, 5, 5, 0.12);
  background: rgba(246, 245, 240, 0.94);
  backdrop-filter: blur(14px);
}

.brand-lockup img {
  width: min(230px, 58vw);
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 42px);
  color: var(--muted);
  font: 740 0.78rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--black);
  border-color: var(--black);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--paper);
  border-bottom: 1px solid var(--black);
}

.hero-inner {
  display: grid;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 94px) clamp(22px, 6vw, 72px);
  place-items: center;
}

.hero-copy {
  max-width: 880px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font: 760 0.78rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--muted-dark);
}

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

.hero h1 {
  max-width: 1200px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 4.8vw, 5.5rem);
  font-weight: 860;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-subline {
  margin-bottom: 20px;
  color: var(--paper);
  font-size: clamp(1.18rem, 2vw, 1.75rem);
  font-weight: 760;
  line-height: 1.25;
}

.hero-text {
  max-width: 780px;
  margin-right: auto;
  margin-bottom: 32px;
  margin-left: auto;
  color: #d9d6ca;
  font-size: clamp(1.08rem, 1.5vw, 1.26rem);
  line-height: 1.58;
}

.hero-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 30px auto 34px;
}

.hero-process-step {
  position: relative;
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 15px 15px 16px;
  border: 1px solid rgba(246, 245, 240, 0.36);
  background: rgba(246, 245, 240, 0.055);
  text-align: left;
}

.hero-process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -21px;
  width: 11px;
  height: 11px;
  border-top: 1px solid var(--paper);
  border-right: 1px solid var(--paper);
  transform: translateY(-50%) rotate(45deg);
}

.hero-process-step span {
  color: var(--muted-dark);
  font: 760 0.68rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
}

.hero-process-step h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.02rem, 1.45vw, 1.28rem);
  font-weight: 820;
  line-height: 1.05;
}

.hero-process-step p {
  margin: 0;
  color: #d9d6ca;
  font-size: 0.92rem;
  line-height: 1.4;
}

.hero-actions,
.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: 760 0.92rem/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

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

.button.primary {
  background: var(--paper);
  color: var(--black);
}

.button.secondary {
  color: var(--paper);
}

.button.dark {
  background: var(--black);
  color: var(--paper);
}

.flow-section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.flow-heading {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto clamp(30px, 5vw, 54px);
  text-align: center;
}

.flow-heading .eyebrow {
  margin-bottom: 0;
}

.flow-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.1vw, 4.2rem);
  font-weight: 850;
  line-height: 0.98;
  text-wrap: balance;
}

.flow-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid rgba(5, 5, 5, 0.18);
  background: rgba(5, 5, 5, 0.18);
  gap: 1px;
}

.flow-step {
  position: relative;
  min-height: 260px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 48px;
  right: -18px;
  z-index: 2;
  width: 34px;
  height: 1px;
  background: var(--black);
}

.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 43px;
  right: -18px;
  z-index: 3;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--black);
  border-right: 1px solid var(--black);
  transform: rotate(45deg);
}

.flow-step span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--black);
  border-radius: 50%;
  background: var(--paper);
  color: var(--black);
  font: 760 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}

.chat-note span {
  display: block;
  color: var(--muted);
  font: 760 0.78rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flow-step h3 {
  max-width: 260px;
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.45rem);
  font-weight: 850;
  line-height: 1;
}

.flow-step p,
.chat-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.chat-note {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(280px, 1fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
  max-width: 1180px;
  margin: 14px auto 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(5, 5, 5, 0.18);
  background: var(--soft);
}

.agent-section,
.product-row {
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.agent-section {
  grid-template-columns: minmax(260px, 0.58fr) minmax(340px, 1fr);
  background: var(--paper);
}

.product-row {
  grid-template-columns: minmax(260px, 0.76fr) minmax(320px, 1fr);
}

.product-row.reverse {
  background: var(--soft);
}

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

.product-row h2,
.agent-section h2,
.examples h2,
.waitlist h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.3vw, 4.2rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.product-copy p,
.agent-section .section-heading > p:not(.eyebrow),
.waitlist-copy p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.64;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(5, 5, 5, 0.18);
  background: rgba(5, 5, 5, 0.18);
}

.agent-card {
  min-height: 430px;
  display: grid;
  align-content: space-between;
  gap: 26px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
}

.agent-card > span {
  color: var(--muted);
  font: 760 0.78rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agent-card h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  font-weight: 850;
  line-height: 1;
}

.agent-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-card li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.48;
}

.plain-panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(5, 5, 5, 0.18);
  background: var(--white);
  box-shadow: 0 20px 60px rgba(5, 5, 5, 0.07);
}

.plain-panel h3 {
  margin-bottom: 18px;
  font: 760 0.84rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plain-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-panel li {
  display: grid;
  gap: 4px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  line-height: 1.52;
}

.plain-panel li span {
  font: 760 0.76rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.examples {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 6vw, 72px);
  border-bottom: 1px solid var(--black);
  background: var(--black);
  color: var(--paper);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.examples .eyebrow {
  color: var(--muted-dark);
}

.example-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(246, 245, 240, 0.24);
  background: rgba(246, 245, 240, 0.24);
}

.example-list p {
  min-height: 165px;
  margin: 0;
  padding: 22px;
  background: var(--black);
  color: var(--paper);
  line-height: 1.5;
}

.example-list span {
  display: block;
  margin-bottom: 42px;
  color: var(--muted-dark);
  font: 760 0.76rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.waitlist {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper), #eeeeea);
}

.waitlist-copy {
  display: grid;
  gap: 24px;
  max-width: 620px;
}

.booking-card {
  display: grid;
  gap: 12px;
  max-width: 520px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(5, 5, 5, 0.22);
  background: var(--black);
  color: var(--paper);
  box-shadow: 0 20px 60px rgba(5, 5, 5, 0.08);
}

.booking-card > span,
.form-heading > span {
  color: var(--muted-dark);
  font: 760 0.76rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.booking-card h3,
.form-heading h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
  font-weight: 850;
  line-height: 1;
}

.booking-card p {
  margin: 0 0 8px;
  color: #d9d6ca;
  line-height: 1.55;
}

.booking-card .button {
  width: fit-content;
  background: var(--paper);
  color: var(--black);
}

.intake-form,
.crm-login,
.crm-dashboard {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(5, 5, 5, 0.22);
  background: var(--white);
  box-shadow: 0 20px 60px rgba(5, 5, 5, 0.08);
}

.form-heading {
  display: grid;
  gap: 10px;
  padding-bottom: 6px;
}

.form-heading > span {
  color: var(--muted);
}

label,
fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

label span,
legend {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid #c9c7be;
  border-radius: 2px;
  background: #fbfaf6;
  color: var(--black);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(5, 5, 5, 0.22);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--black);
  font-weight: 700;
}

.form-status.error {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 6vw, 72px);
  color: var(--muted);
}

.site-footer img {
  width: min(190px, 56vw);
  mix-blend-mode: multiply;
}

.crm-body {
  background: var(--paper);
}

.crm-shell {
  padding: clamp(36px, 6vw, 72px) clamp(18px, 6vw, 76px);
}

.crm-login {
  max-width: 560px;
}

.token-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.hidden {
  display: none !important;
}

.crm-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 1px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  background: var(--line);
}

.summary-cell {
  min-height: 86px;
  padding: 14px;
  background: var(--paper);
}

.summary-cell strong {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.6rem;
}

.summary-cell span,
.lead-email,
.lead-meta {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.crm-table-wrap {
  overflow-x: auto;
}

.crm-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.crm-table th,
.crm-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.crm-table th {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead-name {
  display: block;
  font-weight: 760;
}

.status-select {
  min-width: 130px;
}

.notes-input {
  min-width: 220px;
}

@media (max-width: 980px) {
  .hero-inner,
  .flow-heading,
  .agent-section,
  .product-row,
  .waitlist {
    grid-template-columns: 1fr;
  }

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

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

  .flow-rail,
  .agent-grid {
    grid-template-columns: 1fr;
  }

  .flow-step {
    min-height: auto;
    padding-left: 82px;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .flow-step span {
    position: absolute;
    top: 24px;
    left: 22px;
  }

  .flow-step:not(:last-child)::before {
    content: "";
    position: absolute;
    display: block;
    top: 62px;
    right: auto;
    bottom: -1px;
    left: 41px;
    width: 1px;
    height: auto;
    border: 0;
    background: var(--line);
    transform: none;
  }

  .chat-note {
    grid-template-columns: 1fr;
  }

  .agent-card {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 10px;
  }

  .brand-lockup img {
    width: min(214px, 56vw);
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: clamp(18px, 7vw, 34px);
    font-size: 0.68rem;
  }

  .hero-inner {
    gap: 26px;
    min-height: auto;
    padding: 34px 20px 44px;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.15rem, 9vw, 3rem);
    line-height: 1;
  }

  .hero-subline {
    font-size: 1.08rem;
  }

  .hero-text {
    margin-bottom: 22px;
    font-size: 1rem;
  }

  .hero-process {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 24px auto 28px;
  }

  .hero-process-step {
    min-height: auto;
    padding: 15px 16px;
  }

  .hero-process-step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -9px;
    transform: translateX(50%) rotate(135deg);
  }

  .button {
    flex: 1 1 130px;
  }

  .example-list,
  .crm-summary {
    grid-template-columns: 1fr;
  }
}
