:root {
  color-scheme: light;
  --bg: #f6ecda;
  --bg-2: #efe0c7;
  --panel: #fffaf0;
  --panel-line: rgba(90, 62, 38, .14);
  --wood: #8a5a38;
  --wood-deep: #5c3b23;
  --ink: #362314;
  --muted: #6f5940;
  --dim: #92795c;
  --terracotta: #c1613c;
  --terracotta-deep: #a34c2b;
  --gold: #d9a441;
  --ember: #e8874a;
  --dusk-blue: #5f7f8a;
  --sage: #6f8a4c;
  --sage-deep: #4f6a34;
  --sage-wash: rgba(132, 161, 104, .2);
  --line: rgba(90, 62, 38, .16);
  --shadow: 0 24px 70px rgba(72, 44, 20, .16);
  --radius: 20px;
  --font-body: "Libre Franklin", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Zilla Slab", ui-serif, Georgia, "Times New Roman", serif;

  /* scroll-linked daylight, written by main.js */
  --light-warmth: 0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}

/* ---------- ambient scroll-linked daylight ---------- */
.daylight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 78% 0%,
      rgba(232, 135, 74, calc(.05 + .16 * var(--light-warmth))) 0%,
      transparent 60%),
    linear-gradient(180deg,
      rgba(95, 127, 138, calc(.05 - .05 * var(--light-warmth))) 0%,
      transparent 30%,
      rgba(217, 164, 65, calc(.02 + .1 * var(--light-warmth))) 100%);
  transition: background .4s linear;
}

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 52px);
  background: rgba(246, 236, 218, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand, .topbar nav, .top-action { display: flex; align-items: center; }
.brand { gap: 10px; font-weight: 700; font-family: var(--font-display); font-size: 18px; }
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--terracotta), var(--gold));
  color: #fff9ee;
  font-size: 13px;
  font-family: var(--font-display);
  box-shadow: 0 6px 16px rgba(193, 97, 60, .35);
}
.topbar nav {
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 250, 240, .6);
}
.topbar nav a {
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.topbar nav a:hover { background: rgba(193, 97, 60, .08); color: var(--terracotta-deep); }
.top-action {
  justify-self: end;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font: 600 14px/1 var(--font-body);
  cursor: pointer;
}
.top-signin {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  color: var(--ink);
  font: 600 14px/1 var(--font-body);
}
.top-signin:hover { color: var(--terracotta-deep); }
.topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- flight (scroll-scrubbed camera) ---------- */
.flight {
  height: 340vh;
  position: relative;
  z-index: 1;
}
.flight-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}
.flight-media, .flight-poster, .flight-video, .flight-fade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flight-media { padding-top: 0; }
.flight-poster, .flight-video {
  object-position: 72% 50%;
  opacity: 0;
  transition: opacity .25s linear;
}
.flight-poster.is-visible, .flight-video.is-visible { opacity: 1; transition: none; }
.flight-fade {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(246,236,218,.88) 30%, rgba(246,236,218,.28) 52%, transparent 68%),
    linear-gradient(0deg, var(--bg) 0%, transparent 18%, transparent 82%, rgba(246,236,218,.5) 100%);
}
.flight-copy {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Centring spills content that does not fit off BOTH ends, and the top end
     is behind the fixed header. `safe` falls back to start alignment exactly
     when it overflows, so the first line can never hide under the header.
     Declared second: browsers without `safe` keep the plain centring above. */
  justify-content: safe center;
  width: min(620px, calc(100vw - 40px));
  margin-left: clamp(20px, 6vw, 88px);
  padding: 68px 0 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.flight-copy.is-active { opacity: 1; pointer-events: auto; }
.flight-copy .pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.flight-copy .pills li {
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--panel-line);
  background: var(--panel);
  color: var(--wood-deep);
  font-size: 13px;
  font-weight: 600;
}
/* Every breakpoint in this file answers WIDTH. None answered height, so a
   laptop with a short viewport still ran the full-height hero and the copy
   column outgrew the stage it sits in. A 14" screen leaves about 870px once
   browser chrome is gone, and at that height the column had to start above
   the 68px header, which paints over it: the eyebrow vanished while the h1
   below it stayed. Trim the column so it fits instead. Width-gated to the
   sticky hero, because under 980px the stage is already stacked and static. */
@media (min-width: 981px) and (max-height: 940px) {
  .flight-copy .eyebrow { margin-bottom: 10px; }
  .flight-copy h1 { font-size: clamp(38px, 4.6vw, 56px); margin-bottom: 14px; }
  .flight-copy .lede { font-size: 16px; }
  .flight-copy .actions { margin-top: 20px; }
  .flight-copy .terminal-nook { margin-top: 20px; }
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--terracotta-deep);
  font-size: clamp(14.5px, 1.2vw, 16px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}
h1 {
  margin-bottom: 20px;
  font-size: clamp(46px, 6.4vw, 78px);
  line-height: .98;
}
h2 { margin-bottom: 16px; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; }
h3 { font-size: 20px; margin-bottom: 8px; }
.lede {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}
.button.primary { background: var(--terracotta); border-color: transparent; color: #fff8ee; box-shadow: 0 12px 26px rgba(193,97,60,.32); }
.button.secondary { background: var(--panel); color: var(--ink); }

.terminal-nook {
  width: min(680px, 100%);
  margin-top: 32px;
}
.terminal {
  border-radius: 14px;
  overflow: hidden;
  background: #2a2018;
  box-shadow: var(--shadow), 0 0 0 6px rgba(255, 250, 240, .5), 0 0 0 7px var(--line);
}
.term-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  background: rgba(255, 250, 240, .08);
}
.term-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--terracotta); }
.term-bar span:nth-child(2) { background: var(--gold); }
.term-bar span:nth-child(3) { background: #9fb98f; }
.term-bar b { margin-left: 4px; color: rgba(255,250,240,.5); font-size: 12px; font-weight: 500; }
.term-bar .copy-button { margin-left: auto; padding: 6px 12px; border-left: 0; border-radius: 8px; font-size: 11px; letter-spacing: 0.01em; white-space: nowrap; }
pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: normal;
  color: #f3e9d8;
  font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.term-dim { color: rgba(243,233,216,.42); }
.term-accent { color: #e8b471; }
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}
.hero-note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(217,164,65,.16), 0 0 14px rgba(217,164,65,.7);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .4; transform: scale(.72); } }

.scroll-hint {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 6vw, 88px);
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
}
.scroll-hint span {
  width: 18px;
  height: 28px;
  border: 1.5px solid var(--dim);
  border-radius: 9px;
  position: relative;
}
.scroll-hint span:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--terracotta);
  animation: wheel 1.3s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: .95; } 100% { transform: translateY(10px); opacity: .1; } }

@media (min-width: 1800px) {
  .flight-copy {
    margin-left: calc((100vw - 1480px) / 2 + 72px);
  }

  .scroll-hint {
    left: calc((100vw - 1480px) / 2 + 72px);
  }
}

/* ---------- bands ---------- */
.band {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 9vw, 120px) clamp(18px, 5vw, 72px);
}
.section-head {
  width: min(700px, 100%);
  margin: 0 auto 44px;
  text-align: center;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 17px; }

/* ---------- demo cards ---------- */
.demo-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.demo-card {
  min-height: 300px;
  padding: 18px 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  box-shadow: 0 16px 44px rgba(72, 44, 20, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.demo-card:hover { transform: translateY(-4px); box-shadow: 0 22px 54px rgba(72, 44, 20, .14); }
.demo-card h3, .demo-card p, .demo-card b { position: relative; z-index: 2; }
.demo-graphic {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 158px;
  flex: 0 0 158px;
  margin-bottom: 10px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid rgba(90, 62, 38, .12);
  box-shadow: 0 12px 30px rgba(72, 44, 20, .12);
}
.demo-card h3 { font-size: 21px; }
.demo-card p { color: var(--muted); margin: 0; }
.demo-card b { margin-top: 14px; color: var(--terracotta-deep); font-weight: 600; font-size: 14px; }

/* ---------- works grid ---------- */
.use-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.use-grid article {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--panel-line);
  background: var(--panel);
}
.use-grid p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- steps ---------- */
.steps-band { background: var(--bg-2); }
#agent-deploy .section-head { width: min(860px, 100%); }
#agent-deploy .section-head > p:not(.eyebrow) { max-width: 720px; margin-inline: auto; }
.deploy-steps {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(72, 44, 20, .08);
}
.deploy-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 26px 28px;
}
.deploy-step + .deploy-step { border-top: 1px solid var(--panel-line); }
.deploy-step h3 { margin: 0 0 6px; font-size: 22px; }
.deploy-step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--terracotta), var(--gold));
  color: #fff8ee;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}
.copy-snippet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  margin: 4px 0 10px;
  border-radius: 8px;
  background: #2a2018;
  overflow: hidden;
}
.copy-snippet code {
  display: block;
  min-width: 0;
  padding: 10px 12px;
  background: transparent;
  color: #f3e9d8;
  font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.copy-snippet code::-webkit-scrollbar { display: none; }
.copy-button {
  min-width: 56px;
  padding: 0 11px;
  border: 0;
  border-left: 1px solid rgba(255, 250, 240, .12);
  border-radius: 0;
  background: rgba(255, 250, 240, .08);
  color: rgba(255, 250, 240, .82);
  font: 600 11px/1 var(--font-body);
  cursor: pointer;
}
.copy-button:hover {
  background: rgba(255, 250, 240, .18);
  color: #fff8ee;
}
.copy-button.is-copied,
.button[data-copy].is-copied {
  background: var(--gold);
  border-color: transparent;
  color: #2a2018;
}
.deploy-prompt { margin: 12px 0 0; }
.deploy-prompt code {
  white-space: normal;
  overflow: visible;
  overflow-wrap: break-word;
}

/* ---------- hosted agents ---------- */
.hosted-agents-band {
  padding-top: 0;
  background: var(--bg);
}
.hosted-agent-feature {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  padding-top: clamp(42px, 6vw, 68px);
  border-top: 1px solid var(--line);
}
.hosted-agent-copy h2 {
  max-width: 620px;
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
}
.hosted-agent-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
}
.hosted-agent-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hosted-agent-actions span {
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
}
.hosted-agent-cards { display: grid; gap: 14px; }
.hosted-agent-card {
  padding: 22px 26px;
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  background: var(--panel);
}
.hosted-agent-head { display: flex; align-items: center; gap: 11px; margin: 12px 0 7px; }
.hosted-agent-head h3 { margin: 0; }
.hosted-agent-icon { width: 34px; height: 34px; border-radius: 9px; }
.hosted-agent-availability {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--sage-wash);
  color: var(--sage-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hosted-agent-card h3 { margin: 13px 0 7px; font-size: 27px; }
.hosted-agent-card > p { margin: 0; color: var(--muted); font-size: 14.5px; }
.hosted-agent-card dl { margin: 22px 0 0; }
.hosted-agent-card dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--panel-line);
  font-size: 13.5px;
}
.hosted-agent-card dt { color: var(--dim); }
.hosted-agent-card dd { margin: 0; color: var(--ink); font-weight: 600; }

/* ---------- pricing ---------- */
.pricing-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-line);
  background: var(--panel);
}
.plan.featured { border-color: var(--terracotta); box-shadow: 0 0 0 1px var(--terracotta), 0 20px 60px rgba(193,97,60,.16); }
/* Signed-in state: the card holding the visitor's current plan. */
.plan.current { border-color: var(--terracotta); box-shadow: 0 0 0 1px var(--terracotta); }
.plan a.is-disabled { background: var(--bg-2); color: var(--dim); cursor: default; }
/* A request is in flight: every card button waits its turn. */
.plan a.is-busy { pointer-events: none; opacity: .6; }
.price { margin: 10px 0 18px; font-size: 38px; font-family: var(--font-display); font-weight: 700; }
.price span { color: var(--muted); font-size: 14px; font-weight: 500; font-family: var(--font-body); }
/* The list grows, the button pins to the bottom: all four cards' CTAs sit
   on one line however long each feature list runs. */
.plan ul { flex: 1; padding: 0; margin: 0 0 22px; list-style: none; }
.plan li { padding: 7px 0; border-top: 1px solid var(--panel-line); color: var(--muted); font-size: 14.5px; }
.plan a,
.plan button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--ink);
  font: 600 14.5px/1 var(--font-body);
  cursor: pointer;
}
.plan.featured a,
.plan.featured button { background: var(--terracotta); color: #fff8ee; }
.pricing-note { text-align: center; margin: 26px auto 0; max-width: 640px; color: var(--dim); font-size: 13.5px; }

/* ---------- faq ---------- */
.faq-band { background: var(--bg-2); }
.faq-list {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.faq-list details {
  padding: 4px 22px;
  border-radius: 14px;
  border: 1px solid var(--panel-line);
  background: var(--panel);
}
.faq-list summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:after {
  content: "+";
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--terracotta);
  margin-left: 16px;
}
.faq-list details[open] summary:after { content: "\2212"; }
.faq-list p { margin: 0 0 20px; color: var(--muted); font-size: 15px; max-width: 620px; }

/* ---------- legal docs ---------- */
.legal-doc {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(120px, 10vw, 160px) clamp(18px, 5vw, 72px) clamp(72px, 9vw, 120px);
}
.legal-doc h1 { font-size: clamp(36px, 4.4vw, 52px); margin-bottom: 8px; }
.legal-doc .legal-meta {
  margin: 0 0 32px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 500;
}
.legal-doc .legal-disclaimer {
  padding: 14px 18px;
  margin: 0 0 32px;
  border-left: 3px solid var(--terracotta);
  border-radius: 4px;
  background: rgba(193, 97, 60, .08);
  color: var(--wood-deep);
  font-size: 14.5px;
}
.legal-doc h2 { font-size: 22px; margin: 40px 0 12px; }
.legal-doc h3 { font-size: 17px; margin: 24px 0 8px; }
.legal-doc p { margin: 0 0 14px; color: var(--ink); font-size: 16px; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; margin: 0 0 14px; }
.legal-doc li { margin-bottom: 6px; color: var(--ink); font-size: 16px; }
.legal-doc a { color: var(--terracotta-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc a:hover { color: var(--terracotta); }
.legal-doc strong { color: var(--ink); }

/* ---------- sign-up consent ---------- */
.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(54, 35, 20, .42);
  backdrop-filter: blur(8px);
}
.consent-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  padding: 26px 26px 22px;
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.consent-card h2 {
  font-size: 22px;
  margin: 0 0 6px;
}
.consent-card .consent-lede {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
}
.consent-list { display: grid; gap: 12px; margin: 0 0 18px; }
.consent-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  background: rgba(255, 250, 240, .56);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.consent-item:hover { border-color: rgba(193, 97, 60, .3); }
.consent-item:has(input:checked) {
  border-color: var(--terracotta);
  background: rgba(193, 97, 60, .06);
}
.consent-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--terracotta);
  cursor: pointer;
}
.consent-item-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}
.consent-item-text a {
  color: var(--terracotta-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.consent-item-text a:hover { color: var(--terracotta); }
.consent-item-text .req {
  color: var(--terracotta-deep);
  font-weight: 600;
}
.consent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}
.consent-button {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 600 14.5px/1 var(--font-body);
  cursor: pointer;
  transition: opacity .15s ease, background .15s ease, border-color .15s ease;
}
.consent-button.cancel {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--panel-line);
}
.consent-button.cancel:hover { background: var(--bg-2); }
.consent-button.primary {
  background: var(--terracotta);
  color: #fff8ee;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(193, 97, 60, .28);
}
.consent-button.primary:disabled {
  background: var(--bg-2);
  color: var(--dim);
  border-color: var(--panel-line);
  box-shadow: none;
  cursor: not-allowed;
}
.consent-signin {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.consent-signin a {
  color: var(--terracotta-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-signin a:hover { color: var(--terracotta); }

/* ---------- signup page ---------- */
.signup-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(96px, 10vw, 132px) clamp(18px, 5vw, 72px) clamp(72px, 9vw, 120px);
}
.signup-card {
  width: min(560px, 100%);
  padding: 36px;
  border: 1px solid var(--panel-line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(72, 44, 20, .12);
  text-align: center;
}
.signup-card h1 {
  font-size: clamp(32px, 4vw, 40px);
  margin: 0 0 10px;
}
.signup-card .signup-lede {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}
.signup-card .signup-steps {
  text-align: left;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  background: rgba(255, 250, 240, .56);
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14.5px;
}
.signup-card .signup-steps li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}
.signup-card .signup-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--terracotta), var(--gold));
  color: #fff8ee;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
}
.signup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--terracotta);
  color: #fff8ee;
  font: 700 16px/1 var(--font-body);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(193, 97, 60, .32);
  transition: transform .15s ease, box-shadow .15s ease;
}
.signup-button:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(193, 97, 60, .4); }
.signup-foot {
  margin: 18px 0 0;
  color: var(--dim);
  font-size: 13px;
}
.signup-foot a { color: var(--muted); text-decoration: underline; }

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--dim);
  background: var(--bg);
  font-size: 14px;
}
.footer a { color: var(--muted); }
.footer span:last-child { display: flex; gap: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .terminal-nook { width: 100%; margin-bottom: 20px; }
  .scroll-hint { display: none; }

  /* mobile: no pinned scrub, scenes stack as normal cards (no video chain rendered for portrait) */
  .flight.flight--static { height: auto; }
  .flight--static .flight-stage { position: relative; height: auto; display: flex; flex-direction: column; gap: 0; background: none; }
  .flight--static .flight-media { display: none; }
  .flight--static .scroll-hint { display: none; }
  .flight--static .flight-copy {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    pointer-events: auto;
    width: 100%;
    margin: 0;
    padding: 28px 20px 44px;
  }
  .flight-copy-img {
    display: block;
    width: 100%;
    height: 42vh;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 24px;
  }
  .demo-grid, .pricing-grid, .use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hosted-agent-feature { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .demo-grid, .pricing-grid, .use-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(40px, 12vw, 58px); }
  .actions { gap: 10px; }
  .button { flex: 1 1 150px; }
  .footer { flex-direction: column; }
  .deploy-step { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 20px 16px; }
  .deploy-prompt { grid-template-columns: minmax(0, 1fr); }
  .deploy-prompt .copy-button {
    min-height: 38px;
    border-left: 0;
    border-top: 1px solid rgba(255, 250, 240, .12);
  }
  .hosted-agent-feature { padding-top: 32px; }
  .hosted-agent-actions { align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .daylight { transition: none; }
  .scroll-hint span:after { animation: none; }
  .hero-note span { animation: none; }
}

/* ------------------------------------------------------------- projects */

.publish-panel {
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.publish-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.publish-name-row label {
  font-weight: 600;
  color: var(--ink);
}

.publish-name-field {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  overflow: hidden;
}

.publish-name-field input {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  outline: none;
  padding: 0.55rem 0.7rem;
  font: inherit;
  min-width: 0;
  background: transparent;
  color: var(--ink);
}

.publish-suffix {
  padding: 0.55rem 0.7rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel-line) 30%, transparent);
  font-size: 0.9rem;
  white-space: nowrap;
}

.publish-name-status { font-size: 0.9rem; color: var(--muted); }
.publish-name-status.is-ok { color: #2c7a3f; }
.publish-name-status.is-bad { color: var(--terracotta-deep, #b3402a); }

.publish-tabs { display: flex; gap: 0.5rem; }

.publish-tab {
  border: 1px solid var(--panel-line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.publish-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.dropzone {
  border: 2px dashed var(--panel-line);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color 120ms ease, background 120ms ease;
}

.dropzone.is-drag {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--panel-line) 25%, transparent);
}

.dropzone-hint { color: var(--muted); margin: 0; }

.dropzone-browse {
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.dropzone-files {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  text-align: left;
}

.dropzone-files li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
}

/* Staging-time finding on a file (password protected, damaged): a full-width
   amber line under the row — visible before the user commits to publishing. */
.staged-warn {
  flex-basis: 100%;
  color: #9a6a1f;
  font-size: 0.85rem;
}

.staged-name { font-weight: 600; word-break: break-all; }
.staged-size { color: var(--muted); white-space: nowrap; }
.staged-url { color: var(--muted); font-size: 0.85rem; margin-left: auto; }

/* Two auto margins: the URL preview claims the free space when present,
   otherwise the remove button does — either way × ends up at the right. */
.staged-remove {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: auto;
  line-height: 1;
}
.staged-url + .staged-remove { margin-left: 0.25rem; }

.dropzone-error { color: var(--terracotta-deep, #b3402a); margin: 0.6rem 0 0; font-size: 0.92rem; }

.publish-go { justify-self: start; }

.small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: var(--terracotta);
  color: #fff8ee;
  font: 700 13px/1 var(--font-body);
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}

.small-action:hover { background: var(--terracotta-deep); }
.small-action:active { transform: translateY(1px); }
/* `wait` when the only reason to disable this was a publish already in flight.
   It is now also disabled because the form has an error on screen, and there a
   spinner pointer promises something that will never arrive — it reads as "the
   button is working" when the truth is "nothing moves until you fix the line
   above". Disabled means cannot press, and that is true in both cases. */
.small-action:disabled { background: var(--dim); cursor: not-allowed; transform: none; }

.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  background: rgba(255, 250, 240, .56);
  color: var(--wood-deep);
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.ghost-action:hover {
  background: rgba(255, 250, 240, .95);
  border-color: rgba(193, 97, 60, .3);
  color: var(--terracotta-deep);
}

.dash-code {
  position: relative;
  margin: 10px 0;
  border-radius: 12px;
  background: #2a2018;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(72, 44, 20, .12);
}

.dash-code pre {
  margin: 0;
  padding: 16px 78px 16px 16px;
  overflow-x: auto;
  color: #f3e9d8;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.dash-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 30px;
  min-width: 56px;
  border: 1px solid rgba(255, 250, 240, .14);
  border-radius: 8px;
  background: rgba(255, 250, 240, .1);
  color: rgba(255, 250, 240, .86);
  font: 700 11px/1 var(--font-body);
  cursor: pointer;
  transition: background .15s ease;
}

.dash-copy:hover { background: rgba(255, 250, 240, .2); }
.dash-copy.is-copied { background: var(--gold); border-color: transparent; color: #2a2018; }

.publish-upgrade {
  width: 100%;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(193, 97, 60, .32);
  border-radius: 12px;
  background: rgba(193, 97, 60, .08);
}

.publish-upgrade h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.publish-upgrade p { margin: 0; color: var(--muted); }
.publish-upgrade-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.publish-usage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(111, 138, 76, .1);
  color: var(--muted);
  font-size: 0.88rem;
}

.publish-usage.is-at-limit { background: rgba(193, 97, 60, .08); color: var(--ink); }
.publish-usage a { flex: 0 0 auto; color: var(--terracotta-deep); font-weight: 700; }
.publish-usage a:hover { text-decoration: underline; }

/* Two columns: the URL + actions read left, the QR sits framed on the
   right like a business card — no orphaned barcode floating in whitespace. */
.publish-success {
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  padding: 1.25rem;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.75rem;
  align-items: start;
}

.publish-success h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  grid-column: 1;
}
.publish-success .dash-code { grid-column: 1; width: 100%; margin: 0; }
.publish-success-actions {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.publish-qr-card {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  margin: 0;
  padding: 0.85rem 0.85rem 0.6rem;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 28px rgba(72, 44, 20, 0.08);
}
.publish-qr-card img { display: block; width: 168px; height: 168px; }
.publish-qr-card figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .publish-success { grid-template-columns: 1fr; }
  .publish-qr-card { grid-column: 1; grid-row: auto; justify-self: center; }
}

.project-list { margin-top: 1.25rem; display: grid; gap: 0.6rem; }
.project-empty { color: var(--muted); }

.project-row {
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  display: flex;
  flex-wrap: wrap;
  /* Top, not centre. The left column grows tall when its sign-in details are
     open, and centred buttons then floated halfway down beside a wall of
     text — which is what the row looked broken as. */
  align-items: flex-start;
  gap: 0.6rem 1rem;
}

/* Below the point where a row can hold two columns, stop pretending it can.
   The buttons take a full-width line under the text instead of being squeezed
   into a narrow column of stacked two-line labels. */
@media (max-width: 720px) {
  .project-row { flex-direction: column; align-items: stretch; }
  .project-row .project-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .project-main .agent-head { flex-wrap: wrap; }
}

.project-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}

.project-main a {
  color: var(--muted);
  text-decoration: none;
  word-break: break-all;
  font-size: 0.92rem;
}

/* How to get into the agent's own control panel. Its own full-width line
   under the name and address: competing for horizontal space with a chip and
   a URL would break it into slivers on a phone.

   A disclosure rather than a paragraph. The username is the only part wanted
   at a glance, so it is the summary, and the explanation opens on demand:
   a row is scanned, not read. Native details/summary keeps it keyboard
   reachable and works on touch, which a hover tooltip does not. */
.project-main .agent-panel {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.project-main .agent-panel summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}
.project-main .agent-panel summary::-webkit-details-marker { display: none; }
.project-main .agent-panel summary:after {
  content: "+";
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
}
.project-main .agent-panel[open] summary:after { content: "\2212"; }
.project-main .agent-panel p {
  margin: 6px 0 0;
  max-width: 62ch;
}

/* Which agent a row IS. Small, ahead of the name, so a list of three reads as
   three different things at a glance rather than three of the same. */
.project-main .agent-row-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  vertical-align: -4px;
  margin-right: 7px;
  flex: none;
}
.project-main .agent-kind {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Name, status and kind travel together. Loose in a wrapping flex row they
   each broke independently, and a row came apart into four lines with its
   buttons pushed through the middle of them. */
.project-main .agent-head {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: none;
}
.project-main .agent-head strong { white-space: nowrap; }

.project-main a:hover { text-decoration: underline; }

.project-chip {
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.project-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: none;
}

/* A note beside a button must not resize the buttons.
   sayBeside inserts its text as a SIBLING of the button, so inside this flex
   row a long sentence became an item competing for width: one message about a
   failed check squeezed every button on the row into two-line stacks. It takes
   its own line underneath instead. */
.project-actions .action-note {
  flex-basis: 100%;
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.project-actions button {
  border: 1px solid var(--panel-line);
  background: transparent;
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}
.project-actions button:hover { border-color: var(--ink); }
.project-actions button.is-danger { color: var(--terracotta-deep, #b3402a); }
.project-actions .project-note { color: var(--muted); font-size: 0.85rem; }

.project-qr { flex-basis: 100%; }
.project-qr img { border: 1px solid var(--panel-line); border-radius: 8px; }

/* ---------------------------------------------------- landing publisher */

.publish-band .lp-panel {
  width: min(720px, 100%);
  margin: 0 auto;
  background: rgba(255, 250, 240, .78);
  box-shadow: 0 16px 44px rgba(72, 44, 20, .08);
}

.publish-band .publish-success { margin-top: 1rem; }

@media (max-width: 640px) {
  .publish-panel { min-width: 0; padding: 1rem; }
  .publish-name-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    min-width: 0;
  }
  .publish-name-field { width: 100%; }
  .publish-suffix { padding-inline: 0.5rem; font-size: 0.78rem; }
  .publish-tabs { flex-wrap: wrap; }
  .publish-tab { flex: 1 1 auto; padding-inline: 0.65rem; }
  .publish-tab-hint,
  .dropzone-hint { overflow-wrap: anywhere; }
  .dropzone { min-width: 0; padding: 1.1rem 0.75rem; }
}

.publish-wait {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* -------------------------------------------- reorder + preview modal */

.dropzone-files li[draggable] { cursor: grab; }
.dropzone-files li.is-dragging { opacity: 0.5; }

.staged-handle {
  color: var(--muted);
  font-size: 0.9rem;
  cursor: grab;
  user-select: none;
}

.dropzone-order-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.6rem 0 0;
}

.publish-go-row { display: flex; gap: 0.75rem; align-items: center; }

.pub-preview {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  color: inherit;
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(42, 32, 24, 0.55);
  z-index: 60;
  padding: 1rem;
}
.pub-preview.is-open { display: grid; }

.pub-preview-card {
  position: relative;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  background: var(--bg, #fffaf0);
  padding: 1.25rem;
  display: grid;
  gap: 0.9rem;
}

.pub-preview-card h3 { margin: 0; font-family: var(--font-display); }
.pub-preview-caption { margin: 0; color: var(--muted); font-size: 0.95rem; }

.pub-preview-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  border: 0;
  background: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
}

.pub-preview-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.pub-preview-items li {
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  padding: 0.6rem;
  background: rgba(255, 250, 240, 0.8);
  cursor: grab;
}
.pub-preview-items li.is-dragging { opacity: 0.5; }

.pub-preview-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  word-break: break-all;
}

/* Preview frames scroll their own document (wheel pages through a PDF);
   the viewer TOOLBAR stays hidden — buttons that can't change the published
   file are noise, but reading the whole document is the point. */
.pub-preview-items iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.pub-preview-pdfcrop {
  overflow: hidden;
  border-radius: 8px;
}

/* Firefox's PDF viewer ignores #toolbar=0 — crop its toolbar strip away. */
.pub-preview.pub-moz .pub-preview-pdfcrop iframe {
  margin-top: -36px;
  height: 376px;
}

.pub-preview-items img {
  max-width: 100%;
  max-height: 340px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.pub-preview-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.publish-account-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.publish-trial-note {
  grid-column: 1;
  margin: 0;
  color: var(--terracotta-deep, #b3402a);
  font-size: 0.92rem;
}
.publish-trial-note a { color: inherit; font-weight: 700; }

.publish-tab-hint {
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pub-preview-frame { position: relative; }

.pub-preview-card { overscroll-behavior: contain; }

/* Modal rows: only the title bar drags; the body is scroll surface. */
.pub-preview-items li { cursor: default; }
.pub-preview-head { cursor: grab; }
.pub-preview-draghint {
  margin-left: auto;
  color: var(--dim);
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Free-plan caveat / paid-plan reassurance in the pricing cards. */
.plan-caveat { color: var(--terracotta-deep); font-weight: 600; }
.plan-highlight { color: var(--sage-deep); font-weight: 600; }

/* ---------- shared confirm modal (plan-cards.js) ---------- */
dialog.pc-modal {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  color: inherit;
}
dialog.pc-modal:not([open]) { display: none; }
dialog.pc-modal::backdrop { background: transparent; }

.pc-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(54, 35, 20, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.pc-modal.is-open { opacity: 1; pointer-events: auto; }
.pc-modal-card {
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  width: min(460px, 100%);
  padding: 26px;
  border-radius: 16px;
  border: 1px solid var(--panel-line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.pc-modal-card h2 { margin-bottom: 8px; font-size: 26px; line-height: 1.1; }
.pc-modal-card p { margin: 0 0 18px; color: var(--muted); }
.pc-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}
.pc-modal-close:hover { color: var(--ink); }
/* The action row needs air above it: with the fit selector open the buttons
   sat flush against the tick rows and read as part of the list. */
.pc-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* Downgrade "what has to go": a meter per limit the account is over, and a
   tick list that updates it live, so the customer can see when they have
   removed enough instead of doing the arithmetic themselves. */
.pc-fit-meters { margin: 14px 0 10px; display: grid; gap: 8px; }
.pc-fit-meter { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 10px; align-items: center; font-size: .85rem; }
.pc-fit-meter-label { color: #6b5d4f; }
.pc-fit-meter-bar { background: #e8dcc8; border-radius: 99px; height: .5rem; overflow: hidden; }
.pc-fit-meter-bar i { display: block; height: 100%; background: #c1613c; transition: width .15s ease; }
.pc-fit-meter-tail { color: #a8402a; font-variant-numeric: tabular-nums; }
.pc-fit-meter.is-clear .pc-fit-meter-bar i { background: #3f7d51; }
.pc-fit-meter.is-clear .pc-fit-meter-tail { color: #3f7d51; }
.pc-fit-list { max-height: 15rem; overflow-y: auto; border: 1px solid #e8dcc8; border-radius: 8px; }
.pc-fit-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: .55rem .75rem; font-size: .875rem; cursor: pointer; border-bottom: 1px solid #f0e8d8; }
.pc-fit-row:last-child { border-bottom: none; }
.pc-fit-row:hover { background: #faf6ee; }
.pc-fit-frees { color: #6b5d4f; font-size: .8rem; }
.pc-btn[disabled] { opacity: .5; cursor: not-allowed; }
.pc-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--ink);
  font: 600 14px/1 var(--font-body);
  cursor: pointer;
}
.pc-btn:hover { background: var(--panel-line); }
.pc-btn-danger { background: #b0543d; color: #fff8ee; }
.pc-btn-danger:hover { background: #9a4834; }

/* Files that published but couldn't be shown inline. Amber, beside the
   success — a downgrade the publisher must not discover on their own site. */
.publish-notices {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 6px;
}

.publish-notices li {
  color: #9a6a1f;
  font-size: 0.88rem;
}

.pub-preview-order { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
