/* ScreenWizard — screenwizard.ai
   The product performs: a light page where real pieces of ScreenWizard do
   their job, at the size they are on a Mac. */

:root {
  --bg: #f4f4f2;
  --surface: #e7e6e2;
  --surface-2: #d9d7d1;
  --ink: #2a1d17;
  --muted: #6b5b51;
  --accent: #5bd08a;
  --accent-ink: #0c2414;
  --field: #5bd08a;

  /* the product's own colours, used only inside its fragments */
  --pen: #ffc752;
  --listen: #40dbcc;

  --font: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.4rem, 1rem + 3.9vw, 4.6rem);
  --step-display: var(--step-head);
  --step-xl: clamp(4rem, 1.6rem + 6.4vw, 8.5rem);

  --margin: clamp(20px, 3vw, 44px);
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--step-body); line-height: 1.45; letter-spacing: -0.005em; font-weight: 400; background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-weight: 500; letter-spacing: -0.05em; line-height: 0.92; }
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 22px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-body) / 1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease), background-color 160ms;
}
.button:hover { background: #4cc27c; transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.text-link { font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Navigation ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px var(--margin); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: var(--step-body); letter-spacing: -0.02em; text-decoration: none; }
.wordmark svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 30px; font-size: var(--step-body); }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 150ms; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: start;
  padding: clamp(36px, 6vh, 72px) var(--margin) 0;
}
.hero-copy { padding-top: clamp(8px, 4vh, 48px); }
.hero-copy h1 { max-width: 9.5em; }
.lead { margin-top: 28px; font-size: var(--step-lead); line-height: 1.35; max-width: 24ch; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.note { margin-top: 18px; font-size: var(--step-small); color: var(--muted); }
.hero-shot { margin: 0; }
.hero-shot figcaption { margin-top: 16px; display: flex; align-items: center; gap: 16px; color: var(--ink); }
.key-hint { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 var(--step-small) var(--font); color: var(--muted); }
.key-hint kbd { min-width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 7px; background: var(--ink); color: var(--bg); font: 500 17px var(--font-ui); transition: transform 120ms var(--ease); }
.key-hint span { margin-left: 4px; }
.key-hint:hover kbd { transform: translateY(-1px); }
.key-hint:active kbd { transform: translateY(2px); }
.said { font-weight: 500; }

/* ---------- A screen, at the size it is on a Mac ---------- */
.screen-box { position: relative; width: 100%; overflow: hidden; border-radius: 10px; }
.screen {
  position: absolute; left: 0; top: 0;
  width: calc(var(--w) * 1px); height: calc(var(--h) * 1px);
  transform: scale(var(--s, 1)); transform-origin: 0 0;
  font: 13px/1.35 var(--font-ui); color: #1d1d1f;
  background: var(--field); overflow: hidden;
}
.menubar { position: absolute; inset: 0 0 auto; height: 26px; display: flex; align-items: center; gap: 18px; padding: 0 16px; background: rgba(255, 255, 255, 0.72); font-size: 13px; color: #1d1d1f; z-index: 3; }
.menubar b { font-weight: 700; }
.menubar .clock { margin-left: auto; }
.win { position: absolute; background: #fff; border-radius: 11px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 18px 50px rgba(0, 0, 0, 0.28); } /* taste-skill-ignore: the app's own window chrome */
.titlebar { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 13px; background: #f3f3f3; color: #6e6e73; font-size: 13px; }
.titlebar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.titlebar i:nth-child(2) { background: #febc2e; } .titlebar i:nth-child(3) { background: #28c840; }
.titlebar span { margin-left: 10px; }

.pill {
  position: absolute; bottom: 76px; left: 50%; translate: -50% 0; z-index: 8;
  height: 30px; min-width: 132px; padding: 0 16px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(0, 0, 0, 0.94); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); /* taste-skill-ignore: the pill's own 1px edge, as in the app */
  color: rgba(255, 255, 255, 0.92); font: 600 11px var(--font-ui); white-space: nowrap;
}
.pill .hat { width: 16px; height: 16px; }
.lv { display: inline-flex; align-items: center; gap: 3px; height: 14px; }
.lv i { width: 3px; height: 30%; border-radius: 2px; background: var(--listen); animation: level 900ms ease-in-out infinite; }
.lv i:nth-child(2) { animation-delay: 140ms; } .lv i:nth-child(3) { animation-delay: 280ms; } .lv i:nth-child(4) { animation-delay: 70ms; } .lv i:nth-child(5) { animation-delay: 210ms; }
.pill.is-speaking .lv i { background: var(--pen); }
@keyframes level { 50% { height: 100%; } }
.pill .call, .pill .dot { display: none; }
.bubble {
  position: absolute; bottom: 116px; left: 50%; translate: -50% 0; z-index: 8;
  width: max-content; max-width: 400px; padding: 10px 14px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.82); color: #fff; font: 500 15px/1.35 var(--font-ui); text-align: center;
}
.bubble:empty { display: none; }
.ink { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9; overflow: visible; }
.ring { fill: none; stroke: var(--pen); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

.dock { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; z-index: 4; display: flex; gap: 8px; padding: 7px 9px; border-radius: 18px; background: rgba(255, 255, 255, 0.42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); } /* taste-skill-ignore: the app's own window chrome */
.dock i { width: 40px; height: 40px; border-radius: 10px; background: var(--c); }

/* hero: Numbers */
.sheet-win { left: 70px; top: 48px; width: 560px; }
.cells { width: 100%; border-collapse: collapse; font-size: 14px; }
.cells td { padding: 9px 14px; border-bottom: 1px solid #ececec; border-right: 1px solid #ececec; } /* taste-skill-ignore: the app's own window chrome */
.cells td:first-child { width: 36px; color: #8e8e93; background: #f7f7f7; text-align: center; }
.cells td:last-child { text-align: right; font-variant-numeric: tabular-nums; border-right: 0; }
.cells .head td { background: #f7f7f7; color: #6e6e73; font-weight: 600; }
.cells .total td { font-weight: 700; }

/* config: Preview */
.doc-win { left: 40px; top: 44px; width: 680px; height: 380px; }
.paper { padding: 26px 34px; font-size: 13.5px; }
.paper .row { display: flex; justify-content: space-between; }
.paper .row b { font-size: 16px; }
.paper .soft { color: #6e6e73; margin: 6px 0 18px; }
.paper .line { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid #e5e5ea; } /* taste-skill-ignore: the app's own window chrome */
.paper .total { font-weight: 700; border-top: 2px solid #1d1d1f; } /* taste-skill-ignore: the app's own window chrome */
.menu { position: absolute; top: 26px; left: 70px; width: 190px; z-index: 6; padding: 5px; border-radius: 8px; background: rgba(246, 246, 246, 0.98); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 12px 30px rgba(0, 0, 0, 0.25); font-size: 13px; } /* taste-skill-ignore: the app's own window chrome */
.menu div { padding: 4px 10px; border-radius: 5px; }
.menu .hit { background: #0a64d6; color: #fff; }
.export-sheet { position: absolute; left: 200px; top: 120px; width: 320px; z-index: 6; padding: 18px; display: grid; gap: 10px; border-radius: 11px; background: #f6f6f6; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 18px 40px rgba(0, 0, 0, 0.28); } /* taste-skill-ignore: the app's own window chrome */
.fake-field { padding: 5px 8px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px #d1d1d6; } /* taste-skill-ignore: the app's own window chrome */
.save { justify-self: end; padding: 4px 16px; border-radius: 6px; background: #0a64d6; color: #fff; }
.drawn {
  position: absolute; inset: 0; z-index: 7; padding: 70px 60px 0;
  background-color: rgba(10, 10, 11, 0.97);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0.8px, transparent 1.2px); /* taste-skill-ignore: the app's own dot board */
  background-size: 18px 18px; color: #fff; font-family: ui-rounded, "SF Pro Rounded", var(--font-ui);
}
.drawn b { font-size: 34px; font-weight: 800; }
.under { display: block; width: 300px; height: 10px; margin-top: 2px; }
.under path { fill: none; stroke: var(--pen); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; }
.bars-chart { display: flex; align-items: flex-end; gap: 18px; height: 200px; margin-top: 28px; }
.bars-chart span { width: 96px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 100%; font-size: 14px; color: #a3a3a3; text-align: center; }
.bars-chart i { display: block; height: calc(var(--v) * 160px); border-radius: 6px; background: var(--pen); transform-origin: bottom; }
.bars-chart span:not(:nth-child(3)) i { background: #5b5b60; }
.drawn em { display: block; margin-top: 20px; font-style: normal; font-size: 17px; color: #e5e5e5; }
.type-box { position: absolute; bottom: 72px; left: 50%; translate: -50% 0; z-index: 8; width: 400px; height: 44px; display: flex; align-items: center; padding: 0 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.94); color: #fff; font-size: 15px; }
.caret::after { content: ""; display: inline-block; width: 2px; height: 17px; margin-left: 2px; vertical-align: -3px; background: var(--listen); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.step-tag { position: absolute; z-index: 9; padding: 5px 11px; border-radius: 999px; background: var(--pen); color: #1a1300; font: 700 13px/1 ui-rounded, var(--font-ui); } /* taste-skill-ignore */
.step-tag:empty { display: none; }
.agent-card { position: absolute; right: 22px; bottom: 116px; width: 300px; z-index: 8; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.9); color: #fff; font-size: 13px; }
.agent-head { display: flex; align-items: center; gap: 8px; }
.agent-head svg { width: 18px; height: 18px; }
.agent-state { margin-left: auto; color: var(--listen); font-weight: 600; }
.agent-card ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; color: #d6d6d6; }
.agent-card li::before { content: ""; display: inline-block; width: 4px; height: 8px; margin-right: 9px; border: solid #5bd08a; border-width: 0 2px 2px 0; transform: rotate(42deg) translateY(-2px); }
.agent-card li.waits { color: #fff; font-weight: 600; }
.agent-card li.waits::before { width: 7px; height: 7px; border: 0; border-radius: 50%; background: #ff9f40; transform: none; margin-right: 8px; }
.allow { display: flex; gap: 8px; margin-top: 12px; }
.allow span { padding: 5px 12px; border-radius: 7px; background: #3a3a3c; }
.allow .yes { background: #fff; color: #000; font-weight: 600; }
.routine-card { position: absolute; right: 22px; top: 40px; width: 330px; z-index: 8; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.9); color: #fff; }
.routine-card svg { width: 22px; height: 22px; flex: none; }
.routine-card b { display: block; font-size: 14px; }
.routine-card .routine-when { font-size: 13px; color: #c7c7cc; }
.cloud { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: #2c2c2e; font-size: 12.5px; }

/* the config screen's states (main.js sets them) */
.screen [class] { transition: opacity 220ms var(--ease); }
#config-screen .menu, #config-screen .export-sheet, #config-screen .drawn, #config-screen .type-box,
#config-screen .agent-card, #config-screen .routine-card { opacity: 0; pointer-events: none; }
#config-screen[data-answer="point"] .menu, #config-screen[data-answer="walk"][data-walk="1"] .menu,
#config-screen[data-answer="walk"][data-walk="2"] .export-sheet,
#config-screen[data-answer="draw"] .drawn,
#config-screen[data-ask="type"] .type-box,
#config-screen[data-agent="on"] .agent-card,
#config-screen[data-routine="on"] .routine-card { opacity: 1; }
#config-screen[data-ask="type"] .pill { opacity: 0; }
#config-screen[data-answer="walk"] .bubble { opacity: 0; }
#config-screen[data-ask="call"] .pill .call { display: inline; }
#config-screen[data-ask="call"] .pill .lv i { background: #5bd08a; }
#config-screen[data-agent="on"] .pill .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--listen); animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.4; } }

/* ---------- What it does: a held screen and its controls ---------- */
.config { display: grid; grid-template-columns: 6fr 6fr; grid-template-rows: auto 1fr; margin-top: clamp(120px, 14vw, 200px); }
.config-title { grid-column: 2; grid-row: 1; padding: 72px var(--margin) 0 clamp(32px, 6vw, 96px); }
.config-output { grid-column: 1; grid-row: 1 / 3; align-self: start; position: sticky; top: 0; height: 100svh; display: grid; place-items: center; background: var(--surface); padding: 40px; }

.config-output .screen { background: #8d9a86; }
.config-controls { grid-column: 2; grid-row: 2; padding: 0 var(--margin) 30svh clamp(32px, 6vw, 96px); max-width: calc(44ch + 160px); }

.block { padding-top: 26svh; min-height: 50svh; }
.block:first-of-type { padding-top: 22svh; }
.claim { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px; }
.block p:not(.claim) { max-width: 44ch; }
.seg { margin-top: 22px; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 9px; background: var(--surface); }
.seg button { border: 0; padding: 10px 16px; border-radius: var(--radius); background: transparent; cursor: pointer; font: 500 var(--step-body) var(--font); color: var(--muted); transition: background-color 150ms, color 150ms; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.toggle { margin-top: 22px; display: flex; align-items: center; gap: 14px; cursor: pointer; font-weight: 500; }
.toggle input { position: absolute; opacity: 0; }
.toggle .track { width: 52px; height: 30px; flex: none; border-radius: 999px; background: var(--surface-2); position: relative; transition: background-color 200ms; }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 220ms var(--ease); }
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track::after { transform: translateX(22px); }
.toggle input:focus-visible + .track { outline: 2px solid var(--ink); outline-offset: 3px; }
.field { margin-top: 22px; display: flex; align-items: center; gap: 14px; font-weight: 500; }
.field input { flex: 1; max-width: 300px; padding: 12px 14px; border: 0; border-radius: var(--radius); background: var(--surface); font: 500 var(--step-body) var(--font); color: var(--ink); }

/* ---------- Five ways to use it ---------- */
.modes { padding: clamp(120px, 14vw, 200px) var(--margin) 0; }
.modes-head { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 64px; align-items: end; }
.modes-head p { max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; }
.mode-list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 8px; }
.mode { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 32px; align-items: center; padding: 26px 28px; border-radius: 10px; background: var(--surface); transition: background-color 250ms var(--ease); }
.mode.is-pressed { background: var(--accent); color: var(--accent-ink); }
.mode h3 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.mode p { margin-top: 6px; max-width: 46ch; }
.keys { display: flex; align-items: center; gap: 8px; }
.keys kbd { min-width: 64px; height: 64px; padding: 0 16px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--bg); font: 500 26px var(--font-ui); transition: transform 120ms var(--ease); }
.keys-word kbd { font-size: 18px; }
.keys em { margin-left: 8px; font-style: normal; font-size: var(--step-small); color: var(--muted); }
.mode.is-pressed .keys kbd { transform: translateY(3px); }
.mode.is-pressed .keys em { color: var(--accent-ink); }
.mode-ui { display: flex; justify-content: flex-end; font: 13px/1.4 var(--font-ui); }
.mode-ui .frag-pill { position: static; translate: none; color: #fff; font: 600 11px var(--font-ui); width: auto; min-width: 132px; padding: 0 14px; }
.type-pill { width: 280px; height: 40px; display: flex; align-items: center; padding: 0 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.94); color: #fff; font-size: 13px; }
.type-pill .caret { display: inline-block; width: 2px; height: 15px; margin-left: 2px; background: var(--listen); animation: blink 1s steps(1) infinite; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff453a; animation: breathe 1.4s ease-in-out infinite; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #3fdb80; }
.call-pill .lv i { background: #3fdb80; }
.call-pill .end { padding: 2px 8px; border-radius: 999px; background: #ff453a; font-size: 10px; }
.frag-pill.quiet { min-width: 46px !important; height: 10px; padding: 0 !important; }
.frag-pill.quiet svg { display: none; }

/* ---------- Agents: one job, start to finish ---------- */
.agents { padding: clamp(120px, 14vw, 200px) var(--margin) 0; }
.agents-head { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 64px; align-items: end; }
.agents-head p { max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; }
.job-track { position: relative; height: 8px; margin-top: 72px; border-radius: 4px; background: var(--surface-2); }
.job-fill { position: absolute; inset: 0 auto 0 0; width: var(--progress, 100%); border-radius: 4px; background: var(--accent); transition: width 900ms var(--ease); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; padding-top: 30px; display: flex; flex-direction: column; transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.step::before { content: ""; position: absolute; top: -14px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--bg); } /* taste-skill-ignore: a ring of the page ground around the stop */
.when { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 6px; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.step > p { margin-top: 10px; max-width: 30ch; }
.step-ui { margin-top: 26px; width: 100%; max-width: 300px; font: 13px/1.4 var(--font-ui); }
html.js .agents:not(.is-run) .step { opacity: 0.25; }
html.js .agents .step.is-off { opacity: 0.25; transform: translateY(8px); }
.ui-ask { display: grid; justify-items: start; gap: 12px; }
.ui-ask .frag-pill { position: static; translate: none; }
.said-bubble { padding: 10px 14px; border-radius: 12px; background: #161616; color: #fff; font: 500 15px/1.35 var(--font-ui); }
.ui-work, .ui-allow { padding: 14px 16px; border-radius: 14px; background: #121212; color: #fff; }
.ui-allow { border-radius: 18px; }
.ui-note { padding: 14px 16px; border-radius: 18px; background: #fff; color: #1d1d1f; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); } /* taste-skill-ignore: a macOS notification's edge */
.a-head { display: flex; align-items: center; gap: 8px; }
.a-state { margin-left: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.a-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.is-working { color: var(--listen); }
.a-task { margin-top: 0; font-size: 14px; font-weight: 600; }
.ui-work ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; color: #d6d6d6; }
.ui-work li.done::before { content: ""; display: inline-block; width: 4px; height: 8px; margin-right: 9px; border: solid #5bd08a; border-width: 0 2px 2px 0; transform: rotate(42deg) translateY(-2px); }
.ui-work li.now { color: var(--listen); }
.ui-work li.now::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--listen); }
.a-meta { display: block; margin-top: 6px; color: #b5b5ba; }
.ui-note .a-meta { color: #3a3a3c; }
.a-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.a-actions span { padding: 5px 11px; border-radius: 7px; background: #3a3a3c; }
.a-actions .yes { background: #fff; color: #000; font-weight: 600; }
.ui-note .a-actions span { background: #e5e5ea; color: #1d1d1f; }
.wait-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #ff9f40; vertical-align: 1px; }
.n-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; color: #6e6e73; }
.n-head img { width: 22px; height: 22px; border-radius: 5px; }
.n-head b { color: #1d1d1f; font-weight: 600; }
.n-head span { margin-left: auto; }

/* ---------- More it does: statement and proof, 5/7 ---------- */
.more { padding: clamp(120px, 14vw, 200px) var(--margin) 0; }
.more-title { max-width: 12em; }
.more-title + .cap { margin-top: clamp(40px, 5vw, 72px); }
.cap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(80px, 10vw, 140px); }
.cap h3 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.cap-copy p { margin-top: 14px; max-width: 40ch; }
.cap-proof { display: flex; }
.cap:nth-child(odd) .cap-proof { justify-content: flex-end; }
.frag { font: 13px/1.4 var(--font-ui); color: #1d1d1f; }
.compose { position: relative; width: min(100%, 560px); background: #fff; border-radius: 11px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); padding-bottom: 70px; } /* taste-skill-ignore: the app's own window chrome */
.c-row { padding: 9px 16px; border-bottom: 1px solid #ececec; color: #1d1d1f; } /* taste-skill-ignore: the app's own window chrome */
.c-row span { color: #6e6e73; margin-right: 6px; }
.c-body { padding: 16px; font-size: 14px; line-height: 1.55; }
.c-body .caret { display: inline-block; width: 2px; height: 16px; margin-left: 2px; vertical-align: -3px; background: #0a64d6; animation: blink 1s steps(1) infinite; }
.frag-pill { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; width: 132px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(0, 0, 0, 0.94); }
.frag-pill svg { width: 16px; height: 16px; }
.memory { width: min(100%, 440px); padding: 18px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); } /* taste-skill-ignore: the app's own window chrome */
.m-title { font-size: 15px; }
.memory ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.memory li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; background: #f4f4f5; font-size: 14px; transition: opacity 250ms, transform 250ms var(--ease); }
.memory li.is-gone { opacity: 0; transform: translateX(16px); }
.memory button { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #e4e4e7; color: #3f3f46; cursor: pointer; font-size: 16px; line-height: 1; }
.memory button:hover { background: #d4d4d8; }
.suggest { width: min(100%, 420px); padding: 14px 16px; border-radius: 16px; background: rgba(0, 0, 0, 0.94); color: #fff; }
.s-card { display: flex; gap: 12px; align-items: flex-start; }
.s-card svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.s-app { display: block; color: #a3a3a3; font-size: 12.5px; }
.s-card b { font-size: 15px; font-weight: 600; }
.s-actions { display: flex; gap: 8px; margin: 12px 0 0 34px; }
.s-actions span { padding: 6px 13px; border-radius: 8px; background: #3a3a3c; }
.s-actions .yes { background: #fff; color: #000; font-weight: 600; }
.apps { width: min(100%, 520px); border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); padding: 6px 0; } /* taste-skill-ignore: the app's own window chrome */
.apps div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; font-size: 14px; }
.apps div + div { box-shadow: inset 0 1px #f0f0f0; } /* taste-skill-ignore: the app's own window chrome */
.apps b { font-weight: 600; }
.apps span { color: #6e6e73; text-align: right; }
.apps .ok { color: #1d7a43; }

/* ---------- Drawn on your screen: research, then the answer over it ---------- */
.drawing { padding: clamp(120px, 14vw, 200px) var(--margin) 0; }
.drawing-head { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 64px; align-items: end; }
.drawing-intro p { max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; }
.replay { margin-top: 18px; border: 0; background: none; padding: 0; cursor: pointer; font: 500 var(--step-body) var(--font); color: var(--ink); }
.draw-box { display: flex; justify-content: center; }
.draw-box .screen-box { border-radius: 12px; }
#draw-screen { background: #2c3a46; }
.article-win { left: 48px; top: 44px; width: 928px; height: 500px; }
.article-win .url { margin: 0 auto; padding: 4px 120px; border-radius: 7px; background: #e9e9eb; color: #3a3a3c; }
.article { display: grid; grid-template-columns: 1fr 260px; gap: 36px; padding: 30px 48px; font: 15px/1.6 Georgia, "Times New Roman", serif; color: #202122; }
.article b { display: block; font-size: 30px; font-weight: 400; line-height: 1.1; }
.art-sub { display: block; margin: 6px 0 16px; font: 13px var(--font-ui); color: #6e6e73; }
.article p { margin-bottom: 12px; }
.art-figure { margin: 6px 0 0; padding: 6px; background: #f8f9fa; border: 1px solid #c8ccd1; } /* taste-skill-ignore: the encyclopedia's own figure frame */
.art-figure img { display: block; width: 100%; height: 300px; object-fit: cover; }
.art-figure figcaption { padding: 6px 4px 2px; font: 12.5px/1.35 var(--font-ui); color: #54595d; }
.board {
  position: absolute; inset: 0; z-index: 7; display: flex; gap: 40px; padding: 70px 56px 0 64px;
  background-color: rgba(12, 12, 13, 0.95);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0.8px, transparent 1.2px); /* taste-skill-ignore: the app's own dot board */
  background-size: 18px 18px; color: #fff; font-family: ui-rounded, "SF Pro Rounded", var(--font-ui);
}
.b-main { width: 560px; flex: none; }
.b-title { display: block; font-size: 38px; font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; }
.b-under { display: block; width: 520px; height: 12px; margin-top: 4px; }
.b-under path { fill: none; stroke: var(--pen); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; }
.b-sub { display: block; margin-top: 10px; font-size: 16px; color: #a3a3a3; }
.timeline { position: relative; height: 96px; margin-top: 40px; }
.t-line { position: absolute; left: 0; top: 6px; width: 520px; height: 10px; overflow: visible; }
.t-line path { fill: none; stroke: rgba(163, 163, 163, 0.6); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; }
.t-stop { position: absolute; left: var(--x); top: 0; width: 150px; }
.t-stop i { display: block; width: 14px; height: 14px; margin: 4px 0 10px; border-radius: 50%; background: var(--pen); }
.t-stop b { display: block; font-size: 16px; font-weight: 700; }
.t-stop span { font-size: 14px; color: #c7c7cc; }
.figures { display: flex; gap: 40px; margin-top: 30px; }
.figure-stat b { display: block; font-size: 40px; font-weight: 900; line-height: 1; color: var(--pen); font-variant-numeric: tabular-nums; }
.figure-stat span { font-size: 15px; color: #d4d4d4; }
.plate { margin: 30px 0 0; width: 250px; flex: none; align-self: flex-start; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1.5px rgba(255, 199, 82, 0.7); } /* taste-skill-ignore: the app's gold-edged photo plate */
.plate img { display: block; width: 100%; height: 280px; object-fit: cover; border-radius: 8px; }
.plate figcaption { padding: 10px 4px 2px; }
.plate b { display: block; font-size: 16px; font-weight: 700; }
.plate span { font-size: 13px; color: #a3a3a3; }
.tie { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.tie path { fill: none; stroke: var(--pen); stroke-width: 2; stroke-dasharray: 1; stroke-linejoin: round; opacity: 0.8; }
.draw-said { margin-top: 56px; text-align: center; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; }
.draw-said span { display: block; margin-bottom: 4px; font-size: var(--step-small); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.draw-box { margin-top: 20px; }

/* ---------- Pricing: plan names, one live figure ---------- */
.pricing { display: grid; grid-template-columns: 6fr 1fr 5fr; padding: clamp(120px, 14vw, 200px) var(--margin) 0; align-items: start; }
.plans { display: grid; justify-items: start; }
.plans button { border: 0; background: none; padding: 0; cursor: pointer; font: 500 var(--step-head) / 1.1 var(--font); letter-spacing: -0.05em; color: var(--muted); display: inline-flex; align-items: center; gap: 0.2em; transition: color 150ms; }
.plans button::before { content: ""; width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity 150ms; }
.plans button[aria-selected="true"] { color: var(--ink); }
.plans button[aria-selected="true"]::before { opacity: 1; }
.plans button:hover { color: var(--ink); }
.plan-stage { grid-column: 3; transition: opacity 200ms; }
.price { display: flex; align-items: baseline; gap: 14px; }
.price span:first-child { font-size: var(--step-xl); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.per { font-size: var(--step-body); color: var(--muted); }
.plan-text { margin-top: 26px; max-width: 40ch; }
.plan-stage .button { margin-top: 28px; }

/* ---------- Questions: index and one answer ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; padding: clamp(120px, 14vw, 200px) var(--margin) 0; align-items: start; }
.faq-index ul { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 6px; }
.faq-index button { border: 0; background: none; padding: 6px 0; cursor: pointer; display: flex; align-items: center; gap: 14px; text-align: left; font: 400 var(--step-body)/1.35 var(--font); color: var(--ink); }
.faq-index button::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transition: background-color 150ms; }
.faq-index button[aria-selected="true"] { font-weight: 500; }
.faq-index button[aria-selected="true"]::before { background: var(--accent); }
.faq-index button:hover::before { background: var(--ink); }
.faq-answer { position: sticky; top: 64px; padding-top: 108px; }
.faq-answer p { font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; transition: opacity 200ms; }

/* ---------- Close: the first step, already open ---------- */
.close { margin-top: clamp(120px, 14vw, 200px); min-height: 72svh; background: var(--field); color: var(--accent-ink); display: grid; grid-template-columns: 5fr 1fr 6fr; padding: 40px var(--margin); }
.close-copy { align-self: end; }
.close-copy h2 { font-size: var(--step-xl); }
.close-copy p { margin-top: 22px; max-width: 38ch; }
.ask-card {
  grid-column: 3; align-self: end; justify-self: start; width: min(100%, 440px);
  padding: 18px; border-radius: 22px; background: #000; color: #fff; font: 14px/1.4 var(--font-ui);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); display: grid; gap: 14px; /* taste-skill-ignore: a dialog, open above the page */
}
.ask-head { display: flex; align-items: center; gap: 10px; }
.ask-head svg { width: 22px; height: 22px; }
.ask-head b { font-size: 15px; }
.ask-card input { width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: #1c1c1e; color: #fff; font: 16px var(--font-ui); }
.ask-mode { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: #1c1c1e; justify-self: start; }
.ask-mode button { border: 0; padding: 6px 14px; border-radius: 8px; background: none; color: #a3a3a3; cursor: pointer; font: 500 13px var(--font-ui); }
.ask-mode button[aria-checked="true"] { background: #3a3a3c; color: #fff; }
.ask-go { border: 0; padding: 14px; border-radius: 12px; background: #fff; color: #000; font: 600 15px var(--font-ui); cursor: pointer; transition: transform 150ms var(--ease); }
.ask-go:hover { transform: translateY(-1px); }
.ask-go:active { transform: translateY(1px); }

/* ---------- Footer: tiles ---------- */
.footer { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: auto; gap: 8px; padding: 10px; }
.tile { border-radius: 10px; background: var(--surface); padding: 22px; min-height: 220px; display: flex; flex-direction: column; text-decoration: none; }
.t-statement { grid-column: span 4; justify-content: space-between; }
.t-statement p { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; max-width: 16ch; }
.t-statement span, .t-version span, .t-mac span { font-size: var(--step-small); color: var(--muted); }
.t-nav { grid-column: span 3; gap: 6px; }
.t-nav a { text-decoration: none; }
.t-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.t-version { grid-column: span 2; gap: 4px; }
.t-version b, .t-mac b { font-size: var(--step-lead); font-weight: 500; }
.t-version a { margin-top: auto; }
.t-mac { grid-column: span 3; gap: 4px; }
.t-word { grid-column: span 8; min-height: 320px; background: var(--ink); color: var(--bg); justify-content: center; align-items: center; font-size: var(--step-xl); font-weight: 500; letter-spacing: -0.06em; }
.t-cta { grid-column: span 4; min-height: 320px; background: var(--accent); color: var(--accent-ink); justify-content: space-between; font-size: var(--step-lead); letter-spacing: -0.02em; transition: background-color 160ms; }
.t-cta:hover { background: #4cc27c; }
.t-cta svg { align-self: flex-end; width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; transition: transform 200ms var(--ease); }
.t-cta:hover svg { transform: translate(4px, -4px); }

/* ---------- Entrances ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.cap-proof.reveal { transition-delay: 90ms; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
  .config { grid-template-columns: 1fr; }
  .config-title, .config-output, .config-controls { grid-column: 1; grid-row: auto; }
  .config-title { padding: 0 var(--margin) 28px; }
  .config-output { position: relative; height: auto; padding: 24px 16px; }
  .config-controls { padding: 8px var(--margin) 0; max-width: none; }
  .block, .block:first-of-type { padding-top: 48px; min-height: 0; }

  .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; margin-top: 48px; }
  .job-track, .step::before { display: none; }
  .step { padding-top: 0; }
  html.js .agents .step { opacity: 1 !important; transform: none !important; }
  .agents-head, .drawing-head, .modes-head { grid-template-columns: 1fr; }
  .mode { grid-template-columns: 1fr; gap: 14px; }
  .mode-ui { justify-content: flex-start; }
  .pricing { grid-template-columns: 5fr 7fr; gap: 32px; }
  .plan-stage { grid-column: 2; }
  .close { grid-template-columns: 1fr; gap: 40px; }
  .ask-card { grid-column: 1; }
  .footer { grid-template-columns: 1fr 1fr; }
  .tile { grid-column: span 1 !important; }
  .t-word, .t-cta { grid-column: span 2 !important; min-height: 160px; }
  .t-word { order: -2; font-size: 14vw; } .t-cta { order: -1; }
}
@media (max-width: 640px) {
  .nav-links a:not(:last-child) { display: none; }
  .hero-shot figcaption { align-items: flex-start; flex-direction: column; gap: 10px; }
  .seg button { padding: 10px 12px; }
  .steps { grid-template-columns: 1fr; }

  .cap, .faq, .pricing { grid-template-columns: 1fr; }
  .cap:nth-child(odd) .cap-proof { justify-content: flex-start; }
  .plan-stage { grid-column: 1; }
  .faq-answer { position: static; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
