/* SendCaravan public site layer (R1a item 6). Loaded only on public pages, after sc.css (src/ui/kit.js sitePage).
   Layout ideas PORTED from ClickCaravan public/site.css (a95e14d: skip link, hero band, section heads, cards, frames)
   with the SendCaravan brand: cream page, navy type, rust actions, gold accents. Home follows Jason's mockup v1. */
.site { --accent-text: #152742; } /* small text is navy (caravan-ecosystem SPEC); rust only for large text and buttons */
@media (prefers-color-scheme: dark) { .site { --accent-text: #e48a64; } }
.site main a:not(.btn), .site .more { color: var(--accent-text); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--bg); padding: .6em 1em; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site .eyebrow { color: var(--accent-text); }
.site h1 { font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.site h2 { font-weight: 800; letter-spacing: -.015em; }
.btn.big { min-height: 50px; padding: .8em 1.5em; font-size: 1rem; }
.btn.primary { border-radius: 10px; }
.site .btn { border-radius: 10px; }
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Header: logo, five links, Sign in + Request access. Below 1100 px the links fold into a menu; the CTA stays visible. */
.site-top .row { flex-wrap: nowrap; gap: 1.25rem; }
.site-top .brand { flex: none; }
.logo.on-dark .wm-a { color: #fff; }
.mock-side .logo { font-size: .95rem; margin-bottom: 1rem; }
.top-cta { display: none; }
@media (max-width: 1100px) { .top-cta { display: inline-flex; margin-left: auto; } .site-menu .site-cta .btn { display: none; } .menu-btn { margin-left: .5rem !important; } }
@media (max-width: 480px) {
  .site-top .row { gap: .5rem; }
  .site-top .logo { font-size: 1.15rem; }
  .site .top-cta { padding: .35em .75em; font-size: .85rem; min-height: 44px; }
  .menu-btn { padding: .45rem .55rem; } .menu-btn span { display: none; }
}
.menu-cb { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.menu-btn { display: none; align-items: center; gap: .4rem; margin-left: auto; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-weight: 600; min-height: 42px; color: var(--ink); }
.menu-btn .nav-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.site-menu { display: flex; align-items: center; gap: 1.25rem; flex: 1; min-width: 0; }
.site-nav { flex-wrap: nowrap; gap: 1.1rem; justify-content: center; }
.site-nav a { white-space: nowrap; font-weight: 500; color: var(--ink); }
.site-cta { flex-wrap: nowrap; }
.site-cta a:not(.btn) { color: var(--ink); font-weight: 500; }
@media (max-width: 1100px) {
  .site-top .row { flex-wrap: wrap; }
  .menu-btn { display: inline-flex; }
  .site-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: .25rem; padding: .5rem 0 1rem; }
  .menu-cb:checked ~ .site-top .site-menu { display: flex; }
  .site-nav { flex-direction: column; gap: 0; order: 0; flex-basis: auto; font-size: 1rem; }
  .site-nav a { padding: .7rem .2rem; border-bottom: 1px solid var(--line); }
  .site-cta { justify-content: space-between; padding-top: .8rem; }
  .site-cta a:not(.btn) { display: inline; }
}

/* Hero */
.sc-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line);
  background: radial-gradient(50rem 24rem at 95% -10%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%), var(--bg); }
.sc-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1040px) { .sc-hero-grid { grid-template-columns: 1fr 1.05fr; } }
.sc-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; margin-bottom: .4em; }
.sc-hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); }
.first-party { margin-top: 1.8rem; }
.first-party p { margin: 0 0 .5rem; }
.first-party ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.first-party li { font-weight: 700; color: var(--muted); letter-spacing: .01em; font-size: 1.05rem; }
.first-party.big li { font-size: 1.25rem; color: var(--ink-2); }

/* Product mock (an illustration, labeled as such) */
.mock { position: relative; margin: 0; padding: 0 0 4.5rem 0; min-width: 0; }
.mock-app { display: grid; grid-template-columns: 150px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(21, 41, 67, .06), 0 24px 60px rgba(21, 41, 67, .16); font-size: .82rem; }
.mock-side { background: #152943; color: #e9e4d8; padding: .9rem .7rem; }
.mock-side img { width: 120px; height: auto; display: block; margin-bottom: 1rem; }
.mock-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.mock-side li { padding: .35rem .55rem; border-radius: 7px; color: #c8cfda; }
.mock-side li.on { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; }
.mock-main { padding: .9rem; display: grid; gap: .7rem; min-width: 0; }
.mock-top { display: flex; justify-content: space-between; align-items: center; }
.mock-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; padding: .1rem .4rem; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.mock-tiles div, .mock-panel { border: 1px solid var(--line); border-radius: 9px; padding: .55rem .6rem; background: var(--bg); min-width: 0; }
.mock-tiles span, .mock-panel span { display: block; color: var(--muted); font-size: .72rem; }
.mock-tiles strong { font-size: .98rem; color: var(--ink); }
.mock-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: .5rem; }
.mock-panel small { color: var(--muted); font-size: .7rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin: .35rem 0; }
.bars i { flex: 1; background: var(--gold); border-radius: 3px 3px 0 0; }
.bars i:last-child { background: var(--accent); }
.bars .b200 { height: 8%; } .bars .b500 { height: 14%; } .bars .b1000 { height: 26%; } .bars .b2000 { height: 48%; } .bars .b5000 { height: 100%; }
.tenants { display: flex; gap: 6px; margin: .45rem 0; }
.tenants b { flex: 1; height: 44px; border: 1.5px solid var(--line); border-radius: 6px; background: linear-gradient(var(--bg) 55%, color-mix(in srgb, var(--accent) 80%, transparent) 55% 72%, var(--bg) 72%); }
.mock-pipe { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.mock-pipe span { flex: 1; text-align: center; padding: .45rem .3rem; border-radius: 8px; font-weight: 600; border: 1px solid var(--line); }
.mock-pipe span:nth-of-type(1) { background: #eaf0f8; color: #152943; } .mock-pipe span:nth-of-type(2) { background: #fbefd6; color: #6b4a00; } .mock-pipe span:nth-of-type(3) { background: #e2f2ea; color: #1f5e44; }
.mock-pipe i { font-style: normal; color: var(--muted); }
.mock-code { position: absolute; left: -1.25rem; bottom: 0; width: min(410px, 78%); margin: 0; background: #0f1d30; color: #e6e1d6; border-radius: 12px;
  padding: .9rem 1rem; font: 500 .68rem/1.5 var(--mono); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); border: 1px solid #22385a; white-space: pre; overflow: hidden; }
.mock-code code { background: none; padding: 0; color: inherit; font-size: inherit; }
@media (max-width: 1039px) { .mock-code { left: auto; right: 0; } }
@media (max-width: 640px) {
  .mock { padding: 0; }
  .mock-app { grid-template-columns: 1fr; }
  .mock-side { display: flex; align-items: center; gap: .6rem; overflow: hidden; padding: .6rem; }
  .mock-side img { width: 92px; margin: 0; flex: none; }
  .mock-side ul { display: flex; gap: .2rem; overflow: hidden; }
  .mock-side li { white-space: nowrap; font-size: .72rem; padding: .25rem .4rem; }
  .mock-side li:nth-child(n+4) { display: none; }
  .mock-tiles { grid-template-columns: 1fr 1fr 1fr; } .mock-tiles strong { font-size: .8rem; }
  .mock-row { grid-template-columns: 1fr; }
  .mock-code { position: static; width: 100%; margin-top: .8rem; font-size: .66rem; white-space: pre-wrap; word-break: break-word; }
}

/* Sections */
.sc-sec { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.sc-sec.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.sc-sec h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 26ch; }
.sc-sec h2.center-text { margin-inline: auto; max-width: none; }
.sc-page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.sc-page-head h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.sc-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 1.2rem; }
.sc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem; box-shadow: var(--shadow); }
.sc-card h3 { margin-bottom: .4rem; }
.sc-card p { margin: 0; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; max-width: 72ch; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .95rem; height: .55rem; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* The three laws */
.laws { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 1.8rem; }
.law { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.law-art { background: color-mix(in srgb, var(--bg) 60%, var(--surface-2)); padding: 1.2rem 1rem .6rem; border-bottom: 1px solid var(--line); }
.law h3 { font-size: 1.3rem; margin: 1.1rem 1.3rem .35rem; }
.law p { margin: 0 1.3rem 1.4rem; color: var(--ink-2); font-size: 1.02rem; }
.ill { display: block; width: 100%; height: auto; max-height: 150px; }
.ill .fill-rust { fill: #b65c3b; } .ill .fill-navy { fill: #152943; } .ill .fill-gold { fill: #c9a055; }
.ill-trail path { stroke: #c9a055; stroke-width: 6; stroke-linecap: round; fill: none; }
.ill-box { fill: var(--surface); stroke: var(--line); stroke-width: 2; stroke-dasharray: 5 4; }
.ill-line { stroke: #8a95a5; stroke-width: 3; stroke-linecap: round; fill: none; }
.ill-label { fill: #fff; font: 700 9px var(--sans); text-anchor: middle; }
.ill-ban { fill: none; stroke: #b65c3b; stroke-width: 7; }
.ill-check { fill: none; stroke: #c9a055; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.ill-dash { fill: none; stroke: #c9a055; stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
@media (prefers-color-scheme: dark) { .ill .fill-navy { fill: #e9e4d8; } .ill-label { fill: #fff; } }

/* Forms */
.sc-form { padding: clamp(1.2rem, 3vw, 2rem); }
.sc-form .check { font-weight: 400; color: var(--ink-2); }
.sc-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.sc-form legend { font-weight: 600; color: var(--ink-2); margin-bottom: .4rem; font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 0 0 1rem; }
.msg.done { font-size: 1.1rem; background: var(--good-bg); padding: 1rem 1.2rem; border-radius: 12px; }

/* Code, legal */
pre.code { background: #0f1d30; color: #e6e1d6; padding: 1rem 1.1rem; border-radius: 12px; overflow-x: auto; font: 500 .82rem/1.55 var(--mono); }
pre.code code { background: none; color: inherit; padding: 0; }
.legal h2, .legal h3 { margin-top: 1.6em; }
.legal li { margin: .3rem 0; }

/* Footer */
.foot-h { margin: 0 0 .6rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.site-foot .brand .logo-img { height: 30px; width: auto; }
.foot-base { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ── Caravan ecosystem bar (brand-packages/caravan-ecosystem/SPEC.md): navy, three tabs, ours cream with a notch ── */
.eco { background: #152943; color: #c9d1dc; }
.eco-in { width: min(1160px, 100% - 32px); margin-inline: auto; display: flex; align-items: stretch; }
.eco-tab { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: 0 .75rem;
  font: 400 .82rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: #c9d1dc; text-decoration: none; position: relative; }
.eco-tab + .eco-tab::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: rgba(255, 255, 255, .18); }
.eco-tab b { font-weight: 700; }
.site .eco a.eco-tab { color: #c9d1dc; }
.site .eco a.eco-tab:hover { color: #fff; }
.eco-tab:focus-visible { outline: 2px solid #c9a055; outline-offset: -3px; }
.eco-tab.here { background: #faf9f4; color: #152943; }
.eco-tab.here::before, .eco-tab.here + .eco-tab::before { display: none; }
.eco-tab.here::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #faf9f4; z-index: 12; }
.eco-ico { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eco-tab.here .eco-ico { stroke: #b65c3b; }
.eco-tab .eco-trail { stroke: #c9a055; }
.eco-short { display: none; }
.eco-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .eco-sub { display: none; } }
@media (max-width: 640px) {
  .eco-in { width: 100%; }
  .eco-tab { min-height: 44px; gap: .35rem; padding: 0 .3rem; font-size: .74rem; }
  .eco-long { display: none; } .eco-short { display: inline; }
  .eco-ico { width: 17px; height: 17px; }
}

/* ── Home carousel: a rust-to-navy band, copy left, product mock right ── */
.carousel { position: relative; color: #fff; background: linear-gradient(115deg, #a8532f 0%, #b65c3b 38%, #6b3b35 70%, #152943 100%); }
.carousel .slide { padding: clamp(2.2rem, 5vw, 4rem) 0 1rem; }
.carousel:not(.js) .slide + .slide { border-top: 1px solid rgba(255, 255, 255, .2); }
.slide-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1000px) { .slide-grid { grid-template-columns: 1fr 1fr; min-height: 380px; } }
.slide-copy .eyebrow { color: #f3d9a3; }
.slide-copy h1, .slide-copy .slide-h { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5em; max-width: 18ch; }
.slide-copy .lede { color: #fbeee6; max-width: 46ch; }
.site .carousel a.btn.primary { background: #c9a055; border-color: #c9a055; color: #152943; }
.site .carousel a.btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.carousel .btn:focus-visible, .car-btn:focus-visible, .car-dot:focus-visible { outline: 2px solid #f3d9a3; outline-offset: 2px; }
.slide-visual { min-width: 0; color: var(--ink); }
.car-controls { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .4rem 0 1.4rem; }
.carousel:not(.js) .car-controls { display: none; }
.car-btn { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(21, 41, 67, .35); color: #fff; font: 600 1rem var(--sans); cursor: pointer; padding: 0 .8rem; }
.car-btn[data-car="prev"], .car-btn[data-car="next"] { font-size: 1.5rem; line-height: 1; }
.car-dots { display: flex; gap: .1rem; }
.car-dot { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; padding: 0; }
.car-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 5px; background: rgba(255, 255, 255, .45); transition: width .2s, margin .2s; }
.car-dot[aria-current="true"]::after { width: 26px; margin-left: -13px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .car-dot::after { transition: none; } }
.mock-big { display: block; font-size: 1rem; color: var(--ink); margin: .25rem 0; }
.code-win { background: #0f1d30; border-radius: 14px; border: 1px solid #22385a; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: .35rem; padding: .5rem .8rem; background: #152943; color: #c9d1dc; font: 500 .75rem var(--mono); }
.code-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #b65c3b; } .code-bar i:nth-child(2) { background: #c9a055; } .code-bar i:nth-child(3) { background: #5f8b6f; }
.code-bar span { margin-left: .5rem; } .code-bar .mock-tag { margin-left: auto; color: #c9d1dc; border-color: #3a5378; }
.code-win pre { margin: 0; padding: 1rem 1.1rem; color: #e6e1d6; font: 500 .78rem/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; }
.code-win code { background: none; color: inherit; padding: 0; }
.fp-card { background: var(--surface); border-radius: 14px; padding: 1.4rem 1.5rem; box-shadow: 0 18px 40px rgba(0, 0, 0, .2); }
.fp-card .mock-tag { float: right; }
.fp-cap { font-weight: 700; color: var(--ink); margin: 0 0 .8rem; }
.fp-card .first-party li { color: var(--ink); }
@media (max-width: 640px) { .carousel .slide { padding-top: 1.8rem; } .code-win pre { font-size: .68rem; } }

/* ── Pricing: the slider layout, no numbers ── */
.price-hero { padding: clamp(2.2rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.price-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1000px) { .price-grid { grid-template-columns: 1.1fr .9fr; } }
.price-hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.vol { margin-top: 1.2rem; }
.vol label { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 1rem; color: var(--ink); }
.vol output { font-weight: 800; color: var(--accent-text); }
.vol input[type="range"] { accent-color: #b65c3b; padding: 0; border: 0; background: none; min-height: 44px; }
.vol-scale { display: flex; justify-content: space-between; gap: .3rem; font-size: .72rem; color: var(--muted); margin-top: -.2rem; }
.price-tbd { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 10px; background: var(--warn-bg); }
.plan-card { background: #152943; color: #e9e4d8; border-radius: 16px; padding: 1.6rem 1.6rem 1.2rem; }
.plan-card h2 { color: #fff; font-size: 1.4rem; }
.plan-card .ticks li::before { border-color: #c9a055; }

/* R1b: cookie banner */
.cookie-bar { position: fixed; inset: auto 12px 12px 12px; z-index: 50; max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: .8rem 1rem; display: flex; gap: .8rem 1rem; align-items: center; flex-wrap: wrap; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1 1 18rem; }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-actions form { margin: 0; }
