/* disapai.com - plain CSS, no build step. Tokens mirror libs/ui/src/tokens.css. */

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/public-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --ink: #14181b;
  --body: #434d54;
  --muted: #5b656c;
  --line: #e3e7e9;
  --tint: #e4f2f2;
  --accent: #0a686d;
  --accent-strong: #074e52;
  --on-accent: #ffffff;
  --on-accent-soft: #d4ecec;
  --wave-off: #d3dbde;
  --shadow: rgba(10, 60, 64, 0.16);
  --amber: #f5a524;
  --radius: 16px;
  --radius-btn: 10px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 8vw, 104px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1113;
    --surface: #15191b;
    --ink: #e9ecee;
    --body: #b4bec3;
    --muted: #9aa5ab;
    --line: #262d30;
    --tint: #11292a;
    --accent: #2fa6ac;
    --accent-strong: #5cc3c8;
    --on-accent: #0e1113;
    --on-accent-soft: #0c2c2e;
    --wave-off: #2d3538;
    --shadow: rgba(0, 0, 0, 0.45);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Public Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: var(--accent);
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius-btn);
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

/* Buttons: one label per intent, 10px radius everywhere. */
.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 24px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.18s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.btn-light {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.btn-light:hover {
  color: var(--ink);
  background: var(--bg);
}

.btn-sm {
  font-size: 15px;
  padding: 12px 18px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 10px;
}

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

.brand:hover {
  color: var(--ink);
}

.wordmark {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-d {
  fill: var(--accent);
}

.logo-dot {
  fill: var(--amber);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 12px;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-block: clamp(48px, 6vw, 88px) var(--section);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--body);
  max-width: 30em;
}

.hero-actions {
  padding-top: 4px;
}

/* Call preview */
.preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.call {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 28px 64px -28px var(--shadow);
  overflow: hidden;
}

.call-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}

.call-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.call-name {
  font-weight: 700;
  font-size: 15px;
}

.call-meta {
  font-size: 13px;
  color: var(--muted);
}

.player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 4px;
}

.play {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  display: grid;
  place-items: center;
}

.play path {
  fill: var(--on-accent);
}

.wave {
  flex: 1;
  min-width: 0;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}

.wave span {
  flex: 1 1 0;
  min-width: 2px;
  height: var(--h);
  background: var(--wave-off);
  border-radius: 2px;
}

.wave .on {
  background: var(--accent);
}

.time {
  font-size: 12px;
  color: var(--muted);
}

.transcript {
  list-style: none;
  margin: 0;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.transcript .time {
  padding-top: 2px;
}

.turn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  line-height: 1.5;
}

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

.speaker-agent {
  color: var(--accent);
}

.preview figcaption {
  font-size: 13px;
  color: var(--muted);
}

/* Shared section type */
.section {
  padding-block: var(--section);
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--body);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 65ch;
}

/* How it works */
.how {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

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

.steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 22px;
  border-top: 2px solid var(--line);
}

.steps li:first-child {
  border-top-color: var(--accent);
}

.steps h3 {
  font-size: 20px;
  font-weight: 700;
}

.steps p,
.tile p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}

/* Product bento: six items, six cells */
.product {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.product .h2 {
  max-width: 18em;
}

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

.span2 {
  grid-column: span 2;
}

.span3 {
  grid-column: span 3;
}

.tile {
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tile-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tile h3 {
  font-size: 19px;
  font-weight: 700;
}

.tile-plain {
  background: var(--surface);
  border: 1px solid var(--line);
}

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

.tile-accent {
  background: var(--accent);
  color: var(--on-accent);
}

.tile-accent p {
  color: var(--on-accent-soft);
}

.tile-end {
  justify-content: space-between;
}

.tile-rubric {
  flex-flow: row wrap;
  align-items: center;
  gap: 28px;
}

.tile-rubric .tile-text {
  flex: 1 1 240px;
  min-width: 0;
  gap: 12px;
}

.tile-rubric h3 {
  font-size: 24px;
  letter-spacing: -0.01em;
}

.tile-rubric p {
  font-size: 16px;
}

.big {
  font-size: clamp(44px, 4.4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.big-accent {
  color: var(--accent);
}

.checklist {
  flex: 1 1 260px;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 18px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 40px -24px var(--shadow);
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

.checklist svg {
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checklist .open {
  color: var(--muted);
}

.checklist .open svg {
  stroke: var(--muted);
}

.correction {
  font-size: 20px;
  line-height: 1.4;
}

.correction del {
  color: var(--muted);
}

.correction strong {
  color: var(--accent);
}

.handover {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.handover .mono {
  font-size: 13px;
}

.tile-roles {
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}

.tile-roles .tile-text {
  max-width: 420px;
  gap: 8px;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li,
.chip {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent);
}

/* Who it's for */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
}

.split img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--tint);
}

.split-copy {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.split .h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.split .lede {
  max-width: 34em;
}

.roles > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.roles h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}

.roles p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}

/* Roadmap */
.roadmap {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.roadmap .stack {
  align-items: center;
  gap: 18px;
}

.roadmap .lede {
  max-width: 34em;
}

.chip {
  font-size: 13px;
  padding: 7px 14px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.timeline li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.timeline .chat {
  background: var(--tint);
  border: 1px dashed var(--accent);
}

.event {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event strong {
  font-size: 15px;
  font-weight: 600;
}

.event span {
  font-size: 14px;
  color: var(--muted);
}

.timeline .time {
  white-space: nowrap;
}

/* Closing */
.closing {
  padding-bottom: var(--section);
}

.cta {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-mark {
  position: absolute;
  right: -56px;
  bottom: -104px;
  opacity: 0.12;
}

.cta-mark path {
  fill: var(--on-accent);
}

.cta-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 600px;
}

.cta h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.cta p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--on-accent-soft);
}

.cta .btn {
  position: relative;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px;
}

.footer .wordmark {
  font-size: 17px;
}

.copyright {
  font-size: 14px;
  color: var(--muted);
  margin-left: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  font-size: 14px;
}

/* Tablet: single-column hero and split, two-column grids */
@media (max-width: 900px) {
  .hero,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

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

  .span3 {
    grid-column: span 2;
  }
}

/* Phone: everything stacks */
@media (max-width: 640px) {
  .steps,
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .span2,
  .span3 {
    grid-column: auto;
  }

  /* Logo and Sign in on one row; the anchors are a short scroll away. */
  .nav-links,
  .cta-mark {
    display: none;
  }
}

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

  .btn {
    transition: none;
  }
}
