/* ============================================================
   Desk-Ops launch site — shared styles
   Derived from brand/design-system/tokens.css (single source of
   truth). Light-only, stone/coral, Inter + JetBrains Mono, no
   gradients, no blue. If the design canon changes, re-derive from
   tokens.css — do not fork the palette here.
   ============================================================ */

:root {
  color-scheme: light;

  /* Brand coral triad */
  --brand-coral:       #d97757;
  --brand-coral-light: #e8956f;
  --brand-coral-dark:  #c66646;

  /* Stone scale (warm neutral) */
  --stone-50:  #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  /* Semantic */
  --ok: #4d7c0f;
  --ok-on-dark: #a3e635;
  --coral-shadow: rgba(217, 119, 87, .5);
  --header-bg: rgba(250, 250, 249, .86);

  --font-body: Inter, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1120px;
  --section-pad: 78px;
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-pill: 999px;
}

/* ── Base ──────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0 }
html { color-scheme: light; scroll-behavior: smooth }
body {
  font-family: var(--font-body);
  color: var(--stone-700);
  background: var(--stone-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--stone-900); letter-spacing: -0.02em; line-height: 1.12 }
h1 { font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.5rem) }
h2 { font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.25rem) }
h3 { font-weight: 600; font-size: 1.3rem }
h4 { font-weight: 600; font-size: 1.05rem }
p { color: var(--stone-600) }
a { color: var(--brand-coral-dark) }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px }
section { padding: var(--section-pad) 0 }
.alt { background: #fff; border-top: 1px solid var(--stone-200); border-bottom: 1px solid var(--stone-200) }
.dark { background: var(--stone-900) }
.mono { font-family: var(--font-mono) }
.lead { font-size: 1.18rem; color: var(--stone-600); max-width: 690px }

/* ── Eyebrow ───────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--stone-500);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-coral) }

/* ── Header / nav ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone-200);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-top: 10px; padding-bottom: 10px }
.wordmark { font-weight: 800; font-size: 1.15rem; color: var(--stone-900); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap }
.wordmark .hy { color: var(--brand-coral) }
.nav-cta { font-size: .92rem }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 1rem; padding: 14px 26px;
  border-radius: var(--radius-btn); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: .18s;
  font-family: var(--font-body);
}
.btn:active { transform: translateY(1px) }
.btn-coral { background: var(--brand-coral); color: #fff; border-color: var(--brand-coral) }
.btn-coral:hover { background: var(--brand-coral-dark); border-color: var(--brand-coral-dark) }
.btn-ghost { background: transparent; color: var(--stone-700); border: 2px solid var(--stone-300) }
.btn-ghost:hover { border-color: var(--brand-coral); color: var(--brand-coral-dark) }
.btn-sm { padding: 10px 18px; font-size: .92rem }
.btn[disabled] { opacity: .6; cursor: not-allowed }
.cta-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center }
.cta-note { font-size: .86rem; color: var(--stone-500) }
.link-transitional { color: var(--brand-coral-dark); font-weight: 600; text-decoration: none; font-size: .95rem }
.link-transitional:hover { text-decoration: underline }

/* ── Hero (split: copy + blueprint panel) ─────────────────── */
.hero { padding: 64px 0 72px }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center }
.hero h1 { margin: 16px 0 20px }
.hero .sub { font-size: 1.22rem; color: var(--stone-600); max-width: 640px; margin-bottom: 18px }
.honesty {
  font-family: var(--font-mono); font-size: .82rem; line-height: 1.7;
  color: var(--stone-600); background: var(--stone-100);
  border: 1px solid var(--stone-200); border-left: 3px solid var(--brand-coral);
  border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 22px 0 26px; max-width: 620px;
}
.honesty b { color: var(--stone-900); font-weight: 600 }
.hero .cta-row { margin-top: 24px }

/* Blueprint-grid art panel (the house art — non-representational) */
.blueprint {
  min-height: 320px; border-radius: var(--radius-card);
  border: 1px solid var(--stone-200);
  background:
    repeating-linear-gradient(0deg,  var(--stone-200) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, var(--stone-200) 0 1px, transparent 1px 30px),
    var(--stone-100);
  position: relative;
}
.blueprint::after {
  content: ""; position: absolute; inset: 24px;
  border: 1px dashed var(--stone-300); border-radius: 8px;
}
.blueprint .glyph {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg);
  width: 46px; height: 46px; border-radius: 6px; background: var(--brand-coral);
  box-shadow: 0 12px 30px -14px var(--coral-shadow);
}

/* ── Section heads ─────────────────────────────────────────── */
.sec-head { max-width: 730px; margin-bottom: 34px }
.sec-head h2 { margin: 12px 0 12px }

/* ── Card grid (value props) ───────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px }
.card {
  background: #fff; border: 1px solid var(--stone-200);
  border-radius: var(--radius-card); padding: 26px;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 10px }
.card p { font-size: .98rem }

/* ── Coral left-flag callout (stakes) ──────────────────────── */
.gapline {
  border: 1px solid var(--stone-200); border-left: 3px solid var(--brand-coral);
  background: #fff; border-radius: 0 12px 12px 0; padding: 22px 26px; max-width: 760px;
}
.gapline .k {
  font-family: var(--font-mono);
  font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-coral-dark);
}
.gapline h2 { margin: 8px 0 12px }
.gapline p { font-size: 1.05rem; color: var(--stone-700) }

/* ── Guide (empathy + authority) ───────────────────────────── */
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px }
.guide-block { border: 1px solid var(--stone-200); background: #fff; border-radius: var(--radius-card); padding: 26px }
.guide-block .k { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--stone-500); margin-bottom: 12px }

/* ── Plan (numbered steps) ─────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step }
.step { position: relative; padding-top: 8px }
.step .n {
  font-family: var(--font-mono); font-weight: 600; font-size: 1.1rem;
  color: #fff; background: var(--stone-900);
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px }
.step p { font-size: .96rem }

/* ── Roadmap-vision block (explicitly "not shipped") ───────── */
.roadmap {
  background: var(--stone-900); color: var(--stone-300);
  border-radius: var(--radius-card); border: 1px solid var(--stone-800);
  border-left: 3px solid var(--brand-coral);
  padding: 40px; max-width: 900px;
}
.roadmap .label {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand-coral-light);
  display: block; margin-bottom: 16px;
}
.roadmap h2 { color: #fff; margin-bottom: 16px }
.roadmap p { color: var(--stone-300); max-width: 700px }
.roadmap .pointer { margin-top: 18px; font-style: italic; color: var(--stone-400); font-size: .95rem }

/* ── Invite form ───────────────────────────────────────────── */
.form-panel {
  background: #fff; border: 1px solid var(--stone-200);
  border-radius: var(--radius-card); padding: 32px; max-width: 640px;
}
.form-panel h3 { margin-bottom: 6px }
.field { margin-bottom: 18px }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--stone-700); margin-bottom: 6px }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--stone-900);
  background: var(--stone-50); border: 1px solid var(--stone-300);
  border-radius: 10px; padding: 12px 14px; transition: border-color .15s;
}
.field textarea { min-height: 90px; resize: vertical }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-coral); box-shadow: 0 0 0 3px rgba(217,119,87,.15);
}
.field .opt { color: var(--stone-400); font-weight: 400 }
.field-error { color: var(--brand-coral-dark); font-size: .82rem; margin-top: 5px; display: none }
.field.invalid input, .field.invalid select { border-color: var(--brand-coral-dark) }
.field.invalid .field-error { display: block }
.consent { font-size: .84rem; color: var(--stone-500); margin-top: 14px }
.consent a { color: var(--brand-coral-dark) }
.form-error-banner { display: none; background: #fff; border: 1px solid var(--brand-coral); border-left: 3px solid var(--brand-coral); border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; color: var(--stone-700); font-size: .92rem }

/* Inline success state */
.form-success {
  display: none; background: var(--stone-900); color: var(--stone-300);
  border-radius: var(--radius-card); border-left: 3px solid var(--ok-on-dark);
  padding: 32px; max-width: 640px;
}
.form-success h3 { color: #fff; margin-bottom: 12px }
.form-success .check { color: var(--ok-on-dark); font-family: var(--font-mono); font-weight: 600; margin-right: 8px }
.form-success p { color: var(--stone-300) }
.form-success a { color: var(--brand-coral-light); font-weight: 600 }

/* ── Booking embed (GHL widget) ────────────────────────────── */
.booking-embed {
  background: #fff; border: 1px solid var(--stone-200);
  border-radius: var(--radius-card); padding: 12px; max-width: 760px;
  overflow: hidden;
}
.booking-embed iframe { display: block; width: 100%; min-height: 720px; border: 0 }

/* ── Trust strip + footer ──────────────────────────────────── */
.trust-strip {
  font-family: var(--font-mono); font-size: .82rem; color: var(--stone-500);
  display: flex; flex-wrap: wrap; gap: 8px 18px; padding-bottom: 8px;
}
.trust-strip span::before { content: "· "; color: var(--brand-coral) }
.trust-strip span:first-child::before { content: "" }
.site-footer { background: var(--stone-900); color: var(--stone-400); padding: 48px 0 40px }
.site-footer .trust-strip { color: var(--stone-500); margin-bottom: 22px }
.site-footer .disclaimer { font-size: .86rem; color: var(--stone-400); max-width: 760px; margin-bottom: 14px; line-height: 1.7 }
.site-footer .disclaimer b { color: var(--stone-200); font-weight: 600 }
.site-footer .entity { font-size: .86rem; color: var(--stone-500); margin-bottom: 18px }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--stone-800); padding-top: 20px }
.site-footer nav a { color: var(--stone-400); text-decoration: none; font-size: .88rem }
.site-footer nav a:hover { color: var(--brand-coral-light) }

/* ── Legal pages ───────────────────────────────────────────── */
.legal-main { padding: 56px 0 72px }
.legal-card {
  background: #fff; border: 1px solid var(--stone-200);
  border-radius: var(--radius-card); padding: 40px; max-width: 860px; margin: 0 auto;
}
.legal-card h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px }
.legal-card .updated { font-family: var(--font-mono); font-size: .82rem; color: var(--stone-500); margin-bottom: 28px }
.legal-card h2 { font-size: 1.35rem; margin: 32px 0 12px; padding-top: 8px }
.legal-card h3 { font-size: 1.08rem; margin: 20px 0 8px }
.legal-card p { margin-bottom: 14px; max-width: 70ch }
.legal-card ul { margin: 0 0 16px 22px }
.legal-card li { margin-bottom: 7px; color: var(--stone-600) }
.legal-card table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .94rem }
.legal-card th, .legal-card td { text-align: left; padding: 10px 12px; border: 1px solid var(--stone-200) }
.legal-card th { background: var(--stone-50); font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--stone-700) }
.legal-card .citrix-note { border: 1px solid var(--stone-200); border-left: 3px solid var(--brand-coral); border-radius: 0 10px 10px 0; background: var(--stone-50); padding: 18px 22px; margin: 18px 0 }
.legal-card .citrix-note b { color: var(--stone-900) }

/* ── Consent banner (M5 — stone/coral, no gradient, no blue) ── */
#consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 720px; margin: 0 auto;
  background: var(--stone-900); color: var(--stone-300);
  border: 1px solid var(--stone-800); border-left: 3px solid var(--brand-coral);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 44px -20px rgba(28, 25, 23, .55);
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px 24px;
  flex-wrap: wrap;
}
#consent-banner .consent-copy { color: var(--stone-300); font-size: .9rem; margin: 0; flex: 1 1 320px; line-height: 1.55 }
#consent-banner .consent-copy a { color: var(--brand-coral-light); font-weight: 600 }
#consent-banner .consent-actions { display: flex; gap: 10px; flex: 0 0 auto }
#consent-banner .btn-ghost { color: var(--stone-300); border-color: var(--stone-600) }
#consent-banner .btn-ghost:hover { border-color: var(--brand-coral); color: var(--brand-coral-light) }

/* ── Responsive (single breakpoint, per DESIGN.md) ─────────── */
@media (max-width: 820px) {
  #consent-banner { flex-direction: column; align-items: stretch; text-align: left }
  #consent-banner .consent-actions { justify-content: flex-end }
  section { padding: 56px 0 }
  .nav-cta { font-size: .82rem; padding: 9px 14px }
  .hero { padding: 40px 0 48px }
  .hero-grid { grid-template-columns: 1fr; gap: 32px }
  .hero-grid .blueprint { min-height: 200px; order: -1 }
  .cards, .steps, .guide-grid { grid-template-columns: 1fr }
  .roadmap, .form-panel, .form-success { padding: 26px }
  .legal-card { padding: 26px }
  .legal-card table { display: block; overflow-x: auto }
}
