/* CRATON subpages + signup — the v6 system applied to the existing page
   markup (home carries styles-v6.css; this file skins every other page with
   the same tokens so the site reads as one hand). Two radii, one solid and
   one line button, photography lifted on dark grounds, mono only for code
   and labels. System fonts, nothing loaded from anywhere. */

:root {
  --night: #0a141d;
  --night-2: #101f2b;
  --day: #f2f4f6;
  --paper: #ffffff;
  --ink: #0e1b26;
  --ink-2: #3d5261;
  --muted: #5b6e7c;
  --snow: #eef4f8;
  --mist: #9db0bd;
  --hair: #e2e8ec;
  --hair-dark: rgba(255, 255, 255, 0.1);
  --sky: #d5eaf3;
  --sky-hover: #e6f3f9;
  --glow: #7fd4f2;
  --accent: #0b1c28;
  --accent-hover: #14303f;
  --panel: #f2f4f6;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --body: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Helvetica,
          Arial, sans-serif;
  --r: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15.5px/1.6 var(--body);
}
a { color: inherit; }

.doc { max-width: 880px; margin: 0 auto; padding: 0 28px; }
.wide { max-width: 1220px; }

/* ---------- nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--night); color: var(--snow);
  border-bottom: 1px solid var(--hair-dark);
}
.topbar-inner { display: flex; align-items: center; gap: 30px;
                padding-top: 15px; padding-bottom: 15px; }
.wordmark { font-family: var(--mono); font-weight: 700; font-size: 15px;
            letter-spacing: 0.24em; text-decoration: none; }
.topnav { display: flex; gap: 24px; flex-wrap: wrap; }
.topnav a { font-size: 14.5px; color: var(--mist); text-decoration: none; }
.topnav a:hover { color: var(--snow); }
.menu { position: relative; display: inline-block; }
.menu > a::after { content: " \25BE"; font-size: 10px; }
.menu .drop {
  display: none; position: absolute; top: 100%; left: -16px; z-index: 20;
  min-width: 230px; padding: 10px 0;
  background: var(--night-2); border: 1px solid var(--hair-dark);
  border-radius: var(--r);
}
.menu:hover .drop, .menu:focus-within .drop { display: block; }
.menu .drop a { display: block; padding: 9px 20px; font-size: 14px;
                color: var(--snow); text-decoration: none; }
.menu .drop a:hover { background: rgba(255, 255, 255, 0.06); }

/* ---------- buttons ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-size: 14.5px; font-weight: 550;
  padding: 12px 24px; border-radius: 999px;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
}
.cta:hover { background: var(--accent-hover); }
.cta.big { font-size: 15px; padding: 13px 26px; }
.cta.small { font-size: 13px; padding: 9px 18px; }
.topbar .cta, .band-dark .cta, .media-hero .cta {
  background: var(--sky); color: var(--night);
}
.topbar .cta:hover, .band-dark .cta:hover, .media-hero .cta:hover {
  background: var(--sky-hover);
}
.cta.ghost { background: transparent; color: inherit;
             border-color: var(--hair-dark); }
.cta.ghost:hover { background: transparent; border-color: var(--mist); }
.cta.ghost.light, .band-light .cta.ghost { border-color: var(--hair); color: var(--ink); }
.b-arr, .arr { font-weight: 400; }
.hero-ctas { margin: 0; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-ctas .quiet { font-size: 14px; color: var(--mist); text-decoration: none; }

/* ---------- bands + page heroes ---------- */
.band-dark { background: var(--night); color: var(--snow); }
.band-light { background: var(--day); color: var(--ink); }
section { padding: 120px 0 110px; }
section.minor { padding: 84px 0 80px; }

.page-hero { padding: 110px 0 100px; }
.page-hero h1 {
  margin: 8px 0 20px;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 300; line-height: 1.04; letter-spacing: -0.025em;
  text-wrap: balance;
}
.subline { margin: 0 0 30px; font-size: clamp(16px, 1.8vw, 19px);
           color: var(--mist); }
.band-light .subline { color: var(--ink-2); }

.media-hero { position: relative; overflow: hidden; }
.media-hero .backdrop { position: absolute; inset: 0; z-index: 0; }
.media-hero .backdrop img, .media-hero .backdrop video {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.62; display: block;
}
.media-hero .backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 29, 0.72) 0%,
    rgba(10, 20, 29, 0.45) 55%, rgba(10, 20, 29, 0.94) 100%);
}
.media-hero > .doc { position: relative; z-index: 1; }

h2 { margin: 0 0 18px; font-size: clamp(30px, 3.8vw, 44px);
     font-weight: 350; line-height: 1.1; letter-spacing: -0.02em;
     text-wrap: balance; }
h3.subhead { margin: 72px 0 16px; font-size: clamp(22px, 2.6vw, 30px);
             font-weight: 400; }

.kicker { margin: 0 0 12px; font-family: var(--mono); font-size: 11.5px;
          letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.band-dark .kicker, .media-hero .kicker { color: var(--mist); }
.lede, .pricing-lead, .object-copy {
  margin: 0; font-size: 16.5px; line-height: 1.65;
  color: var(--ink-2); max-width: 62ch;
}
.band-dark .object-copy, .media-hero .object-copy,
.band-dark .lede { color: var(--mist); }
.chips { margin: 18px 0 0; display: flex; gap: 24px; flex-wrap: wrap; }
.chips span { font-size: 14px; color: var(--mist); white-space: nowrap; }
.chips span::before { content: "\2713\00a0\00a0"; color: var(--glow); }
.band-light .chips span { color: var(--ink-2); }
.band-light .chips span::before { color: var(--accent); }
.chips.left { justify-content: flex-start; }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 22px; margin-top: 44px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--hair);
  border-radius: var(--r); padding: 26px 28px 22px;
  display: flex; flex-direction: column;
}
.band-dark .card, .media-hero .card {
  background: var(--night-2); border-color: var(--hair-dark);
}
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 550; }
.card p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.band-dark .card p { color: var(--mist); }
.card .card-link { margin-top: auto; margin-bottom: 0; }
.card-link a { font-size: 13.5px; font-weight: 550; text-decoration: none; }
.card-link a:hover { text-decoration: underline; }
h3.proof { margin: 0 0 8px; font-size: 16px; font-weight: 550; }
.proof-copy { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- steps + splits ---------- */
.step-list { counter-reset: step; list-style: none; margin: 40px 0 0; padding: 0; }
.step-list li { counter-increment: step; position: relative;
                padding: 0 0 26px 62px; max-width: 62ch; }
.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-family: var(--mono); font-size: 13px; color: var(--glow);
}
.band-light .step-list li::before { color: var(--accent); }
.step-list h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 550; }
.step-list p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.band-dark .step-list p { color: var(--mist); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }

/* ---------- artwork + captions ---------- */
.art { margin: 40px 0 0; }
.art img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.art.light img { border: 1px solid var(--hair); background: var(--paper); padding: 16px; }
.art-caption, .photo-caption {
  margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6;
}
.band-dark .art-caption, .media-hero .photo-caption,
.band-dark .photo-caption { color: var(--mist); opacity: 0.8; }
.provenance { margin: 16px 0 0; font-size: 13px; color: var(--muted);
              line-height: 1.65; max-width: 68ch; }
.band-dark .provenance { color: var(--mist); }

/* ---------- developers demo panels ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
        gap: 20px; align-items: stretch; margin-top: 44px; }
.panel { background: var(--night-2); border: 1px solid var(--hair-dark);
         border-radius: var(--r); padding: 18px 22px; overflow-x: auto; }
pre { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.7;
      color: var(--mist); }
.panel-label { margin: 0 0 10px; font-family: var(--mono); font-size: 10.5px;
               letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); }
.demo .panel { min-height: 280px; }
.demo pre { min-height: 200px; color: var(--snow); white-space: pre-wrap;
            overflow-wrap: break-word; }
#demo-request::after { content: "\258B"; color: var(--glow);
                       animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
code { font-family: var(--mono); font-size: 0.92em; }

/* ---------- pricing page ---------- */
.rates-wrap { background: var(--paper); border: 1px solid var(--hair);
              border-radius: var(--r); padding: 14px 28px; }
.band-dark .rates-wrap { background: var(--night-2); border-color: var(--hair-dark); }
.rates { border-collapse: collapse; width: 100%; }
.rates td { padding: 14px 18px 14px 0; font-size: 14.5px;
            border-top: 1px solid var(--hair); color: var(--ink-2); }
.rates tr:first-child td { border-top: 0; }
.rates td.price { text-align: right; white-space: nowrap;
                  font-weight: 550; color: var(--ink); }
.rates .teams td { color: var(--muted); }
.rate-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); max-width: 66ch; }
.test-badge { font-size: 10px; letter-spacing: 0.08em; color: var(--accent);
              border: 1px solid var(--hair); border-radius: 999px; padding: 4px 10px; }
.term-label.light { display: flex; justify-content: space-between;
                    align-items: center; gap: 10px; margin: 0 0 12px;
                    font-family: var(--mono); font-size: 10.5px;
                    letter-spacing: 0.12em; text-transform: uppercase;
                    color: var(--muted); }
.estimator { background: var(--paper); border: 1px solid var(--hair);
             border-radius: var(--r); padding: 30px 32px; margin-top: 40px;
             max-width: 720px; }
.estimator .row { margin: 0 0 24px; }
.estimator label { display: flex; justify-content: space-between; gap: 12px;
                   font-family: var(--mono); font-size: 12.5px;
                   color: var(--ink-2); margin-bottom: 10px; }
.estimator input[type="range"] { width: 100%; accent-color: var(--accent); }
.estimator .total { display: flex; justify-content: space-between;
                    align-items: baseline; gap: 12px; flex-wrap: wrap;
                    border-top: 1px solid var(--hair); padding-top: 20px; }
.estimator .total .amount { font-size: 38px; font-weight: 300;
                            letter-spacing: -0.02em; }
.estimator .fine { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.pricing-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 48px; align-items: center; margin-top: 36px; }

/* ---------- signup page ---------- */
.signup-main { max-width: 640px; margin: 0 auto; padding: 0 28px 72px; }
.signup-main h1 { margin: 56px 0 20px; font-size: clamp(40px, 5.5vw, 64px);
                  font-weight: 300; letter-spacing: -0.025em; line-height: 1.05; }
.lead { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); max-width: 58ch; }
.field { margin: 30px 0 0; }
.field label { display: block; font-family: var(--mono); font-size: 11px;
               letter-spacing: 0.1em; text-transform: uppercase;
               color: var(--muted); margin-bottom: 8px; }
.field input { width: 100%; padding: 12px 14px; font-family: var(--mono);
               font-size: 14px; color: var(--ink); background: var(--paper);
               border: 1px solid var(--hair); border-radius: 12px; }
.field input:focus { outline: 2px solid var(--glow); outline-offset: -1px; }
.consent { margin: 20px 0 0; font-size: 13.5px; color: var(--muted); max-width: 58ch; }
.actions { margin: 22px 0 0; }
.actions button { font: 550 15px/1 var(--body); color: #fff;
                  background: var(--accent); border: 1px solid var(--accent);
                  padding: 14px 28px; border-radius: 999px; cursor: pointer; }
.actions button:hover { background: var(--accent-hover); }
.actions button[disabled] { opacity: 0.6; cursor: default; }
.envnote { margin: 30px 0 0; font-size: 12.5px; line-height: 1.65;
           color: var(--muted); max-width: 66ch; }
.result, .problem { display: none; margin-top: 34px; }
.result .panel, .problem .panel { padding: 20px 22px; }
.result .panel a, .problem .panel a { color: var(--snow); }
.kv { margin: 0 0 14px; font-family: var(--mono); font-size: 12.5px;
      color: var(--mist); white-space: pre-line; }
.secretbox { display: flex; gap: 8px; align-items: stretch; }
.secretbox pre { flex: 1; padding: 12px 14px; background: var(--night);
                 color: var(--snow); border: 1px solid var(--hair-dark);
                 border-radius: 12px; overflow-x: auto; white-space: pre; }
.secretbox button { font: 550 12.5px/1 var(--body); padding: 0 18px;
                    background: var(--sky); color: var(--night);
                    border: 1px solid var(--sky); border-radius: 999px;
                    cursor: pointer; }
.secretbox button:hover { background: var(--sky-hover); }
.oncewarn { margin: 14px 0 0; font-size: 13px; font-weight: 550;
            color: #ffc487; max-width: 58ch; }
.next { margin-top: 30px; }
.next h2 { font-size: 22px; margin-bottom: 12px; }
.next ol { margin: 0; padding-left: 20px; font-size: 14.5px;
           line-height: 1.75; color: var(--ink-2); }
.problem pre { white-space: pre-wrap; overflow-wrap: break-word; }
.signup-foot { border-top: 1px solid var(--hair); margin-top: 52px;
               padding: 18px 0 0; font-size: 12px; color: var(--muted);
               line-height: 1.7; }

/* ---------- shared closes + misc ---------- */
.shared-close { margin-top: 40px; display: flex; align-items: center;
                gap: 18px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }
.segments { margin: 0 0 10px; color: var(--ink-2); max-width: 68ch; }
.band-dark .segments { color: var(--mist); }
.clause { margin: 0 0 16px; padding-left: 20px;
          border-left: 2px solid var(--glow);
          font-size: 16px; line-height: 1.65; max-width: 66ch; }
.tablewrap { overflow-x: auto; }
.quiet-dark { font-size: 14px; color: var(--ink-2); text-decoration: none; }

/* verbs + registry tables (product pages) */
table { border-collapse: collapse; width: 100%; }
th { font-family: var(--mono); font-size: 10.5px; font-weight: 500;
     letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted);
     text-align: left; padding: 10px 18px 10px 0;
     border-bottom: 1px solid var(--hair); }
td { padding: 14px 18px 14px 0; border-top: 1px solid var(--hair);
     vertical-align: top; }
tr:first-child td { border-top: none; }
.verbs td.v { font-family: var(--mono); font-size: 14px; font-weight: 600;
              width: 150px; white-space: nowrap; }
.verbs td.d { font-size: 15px; color: var(--ink-2); }
.counts { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.registry-wrap { background: var(--paper); border: 1px solid var(--hair);
                 border-radius: var(--r); padding: 8px 24px; overflow-x: auto; }
.registry td, .registry th { white-space: nowrap; padding-right: 16px; }
.registry td { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.registry td small { display: block; font-size: 11px; color: var(--muted);
                     font-family: var(--body); }
.registry-copy { margin: 24px 0 14px; font-size: 16.5px; max-width: 60ch; }
details.fine { margin-top: 18px; }
details.fine summary { cursor: pointer; font-size: 13px; color: var(--muted); }
details.fine .provenance { font-family: var(--mono); font-size: 11.5px; }
.xrefs { margin: 22px 0 0; font-size: 14px; }
.xrefs a { margin-right: 26px; text-decoration: none; font-weight: 550; }
a.xref .lbl { text-decoration: underline; text-underline-offset: 2px; }
a.xref.pending { color: var(--muted); cursor: default; font-weight: 400; }

/* ---------- footer (subpage markup) ---------- */
footer { background: var(--night); color: var(--mist); padding: 72px 0 48px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
             gap: 40px; margin-bottom: 44px; }
.foot-col h4 { margin: 0 0 16px; font-family: var(--mono); font-size: 11px;
               font-weight: 500; letter-spacing: 0.12em;
               text-transform: uppercase; color: var(--mist); }
.foot-col a { display: block; padding: 4px 0; font-size: 14.5px;
              color: var(--snow); opacity: 0.85; text-decoration: none; }
.foot-col a:hover { opacity: 1; }
.foot-sentence { margin: 0 0 16px; font-size: 13px; max-width: 74ch; }
.foot-line { display: flex; justify-content: space-between; gap: 16px;
             flex-wrap: wrap; font-family: var(--mono); font-size: 11px;
             letter-spacing: 0.08em; border-top: 1px solid var(--hair-dark);
             padding-top: 18px; }

/* ---------- narrow ---------- */
@media (max-width: 900px) {
  section { padding: 72px 0 66px; }
  .card-grid.three, .card-grid.four, .split, .pricing-cols, .demo {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topnav { gap: 14px; }
}

/* peril photo figures (object page) */
.photo { margin: 40px 0 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.photo figcaption { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- standalone code blocks (the for-agents page) ---------- */
.code-block { background: var(--night); border-radius: 18px;
  padding: 16px 20px; margin: 14px 0 18px; overflow-x: auto; }
.code-block pre { color: var(--snow); white-space: pre; margin: 0;
  font: 500 13px/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
