/* ============================================================
   marketing.css — the product's own page, not a hotel's.

   The admin already settled the metaphor: the tool is a desk, the site is
   paper resting on it. This page is that photograph. Graphite everywhere,
   brass for hardware, and warm paper ONLY where a customer's site appears.
   The moment cream becomes page chrome the picture collapses, so it never
   does — .paper is always an object lying on the desk, never the desk.

   Deliberately shares no selector with site.css and is never loaded on the
   same page; site.css owns .btn/.shell/.band and would fight for them.
   ============================================================ */

:root {
  /* --- The desk --------------------------------------------- */
  --desk:        #191d21;  /* ground */
  --rig:         #22262b;  /* panels laid on it — matches admin.css */
  --rig-raised:  #2b3037;
  --rig-sunk:    #14181b;  /* wells: inputs, code, anything recessed */
  --line:        #333a42;
  --line-bright: #47505a;

  --ink:         #e9eaec;
  --ink-soft:    #98a0a9;
  --ink-faint:   #868e97;  /* 5:1 on the desk; the notes are small */

  --brass:       #be9b57;  /* the only accent. Hardware, not decoration. */
  --brass-dim:   #8d7440;
  --go:          #58a97b;
  --stop:        #cf6a5c;

  /* --- The paper (a customer's site, seen inside the tool) --- */
  --paper:       #f7f2e9;
  --paper-ink:   #2b2621;
  --paper-soft:  #6a6053;
  --claret:      #6e2637;

  /* --- Type -------------------------------------------------- */
  --sans: Archivo, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --t--2: .75rem;
  --t--1: .8125rem;
  --t-0:  clamp(1rem, .97rem + .15vw, 1.0625rem);
  --t-1:  clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --t-2:  clamp(1.5rem, 1.3rem + .95vw, 2.1rem);
  --t-3:  clamp(2rem, 1.6rem + 1.9vw, 3.1rem);

  --gut:   clamp(1.25rem, 5vw, 3.5rem);
  --shell: 1180px;
  --r:     5px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* The root layout owns <body> and sets no class on it, so the page scopes
   itself by presence — the same trick admin.css uses. */
body:has(.mk) {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.mk {
  font-family: var(--sans);
  font-size: var(--t-0);
  line-height: 1.6;
}

.mk h1, .mk h2, .mk h3 {
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.mk h1 { font-size: var(--t-3); }
.mk h2 { font-size: var(--t-2); }
.mk h3 { font-size: var(--t-1); letter-spacing: -.015em; }
.mk p  { margin: 0; max-width: 62ch; }

.mk a { color: inherit; }
.mk :focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.lede  { color: var(--ink-soft); font-size: var(--t-1); line-height: 1.55; }
.note  { color: var(--ink-faint); font-size: var(--t--1); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--brass); color: #1a1206; padding: .6rem 1rem; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- masthead */

.mast {
  position: sticky; top: 0; z-index: 10;
  background: rgba(25, 29, 33, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mast__in { display: flex; align-items: center; gap: 1rem; height: 60px; }
.mast nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.mast nav a { color: var(--ink-soft); text-decoration: none; font-size: var(--t--1); }
.mast nav a:hover { color: var(--ink); }

/* Placeholder wordmark. The square is a luggage tag until there's a real one;
   .mark__flag exists so nobody ships this thinking the name was decided. */
.mark { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.mark__tag {
  width: 22px; height: 22px; flex: none;
  border: 1px solid var(--brass); border-radius: 2px;
  background: linear-gradient(150deg, var(--brass-dim), transparent 65%);
}
.mark__name { font-weight: 600; letter-spacing: .01em; }
.mark__flag {
  font-family: var(--mono); font-size: 10px; color: var(--ink-faint);
  border: 1px dashed var(--line-bright); border-radius: 2px; padding: 1px 5px;
}

/* ---------------------------------------------------------------- rhythm */

.sec { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
/* A page this tall goes flat at one value. Alternate sections sit in a
   shallow well, the way a desk is lit unevenly. */
.sec--well { background: #15181c; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec__head { display: grid; gap: .9rem; margin-bottom: 2.75rem; }

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

.hero { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 8vw, 5.5rem); }
.hero__kicker { color: var(--brass); font-size: var(--t--1); margin-bottom: 1.1rem; }
.hero h1 { max-width: 16ch; }
.hero__sub { margin-top: 1.25rem; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: var(--t--1); font-weight: 600;
  padding: .7rem 1.3rem; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn--brass { background: var(--brass); color: #1a1206; }
.btn--brass:hover { background: #cdaa63; }
.btn--quiet { background: transparent; border-color: var(--line-bright); color: var(--ink); }
.btn--quiet:hover { border-color: var(--ink-faint); background: var(--rig-raised); }
.btn[disabled] { cursor: default; }
.rig .btn[disabled] { opacity: 1; }

/* ---------------------------------------------------------------- the rig
   The editor, reproduced. Same proportions as the real Studio: a bar, an
   input, and the page underneath. */

.rig {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  background: var(--rig);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
}
.rig__bar {
  display: flex; align-items: center; gap: .75rem;
  padding: 0 .9rem; height: 44px;
  background: var(--rig-sunk); border-bottom: 1px solid var(--line);
  font-size: var(--t--1);
}
.rig__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-bright); flex: none; }
.rig__host { font-family: var(--mono); font-size: var(--t--2); color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rig__state { margin-left: auto; display: flex; align-items: center; gap: .45rem; color: var(--ink-soft); font-size: var(--t--2); }
.rig__state b { font-weight: 500; color: var(--ink); }
.rig__pip { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); }
.rig__pip--live { background: var(--go); }
.rig__pip--draft { background: var(--brass); }

.rig__ask { padding: 1rem; border-bottom: 1px solid var(--line); }
.ask {
  display: flex; align-items: stretch; gap: .6rem;
  background: var(--rig-sunk); border: 1px solid var(--line-bright); border-radius: var(--r);
  padding: .7rem .8rem;
}
.ask__text {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: var(--t--1); line-height: 1.5; color: var(--ink);
  display: flex; align-items: center; flex-wrap: wrap;
}
.ask__caret {
  display: inline-block; width: 7px; height: 1.05em; margin-left: 2px;
  background: var(--brass); vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ask__caret { animation: none; } }

/* The examples are the real transcript, so let people pick which one runs. */
.tries { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.tries button {
  font: inherit; font-size: var(--t--2); color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem .8rem; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.tries button:hover { color: var(--ink); border-color: var(--line-bright); }
.tries button[aria-pressed='true'] { color: var(--brass); border-color: var(--brass-dim); }

/* The reply. Not a chat bubble — a work order. */
.reply { display: grid; gap: .75rem; padding: 1rem; border-bottom: 1px solid var(--line); background: var(--rig-raised); }
.reply__line { display: flex; gap: .6rem; align-items: baseline; }
.reply__badge {
  flex: none; font-size: var(--t--2); font-weight: 600; padding: .1rem .5rem; border-radius: 3px;
  background: rgba(190, 155, 87, .16); color: var(--brass);
}
.reply__badge--stop { background: rgba(207, 106, 92, .16); color: var(--stop); }
.reply__badge--go { background: rgba(88, 169, 123, .16); color: var(--go); }
.reply p { font-size: var(--t--1); color: var(--ink); }

.patch { display: grid; gap: .35rem; }
.patch__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: baseline;
  font-family: var(--mono); font-size: var(--t--2);
  background: var(--rig-sunk); border-left: 2px solid var(--brass-dim);
  padding: .45rem .6rem;
}
.patch__path { color: var(--ink-soft); overflow-wrap: anywhere; }
.patch__was { color: var(--ink-faint); text-decoration: line-through; }
.patch__now { color: var(--go); }
.reply__act { display: flex; gap: .6rem; flex-wrap: wrap; }
.reply__act .btn { padding: .45rem 1rem; }

/* --- the paper: a customer's live page, inside the tool ------- */
.paper {
  background: var(--paper); color: var(--paper-ink);
  font-family: Archivo, sans-serif;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.paper__crumb { font-family: var(--mono); font-size: var(--t--2); color: var(--paper-soft); margin-bottom: 1rem; }
.paper__room { display: grid; gap: .5rem; max-width: 54ch; }
.paper__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.05; letter-spacing: -.01em;
}
.paper__spec { display: flex; flex-wrap: wrap; gap: .9rem; font-size: var(--t--2); color: var(--paper-soft); }
.paper__body { font-size: var(--t--1); line-height: 1.65; color: #4a4239; }
.paper__rate { font-size: var(--t--1); color: var(--claret); font-weight: 600; }

/* What changed, marked on the page itself. The wash is how the real diff
   view reads: the field lights up where it sits, not in a side panel. */
.lit { background: rgba(190, 155, 87, .32); box-shadow: 0 0 0 2px rgba(190, 155, 87, .32); border-radius: 2px; }
.was { color: var(--paper-soft); text-decoration: line-through; margin-right: .4rem; font-weight: 400; }
.ins { animation: settle .5s ease-out both; }
@keyframes settle { from { background: rgba(190, 155, 87, .55); } to { background: rgba(190, 155, 87, .32); } }

/* ---------------------------------------------------------------- split figure */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.split__panel { background: var(--rig); padding: 1rem; border-right: 1px solid var(--line); }
.split__label { font-size: var(--t--2); color: var(--ink-faint); margin-bottom: .75rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field span { font-size: var(--t--2); color: var(--ink-soft); }
.field__box {
  background: var(--rig-sunk); border: 1px solid var(--line-bright); border-radius: var(--r);
  padding: .5rem .6rem; font-family: var(--mono); font-size: var(--t--2);
}
.field__box--on { border-color: var(--brass); }
.field__path { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split__panel { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- ledger
   What it does and what it refuses to do, side by side. The refusals are
   the more persuasive column, so they are not hidden in a footnote. */

.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.ledger h3 { margin-bottom: 1rem; }
.ledger ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ledger li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .6rem; font-size: var(--t--1); align-items: baseline; }
.ledger li i { font-style: normal; color: var(--brass); }
.ledger--no li i { color: var(--ink-faint); }
.ledger--no li { color: var(--ink-soft); }
.ledger li b { font-weight: 500; color: var(--ink); display: block; }
.ledger li span { color: var(--ink-faint); font-size: var(--t--2); }

/* ---------------------------------------------------------------- facts
   The same job .guards does, without a second run of identical boxes on one
   page. Terms hang off a brass tick; the eye can read the terms alone. */

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1.75rem 3rem; }
.facts > div { display: grid; gap: .3rem; padding-left: 1.15rem; border-left: 1px solid var(--line); position: relative; }
.facts > div::before { content: ''; position: absolute; left: -1px; top: .6em; width: 9px; height: 1px; background: var(--brass); }
.facts b { font-weight: 500; font-size: var(--t--1); }
.facts p { font-size: var(--t--1); color: var(--ink-soft); }

/* ---------------------------------------------------------------- guards */

.guards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.guard { background: var(--rig); padding: 1.4rem; display: grid; gap: .5rem; align-content: start; }
.guard b { font-weight: 500; font-size: var(--t--1); }
.guard p { font-size: var(--t--1); color: var(--ink-soft); }

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

.book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
@media (max-width: 820px) { .book { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; }
.form label > span { font-size: var(--t--2); color: var(--ink-soft); }
.form input, .form select, .form textarea {
  font: inherit; font-size: var(--t--1); color: var(--ink);
  background: var(--rig-sunk); border: 1px solid var(--line-bright); border-radius: var(--r);
  padding: .6rem .7rem; width: 100%;
}
.form textarea { resize: vertical; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form .pair { grid-template-columns: 1fr; } }
.form__err { color: var(--stop); font-size: var(--t--1); }
.form__done { background: var(--rig); border: 1px solid var(--brass-dim); border-radius: 6px; padding: 1.5rem; display: grid; gap: .6rem; }

/* ---------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); padding-block: 2.5rem; color: var(--ink-faint); font-size: var(--t--1); }
.foot__in { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ink); }

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

   A phone can't hold the masthead's three links, the editor's status line and
   the ask button on one row. Everything here is a thing being dropped or
   stacked, not a second design. */

@media (max-width: 680px) {
  .mast nav a:not(:last-child) { display: none; }
  .mark__flag { display: none; }
}
@media (max-width: 560px) {
  .ask { flex-direction: column; align-items: stretch; gap: .7rem; }
  .rig__host, .rig__dot { display: none; }
  .patch__row { grid-template-columns: 1fr; gap: .15rem; }
  .hero h1 { max-width: none; }
}
