/*
 * One stylesheet, no build. The tokens are the extension's own, so the site and
 * the thing it is describing do not look like two different products.
 */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* Instrument Sans stands in for Styrene B, which is the body face in the design
   reference and is not free. Same geometric-grotesque build: low contrast, open
   apertures, wide and level. Self-hosted rather than pulled from Google so the
   page owes nothing to a third party on the one load that matters. */
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122,
    U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-LatinExt.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113, U+A720-A7FF;
}

:root {
  --coral: #cc785c;
  --coral-dim: rgba(204, 120, 92, 0.16);

  --bg: #1a1917;
  --stage: #242320;
  --card: #1f1e1b;
  --raised: #2b2926;

  --ink: #faf9f5;
  --ink-soft: #a09d96;
  --ink-faint: #6c6a64;

  --line: rgba(250, 249, 245, 0.07);
  --line-strong: rgba(250, 249, 245, 0.12);

  --ok: #5db872;
  --bad: #d98b7f;
  --ask: #e8a55a;

  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Instrument Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 8.4vw, 82px);
  /* Cormorant's italic is the one part of it with real personality - upright it
     is quiet, sloped it has a voice, which is the point being made. */
  font-style: italic;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(30px, 5vw, 42px);
}
h3 {
  font-size: 21px;
}

p {
  margin: 0;
}

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

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

/* --- header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(26, 25, 23, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 24px;
  height: 24px;
}

.spacer {
  flex: 1;
}

.site-header nav {
  display: flex;
  gap: 22px;
  font-size: 14.5px;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--ink);
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s var(--ease);
}

.btn.primary {
  background: var(--coral);
  color: #1a1917;
}

.btn.primary:hover {
  filter: brightness(1.08);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--raised);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  padding: clamp(56px, 10vw, 104px) 0 clamp(36px, 6vw, 60px);
  text-align: center;
}

.hero p.lead {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 18.5px;
  color: var(--ink-soft);
}

.hero .cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* --- sections ------------------------------------------------------------- */

section {
  padding: clamp(48px, 8vw, 88px) 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 34px;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
}

/* --- demo ----------------------------------------------------------------- */

/*
 * Both columns are exactly one height, declared here and shared.
 *
 * They used to size to their own content, which meant the inspector had no
 * bound to scroll against: `overflow-y: auto` on a box whose parent grows to
 * fit it never scrolls, it just gets taller. After a dozen tool calls the panel
 * ran past the browser beside it and off down the page.
 */
.demo-grid {
  --panel-h: 556px;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

/* --- the browser ---------------------------------------------------------- */

/*
 * Worth the CSS. The demo's whole claim is "this is your browser, in a page",
 * and a bare box with some tabs on it does not make that claim - it reads as a
 * widget. Window furniture is what tells someone at a glance what they are
 * looking at, before they have read a word.
 */
.browser {
  display: flex;
  flex-direction: column;
  height: var(--panel-h);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  overflow: hidden;
  background: #141312;
  box-shadow:
    0 1px 0 rgba(250, 249, 245, 0.05) inset,
    0 18px 44px -18px rgba(0, 0, 0, 0.7);
}

.browser-top {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 9px 12px 0;
  background: #141312;
}

.lights {
  display: flex;
  gap: 7px;
  padding-bottom: 9px;
  flex: none;
}

.lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3733;
}

/* Muted rather than saturated: this is a prop, and a full-strength traffic
   light next to the real one in the user's actual window is just confusing. */
.lights i:nth-child(1) {
  background: #9c5a4e;
}
.lights i:nth-child(2) {
  background: #9c8449;
}
.lights i:nth-child(3) {
  background: #4f7d52;
}

.tabstrip {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabstrip::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: none;
  max-width: 186px;
  padding: 8px 15px;
  border: 0;
  /* Rounded at the top only, so the selected one reads as a folder tab rising
     into the toolbar rather than as a floating pill. */
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: var(--ink-faint);
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease);
}

.tab:hover {
  background: rgba(250, 249, 245, 0.05);
  color: var(--ink-soft);
}

/* The same colour as the toolbar below it, which is what joins the two and
   makes the tab look attached to the page rather than drawn on top of it. */
.tab[aria-selected="true"] {
  background: var(--stage);
  color: var(--ink);
}

.browser-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--stage);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.navbtn {
  flex: none;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-faint);
  cursor: default;
}

.navbtn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Present but inert, and shown to be: they exist so the frame reads as a
   browser, and pretending they navigate would be a lie the demo cannot keep. */
.navbtn:disabled {
  opacity: 0.4;
}

.omnibox {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 29px;
  margin-left: 6px;
  padding: 0 13px;
  border-radius: 999px;
  background: #151412;
  border: 1px solid rgba(250, 249, 245, 0.06);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}

.omnibox .lock {
  flex: none;
  width: 11px;
  height: 11px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.omnibox span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The page itself. Light, because a real page is - and the contrast against the
   dark chrome around it is most of what sells the frame as a window. */
.viewport {
  /* Takes whatever the chrome above it does not. min-height:0 because a flex
     child defaults to min-content and would otherwise refuse to shrink. */
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 32px;
  background: #faf9f5;
  color: #2b2926;
  font-size: 14.5px;
}

.viewport h2,
.viewport h3 {
  color: #1a1917;
}

.viewport h2 {
  font-size: 27px;
  margin-bottom: 6px;
}

.viewport p {
  margin: 12px 0;
  line-height: 1.65;
}

/* form inside the viewport */

.field {
  margin: 18px 0;
}

.field {
  border: 0;
  padding: 0;
  margin-inline: 0;
}

.field > label,
.field > .legend {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
  color: #1a1917;
}

.field input[type="text"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #d6d3cb;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: #1a1917;
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--coral);
  outline-offset: -1px;
}

.field .opt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
  font-size: 14px;
}

.field .opt input {
  accent-color: var(--coral);
}

.submit-btn {
  margin-top: 6px;
  padding: 10px 18px;
  border: 0;
  border-radius: 9px;
  background: var(--coral);
  color: #1a1917;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submitted {
  color: #2f7a43;
  font-weight: 500;
}

.just-changed {
  animation: flash 1.1s var(--ease);
}

@keyframes flash {
  from {
    background: rgba(204, 120, 92, 0.32);
  }
  to {
    background: transparent;
  }
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.task-list li {
  padding: 9px 0;
  border-bottom: 1px solid #e6e3db;
  font-size: 14px;
}

/* --- inspector ------------------------------------------------------------ */

.inspector {
  display: flex;
  flex-direction: column;
  height: var(--panel-h);
}

.inspector-head {
  background: var(--stage);
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Capped as well as floored: a long spoken reply would otherwise squeeze the
   call list down to nothing, and the list is the part worth watching. */
.transcript {
  flex: none;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  min-height: 92px;
  max-height: 140px;
  overflow-y: auto;
  font-size: 14.5px;
}

.transcript .said {
  color: var(--ink);
  font-style: italic;
}

.transcript .replied {
  margin-top: 8px;
  color: var(--ink-soft);
}

.calls {
  flex: 1 1 0;
  /* Not the default min-content: that is what stops a scrollable flex child
     from ever actually shrinking to its container. */
  min-height: 0;
  overflow-y: auto;
  /* Trimming old rows off the top makes the browser adjust scrollTop to keep
     the view steady, which fights the pin-to-bottom below and leaves the newest
     call stranded above the fold. A log pane wants the newest line, not a
     steady view. */
  overflow-anchor: none;
  padding: 10px;
  margin: 0;
  list-style: none;
}

.calls:empty::after {
  content: "Tool calls appear here as the agent makes them.";
  display: block;
  padding: 18px 6px;
  color: var(--ink-faint);
  font-size: 13.5px;
}

.call {
  padding: 9px 10px;
  margin-bottom: 7px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-left: 2px solid var(--ink-faint);
  border-radius: 8px;
  font-size: 13px;
}

.call.ok {
  border-left-color: var(--ok);
}
.call.failed {
  border-left-color: var(--bad);
}
.call.refused {
  border-left-color: var(--ask);
}
.call.running {
  border-left-color: var(--coral);
}

.call .name {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
}

.call .args {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  word-break: break-word;
  margin-top: 2px;
}

.call .outcome {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.call .ms {
  float: right;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 11px;
}

/* --- demo controls -------------------------------------------------------- */

.controls {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.mic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: none;
  background: var(--coral);
  color: #1a1917;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.mic[data-live="true"] {
  background: var(--raised);
  color: var(--ink);
  box-shadow: 0 0 0 4px var(--coral-dim);
}

.mic:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.mic[data-live="true"] .dot {
  background: var(--coral);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.status {
  font-size: 13.5px;
  color: var(--ink-faint);
  text-align: center;
  min-height: 20px;
}

.status.warn {
  color: var(--ask);
}

.premise {
  max-width: 640px;
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 15px;
  border-left: 2px solid var(--coral);
  padding-left: 14px;
}

/* --- capabilities --------------------------------------------------------- */

/* --- what you can do: the list and the animated panel ---------------------- */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
}

.sc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.sc-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.sc-item:hover {
  background: rgba(250, 249, 245, 0.03);
}

.sc-item.is-on {
  background: var(--card);
  border-color: rgba(204, 120, 92, 0.4);
}

.sc-n {
  flex: none;
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.sc-item.is-on .sc-n {
  color: var(--coral);
}

.sc-copy {
  display: grid;
  gap: 2px;
}

.sc-title {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.2;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}

.sc-item.is-on .sc-title {
  color: var(--ink);
}

.sc-line {
  color: var(--ink-faint);
  font-size: 14px;
}

.sc-item.is-on .sc-line {
  color: var(--ink-soft);
}

/* The replica: the real side panel's layout and palette, at a fixed size so a
   longer exchange never makes the page jump. */
.sc-panel {
  display: flex;
  flex-direction: column;
  height: 540px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #1a1917;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}

.sc-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 16px;
  border-bottom: 1px solid var(--line);
}

.sc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 20px;
}

.sc-brand img {
  width: 18px;
  height: 18px;
}

.sc-spacer {
  flex: 1;
}

.sc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--coral-dim);
  color: var(--ink);
  font-size: 11.5px;
}

.sc-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 1.4s ease-in-out infinite;
}

.sc-status[data-tone="busy"] i {
  background: var(--ask);
}

.sc-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--ink-faint);
}

.sc-ico svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.sc-feed {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 16px 14px;
  transition: opacity 0.3s var(--ease);
}

.sc-feed.is-out {
  opacity: 0;
}

.sc-msg {
  max-width: 88%;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  animation: rise 0.25s var(--ease);
}

.sc-user {
  align-self: flex-end;
  padding: 8px 12px;
  border-radius: 14px 14px 4px 14px;
  background: var(--raised);
}

.sc-agent {
  align-self: flex-start;
  padding: 2px 0 2px 12px;
  border-left: 2px solid rgba(204, 120, 92, 0.5);
}

.sc-msg.is-live::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  border-radius: 1px;
  background: var(--coral);
  animation: pulse 1s ease-in-out infinite;
}

.sc-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 12.5px;
  animation: rise 0.25s var(--ease);
}

.sc-tool-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
}

.sc-tool-ico svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-tool.is-running .sc-tool-ico {
  color: var(--coral);
  animation: spin 0.9s linear infinite;
}

.sc-tool.is-ok .sc-tool-ico {
  color: var(--ok);
}

.sc-tool.is-no .sc-tool-ico {
  color: var(--bad);
}

.sc-tool-label {
  flex: none;
  font-weight: 500;
}

.sc-tool-detail {
  flex: 1;
  min-width: 0;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-dock {
  display: grid;
  gap: 10px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #1a1917, var(--card));
}

.sc-wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
}

.sc-wave i {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: rgba(160, 157, 150, 0.3);
}

/* While you are "speaking", the bars move - staggered so it reads as a voice. */
.sc-wave.is-talking i {
  background: var(--coral);
  animation: voice 0.9s ease-in-out infinite;
}
.sc-wave.is-talking i:nth-child(3n) {
  animation-delay: -0.3s;
}
.sc-wave.is-talking i:nth-child(3n + 1) {
  animation-delay: -0.6s;
}
.sc-wave.is-talking i:nth-child(4n) {
  animation-duration: 0.7s;
}

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

/* Motion only: content that starts at opacity 0 stays invisible wherever the
   browser pauses animations. */
@keyframes rise {
  from {
    transform: translateY(5px);
  }
}

@keyframes voice {
  0%,
  100% {
    height: 4px;
  }
  50% {
    height: 24px;
  }
}

.sc-mic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border: 1px solid rgba(204, 120, 92, 0.4);
  border-radius: 11px;
  background: var(--raised);
  font-size: 14px;
  font-weight: 600;
}

.sc-mic svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.sc-hint {
  text-align: center;
  color: var(--ink-faint);
  font-size: 11.5px;
}

.sc-hint kbd {
  font-size: 10.5px;
}

.traits {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.traits h3 {
  font-size: 21px;
  margin-bottom: 16px;
}

.traits ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 28px;
}

.traits li {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
}

.traits strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 500;
}

/* --- install -------------------------------------------------------------- */

/*
 * Six cards, tilted, and each one a little differently.
 *
 * A stack of identical rectangles reads as a form to be endured. Nudging each
 * card off true - never more than a degree or so - makes the set read as
 * something laid out by hand rather than generated, and the eye follows a row
 * of things that are not quite aligned further down a page than a row of things
 * that are. They straighten on hover, so the one being read is the one sitting
 * level.
 *
 * Three across, two down. The sixth card is not a step - it answers the
 * question everyone asks next - so it carries a question mark rather than a
 * number and a warmer border, and stays in the grid instead of hanging off the
 * bottom as an aside nobody reads.
 */
.steps {
  list-style: none;
  padding: 6px 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 250px;
  padding: 26px 24px 28px;
  background: linear-gradient(165deg, var(--raised), var(--card) 62%);
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.9);
  transform: rotate(var(--tilt)) translateY(var(--lift));
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

/* Varied by column rather than odd/even, so a 3-wide row never repeats the
   same angle twice running. */
.step:nth-child(3n + 1) {
  --tilt: -1.1deg;
  --lift: 4px;
}
.step:nth-child(3n + 2) {
  --tilt: 0.7deg;
  --lift: -5px;
}
.step:nth-child(3n + 3) {
  --tilt: 1.2deg;
  --lift: 3px;
}

.step:hover {
  transform: rotate(0deg) translateY(-3px);
  border-color: var(--coral);
  box-shadow: 0 22px 40px -20px rgba(0, 0, 0, 0.95);
}

.step-n {
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral-dim);
  color: var(--coral);
  font-family: var(--mono);
  font-size: 14px;
}

.step > strong {
  display: block;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 10px;
}

.step p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

.step p strong {
  color: var(--ink);
  font-weight: 500;
}

.step.is-note {
  background: linear-gradient(165deg, rgba(204, 120, 92, 0.11), var(--card) 62%);
  border-color: rgba(204, 120, 92, 0.3);
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  color: var(--ink-faint);
  font-size: 14px;
}

/* --- narrow --------------------------------------------------------------- */

@media (max-width: 980px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .traits ul {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .sc-panel {
    width: 100%;
    max-width: 440px;
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .demo-grid {
    --panel-h: 430px;
  }
  .viewport {
    padding: 20px;
  }
  .site-header nav {
    display: none;
  }
}

@media (max-width: 620px) {
  .traits ul {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    /* A tilted card at the edge of a phone screen just clips. */
    transform: none;
    min-height: 0;
    padding: 20px;
  }
  .lights {
    display: none;
  }
}
