/* Autocode's marketing stylesheet. Plain CSS, no build step.
   The page is two grounds: night (the hero and the closing line) and paper
   (how it works). The accent is the only colour on either; the mono face is
   for the things a product would print — names, times, step numbers.
   The block from here to the first rule is generated with the logo (brand
   colours and faces); change them together. */

/*@brand-start*/
@font-face {
  font-family: 'Manrope Variable';
  src: url('/_marketing/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono Variable';
  src: url('/_marketing/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --night: #0c1022;
  --night-2: #161c36;      /* a message on night */
  --night-line: #283058;
  --night-ink: #eef0f8;
  --night-muted: #9aa3c4;

  --paper: #ffffff;
  --ink: #0c1022;
  --muted: #596183;
  --line: #e2e5f0;

  --accent: #3d5afe;        /* the mark; buttons */
  --accent-hover: #5a74ff;
  --accent-bright: #8ea2ff; /* accent text on night */
  --accent-deep: #2238c9;     /* accent text on paper */
  --on-accent: #ffffff;

  --sans: 'Manrope Variable', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono Variable', ui-monospace, 'SF Mono', Menlo, monospace;

  --page: 1120px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
/*@brand-end*/

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
p, h1, h2, h3, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }

/* Every band centres its content on one column. */
.bar, .hero, .how, .never, .close, .foot {
  max-width: calc(var(--page) + 64px);
  margin: 0 auto;
  padding-left: calc(var(--gutter) + 16px);
  padding-right: calc(var(--gutter-r) + 16px);
}

/* ——— Night: header and hero ——— */

.night {
  background: var(--night);
  color: var(--night-ink);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}

.brand img { display: block; height: 27px; width: auto; }

.signin {
  color: var(--night-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
  padding-block: 56px 96px;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* The logo's crossbar, typed at the end of the line. */
.cursor {
  display: inline-block;
  width: 0.42em;
  height: 0.13em;
  margin-left: 0.1em;
  border-radius: 0.03em;
  background: var(--accent);
  vertical-align: baseline;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

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

.lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--night-muted);
  font-size: 1.1875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.button:hover { background: var(--accent-hover); }

.quiet {
  color: var(--night-ink);
  text-decoration: underline;
  text-decoration-color: var(--night-line);
  text-underline-offset: 4px;
}

.quiet:hover { text-decoration-color: var(--accent); }

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

/* One task as its thread: you on the right, the agent on the left. */
.thread {
  display: grid;
  gap: 12px;
  font-size: 0.9375rem;
}

.msg {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--night-2);
}

.msg.you { justify-self: end; }

.msg.agent {
  justify-self: start;
  background: transparent;
  border: 1px solid var(--night-line);
}

.who {
  margin-bottom: 4px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.who time { margin-left: 8px; opacity: 0.7; }

.ask {
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

.link {
  margin-top: 8px;
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.choices {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.choices span { padding: 4px 12px; border-radius: 4px; }
.approve { background: var(--accent); color: var(--on-accent); }
.notes { border: 1px solid var(--night-line); color: var(--night-ink); }

/* ——— Paper: how it goes, and what it won't do ——— */

h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.how { padding-block: 96px 64px; }

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

.steps li {
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.n {
  display: block;
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
}

.steps h3 {
  margin: 12px 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.steps p { color: var(--muted); font-size: 0.9375rem; }

.never { padding-block: 64px 96px; }

.never dl { margin-top: 32px; border-top: 1px solid var(--line); }

.never dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.never dt {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 4px;
}

.never dd { font-size: 1.1875rem; color: var(--ink); }

/* ——— Night again: the closing line ——— */

.close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 64px;
  background: var(--night);
  color: var(--night-ink);
  max-width: none;
  padding-left: max(calc(var(--gutter) + 16px), calc((100% - var(--page)) / 2));
  padding-right: max(calc(var(--gutter-r) + 16px), calc((100% - var(--page)) / 2));
}

.close-line {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 32px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ——— Phones ——— */

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 32px 64px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .bar, .hero, .how, .never, .foot {
    padding-left: var(--gutter);
    padding-right: var(--gutter-r);
  }
  .close { padding-left: var(--gutter); padding-right: var(--gutter-r); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .never dl > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .how { padding-block: 64px 48px; }
  .never { padding-block: 48px 64px; }
}
