/* Quiver Blueprint's landing and sign-in pages (hosting/public). The app's Drawing sheet look
   (DESIGN.md, static/style.css): same tokens and self-hosted Barlow fonts. Light or dark follows the
   device. The gate serves only /static/fonts/ and /_qb/ signed out, so the mark is inline in --mark. */
@font-face { font-family:"Barlow"; src:url(/static/fonts/barlow-400.woff2) format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:"Barlow"; src:url(/static/fonts/barlow-500.woff2) format("woff2"); font-weight:500; font-display:swap; }
@font-face { font-family:"Barlow"; src:url(/static/fonts/barlow-600.woff2) format("woff2"); font-weight:600; font-display:swap; }
@font-face { font-family:"Barlow Condensed"; src:url(/static/fonts/barlow-condensed-600.woff2) format("woff2"); font-weight:600; font-display:swap; }
@font-face { font-family:"Barlow Condensed"; src:url(/static/fonts/barlow-condensed-700.woff2) format("woff2"); font-weight:700; font-display:swap; }

:root {
  --bg:#142639; --panel:#193048; --card:#1e3a57; --field:var(--bg); --ink:#eef0ea; --muted:#a3b3c2; --line:#2d5580; --edge:#6f8faf;
  --tap:#d5764d; --tap-ink:#14100c; --tap-text:#e8946c; --plan:#7fb6e6; --ref:#97a5b2; --err:#ff8a96;
  --radius:6px; --target:44px;
  /* static/brand/logo-c2-cut-mark-dark.svg */
  --mark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='22 34 220 220'%3E%3Cmask id='q' maskUnits='userSpaceOnUse' x='0' y='0' width='256' height='256'%3E%3Crect width='256' height='256' fill='%23fff'/%3E%3Cpath d='M78 142 164 228' stroke='%23000' stroke-width='44' fill='none'/%3E%3C/mask%3E%3Cpath mask='url(%23q)' d='M128 192H72A34 34 0 0 1 38 158V98A34 34 0 0 1 72 64H128M128 52V204M128 64H188A32 32 0 0 1 188 128H128M128 128H194A32 32 0 0 1 194 192H128' fill='none' stroke='%23eef0ea' stroke-width='26'/%3E%3Cpath d='M78 142 164 228' fill='none' stroke='%23d46a3d' stroke-width='22'/%3E%3C/svg%3E");
  --head:"Barlow Condensed","Arial Narrow",ui-sans-serif,system-ui,sans-serif;
  --body:"Barlow",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --shadow:0 12px 32px rgba(0,0,0,.45);
  color-scheme:dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg:#edf0f2; --panel:#f6f7f9; --card:#e1e6ea; --field:var(--panel); --ink:#14202b; --muted:#4d5e6d; --line:#bdc8d1; --edge:#72818e;
    --tap:#a14721; --tap-ink:#ffffff; --tap-text:#a14721; --plan:#1f5f99; --ref:#667481; --err:#a8123a;
    --shadow:0 12px 32px rgba(20,32,43,.16); color-scheme:light;
    /* static/brand/logo-c2-cut-mark-light.svg */
    --mark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='22 34 220 220'%3E%3Cmask id='q' maskUnits='userSpaceOnUse' x='0' y='0' width='256' height='256'%3E%3Crect width='256' height='256' fill='%23fff'/%3E%3Cpath d='M78 142 164 228' stroke='%23000' stroke-width='44' fill='none'/%3E%3C/mask%3E%3Cpath mask='url(%23q)' d='M128 192H72A34 34 0 0 1 38 158V98A34 34 0 0 1 72 64H128M128 52V204M128 64H188A32 32 0 0 1 188 128H128M128 128H194A32 32 0 0 1 194 192H128' fill='none' stroke='%2314202b' stroke-width='26'/%3E%3Cpath d='M78 142 164 228' fill='none' stroke='%23a84a22' stroke-width='22'/%3E%3C/svg%3E"); }
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--ink); font:400 17px/1.55 var(--body); -webkit-text-size-adjust:100%; }
img { max-width:100%; height:auto; display:block; }
a { color:inherit; }
h1, h2, h3 { font-family:var(--head); font-weight:700; line-height:1.08; letter-spacing:.005em; margin:0 0 .5em; }
h1 { font-size:clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size:clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size:1.6rem; font-weight:600; }
p { margin:0 0 1em; }
.wrap { max-width:1180px; margin:0 auto; padding:0 20px; }
.muted, .sub { color:var(--muted); }
.sub { max-width:60ch; margin-bottom:2.2rem; }
.fine { color:var(--muted); font-size:.9rem; margin:.9rem 0 0; }

/* buttons */
.button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 20px;
  border:1px solid var(--edge); border-radius:var(--radius); background:transparent; color:var(--tap-text);
  font:600 1.05rem/1 var(--head); letter-spacing:.03em; text-decoration:none; cursor:pointer; }
.button:hover { border-color:var(--ink); }
.button.primary { background:var(--tap); border-color:var(--tap); color:var(--tap-ink); }
.button.primary:hover { filter:brightness(1.07); }
.button.small { min-height:var(--target); padding:0 16px; }
.button:focus-visible, a:focus-visible { outline:3px solid var(--plan); outline-offset:3px; }
.actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:1.6rem; }

/* top bar */
.top { position:sticky; top:0; z-index:5; background:var(--panel); border-bottom:1px solid var(--line); }
.top-row { display:flex; align-items:center; justify-content:space-between; min-height:62px; gap:16px; }
.top .button.primary { background:var(--ink); border-color:var(--ink); color:var(--bg); }   /* the bar stays in view: the page's own button is the rust one */
.wordmark { display:inline-flex; align-items:center; min-height:var(--target); font:700 1.45rem/1 var(--head); text-decoration:none; letter-spacing:.01em; }
.wordmark::before { content:""; flex:none; width:32px; height:32px; margin-right:8px; background:var(--mark) center/contain no-repeat; }
.top-nav { display:flex; align-items:center; gap:22px; font:600 1.02rem/1 var(--head); letter-spacing:.03em; }
.top-nav a:not(.button) { display:inline-flex; align-items:center; justify-content:center; min-width:var(--target); min-height:var(--target); text-decoration:none; color:var(--muted); }
.top-nav a:not(.button):hover { color:var(--ink); }

/* hero */
.hero { padding:64px 0 56px; }
.hero-grid { display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:48px; align-items:center; }
.lede { font-size:1.15rem; color:var(--muted); max-width:52ch; }
.chip { display:inline-flex; align-items:center; gap:8px; font:600 1rem/1.2 var(--head); color:var(--muted); margin-bottom:1.2rem; }
.dot { width:8px; height:8px; border-radius:50%; background:var(--ref); }
.frame { display:block; margin:0; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow); background:var(--panel); }

/* facts band */
.band { border-block:1px solid var(--line); background:var(--panel); }
.facts { display:grid; grid-template-columns:repeat(4, 1fr); }
.facts > div { padding:22px 18px; border-left:1px solid var(--line); }
.facts > div:first-child { border-left:0; }
.facts b { display:block; font:700 1.3rem/1.1 var(--head); color:var(--ink); margin-bottom:4px; }
.facts span { color:var(--muted); font-size:.95rem; }

/* sections */
.section { padding:80px 0; }
.surface { background:var(--panel); border-block:1px solid var(--line); }
.feature { display:grid; grid-template-columns:minmax(0, 7fr) minmax(0, 5fr); gap:44px; align-items:center; margin-bottom:72px; }
.feature:last-child { margin-bottom:0; }
.feature.flip .frame { order:2; }
.feature .copy p { color:var(--muted); }
.feature ul { margin:0; padding:0; list-style:none; }
.feature li { padding:8px 0 8px 26px; border-top:1px solid var(--line); position:relative; }
.feature li::before { content:""; position:absolute; left:4px; top:21px; width:8px; height:2px; background:var(--ref); }
.feature .frame:hover { border-color:var(--muted); }

.steps { list-style:none; counter-reset:s; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); gap:14px; }
.steps li { counter-increment:s; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:18px 18px 18px 64px; position:relative; }
.steps li::before { content:counter(s); position:absolute; left:18px; top:18px; width:32px; height:32px; border-radius:6px;
  background:var(--ink); color:var(--bg); font:700 1.15rem/32px var(--head); text-align:center; }
.steps b { display:block; font:600 1.2rem/1.2 var(--head); }
.steps span { color:var(--muted); font-size:.95rem; }

.split { display:grid; grid-template-columns:minmax(0, 7fr) minmax(0, 5fr); gap:48px; align-items:start; }
.split p { color:var(--muted); max-width:62ch; }
.access-card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:28px; display:flex; flex-direction:column; gap:12px; }
.access-card .button { width:100%; }

.foot { border-top:1px solid var(--line); padding:28px 0 40px; color:var(--muted); font-size:.95rem; }
.fine a, .foot a { color:var(--tap-text); text-underline-offset:2px; }
.foot-row > a { display:inline-flex; align-items:center; min-height:var(--target); }
.foot-row { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:12px; }

/* sign-in page */
body.signin { min-height:100vh; display:grid; place-items:center; padding:24px 16px; }
.signin-card { width:100%; max-width:440px; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:32px 28px; box-shadow:var(--shadow); }
.signin-card .wordmark { margin-bottom:1.6rem; }
.signin-card h1 { font-size:2.2rem; }
.signin-card .actions { margin-top:1.2rem; }

@media (max-width: 900px) {
  .hero { padding:40px 0; }
  .hero-grid, .feature, .split { grid-template-columns:1fr; gap:28px; }
  .feature.flip .frame { order:0; }
  .feature { margin-bottom:56px; }
  .facts { grid-template-columns:1fr 1fr; }
  .facts > div:nth-child(3) { border-left:0; }
  .facts > div:nth-child(n+3) { border-top:1px solid var(--line); }
  .section { padding:56px 0; }
}
@media (max-width: 560px) {
  .top-nav a:not(.button) { display:none; }
  .wrap { padding:0 16px; }
  .facts { grid-template-columns:1fr; }
  .facts > div { border-left:0; border-top:1px solid var(--line); }
  .facts > div:first-child { border-top:0; }
  .actions .button { flex:1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } }

/* the access form */
.access-form { display:flex; flex-direction:column; gap:12px; }
.access-form label { display:flex; flex-direction:column; gap:4px; font-size:.95rem; }
.access-form .opt { color:var(--muted); font-size:.85rem; }
.access-form input { min-height:46px; padding:0 12px; font:inherit; font-size:16px; color:var(--ink); background:var(--field);
  border:1px solid var(--edge); border-radius:var(--radius); }
.access-form input:focus-visible { outline:3px solid var(--plan); outline-offset:1px; }
.access-form .hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.access-form.sent label, .access-form.sent button { display:none; }
.form-msg { margin:0; font-size:.95rem; min-height:1.2em; }
.form-msg.bad { color:var(--err); }
