/* The product's design system.
 *
 * Direction: "instrument". The product measures a site, changes it, and leaves
 * a receipt for every change. So the page is built like a well made instrument
 * panel: cool paper, ink, one confident blue for action, and a monospace
 * receipt as the signature object. Sharp corners, hairline rules, and shadow
 * used only where something is meant to lift off the ground.
 *
 * Every colour and size below is a token. Nothing in the markup hardcodes a
 * value, so a rebrand is this file only. */

:root {
  /* Ground and ink */
  --ink: #0E1420;
  --graphite: #1A2333;
  --slate: #3A4658;
  --muted: #5F6C80;
  --line: #DDE3EA;
  --line-strong: #C3CCD8;
  --paper: #F1F4F8;
  --surface: #FFFFFF;

  /* Signal */
  --action: #2743FF;
  --action-ink: #1B31C4;
  --verified: #0E9E6E;
  --verified-soft: #E4F5EE;
  --blocked: #C97A06;
  --blocked-soft: #FBF1DE;
  --critical: #CF3A36;
  --critical-soft: #FBEAE9;

  /* Type */
  --display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.4rem, 1.6rem + 3vw, 3.75rem);
  --step-5: clamp(3rem, 1.8rem + 5vw, 5.5rem);

  /* Space and shape */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;
  --radius-lg: 6px;
  --shadow: 0 1px 2px rgba(14, 20, 32, .06), 0 12px 32px rgba(14, 20, 32, .08);
  --shadow-lift: 0 2px 4px rgba(14, 20, 32, .08), 0 24px 56px rgba(14, 20, 32, .12);
}

* { box-sizing: border-box; }

/* Present for a screen reader, absent on screen. Used for the labels on the
   domain field and the site switcher, which are obvious by position but have
   to be announced. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

.wrap {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Eyebrow: the small label that says which instrument reading follows.
   Monospace because every label in this product names a measurement. */
.eyebrow {
  font: 500 var(--step--1)/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--line-strong);
}

/* Header */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(241, 244, 248, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: -0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.wordmark .dot {
  width: 10px;
  height: 10px;
  background: var(--action);
  border-radius: 1px;
  transform: rotate(45deg);
}
.masthead nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
/* :not(.btn) matters. Without it this rule outranks .btn-primary on
   specificity and paints the header button's label slate on blue. */
.masthead nav a:not(.btn) {
  text-decoration: none;
  font-size: var(--step--1);
  color: var(--slate);
}
.masthead nav a:not(.btn):hover { color: var(--ink); }

/* Buttons */
.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.7rem 1.15rem;
  font: 500 var(--step--1)/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--slate); }
.btn-lg { padding: 0.95rem 1.5rem; font-size: var(--step-0); }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.hero h1 {
  font-size: clamp(2.6rem, 1.5rem + 3.4vw, 4.4rem);
  margin: 1.5rem 0 0;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--action);
}
.hero .lede {
  margin-top: 1.5rem;
  font-size: var(--step-1);
  color: var(--slate);
  max-width: 34ch;
}

/* Domain field: the single action on the page */
.domain-form {
  margin-top: 2.25rem;
  display: flex;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.5rem;
  max-width: 30rem;
  box-shadow: var(--shadow);
}
.domain-form input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 400 var(--step-0)/1 var(--mono);
  color: var(--ink);
  padding: 0 0.75rem;
  min-width: 6rem;
}
.domain-form input::placeholder { color: var(--muted); }
.form-note {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* The signature object: a change receipt.
   Perforated top and bottom, monospace body, a stamped verdict. */
.receipt {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  font-family: var(--mono);
  font-size: var(--step--1);
  position: relative;
  overflow: hidden;
}
.receipt::before,
.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background-image: radial-gradient(circle at 5px 0, transparent 5px, var(--surface) 5px);
  background-size: 12px 12px;
  background-repeat: repeat-x;
}
.receipt::before { top: -6px; }
.receipt::after { bottom: -6px; transform: rotate(180deg); }
.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px dashed var(--line-strong);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.receipt-body { padding: 1.1rem; display: grid; gap: 0.9rem; }
.receipt-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.receipt-row dt { color: var(--muted); }
.receipt-row dd { margin: 0; overflow-wrap: anywhere; }
.was { color: var(--critical); text-decoration: line-through; text-decoration-thickness: 1px; }
.now { color: var(--verified); }
.receipt-proof {
  border-top: 1px dashed var(--line-strong);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.5rem;
  background: linear-gradient(180deg, rgba(228, 245, 238, .45), transparent);
}
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: start;
  border: 1.5px solid var(--verified);
  color: var(--verified);
  border-radius: 2px;
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}
.metric { display: flex; justify-content: space-between; gap: 1rem; }
.metric span:last-child { color: var(--ink); }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 46rem; }
.section-head h2 { font-size: var(--step-4); margin-top: 1.25rem; }
.section-head p { margin-top: 1.25rem; color: var(--slate); font-size: var(--step-1); }

/* The loop: an ordered sequence, so it is numbered */
.loop { margin: 3rem 0 0; padding: 0; list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 900px) { .loop { grid-template-columns: repeat(5, 1fr); } }
.step { background: var(--surface); padding: 1.6rem 1.35rem; display: grid; gap: 0.7rem; align-content: start; }
.step .n { font: 500 var(--step--1)/1 var(--mono); color: var(--action); letter-spacing: 0.1em; }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--slate); font-size: var(--step--1); }

/* Coverage grid */
.grid { margin-top: 3rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.card h3 { font-size: var(--step-1); }
.card p { color: var(--slate); font-size: var(--step--1); }
.card ul { margin: 0.25rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: var(--step--1); display: grid; gap: 0.3rem; }
.card .count { font: 500 var(--step--1)/1 var(--mono); color: var(--action); }

/* Promises: dark panel, the one place the page changes ground */
.promises { background: var(--ink); color: #E8ECF2; border-top: 0; }
.promises .eyebrow { color: #8C9AAF; }
.promises .eyebrow::before { background: #33405A; }
.promises h2 { color: #fff; }
.promises .section-head p { color: #AFBACB; }
.promise-list { margin-top: 3rem; display: grid; gap: 1px; background: #212C3F; border: 1px solid #212C3F; border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 820px) { .promise-list { grid-template-columns: repeat(2, 1fr); } }
.promise { background: var(--graphite); padding: 1.75rem; display: grid; gap: 0.65rem; align-content: start; }
.promise h3 { color: #fff; font-size: var(--step-2); }
.promise p { color: #AFBACB; font-size: var(--step--1); }
.promise .against { font-family: var(--mono); font-size: 0.75rem; color: #7F8DA3; border-left: 2px solid #33405A; padding-left: 0.75rem; }

/* Pricing */
.plans { margin-top: 3rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; display: grid; gap: 1rem; align-content: start; }
.plan.featured { border-color: var(--action); box-shadow: var(--shadow); }
.plan .price { font-family: var(--display); font-size: var(--step-3); letter-spacing: -0.04em; }
.plan .price small { font: 400 var(--step--1)/1 var(--body); color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; color: var(--slate); font-size: var(--step--1); }
.plan .tag { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--action); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3.5rem; color: var(--muted); font-size: var(--step--1); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
footer nav { margin-left: auto; display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .masthead nav a:not(.btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── signing up and signing in ───────────────────────────────────────────
   Two columns: the form on paper, and on the right the ink panel that says
   what the next three steps are. The panel is doing work: this is the moment
   a stranger decides whether to hand over access to their website. */
.auth-body { background: var(--paper); }
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}
.auth-narrow { grid-template-columns: minmax(0, 1fr); }
.auth-form {
  padding: clamp(1.75rem, 4vw, 3rem) var(--gutter);
  display: grid;
  align-content: start;
  gap: clamp(2rem, 6vw, 4rem);
}
.auth-narrow .auth-form { max-width: 34rem; margin-inline: auto; width: 100%; }
.auth-inner { max-width: 27rem; width: 100%; }
.auth-inner h1 { font-size: var(--step-3); margin-top: 0.75rem; }
.auth-lede { color: var(--slate); margin-top: 0.85rem; }
.auth-inner form { margin-top: 2rem; display: grid; gap: 0.4rem; }
.auth-inner label {
  font: 500 var(--step--1)/1 var(--body);
  color: var(--slate);
  margin-top: 0.85rem;
}
.auth-inner input {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.75rem 0.85rem;
  font: 400 var(--step-0)/1.2 var(--body);
  color: var(--ink);
}
.auth-inner input.mono { font-family: var(--mono); }
.auth-inner input::placeholder { color: var(--muted); }
.auth-inner button[type=submit] { margin-top: 1.5rem; width: 100%; }
.field-error {
  margin-top: 1rem;
  background: var(--critical-soft);
  border-left: 2px solid var(--critical);
  color: #8E2320;
  padding: 0.7rem 0.85rem;
  font-size: var(--step--1);
}
.auth-alt { margin-top: 2rem; font-size: var(--step--1); color: var(--muted); }
.auth-alt a { color: var(--action); }

.auth-aside {
  background: var(--ink);
  color: #E8ECF2;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  display: grid;
  align-content: center;
  gap: 2rem;
}
.auth-aside .eyebrow { color: #8C9AAF; }
.auth-aside .eyebrow::before { background: #33405A; }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; counter-reset: step; }
.next-list li { position: relative; padding-left: 2.75rem; counter-increment: step; }
.next-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15rem;
  font: 500 var(--step--1)/1 var(--mono);
  color: var(--action);
  border: 1px solid #33405A;
  border-radius: 2px;
  padding: 0.35rem 0.4rem;
}
.next-list h2 { color: #fff; font-size: var(--step-1); }
.next-list p { color: #AFBACB; font-size: var(--step--1); margin-top: 0.4rem; }
.aside-note { color: #7F8DA3; font-size: var(--step--1); border-top: 1px solid #212C3F; padding-top: 1.25rem; }

@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { order: 2; }
}

/* ── the app ─────────────────────────────────────────────────────────────
   A console, so it is quieter than the marketing page: one accent, hairlines,
   and the content doing the talking. */
.app-body { background: var(--paper); }
.app-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-switch select {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.45rem 0.6rem;
  font: 400 var(--step--1)/1 var(--mono);
  color: var(--ink);
}
.app-bar-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.plan-chip {
  font: 500 var(--step--1)/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--action);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.35rem 0.5rem;
}
.account { position: relative; }
.account summary {
  cursor: pointer;
  list-style: none;
  font-size: var(--step--1);
  color: var(--slate);
}
.account summary::-webkit-details-marker { display: none; }
.account .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 11rem;
  display: grid;
}
.account .menu a, .account .menu button {
  text-align: left;
  background: none;
  border: 0;
  padding: 0.7rem 0.9rem;
  font: 400 var(--step--1)/1 var(--body);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.account .menu a:hover, .account .menu button:hover { background: var(--paper); }

.app-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); align-items: start; }
.rail {
  position: sticky;
  top: 61px;
  padding: 1.5rem 0.75rem;
  display: grid;
  gap: 0.15rem;
  align-content: start;
}
.rail a {
  text-decoration: none;
  font-size: var(--step--1);
  color: var(--slate);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border-left: 2px solid transparent;
}
.rail a:hover { background: var(--surface); }
.rail a.on { background: var(--surface); border-left-color: var(--action); color: var(--ink); }

.app-main { padding: 1.75rem var(--gutter) 4rem; display: grid; gap: 1.25rem; max-width: 60rem; }
.loading { color: var(--muted); font-family: var(--mono); font-size: var(--step--1); }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.85rem);
}
.panel h1 { font-size: var(--step-3); margin-top: 0.85rem; }
.panel h2 { font-size: var(--step-2); }
.lede-sm { color: var(--slate); margin-top: 0.75rem; max-width: 52ch; }
.empty { margin-top: 0.85rem; color: var(--muted); font-size: var(--step--1); max-width: 60ch; }

.conns { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.conn {
  background: var(--surface);
  padding: 1.1rem 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.conn h3 { font-size: var(--step-1); }
.conn p { color: var(--slate); font-size: var(--step--1); margin-top: 0.3rem; max-width: 52ch; }
.conn-error { color: var(--critical); }
.conn-action { margin-left: auto; display: flex; align-items: center; gap: 0.85rem; }
.status { font: 500 var(--step--1)/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.status.ok { color: var(--verified); }
.status.todo { color: var(--muted); }

@media (max-width: 820px) {
  .app-layout { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; display: flex; overflow-x: auto; padding: 0.5rem var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); }
  .rail a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .rail a.on { border-left: 0; border-bottom-color: var(--action); }
}


/* ── the setup conversation ──────────────────────────────────────────────
   Our side reads as a document, the customer's side as a reply. The profile
   is a receipt, the same object the product uses for every change, because
   it is the first thing we hand the customer and it should look like proof. */
.convo-panel { max-width: 48rem; }
.convo { margin-top: 1.75rem; display: grid; gap: 1.1rem; }
.msg { display: grid; gap: 0.35rem; max-width: 38rem; }
.msg p { margin: 0; }
.msg .who {
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--action);
}
.from-us p { color: var(--ink); }
.from-us .q { font-weight: 500; }
.from-us .hint { color: var(--muted); font-size: var(--step--1); }
.from-them {
  justify-self: end;
  background: var(--ink);
  color: #F1F4F8;
  border-radius: var(--radius-lg) var(--radius-lg) 2px var(--radius-lg);
  padding: 0.65rem 0.95rem;
  max-width: 30rem;
}
.from-them p { color: inherit; }
.msg.wide { max-width: none; }
.reading p { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-family: var(--mono); font-size: var(--step--1); }
.scan {
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--action), transparent);
  background-size: 200% 100%;
  animation: scan 1.2s linear infinite;
}
@keyframes scan { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.receipt.profile { box-shadow: var(--shadow); }
.receipt.profile .receipt-body { margin: 0; gap: 0.7rem; }
.prow { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; }
.prow dt { color: var(--muted); }
.prow dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; overflow-wrap: anywhere; }
.prow.block { align-items: start; }
.src {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.src:hover { color: var(--action); }
.guess { font-style: normal; font-size: 0.75rem; color: var(--blocked); }
.chips { gap: 0.4rem !important; }
.chip {
  font: 400 0.8125rem/1 var(--body);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  text-decoration: none;
  cursor: pointer;
}
.chip:hover { border-color: var(--line-strong); }
.chip.more { color: var(--action); background: var(--surface); }
.none { color: var(--muted); font-family: var(--body); }
.prow blockquote {
  margin: 0;
  font-family: var(--body);
  font-style: italic;
  color: var(--slate);
  border-left: 2px solid var(--line-strong);
  padding-left: 0.75rem;
}
.receipt-notes {
  border-top: 1px dashed var(--line-strong);
  background: var(--blocked-soft);
  padding: 0.8rem 1.1rem;
  font-family: var(--body);
  color: #7A4A03;
}

.composer { margin-top: 1.75rem; border-top: 1px solid var(--line); padding-top: 1.25rem; display: grid; gap: 0.75rem; }
.composer:empty { display: none; }
.answer-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.answer-form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: stretch; }
.answer-form textarea, .answer-form input {
  flex: 1 1 18rem;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  font: 400 var(--step-0)/1.4 var(--body);
  color: var(--ink);
  background: var(--surface);
  resize: vertical;
}
.btn-text {
  background: none;
  border: 0;
  color: var(--muted);
  font: 400 var(--step--1)/1 var(--body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0.5rem;
}
.btn-text:hover { color: var(--ink); }
.pick { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pickable {
  font: 400 var(--step--1)/1 var(--body);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}
.pickable.on { background: var(--action); border-color: var(--action); color: #fff; }
.pick-count { font: 400 0.75rem/1 var(--mono); color: var(--muted); }

@media (max-width: 560px) {
  .prow { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}


/* ── what the product knows ─────────────────────────────────────────────
   Rules sit above facts: they are the customer's instructions to the system,
   and the one marked Binding is the promise the whole product is built on. */
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.rules { margin-top: 1.25rem; display: grid; gap: 0.6rem; }
.rule {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  background: var(--paper);
}
.rule p { margin: 0; }
.lock {
  flex: none;
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--verified);
  border: 1.5px solid var(--verified);
  border-radius: 2px;
  padding: 0.3rem 0.45rem;
}
.lock.never { color: var(--critical); border-color: var(--critical); }
.facts { margin: 1.5rem 0 0; display: grid; gap: 0.6rem; font-size: var(--step--1); }
.facts .prow dt { color: var(--muted); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; }
.back { padding-left: 0; margin-bottom: 0.75rem; }
