/* ==========================================================================
   VibeCMD — RC1 Preview
   Workshop design system
   --------------------------------------------------------------------------
   Art direction: precision workshop, not a startup landing page.
   Graphite and paper, a technical grid, mono labels, mechanical motion
   with snap and detent.

   Banned by design: glassmorphism, gradient-mesh, purple-blue AI
   gradients, floating blobs / spheres, confetti, scroll-jacking,
   cursor followers. No gradients except the subtle technical grid
   lines and the coin's metallic face.

   Card pair contract: components that sit on a card surface use ONLY
   the paired --card-* tokens for background, ink, muted text, line
   and shadow. Never pair a hardcoded card background with inherited
   page text — that was the known dark-mode washout defect.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Paper / ink — light */
  --paper: #F5F3EE;
  --paper-2: #ECE9DF;
  --ink: #1B1D21;
  --ink-2: #3A3E45;
  --muted: #5B5E66;
  --line: #D9D4C5;
  --grid-line: rgba(27, 29, 33, .055);

  /* Brass accent */
  --accent: #A87E14;
  --accent-strong: #8A6608;

  /* Status */
  --ok: #1E7A34;
  --danger: #B3261E;

  /* Card pair — light (use as a set, never split) */
  --card-bg: #FFFFFF;
  --card-ink: #1B1D21;
  --card-muted: #5B5E66;
  --card-line: #DED9CB;
  --card-shadow: 0 1px 2px rgba(27, 29, 33, .06), 0 8px 24px rgba(27, 29, 33, .06);

  /* Graphite band — same in both themes */
  --band-bg: #22242A;
  --band-ink: #F0EEE6;
  --band-muted: #B9B6AB;
  --band-line: #3A3D45;

  /* Type — system stacks only, no external fonts */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  /* Motion — mechanical: snap and detent */
  --snap: cubic-bezier(.3, 1.3, .4, 1);
  --mech: cubic-bezier(.25, .9, .3, 1);
}

html[data-theme="dark"] {
  /* Paper / ink — dark */
  --paper: #121317;
  --paper-2: #17181D;
  --ink: #EDEBE2;
  --ink-2: #C7C4B9;
  --muted: #9D9A8E;
  --line: #2D2F36;
  --grid-line: rgba(237, 235, 226, .05);

  /* Brass accent — dark */
  --accent: #D9A92C;
  --accent-strong: #EBC04A;

  /* Card pair — dark (use as a set, never split) */
  --card-bg: #1E2026;
  --card-ink: #EDEBE2;
  --card-muted: #A3A093;
  --card-line: #34363F;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);

  /* Graphite band tokens are intentionally not overridden:
     --band-bg / --band-ink / --band-muted / --band-line stay
     identical in both themes. */
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3,
h4 {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #1B1D21;
}

/* One visible, consistent focus state for every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.rc-wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.rc-main {
  display: block;
}

/* Technical grid — the only permitted background gradient treatment.
   Usable as a modifier on any section or hero. */
.rc-grid-bg {
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
}

.rc-section {
  padding: 72px 0;
}

.rc-section--alt {
  background: var(--paper-2);
}

.rc-section--graphite {
  background: var(--band-bg);
  color: var(--band-ink);
}

.rc-section--graphite .rc-eyebrow {
  color: var(--accent);
}

.rc-section--graphite .rc-lead {
  color: var(--band-muted);
}

.rc-section--graphite .rc-small {
  color: var(--band-muted);
}

/* Cards inside a graphite band keep the card pair, untouched. */
.rc-section--graphite .rc-card {
  background: var(--card-bg);
  color: var(--card-ink);
  border-color: var(--card-line);
}

/* --------------------------------------------------------------------------
   4. Preview bar
   -------------------------------------------------------------------------- */

.rc-preview-bar {
  background: var(--band-bg);
  color: var(--band-ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.5;
}

.rc-preview-bar-sub {
  display: block;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: none;
  color: var(--band-muted);
  margin-top: 2px;
}

@media (min-width: 760px) {
  .rc-preview-bar-sub {
    display: inline;
    margin-top: 0;
  }

  .rc-preview-bar-sub::before {
    content: " \00B7  ";
    color: var(--band-muted);
  }
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.rc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.rc-header-in {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.rc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.rc-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--band-bg);
  color: #F5F3EE;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  border-radius: 1px;
}

.rc-brand-text {
  font-weight: 800;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
}

.rc-brand-text small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.rc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.rc-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
  transition: color 180ms var(--mech);
}

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

.rc-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.rc-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.rc-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.rc-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}

.rc-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
}

.rc-head-phone {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.rc-head-phone:hover {
  color: var(--accent-strong);
}

.rc-theme-toggle {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--card-bg);
  color: var(--card-ink);
  border: 1px solid var(--card-line);
  border-radius: 3px;
  padding: 8px 12px;
  min-height: 36px;
  cursor: pointer;
  transition: border-color 180ms var(--mech), transform 180ms var(--mech);
}

.rc-theme-toggle:hover {
  border-color: var(--accent);
}

.rc-theme-toggle:active {
  transform: translateY(1px);
}

@media (max-width: 1020px) {
  .rc-header-in {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .rc-nav {
    order: 3;
    width: 100%;
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .rc-status {
    display: none;
  }

  .rc-head-phone {
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   6. Typography
   -------------------------------------------------------------------------- */

.rc-eyebrow {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 16px;
}

html[data-theme="dark"] .rc-eyebrow {
  color: var(--accent);
}

.rc-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  flex: none;
  background: var(--accent);
  margin-right: 10px;
}

.rc-section--graphite .rc-eyebrow,
.rc-footer .rc-eyebrow {
  color: var(--accent);
}

.rc-h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.04;
  margin: 0 0 20px;
}

.rc-h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.12;
  margin: 0 0 16px;
}

.rc-h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
}

.rc-lead {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0 0 16px;
}

.rc-small {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.rc-textlink {
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms var(--mech);
}

html[data-theme="dark"] .rc-textlink {
  color: var(--accent);
}

.rc-textlink:hover {
  color: var(--accent-strong);
}

.rc-section--graphite .rc-textlink,
.rc-footer .rc-textlink {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   7. Actions and buttons
   -------------------------------------------------------------------------- */

.rc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  align-items: center;
}

.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: #22242A;
  color: #F5F3EE;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid #22242A;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 180ms var(--mech), box-shadow 180ms var(--mech),
    background 180ms var(--mech), border-color 180ms var(--mech), color 180ms var(--mech);
}

.rc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(27, 29, 33, .14), 0 10px 22px rgba(27, 29, 33, .14);
}

.rc-btn:active {
  transform: translateY(1px);
  box-shadow: none;
  transition-duration: 90ms;
}

.rc-btn--gold {
  background: var(--accent);
  border-color: var(--accent);
  color: #1B1D21;
}

.rc-btn--gold:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #1B1D21;
}

html[data-theme="dark"] .rc-btn--gold:hover {
  color: #1B1D21;
}

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

.rc-btn--ghost:hover {
  border-color: var(--accent);
  box-shadow: none;
}

.rc-section--graphite .rc-btn--ghost,
.rc-footer .rc-btn--ghost {
  background: transparent;
  color: var(--band-ink);
  border-color: var(--band-line);
}

.rc-section--graphite .rc-btn--ghost:hover,
.rc-footer .rc-btn--ghost:hover {
  border-color: var(--accent);
}

.rc-btn--call::before {
  content: "\260E\00A0";
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   8. Hero, phones and the brass coin
   -------------------------------------------------------------------------- */

.rc-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
}

.rc-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 48px;
  align-items: center;
}

.rc-phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.rc-phone {
  margin: 0;
  position: relative;
  flex: none;
}

.rc-phone img {
  display: block;
  width: 100%;
  border-radius: 26px;
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
  background: var(--card-bg);
}

.rc-phone figcaption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

.rc-phone--front {
  position: relative;
  width: min(272px, 58vw);
  z-index: 3;
  order: 2;
  perspective: 600px;
}

.rc-phone--left {
  width: min(204px, 44vw);
  z-index: 1;
  order: 1;
  transform: rotate(-6deg) translateY(46px);
  margin-right: -48px;
}

.rc-phone--right {
  width: min(204px, 44vw);
  z-index: 2;
  order: 3;
  transform: rotate(6deg) translateY(46px);
  margin-left: -48px;
}

@media (max-width: 1020px) {
  .rc-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .rc-phones {
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .rc-hero {
    padding: 48px 0 56px;
  }

  .rc-phone--front {
    width: 168px;
  }

  .rc-phone--left,
  .rc-phone--right {
    width: 116px;
    transform: rotate(-6deg) translateY(28px);
  }

  .rc-phone--right {
    transform: rotate(6deg) translateY(28px);
  }

  .rc-phone--left {
    margin-right: -30px;
  }

  .rc-phone--right {
    margin-left: -30px;
  }

}

/* --------------------------------------------------------------------------
   9. Path cards, cards, prices, pills and stats
   -------------------------------------------------------------------------- */

.rc-pathgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.rc-pathcard {
  background: var(--card-bg);
  color: var(--card-ink);
  border: 1px solid var(--card-line);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  box-shadow: var(--card-shadow);
  padding: 26px;
}

.rc-pathcard h3 {
  margin-top: 0;
  color: var(--card-ink);
}

.rc-pathcard p {
  color: var(--card-muted);
}

.rc-card {
  background: var(--card-bg);
  color: var(--card-ink);
  border: 1px solid var(--card-line);
  border-radius: 6px;
  box-shadow: var(--card-shadow);
  padding: 26px;
}

.rc-card h3,
.rc-card .rc-h3 {
  margin-top: 0;
  color: var(--card-ink);
}

.rc-card p {
  color: var(--card-ink);
}

.rc-card .rc-card-sub {
  color: var(--card-muted);
}

.rc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rc-price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: inherit;
  margin: 8px 0;
}

.rc-price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.rc-card .rc-price span,
.rc-pathcard .rc-price span,
.rc-choice .rc-price span {
  color: var(--card-muted);
}

.rc-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  background: transparent;
  line-height: 1.4;
}

.rc-card .rc-pill,
.rc-pathcard .rc-pill {
  border-color: var(--card-line);
  color: var(--card-muted);
}

.rc-section--graphite .rc-pill {
  border-color: var(--band-line);
  color: var(--band-muted);
}

.rc-section--graphite .rc-card .rc-pill {
  border-color: var(--card-line);
  color: var(--card-muted);
}

.rc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.rc-stat {
  min-width: 120px;
}

.rc-stat-num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.rc-stat-label {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}

.rc-section--graphite .rc-stat-label {
  color: var(--band-muted);
}

@media (max-width: 1020px) {
  .rc-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .rc-pathgrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .rc-card-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   10. Chooser
   -------------------------------------------------------------------------- */

.rc-chooser {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.rc-choice {
  display: block;
  background: var(--card-bg);
  color: var(--card-ink);
  text-align: left;
  text-decoration: none;
  padding: 24px;
  border: 1px solid var(--card-line);
  border-radius: 6px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  width: 100%;
  transition: border-color 180ms var(--mech), transform 180ms var(--mech),
    box-shadow 180ms var(--mech);
}

.rc-choice:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.rc-choice:active {
  transform: translateY(1px);
}

.rc-choice .rc-choice-k {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 10px;
}

html[data-theme="dark"] .rc-choice .rc-choice-k {
  color: var(--accent);
}

.rc-choice h3,
.rc-choice .rc-h3 {
  margin-top: 0;
  color: var(--card-ink);
}

.rc-choice p {
  color: var(--card-muted);
}

.rc-choice .rc-choice-price {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--card-ink);
  margin-top: 12px;
}

@media (max-width: 760px) {
  .rc-chooser {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   11. Tables
   -------------------------------------------------------------------------- */

.rc-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  color: var(--card-ink);
  border: 1px solid var(--card-line);
  border-radius: 6px;
  overflow: hidden;
}

.rc-table th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--card-muted);
  background: var(--card-bg);
}

.rc-table th,
.rc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-line);
  vertical-align: top;
}

.rc-table tbody tr:last-child td {
  border-bottom: 0;
}

.rc-table td {
  color: var(--card-ink);
}

.rc-table .rc-table-cta,
.rc-table td:last-child {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .rc-table,
  .rc-table tbody,
  .rc-table tr,
  .rc-table td {
    display: block;
    width: 100%;
  }

  .rc-table {
    background: transparent;
    border: 0;
    overflow: visible;
  }

  .rc-table thead {
    display: none;
  }

  .rc-table tr {
    background: var(--card-bg);
    border: 1px solid var(--card-line);
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    padding: 8px 0;
    margin-bottom: 14px;
  }

  .rc-table td {
    border-bottom: 0;
    padding: 8px 16px;
    white-space: normal;
  }

  .rc-table .rc-table-cta,
  .rc-table td:last-child {
    white-space: normal;
  }

  .rc-table td::before {
    content: attr(data-th);
    display: block;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--card-muted);
    margin-bottom: 3px;
  }

  .rc-table td:not([data-th])::before {
    content: none;
  }
}

/* --------------------------------------------------------------------------
   12. Steps and check lists
   -------------------------------------------------------------------------- */

.rc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: rc-step;
}

.rc-step {
  background: var(--card-bg);
  color: var(--card-ink);
  border: 1px solid var(--card-line);
  border-radius: 6px;
  box-shadow: var(--card-shadow);
  padding: 22px;
}

.rc-step h3 {
  margin-top: 0;
  color: var(--card-ink);
}

.rc-step p {
  color: var(--card-muted);
}

.rc-step-n {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-strong);
  margin-bottom: 12px;
}

html[data-theme="dark"] .rc-step-n {
  color: var(--accent);
}

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

.rc-check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  line-height: 1.55;
}

/* Workshop marker: a small brass square, not a check glyph. */
.rc-check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .5em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

@media (max-width: 1020px) {
  .rc-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .rc-steps {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   13. Forms, review panel and errors
   -------------------------------------------------------------------------- */

.rc-form-grid {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.rc-field {
  display: block;
}

.rc-label,
.rc-field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: inherit;
  margin-bottom: 6px;
}

.rc-card .rc-label,
.rc-card .rc-field label {
  color: var(--card-ink);
}

.rc-input,
.rc-select,
.rc-textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  background: var(--card-bg);
  color: var(--card-ink);
  border: 1px solid var(--card-line);
  border-radius: 4px;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  transition: border-color 160ms var(--mech), box-shadow 160ms var(--mech);
}

.rc-input:hover,
.rc-select:hover,
.rc-textarea:hover {
  border-color: var(--accent);
}

.rc-input:focus,
.rc-select:focus,
.rc-textarea:focus {
  border-color: var(--accent);
}

.rc-textarea {
  min-height: 130px;
  resize: vertical;
}

.rc-form-note {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.rc-card .rc-form-note {
  color: var(--card-muted);
}

/* Review panel — graphite band styling in both themes. */
.rc-review {
  background: var(--band-bg);
  color: var(--band-ink);
  padding: 20px 22px;
  border: 1px solid var(--band-line);
  border-radius: 6px;
}

.rc-review h3,
.rc-review .rc-h3 {
  color: var(--band-ink);
  margin-top: 0;
}

.rc-review dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  margin: 0;
  align-items: baseline;
}

.rc-review dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--band-muted);
}

.rc-review dd {
  margin: 0;
  font-weight: 600;
  color: var(--band-ink);
  overflow-wrap: anywhere;
}

.rc-errors {
  border: 1px solid #B3261E;
  background: color-mix(in srgb, #B3261E 8%, var(--card-bg));
  color: var(--card-ink);
  padding: 16px 20px;
  border-radius: 6px;
}

.rc-errors h3,
.rc-errors .rc-h3 {
  color: #B3261E;
  margin-top: 0;
}

html[data-theme="dark"] .rc-errors h3,
html[data-theme="dark"] .rc-errors .rc-h3 {
  color: #FF8A80;
}

.rc-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.rc-errors li {
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   14. Feed
   -------------------------------------------------------------------------- */

.rc-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rc-feed-card {
  display: block;
  background: var(--card-bg);
  color: var(--card-ink);
  border: 1px solid var(--card-line);
  border-radius: 6px;
  box-shadow: var(--card-shadow);
  padding: 20px;
  text-decoration: none;
  transition: border-color 180ms var(--mech), transform 180ms var(--mech);
}

.rc-feed-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.rc-feed-card:active {
  transform: translateY(1px);
}

.rc-feed-when {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 8px;
}

html[data-theme="dark"] .rc-feed-when {
  color: var(--accent);
}

.rc-feed-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--card-ink);
}

.rc-feed-where {
  display: block;
  font-size: 14px;
  color: var(--card-muted);
  margin-top: 4px;
}

@media (max-width: 1020px) {
  .rc-feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .rc-feed-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.rc-footer {
  background: var(--band-bg);
  color: var(--band-ink);
  padding: 56px 0 90px;
}

.rc-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.rc-footer a {
  color: var(--band-ink);
}

.rc-footer-paths {
  margin: 0 0 14px;
}

.rc-footer-paths a {
  display: block;
  font-weight: 700;
  font-size: 16px;
  padding: 4px 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.rc-footer-paths a:hover {
  color: var(--accent);
}

.rc-footer-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--band-muted);
  margin: 0;
}

.rc-footer-note a {
  color: var(--band-ink);
}

@media (max-width: 860px) {
  .rc-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   16. Mobile quick bar
   -------------------------------------------------------------------------- */

.rc-quickbar {
  display: none;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 52px;
  }

  .rc-quickbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--band-bg);
    border-top: 1px solid var(--band-line);
  }

  .rc-quickbar a {
    flex: 1;
    text-align: center;
    padding: 14px 4px;
    color: var(--band-ink);
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.3;
    text-decoration: none;
  }

  .rc-quickbar a + a {
    border-left: 1px solid var(--band-line);
  }

  .rc-quickbar .rc-quickbar-cta,
  .rc-quickbar a.rc-quickbar-cta {
    background: var(--accent);
    color: #1B1D21;
    border-left-color: var(--accent);
  }
}

/* --------------------------------------------------------------------------
   17. Responsive — wrap and sections
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .rc-wrap {
    width: min(1180px, calc(100% - 28px));
  }

  .rc-section {
    padding: 52px 0;
  }

  .rc-lead {
    font-size: 17.5px;
  }

  .rc-actions .rc-btn {
    flex: 1 1 auto;
  }
}

/* --------------------------------------------------------------------------
   18. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */

@media print {
  .rc-preview-bar,
  .rc-header,
  .rc-quickbar,
  .rc-theme-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #1B1D21;
    padding-bottom: 0;
  }

  .rc-section {
    padding: 24px 0;
  }
}

/* RC1 QA patch 2026-11-30: keep the desktop header on one row at 1280px —
   the open-status text yields before the nav wraps. */
@media (max-width: 1300px) { .rc-header-actions .rc-status { display: none; } }

/* — Live graft (RC1 promotion, 2026-11-30): cookie consent bar —
   inc/footer.php's consent markup is styled by the live workbench CSS,
   which these pages do not load. Same bar, workshop tokens. */
.vc-consent{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;background:var(--card-bg);color:var(--card-ink);border:1px solid var(--card-line);border-radius:14px;box-shadow:var(--card-shadow);padding:14px 16px}
.vc-consent-inner{display:flex;gap:14px;align-items:center;flex-wrap:wrap;max-width:1080px;margin:0 auto}
.vc-consent p{margin:0;font-size:14px;line-height:1.5;flex:1 1 280px}
.vc-consent-actions{display:flex;gap:8px}
.vc-consent .vc-button{display:inline-block;padding:10px 18px;border-radius:999px;border:1px solid var(--card-ink);background:var(--card-ink);color:var(--card-bg);font:inherit;font-weight:600;cursor:pointer}
.vc-consent .vc-button.vc-outline{background:transparent;color:var(--card-ink)}
@media (max-width:760px){.vc-consent{bottom:84px}}
