/* Tokens */

@font-face {
  font-family: Geist;
  src: url('/fonts/geist-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url('/fonts/geist-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url('/fonts/geist-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url('/fonts/geist-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #14121a;
  --paper: #faf8f5;
  --surface: #fff;
  --line: #e7e3ec;
  --muted: #5e5a6b;
  --accent: #5b3df0;
  --accent-strong: #4a2fd6;
  --accent-tint: #eeeafd;
  --night: #1a1033;
  --accent-on-night: #b9a8ff;
  --success: #15784f;
  --warning: #9a5b00;
}

/* Base */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 17px/1.6 Geist,
    Arial,
    sans-serif;
}

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

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

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

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

svg {
  flex-shrink: 0;
}

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

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 500;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 3vw + 0.5rem, 3.25rem);
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

p {
  margin-top: 16px;
}

em {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

/* Layout */

.container {
  max-width: 1200px;
  width: calc(100% - 80px);
  margin-inline: auto;
}

.browser {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}

.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  background: #f6f4f8;
  border-bottom: 1px solid var(--line);
  font:
    10px 'Geist Mono',
    monospace;
  color: var(--muted);
}

.browser-bar > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dots {
  display: flex;
  gap: 4px;
}

.dots i {
  width: 6px;
  height: 6px;
  border: 1px solid #c8c2cf;
  border-radius: 100%;
}

.browser > img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  object-position: top;
}

.trust-strip > .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}

/* Header */

.header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 245, 0.97);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo svg {
  width: 138px;
  height: auto;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 500;
}

.header nav a:not(.button):hover,
.header nav [aria-current] {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

/* Hero */

.hero {
  padding: 64px 0 56px;
  background-image: radial-gradient(var(--line) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
}

.hero-heading {
  max-width: 1100px;
  margin-bottom: 36px;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.3vw + 0.7rem, 4.5rem);
  max-width: 1100px;
}

.hero h1 > span {
  display: block;
}

.hero h1 em {
  color: var(--accent);
}

.hero-heading p {
  max-width: 660px;
  color: var(--muted);
  font-size: 16px;
  margin-top: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-preview {
  position: relative;
  min-width: 0;
}

.hero-preview > .browser {
  box-shadow: 0 20px 60px #14121a0c;
}

.preview-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin-top: 16px;
  color: var(--muted);
}

.preview-caption > span:last-child {
  margin-left: auto;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.preview-note {
  margin: 32px 0 0 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  max-width: 350px;
}

.building .hero {
  background-image: none;
}

/* Build Room */

.room-heading {
  margin-bottom: 28px;
}

.room-heading h2 {
  margin-bottom: 24px;
}

.room-panes {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.progress-pane {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.build-step {
  display: flex;
  gap: 14px;
  padding: 16px 10px;
  border-radius: 10px;
}

.build-step.running {
  background: var(--accent-tint);
}

.build-step h3 {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 500;
}

.build-step p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0;
  overflow-wrap: anywhere;
}

.build-step.queued p {
  display: none;
}

.step-status {
  font-size: 10px;
  color: var(--muted);
}

.elapsed {
  font:
    11px 'Geist Mono',
    monospace;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

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

#poll-message {
  font-size: 12px;
  color: var(--warning);
}

.canvas-content {
  padding: 30px;
  background: #fff;
}

.canvas-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.canvas-nav b {
  width: 80px;
  height: 16px;
  background: #ddd8e3;
  margin-right: auto;
}

.canvas-nav i {
  width: 32px;
  height: 6px;
  background: #ece9ee;
}

.canvas-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 48px 0;
}

.canvas-hero > div:first-child i {
  display: block;
  background: #ddd8e3;
  height: 18px;
  margin: 8px 0;
}

.canvas-hero > div:first-child i:nth-child(3) {
  height: 6px;
  margin-top: 20px;
}

.canvas-hero b {
  display: block;
  background: #ddd8e3;
  width: 60px;
  height: 20px;
  margin-top: 20px;
  border-radius: 4px;
}

.canvas-image {
  background: #eeeaf1;
  min-height: 170px;
  border-radius: 8px;
}

.canvas-cards {
  display: flex;
  gap: 12px;
}

.canvas-cards i {
  width: 33.3%;
  height: 70px;
  background: #eeebf1;
  border-radius: 6px;
}

.canvas[data-stage='collect'] .canvas-cards,
.canvas[data-stage='collect'] .canvas-nav,
.canvas[data-stage='research'] .canvas-cards {
  visibility: hidden;
}

.canvas[data-stage='build'] .canvas-image,
.canvas[data-stage='ready'] .canvas-image {
  background: #d7e4d6;
}

.canvas[data-stage='build'] .canvas-hero b,
.canvas[data-stage='ready'] .canvas-hero b {
  background: var(--accent);
}

.canvas[data-stage='build'] .canvas-nav b,
.canvas[data-stage='ready'] .canvas-nav b {
  background: var(--ink);
}

/* Real wireframe from the pipeline (step 4): a slim mini-page sketch next to a
   numbered section list; rationale opens per section ("Why this layout"). */
.canvas-wireframe {
  padding: 16px 18px 18px;
  background: #fff;
  max-height: 460px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.wf-tab {
  font: inherit;
  font-size: 11px;
  line-height: 1;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.wf-tab:hover {
  color: var(--ink);
  background: #f4f2f7;
}

.wf-tab[aria-pressed='true'] {
  background: var(--accent-tint);
  border-color: #d7cffc;
  color: var(--accent-strong);
  font-weight: 500;
}

.wf-body {
  display: grid;
  grid-template-columns: minmax(104px, 34%) 1fr;
  gap: 18px;
  align-items: start;
}

/* Left: the mini page. */
.wf-sketch {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf9fb;
}

.wf-sk-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 10px;
  padding: 0 3px 3px;
}

.wf-sk-nav b {
  width: 22px;
  height: 5px;
  border-radius: 2px;
  background: #cfc9d8;
  margin-right: auto;
}

.wf-sk-nav i {
  width: 9px;
  height: 3px;
  border-radius: 2px;
  background: #ddd8e3;
}

.wf-blk {
  position: relative;
  display: block;
  height: var(--h, 26px);
  border-radius: 4px;
  background: #eeebf1;
  outline: 1.5px solid transparent;
  outline-offset: -1.5px;
  transition:
    background 0.15s,
    outline-color 0.15s;
}

.wf-blk.has-why {
  cursor: pointer;
}

.wf-blk.is-hover,
.wf-blk.is-open {
  background: var(--accent-tint);
  outline-color: var(--accent);
}

.wf-blk-num {
  position: absolute;
  top: 3px;
  left: 4px;
  font: 500 7px/1 'Geist Mono', monospace;
  color: #9a94a3;
}

.wf-blk.is-hover .wf-blk-num,
.wf-blk.is-open .wf-blk-num {
  color: var(--accent-strong);
}

.wf-sk {
  position: absolute;
  inset: 4px 6px 4px 14px;
  display: flex;
  gap: 3px;
  align-items: center;
}

.wf-sk i {
  flex: 1;
  height: 70%;
  border-radius: 2px;
  background: #fff;
}

.wf-sk-lines,
.wf-sk-rows {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.wf-sk-lines i,
.wf-sk-rows i {
  flex: 0 0 3px;
  height: 3px;
}

.wf-sk-lines i:last-child {
  width: 60%;
}

.wf-sk-chips4 i,
.wf-sk-chips5 i {
  height: 5px;
}

.wf-sk-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 6px 3px 7px;
  gap: 4px 6px;
  align-content: center;
}

.wf-sk-hero i:nth-child(1) {
  height: 6px;
}

.wf-sk-hero i:nth-child(2) {
  grid-row: 2;
  height: 3px;
  width: 80%;
}

.wf-sk-hero i:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / 4;
  height: 100%;
}

.wf-sk-hero::after {
  content: '';
  grid-column: 1;
  grid-row: 3;
  width: 18px;
  height: 7px;
  border-radius: 3px;
  background: #cfc9d8;
}

.wf-sk-steps4 i {
  height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
  margin: 0 auto;
}

.wf-sk-form {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.wf-sk-form i {
  flex: 0 0 5px;
}

.wf-sk-form i:last-child {
  width: 30%;
  background: #cfc9d8;
}

.wf-sk-cta {
  justify-content: center;
}

.wf-sk-cta i {
  flex: 0 0 40%;
  height: 4px;
}

.wf-sk-cta i:last-child {
  flex: 0 0 16px;
  height: 7px;
  background: #cfc9d8;
}

.wf-blk-footer {
  background: #e2dee8;
}

.wf-sk-footer i {
  height: 3px;
}

.wf-sk-end {
  height: 2px;
}

/* Right: section list. */
.wf-notes {
  min-width: 0;
}

.wf-notes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 2px;
}

.wf-notes-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.wf-notes-count {
  font: 10px 'Geist Mono', monospace;
  color: var(--muted);
}

.wf-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 8px;
}

.wf-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wf-item {
  border-bottom: 1px solid #f0edf3;
}

.wf-item:last-child {
  border-bottom: 0;
}

.wf-item-head {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  padding: 7px 4px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  text-align: left;
  color: inherit;
}

button.wf-item-head {
  cursor: pointer;
}

.wf-item.is-hover .wf-item-head {
  background: #f6f4f9;
}

@media (hover: hover) {
  button.wf-item-head:hover {
    background: #f6f4f9;
  }
}

button.wf-item-head:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.wf-num {
  font: 500 10px 'Geist Mono', monospace;
  color: #9a94a3;
}

.wf-item.is-open .wf-num,
.wf-item.is-hover .wf-num {
  color: var(--accent-strong);
}

.wf-name {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.wf-kind {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9a94a3;
  white-space: nowrap;
}

button.wf-item-head .wf-kind::after {
  content: ' +';
  font-family: 'Geist Mono', monospace;
  color: var(--accent);
}

.wf-item.is-open button.wf-item-head .wf-kind::after {
  content: ' −';
}

.wf-why {
  margin: 0 4px 9px 28px;
  padding: 7px 10px;
  border-left: 2px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 6px 6px 0;
  font-size: 11px;
  line-height: 1.5;
  color: #3d3752;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .canvas-wireframe {
    padding: 12px;
    max-height: 520px;
  }
  .wf-body {
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }
  .wf-kind {
    display: none;
  }
  .wf-item-head {
    grid-template-columns: 16px 1fr;
    padding: 9px 2px;
  }
  .wf-name {
    font-size: 12.5px;
  }
  button.wf-item-head .wf-name::after {
    content: ' +';
    font-family: 'Geist Mono', monospace;
    color: var(--accent);
  }
  .wf-item.is-open button.wf-item-head .wf-name::after {
    content: ' −';
  }
  .wf-why {
    margin-left: 20px;
  }
}

/* Ready state: live preview (scaled iframe) over the deploy-time screenshot. */
.reveal-stage {
  position: relative;
  aspect-ratio: 1440 / 900;
  overflow: hidden;
  background: #f4f2f7;
}

.reveal-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.reveal-stage > iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 900px;
  border: 0;
  background: #fff;
  transform: scale(var(--frame-scale, 0.5));
  transform-origin: 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.reveal-stage[data-state='live'] > iframe {
  opacity: 1;
}

.reveal-empty {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-size: 14px;
  color: var(--accent-strong);
}

.reveal-stage[data-state='empty'] > .reveal-empty {
  display: grid;
}

.reveal {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 36px;
}

.ready-tick {
  color: var(--success);
  font-size: 28px;
}

.reveal h2 {
  margin: 8px 0 24px;
}

.reveal > .browser {
  margin-top: 24px;
  max-width: 900px;
}

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

.reveal-actions form {
  margin: 0;
}

.build-room:has(.reveal:not([hidden])) .room-panes {
  display: none;
}

#build-error {
  margin-top: 24px;
}

#build-error p:first-child {
  margin: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.build-page,
.building .hero {
  padding: 40px 0;
}

.reveal {
  margin-top: 0;
}

.reveal-heading h2 {
  margin-bottom: 12px;
}

.reveal-heading p {
  font-size: 14px;
  color: var(--muted);
}

.reveal-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.reveal-actions .button,
.reveal-actions form {
  width: 100%;
}

.reveal-actions .text-link {
  justify-content: center;
}

.preview-address {
  margin: 0;
  font:
    12px 'Geist Mono',
    monospace;
  overflow-wrap: anywhere;
  color: var(--muted);
}

#reveal-heading:focus:not(:focus-visible) {
  outline: none;
}

/* Sections */

.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding: 22px 0;
}

.trust-strip span > span {
  margin-right: 10px;
  color: var(--success);
}

.section {
  padding-block: clamp(4rem, 8vw, 8rem);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.section-heading.row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.steps-grid article {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.step-number {
  color: var(--accent);
  font:
    12px 'Geist Mono',
    monospace;
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.steps-grid p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.night {
  background: var(--night);
  color: white;
  padding: 80px 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 80px;
}

.night p {
  color: #d0c8df;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.dashboard {
  border: 1px solid #453959;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  padding: 18px;
  transform: rotate(-1deg);
}

.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 16px;
}

.pill {
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 9px;
  color: var(--muted);
}

.dashboard-site {
  position: relative;
  background: #f3ede3;
  padding: 24px 24px 54px;
  border-radius: 6px;
}

.dashboard-site > span {
  font:
    18px 'Instrument Serif',
    serif;
}

.dashboard-site h3 {
  font:
    36px 'Instrument Serif',
    serif;
  max-width: 250px;
  margin-top: 24px;
  outline: 1px dashed var(--accent);
  outline-offset: 8px;
}

.tag-pin {
  position: absolute;
  right: 24px;
  top: 74px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.tag-comment {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  left: 24px;
  margin-top: 20px;
  background: white;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 11px;
  box-shadow: 0 4px 12px #14121a08;
}

.dashboard-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.estimate {
  font-size: 11px;
  display: inline-block;
  padding: 10px 12px;
  background: var(--accent-tint);
  border: 1px solid #d7cffc;
  border-radius: 7px;
  color: var(--accent-strong);
}

/* The dashboard is an illustration: no pointer, hover, focus or selection. */
.dashboard {
  pointer-events: none;
  user-select: none;
  cursor: default;
}

.dashboard .button.dashboard-fake-button,
.dashboard .button.dashboard-fake-button:hover {
  background: var(--accent);
  cursor: default;
  box-shadow: none;
}

.dashboard p {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 0;
}

.section-intro {
  font-size: 14px;
  color: var(--muted);
  max-width: 680px;
  margin: -24px 0 32px;
}

.examples-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.example-info {
  padding-top: 24px;
}

.example-info p {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0;
}

.pricing-section {
  border-block: 1px solid var(--line);
  background: #f3f0eb;
}

.price-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 80px;
  align-items: center;
  max-width: 1000px;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 40px;
}

.price-card h2 {
  font-size: 40px;
}

.monthly {
  font-size: 23px;
}

.included {
  list-style: none;
  margin: 24px 0;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}

.included li {
  font-size: 14px;
  margin: 10px 0;
  display: flex;
  gap: 12px;
}

.included li span {
  color: var(--success);
}

.terms {
  font-size: 13px;
}

.terms p {
  margin-top: 8px;
}

.price-card > p:not(.monthly) {
  font-size: 13px;
}

.price-card > small {
  display: block;
  text-align: center;
}

/* Annual / Monthly plan toggle */
.plan-toggle {
  display: inline-flex;
  gap: 2px;
  margin: 14px 0 18px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  min-width: 0;
}

.plan-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
}

.plan-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.plan-input:checked + label {
  background: var(--ink);
  color: #fff;
}

.plan-input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.save-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: #e3f6ea;
  color: #14632f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.price-card h2 .per {
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
}

.plan-scope:has(.plan-input[value="monthly"]:checked) .plan-only-annual,
.plan-scope:not(:has(.plan-input[value="monthly"]:checked)) .plan-only-monthly {
  display: none !important;
}

#checkout-form .plan-toggle {
  display: flex;
  margin: 4px 0 12px;
}

#checkout-form .plan-toggle label {
  flex: 1;
  justify-content: center;
}

.price-aside > p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.quote-card {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-top: 36px;
}

.quote-card p {
  color: var(--muted);
  font-size: 14px;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.faq-section h2 {
  margin-bottom: 24px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 15px;
  font-weight: 500;
}

summary::-webkit-details-marker {
  display: none;
}

summary span {
  font-size: 22px;
  color: var(--muted);
}

details[open] summary span {
  transform: rotate(45deg);
}

details p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.final-cta {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 80px 0;
}

.final-cta img {
  margin: 0 auto 24px;
}

.final-cta h2 {
  max-width: 640px;
  margin: auto;
}

.final-cta p {
  color: var(--muted);
  margin-bottom: 28px;
}

.page-heading {
  padding: 80px 0 48px;
}

.page-heading h1 {
  max-width: 900px;
}

.page-heading p {
  max-width: 640px;
  color: var(--muted);
}

.page-body {
  padding-bottom: 80px;
}

.page-body > .faq-list {
  max-width: 850px;
}

.detail-steps article {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  max-width: 900px;
}

.detail-steps p {
  max-width: 640px;
  color: var(--muted);
}

.detail-steps h2 {
  font-size: 28px;
}

.subsection {
  margin-top: 80px;
}

.subsection > h2 {
  margin-bottom: 32px;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stage-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: white;
}

.stage-grid h3 {
  font-size: 18px;
}

.stage-grid p {
  font-size: 14px;
  color: var(--muted);
}

.prose {
  max-width: 760px;
}

.prose section {
  margin: 40px 0;
}

.prose h2 {
  font-size: 28px;
}

.prose p {
  color: var(--muted);
  line-height: 1.9;
}

.status-icon {
  flex-shrink: 0;
  border: 1px solid var(--line);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font:
    11px 'Geist Mono',
    monospace;
  color: var(--muted);
}

.done .status-icon {
  color: var(--success);
  border-color: var(--success);
}

.running .status-icon {
  color: var(--accent);
  border: 2px solid var(--accent);
  border-top-color: transparent;
  animation: spin 1.2s linear infinite;
  font-size: 0;
}

.error .status-icon {
  color: #a52626;
}

.example-info h2 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.price-layout {
  align-items: start;
}

.price-aside > p:first-child {
  margin-top: 0;
}

.after-launch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.after-launch-grid h2 {
  font-size: 32px;
}

/* Forms */

.composer {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 10px 40px #14121a05;
  min-width: 0;
}

.composer label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.composer textarea,
.composer input,
.composer select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  min-height: 44px;
}

.composer textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 110px;
}

.composer textarea::placeholder {
  color: #746f7e;
}

/* Attachments in the prompt box */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.attach {
  margin-top: 10px;
}

.attach-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.composer .attach-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  opacity: 0;
}

.composer .attach-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin: 0;
  padding: 7px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.composer .attach-button:hover,
.attach-input:focus-visible + .attach-button {
  border-color: var(--accent);
  border-style: solid;
  color: var(--accent);
}

.attach-input:focus-visible + .attach-button {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.attach-hint {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  min-width: 0;
}

.attach-hint-main {
  color: var(--ink);
}

.attach-hint-types {
  font-size: 10px;
}

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

.file-chips[hidden] {
  display: none;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 34px;
  padding: 4px 4px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.file-chip-kind {
  flex: none;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.file-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 22ch;
}

.file-chip-size {
  flex: none;
  color: var(--muted);
  font-size: 10px;
}

.file-chip-remove {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.file-chip-remove:hover,
.file-chip-remove:focus-visible {
  background: var(--paper);
  color: #a52626;
}

.composer.is-dragging {
  position: relative;
  border-color: var(--accent);
}

.composer.is-dragging::after {
  content: attr(data-drop);
  position: absolute;
  inset: 6px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--accent);
  border-radius: 16px;
  background: #ffffffe6;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 20px;
}

.chip {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 5px 9px;
  font-size: 10px;
  color: var(--muted);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-error {
  font-size: 12px;
  line-height: 1.5;
  color: #a52626;
  margin: 4px 0 0;
}

.field-error:empty {
  display: none;
}

.field small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}

.consent {
  font-size: 10px;
  color: var(--muted);
  margin: 16px 0;
}

.consent a {
  text-decoration: underline;
}

.submit {
  width: 100%;
  justify-content: space-between;
}

.form-note {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}

.honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-summary {
  color: #a52626;
  font-size: 13px;
  margin-bottom: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
}

.contact-grid .field {
  margin-bottom: 20px;
}

.contact-grid aside {
  padding-top: 20px;
}

.contact-grid aside h2 {
  font-size: 28px;
}

.contact-grid aside p {
  color: var(--muted);
}

/* Footer */

footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 24px;
  background: var(--surface);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-top p {
  font-size: 12px;
  color: var(--muted);
}

.footer-top nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 48px;
  font-size: 12px;
}

.footer-top nav a {
  min-height: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 20px;
  font-size: 10px;
  color: var(--muted);
}

/* Utilities */

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

[hidden] {
  display: none !important;
}

.button {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  min-height: 48px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

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

.button.small {
  padding: 12px 16px;
  min-height: 44px;
  font-size: 12px;
  gap: 12px;
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--accent);
}

.text-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.wide {
  grid-column: 1/-1;
}

.section-heading .eyebrow {
  margin-bottom: 16px;
}

.night .eyebrow,
.night .text-link {
  color: var(--accent-on-night);
}

.example-info .eyebrow {
  font-size: 10px;
  margin-bottom: 12px;
}

.tbc {
  display: inline;
  background: #fff4e0;
  color: var(--warning);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 0.85em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.price-card > .button {
  width: 100%;
  margin: 24px 0 12px;
  justify-content: space-between;
}

.notice {
  background: #fff4e0;
  color: var(--warning);
  border: 1px solid #f2ddb8;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip:focus-visible {
  position: fixed;
  top: 12px;
  left: 20px;
  width: auto;
  height: auto;
  padding: 12px;
  margin: 0;
  clip: auto;
  clip-path: none;
  overflow: visible;
}

/* Responsive */

@media (min-width: 1440px) {
  body {
    font-size: 18px;
  }
}

@media (max-width: 1050px) {
  .container {
    width: calc(100% - 48px);
  }
  .header nav {
    gap: 16px;
    font-size: 11px;
  }
  .header nav .button {
    font-size: 11px;
    gap: 8px;
  }
  .hero-grid {
    gap: 28px;
  }
  .dashboard-grid,
  .price-layout,
  .faq-section,
  .contact-grid {
    gap: 40px;
  }
  .hero h1 {
    font-size: 54px;
  }
  .trust-strip > .container {
    flex-wrap: wrap;
    justify-content: center;
  }
  .dashboard-request {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }
  .container {
    width: calc(100% - 36px);
  }
  .header-inner {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 0;
  }
  .logo svg {
    width: 122px;
  }
  .menu-toggle:not([hidden]) {
    display: flex;
  }
  .header nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 16px 0;
    font-size: 12px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }
  .header nav a {
    min-height: 36px;
    display: flex;
    align-items: center;
  }
  .header nav .button {
    margin-left: auto;
  }
  .header.js-menu nav {
    display: none;
  }
  .header.js-menu.open nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 16px;
  }
  .header.js-menu.open nav a:not(.button) {
    min-height: 48px;
    border-bottom: 1px solid var(--line);
  }
  .header.js-menu.open nav .button {
    margin: 16px 0 4px;
    justify-content: center;
  }
  .hero {
    padding: 36px 0;
  }
  .hero h1 {
    font-size: clamp(2.35rem, 8vw + 0.6rem, 3.4rem);
    line-height: 1.07;
  }
  .hero-heading {
    margin-bottom: 26px;
  }
  .hero-heading p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 20px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 16px;
  }
  .hero-grid,
  .dashboard-grid,
  .price-layout,
  .faq-section,
  .contact-grid,
  .room-panes {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .composer {
    padding: 20px;
  }
  .form-grid {
    gap: 12px;
  }
  .chip {
    font-size: 10px;
    min-height: 36px;
  }
  .hero-preview {
    margin-top: 4px;
  }
  .preview-note {
    margin: 20px 0 0;
    padding: 12px 16px;
    max-width: none;
  }
  .trust-strip {
    padding: 16px 0;
  }
  .trust-strip > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 10px;
  }
  .trust-strip span > span {
    margin-right: 5px;
  }
  .section {
    padding-block: 64px;
  }
  .section-heading {
    margin-bottom: 32px;
  }
  .section-heading.row {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 22px;
  }
  .steps-grid h3 {
    font-size: 19px;
  }
  .steps-grid p {
    font-size: 13px;
  }
  .step-number {
    margin-bottom: 20px;
  }
  .night {
    padding: 64px 0;
  }
  .dashboard {
    transform: none;
    padding: 14px;
  }
  .dashboard-top {
    flex-wrap: wrap;
  }
  .dashboard-site {
    padding: 20px 20px 40px;
  }
  .dashboard-site h3 {
    font-size: 32px;
  }
  .tag-comment {
    left: 8px;
    font-size: 10px;
  }
  .examples-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section-intro {
    margin: 0 0 28px;
  }
  .price-card {
    padding: 28px 24px;
  }
  .price-card h2 {
    font-size: 34px;
  }
  .price-aside h3 {
    font-size: 24px;
  }
  .faq-section {
    gap: 32px;
  }
  summary {
    font-size: 14px;
    padding: 20px 0;
  }
  details p {
    font-size: 14px;
  }
  .final-cta {
    padding: 60px 0;
  }
  .footer-top {
    flex-direction: column;
    gap: 28px;
  }
  .footer-top nav {
    gap: 12px 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
  .page-heading {
    padding: 48px 0 32px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .detail-steps article {
    grid-template-columns: 48px 1fr;
    padding: 28px 0;
  }
  .detail-steps h2 {
    font-size: 23px;
  }
  .detail-steps p {
    font-size: 14px;
  }
  .stage-grid {
    grid-template-columns: 1fr;
  }
  .subsection {
    margin-top: 56px;
  }
  .page-body {
    padding-bottom: 56px;
  }
  .room-panes {
    gap: 24px;
  }
  .progress-pane {
    padding: 16px;
  }
  .build-step {
    padding: 14px 8px;
  }
  .canvas-content {
    padding: 20px;
  }
  .canvas-hero {
    gap: 16px;
    padding: 30px 0;
  }
  .canvas-image {
    min-height: 130px;
  }
  .reveal {
    padding: 20px;
  }
  .reveal-actions {
    gap: 12px;
  }
  .reveal-actions .button {
    font-size: 12px;
    padding: 13px 15px;
  }
  .reveal h2 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .running .status-icon {
    border-color: var(--accent);
    font-size: 11px;
  }
}

@media (min-width: 960px) {
  .reveal {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: auto 1fr;
    gap: 0 32px;
    padding: 28px;
  }
  .reveal-heading {
    grid-column: 2;
    grid-row: 1;
  }
  .reveal > .reveal-browser {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
    align-self: start;
  }
  .reveal-actions {
    grid-column: 2;
    grid-row: 2;
    margin-top: 20px;
    gap: 12px;
  }
  .reveal-heading h2 {
    font-size: 32px;
  }
  #paid-message,
  #checkout-message {
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .after-launch-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.step-time { display: block; color: var(--muted); font-size: 0.7rem; overflow-wrap: anywhere; }
#checkout-form small { display: block; margin-top: 0.6rem; max-width: 22rem; }
.build-step.current { border-color: var(--accent); }

/* Checkout success: live onboarding progress (phase 7). */
.onboarding { display: grid; gap: 20px; max-width: 760px; }
.onboarding-heading { font-size: 1rem; letter-spacing: 0; margin: 0 0 8px; font-weight: 600; }
.onboarding .build-step.waiting .step-detail { display: block; }
.onboarding .build-step h3 { font-size: 15px; }
.onboarding .build-step p { font-size: 12px; }
.onboarding-error { color: #a52626; font-size: 14px; }
.onboarding-ready { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 14px; justify-items: start; }
.onboarding-ready h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.02em; margin: 0; }
.onboarding-ready .reveal-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.onboarding-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.client-login { max-width: 520px; display: grid; gap: 16px; }
.client-login-form { display: grid; gap: 10px; }
.client-login-form label { font-weight: 600; font-size: 14px; }
.client-login-form input { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: white; width: 100%; }
.client-login-form .button { justify-self: start; }
.client-login-sent { background: var(--accent-tint); border-radius: 12px; padding: 14px 16px; }
@media (max-width: 640px) {
  .onboarding-ready { padding: 18px; }
  .onboarding-ready .reveal-actions .button, .client-login-form .button { width: 100%; justify-content: center; }
}

/* Build step waiting for a build slot (real queue position from the build queue):
   no spinner, since nothing is being built yet. */
.build-step.running.in-queue { background: transparent; outline: 1px dashed var(--accent); outline-offset: -1px; }
.in-queue .status-icon { animation: none; border: 1px dashed var(--accent); font-size: 11px; color: var(--accent); }
.in-queue .step-status { color: var(--accent); font-weight: 500; }

/* Expired preview (14 days unpaid) and its restore. */
.expired-panel { margin-top: 24px; padding: 28px 24px; text-align: center; background: #fff; color: inherit; border: 1px dashed var(--accent); border-radius: 12px; font-size: 15px; }
.expired-panel h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.25; }
.expired-panel p { margin: 0 auto 16px; max-width: 46ch; }
.expired-panel form { margin: 8px 0 12px; }
.expired-panel #restore-status:empty { display: none; }
.expired-panel[data-state="requested"] #restore-status,
.expired-panel[data-state="restoring"] #restore-status { color: var(--accent); font-weight: 500; }

/* Kendry updates: one-way feed of real pipeline events, under the wireframe while building
   and under the preview actions once ready. Fixed-height scroll area: new messages never
   move the page. */
.room-right { display: grid; gap: 20px; min-width: 0; }
.kendry-feed { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 4px; min-width: 0; }
.kendry-feed[hidden] { display: none; }
.feed-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.feed-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: white; font-weight: 600; font-size: 14px; }
.feed-head h3 { font-size: 14px; line-height: 1.3; letter-spacing: 0; font-weight: 600; margin: 0; }
.feed-intro { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.feed-scroll { height: 248px; overflow-y: auto; overscroll-behavior: contain; padding: 12px 2px 12px 0; scroll-behavior: smooth; }
.feed-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed-item { max-width: 92%; background: var(--accent-tint); border-radius: 4px 14px 14px 14px; padding: 9px 12px 7px; }
.feed-text { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.feed-time { display: block; margin-top: 3px; font: 10.5px 'Geist Mono', monospace; color: var(--muted); }
.feed-item.kind-done { background: #e6f4ec; }
.feed-item.kind-error, .feed-item.kind-expired { background: #fbf1e3; }
.feed-item.is-new { animation: feed-in 0.35s ease-out both; }
@keyframes feed-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.feed-typing { display: inline-flex; gap: 4px; margin: 10px 0 0; padding: 10px 12px; background: var(--accent-tint); border-radius: 4px 14px 14px 14px; }
.feed-typing[hidden] { display: none; }
.feed-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.35; animation: feed-dot 1s infinite ease-in-out; }
.feed-typing i:nth-child(2) { animation-delay: 0.15s; }
.feed-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes feed-dot { 0%, 80%, 100% { opacity: 0.35; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
.feed-slot-ready:empty { display: none; }
.feed-slot-ready { margin-top: 20px; }
.feed-slot-ready .feed-scroll { height: 200px; }
/* Simplified progress column: the main steps, status and times; the story is in the feed. */
.build-step .step-detail:empty { display: none; }
@media (min-width: 960px) {
  .reveal { grid-template-rows: auto auto 1fr; }
  .reveal > .reveal-browser { grid-row: 1 / 4; }
  .feed-slot-ready { grid-column: 2; grid-row: 3; align-self: start; }
}
@media (max-width: 767px) {
  .kendry-feed { padding: 14px 12px 2px; }
  .feed-scroll { height: 232px; }
  .feed-item { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .feed-scroll { scroll-behavior: auto; }
  .feed-typing { display: none !important; }
}
