/* The public pages of examprepchat.com, built from the agreed design canvas "ExamPrepChat
   website" (ADR-036): dark, one amber accent, Geist with Geist Mono for figures and small
   labels. Fonts are self-hosted so no visitor request leaves our server (ADR-035). */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

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

:root {
  --bg: #0e1114;
  --panel: #151a1f;
  --panel2: #1d232a;
  --line: #29313a;
  /* Form fields' edges: at least 3:1 against every background they sit on (WCAG 1.4.11),
     where --line is only a divider. */
  --field-line: #68727c;
  --text: #eceef0;
  --text2: #a6aeb6;
  --text3: #858e97;
  --accent: #f2b544;
  --on-accent: #15120a;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

a:hover {
  color: var(--accent);
}

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.label {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 0.02em;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.wordmark::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 17px;
  background: var(--accent);
  border-radius: 1px;
}

.navlinks {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.navlinks a {
  color: var(--text2);
  text-decoration: none;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

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

.button.quiet {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 400;
}

/* Until sign-ups open the main button is a label, not a link (ADR-033). */
.button[aria-disabled="true"] {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  cursor: default;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 104px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.hero .lede {
  margin: 26px 0 0;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--text2);
  max-width: 32em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.fineprint {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text3);
}

.comp {
  position: relative;
  padding-bottom: 64px;
}

.chat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 20px 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--bg);
}

/* The question itself is not published (ADR-021): the card shows its shape only. */
.card .bar {
  height: 10px;
  border-radius: 5px;
  background: var(--panel2);
  margin-top: 8px;
}

.choices {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.choices span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text3);
}

.choices span.picked {
  border: 1.5px solid var(--accent);
  color: var(--text);
}

.turns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.turn {
  font-size: 15px;
  max-width: 90%;
}

.turn.student {
  align-self: flex-end;
  max-width: 82%;
  background: var(--panel2);
  border-radius: 14px 14px 4px 14px;
  padding: 10px 14px;
}

.noted {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text3);
}

.noted svg {
  color: var(--accent);
}

.float {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 300px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.float .title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.float .title svg {
  color: var(--accent);
}

/* Sections */

.section {
  border-top: 1px solid var(--line);
}

.section > .wrap {
  padding-top: 88px;
  padding-bottom: 96px;
}

.section h2 {
  margin: 12px 0 44px;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.15;
  max-width: 22ch;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.steps .num {
  font-size: 13px;
  color: var(--accent);
}

.steps h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  font-weight: 600;
}

.steps p {
  margin: 0;
  color: var(--text2);
}

.cols2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
}

.tile svg {
  color: var(--accent);
}

.tile h3 {
  margin: 16px 0 8px;
  font-size: 19px;
  font-weight: 600;
}

.tile p {
  margin: 0;
  color: var(--text2);
}

.cols3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.promise {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.promise svg {
  flex: none;
  margin-top: 3px;
  color: var(--text2);
}

.promise p {
  margin: 0;
  color: var(--text2);
}

.promise strong {
  color: var(--text);
  font-weight: 500;
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 56px;
}

.faq h2 {
  margin-bottom: 0;
}

.faq .item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.faq .item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.faq p {
  margin: 0;
  color: var(--text2);
}

.closing {
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.closing .wrap {
  padding-top: 96px;
  padding-bottom: 104px;
  text-align: center;
}

.closing h2 {
  margin: 0 auto;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.035em;
  font-weight: 600;
  line-height: 1.1;
  max-width: 16ch;
}

.closing .actions {
  justify-content: center;
  margin-top: 32px;
}

/* Long-form pages: privacy notice and terms. */

.doc .wrap {
  padding-top: 56px;
  padding-bottom: 88px;
}

.doc article {
  max-width: 44rem;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.doc .updated {
  margin: 0 0 40px;
  color: var(--text3);
}

.doc h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  color: var(--text2);
  max-width: 40rem;
}

.doc strong {
  color: var(--text);
  font-weight: 500;
}

.doc li + li {
  margin-top: 6px;
}

.doc table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 15px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-top: 1px solid var(--line);
  color: var(--text2);
}

.doc th,
.doc td:first-child {
  color: var(--text);
  font-weight: 500;
}

/* Signed-in pages: onboarding and settings (ADR-035). One narrow column, plain forms. */

button.button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

button.button.quiet {
  border: 1px solid var(--line);
}

.site-header form {
  margin: 0;
}

.app .wrap {
  padding-top: 56px;
  padding-bottom: 88px;
}

.app article {
  max-width: 40rem;
}

.app h1 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.app .lede {
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--text2);
}

.app p {
  color: var(--text2);
}

.app .group {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 36px;
}

.app h2 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.field > button {
  align-self: flex-start;
}

.field label {
  font-weight: 500;
  margin-top: 12px;
}

.field .hint,
.app .hint {
  margin: 0;
  font-size: 14px;
  color: var(--text3);
}

.field textarea,
.field input[type="text"],
.field input[type="date"],
.field select {
  width: 100%;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field input[type="date"],
.field select {
  max-width: 16rem;
  min-height: 48px;
}

.field .actions,
.app .actions {
  margin-top: 16px;
}

label.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  color: var(--text2);
}

label.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.saved {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 4px 12px;
  color: var(--accent);
}

.howto {
  padding-left: 22px;
  color: var(--text2);
}

.howto li + li {
  margin-top: 8px;
}

.howto strong {
  color: var(--text);
  font-weight: 500;
}

.howto code {
  word-break: break-all;
  color: var(--text);
  background: var(--panel2);
  border-radius: 6px;
  padding: 2px 6px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  padding-top: 40px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer .top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
}

.site-footer .links a {
  color: var(--text2);
  text-decoration: none;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--text3);
  max-width: 60em;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .navlinks {
    display: none;
  }
  .faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  /* The hero's own "Opening soon" sits just below, so the header keeps only sign-in. */
  .header-soon {
    display: none;
  }
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero {
    padding-top: 56px;
    padding-bottom: 72px;
  }
  .cols3,
  .cols2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .comp {
    padding-bottom: 0;
  }
  .float {
    position: static;
    width: auto;
    margin-top: 12px;
  }
}

/* Landing page details, kept out of the HTML so the pages need no inline styles under
   the Content-Security-Policy (site.rs). */
.label.gap22 { margin-bottom: 22px; }
.label.gap14 { margin-bottom: 14px; }
.card-meta { font-size: 11px; color: var(--text3); }
.bar.w92 { width: 92%; }
.bar.w78 { width: 78%; }
.bar.w40 { width: 40%; }
.float-body { font-size: 15px; line-height: 1.4; margin-top: 8px; }
.float-meta { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* Signed-in header: the campaign beside the wordmark, the account on the right. */
.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.header-right { gap: 16px; }
.campaign { font-size: 14px; color: var(--text2); white-space: nowrap; }
.header-link { font-size: 14px; color: var(--text2); }

/* The campaign dashboard (campaign.rs, ADR-036 and ADR-042). */
.wide .wrap { padding-top: 32px; padding-bottom: 56px; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.dash-main,
.dash-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.dash-side { gap: 16px; }
.dcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
}
.dcard.side { padding: 20px 22px; }
.dcard h2.label { margin: 0 0 16px; font-weight: 400; }
.dcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dcard-top h2.label { margin: 0; }
.pill { font-size: 12px; color: var(--text2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.dcard .empty { margin: 0; color: var(--text3); font-size: 14px; }

.next { padding: 28px; }
.next h1 { margin: 0 0 10px; font-size: clamp(23px, 2.4vw, 31px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; max-width: 28ch; }
.next .why { margin: 0 0 24px; color: var(--text2); font-size: 16px; max-width: 58ch; }
.next-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.split { display: inline-flex; align-items: stretch; position: relative; }
.split > .button { border-radius: 10px 0 0 10px; min-height: 48px; }
.more summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 48px;
  height: 100%;
  background: var(--accent);
  color: var(--on-accent);
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0 10px 10px 0;
  cursor: pointer;
}
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { border-radius: 0 10px 0 0; }
.more-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 2;
  width: min(360px, 80vw);
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  color: var(--text2);
}
.more-menu label { display: block; margin-bottom: 8px; }
.more-menu input {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--field-line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}
.button.second {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text2);
}

.dcard .cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.group-col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.group-col h3 svg { color: var(--text2); }
.group-col h3 svg.accent { color: var(--accent); }
.brief-item { padding: 12px 0; border-top: 1px solid var(--line); }
.brief-item .item-text { line-height: 1.4; margin-top: 2px; }
.brief-item .item-text.pending { color: var(--text3); font-style: italic; }
.brief-item .evidence { font-size: 12px; color: var(--text3); margin-top: 4px; }

.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.figure { font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.figure-name { font-size: 13px; color: var(--text2); margin-top: 2px; }
.chart-head,
.chart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text3); }
.chart-head { margin-bottom: 12px; }
.chart-head .mono,
.chart-foot { font-size: 12px; }
.chart-foot { margin-top: 8px; }
.chart { display: block; width: 100%; height: 120px; border-bottom: 1px solid var(--line); }
.chart .done { fill: var(--accent); }
.chart .now { fill: transparent; stroke: var(--accent); stroke-width: 1.5; }
.chart .future { fill: var(--line); }
h3.label.sub { margin: 28px 0 6px; font-weight: 400; }

.log,
.qlist,
.apps { list-style: none; margin: 0; padding: 0; }
.log li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.when { color: var(--text3); font-size: 12px; padding-top: 2px; }
.kind { font-weight: 600; }
.kind.found { color: var(--accent); }
details.all summary { cursor: pointer; color: var(--text2); font-size: 14px; padding: 10px 0; }

.qlist li {
  display: grid;
  grid-template-columns: 80px minmax(0, 190px) minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.qlist .source { color: var(--text3); font-size: 13px; }
.qlist .what strong { font-weight: 500; }
.qlist .outcome { color: var(--text2); }
.qlist .outcome.quiet { color: var(--text3); }
.del { position: relative; }
.del summary {
  list-style: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text3);
  cursor: pointer;
}
.del summary::-webkit-details-marker { display: none; }
.del form {
  position: absolute;
  right: 0;
  top: 46px;
  z-index: 2;
  width: min(300px, 80vw);
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.del form p { margin: 0 0 12px; font-size: 14px; color: var(--text2); }

.side .big { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.side .detail { font-size: 13px; color: var(--text2); margin-top: 2px; }
.side-link { display: flex; align-items: center; min-height: 44px; margin-top: 12px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text2); }
.apps li { padding: 8px 0; }
.apps .app { display: block; font-weight: 500; }
.apps .detail { font-size: 12px; color: var(--text3); }
h2.yours { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; }
h2.yours svg { color: var(--text2); }
.side p { margin: 8px 0 0; font-size: 14px; color: var(--text2); }

@media (max-width: 980px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .dcard,
  .next { padding: 20px; }
  .dcard .cols3 { grid-template-columns: minmax(0, 1fr); }
  .figs { gap: 8px; }
  .qlist li { grid-template-columns: minmax(0, 1fr) 44px; }
  .qlist .when { display: none; }
  .qlist .what { grid-column: 1; }
  .qlist .outcome { grid-column: 1; }
  .qlist .del { grid-column: 2; grid-row: 1 / span 2; }
  .campaign,
  .header-link { display: none; }
}

/* The session launcher and its ready page (launch.rs, ADR-042). Choices are real radio
   buttons and a checkbox, styled through their labels, so the page needs no script. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.launcher { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.launch-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.launch-head h1,
.ready h1 { margin: 8px 0 6px; font-size: clamp(26px, 2.8vw, 34px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.launch-head .lede { margin: 0; color: var(--text2); font-size: 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pick { display: block; position: relative; cursor: pointer; }
.pick input,
.seg input,
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kcard {
  display: block;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  color: var(--text);
}
.pick input:checked + .kcard { border-color: var(--accent); }
.pick input:focus-visible + .kcard,
.seg input:focus-visible + span,
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 3px; }
.kcard.rec { padding: 22px 24px; }
.rec-top,
.tile-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.minutes { font-size: 12px; color: var(--text2); white-space: nowrap; }
.rec-title { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-top: 10px; }
.rec-why { display: block; color: var(--text2); margin-top: 6px; }
.kinds-label { margin: 28px 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kcard.ktile { padding: 16px 18px; min-height: 100%; }
.tile-name { font-weight: 600; font-size: 15px; }
.tile-line { display: block; font-size: 14px; color: var(--text2); line-height: 1.45; margin-top: 6px; }
.shape .ctrl:last-child { border-bottom: 1px solid var(--line); }
.ctrl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.shape > .label { margin-bottom: 4px; }
.ctrl legend { float: left; padding: 0; }
fieldset.ctrl > .segs { margin-left: auto; }
.ctrl-name { display: block; font-weight: 500; }
.ctrl-hint { display: block; font-size: 13px; color: var(--text3); }
.segs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; }
.seg span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text2);
  cursor: pointer;
}
.seg input:checked + span { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
/* Answer choices are asked only about the student's own problem. */
.byo { display: none; }
.launcher:has(input[name="kind"][value="bring_your_own"]:checked) .byo { display: flex; }

.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.switch .track {
  flex: none;
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--panel2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text3);
}
.switch input:checked + .track { background: var(--accent); box-shadow: none; }
.switch input:checked + .track::after { left: 23px; background: var(--on-accent); }
.launch-side { position: sticky; top: 24px; }
.launch-side .dcard p { margin: 8px 0 16px; font-size: 14px; color: var(--text2); }
.launch-side .button { width: 100%; justify-content: center; }

.ready { max-width: 40rem; }
.ready .dcard { margin-top: 20px; }
.will { list-style: none; margin: 0 0 20px; padding: 0; }
.will li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; line-height: 1.45; }
.will svg { flex: none; margin-top: 3px; color: var(--accent); }
.prompt-box { margin-top: 20px; font-size: 14px; color: var(--text2); }
.prompt-box label { display: block; margin-bottom: 8px; }
.prompt-box input {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--field-line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}
.ready .hint { margin: 14px 0 0; font-size: 13px; color: var(--text3); }
.ready .back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; font-size: 14px; color: var(--text2); }

@media (max-width: 980px) {
  .launcher { grid-template-columns: minmax(0, 1fr); }
  .launch-side { position: static; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
}

/* "Bring your own problem" (launch.rs): the problem box on the ready page sends straight
   to Claude, never to us. */
.launch-head .lede.note { margin-top: 10px; font-size: 14px; color: var(--text3); }
.own-start { margin-top: 4px; }
.own-start .hint { margin: 4px 0 10px; font-size: 13px; color: var(--text3); }
.own-start textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  margin-bottom: 14px;
}
.own-link { align-self: center; margin-left: 6px; font-size: 14px; color: var(--text2); }

/* What to expect when Claude opens with a prompt filled in (campaign.rs, CLAUDE_NOTE). */
.claude-note { margin: 12px 0 0; font-size: 13px; color: var(--text3); max-width: 58ch; }

/* The connector address in "Add ExamPrepChat to your AI" (web.rs): a box of its own, so
   it never breaks across lines and is easy to copy. */
.howto .address {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--field-line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}
.howto ul { margin: 8px 0 0; padding-left: 20px; }
.howto ul li + li { margin-top: 6px; }
