/* Cue public site. Same tokens as the app (dashboard/web/src/styles.css): graphite surfaces, one lime accent
   for action, platform hues only on data marks. No JavaScript, no third-party requests: the fonts are served
   from this site (OFL licence, see static/fonts/LICENSE.txt). */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/static/fonts/archivo-latin.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  src: url(/static/fonts/instrument-sans-latin.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f3f1ea; --s1: #fbfaf6; --s2: #ffffff; --s3: #ece9df;
  --line: #dedacd; --line-2: #c4bfae;
  --t1: #14151a; --t2: #45464b; --t3: #64635f;
  --acc: #bde82a; --on-acc: #14151a; --acc-t: #436000;
  --yt: #c63a10; --ig: #b03ca6; --fb: #2b66d0;
  --good: #17724a; --warn: #8f5600; --bad: #b3261e; --focus: #2b66d0;
  --glow: 0.16; --shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 12px 32px -16px rgb(20 21 26 / 0.18);
  --f-display: "Archivo", "Avenir Next", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 8px; --pill: 9999px; --max: 1120px; --read: 72ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0c0d0f; --s1: #141518; --s2: #1b1d21; --s3: #24272c;
    --line: #2a2d33; --line-2: #3d4149;
    --t1: #f2f1ec; --t2: #bdbcb5; --t3: #98978f;
    --acc: #c9f23d; --on-acc: #0c0d0f; --acc-t: #c9f23d;
    --yt: #ff6a3d; --ig: #e27bd8; --fb: #5b9dff;
    --good: #5ed39a; --warn: #f2b84b; --bad: #ff6b7a; --focus: #8bb8ff;
    --glow: 0.22; --shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 16px 40px -20px rgb(0 0 0 / 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--t1); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
a { color: var(--acc-t); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--acc); color: var(--on-acc); }
.skip { position: absolute; left: 16px; top: -64px; z-index: 20; background: var(--acc); color: var(--on-acc); padding: 10px 16px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.unset { background: color-mix(in srgb, var(--warn) 22%, transparent); padding: 0 6px; border-radius: 4px; font-family: var(--f-mono); font-size: 0.9em; }

/* ---------------------------------------------------------------- type */
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; font-stretch: 108%; line-height: 1.04; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 750; font-stretch: 104%; line-height: 1.15; }
h3 { font-size: 18px; font-weight: 650; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
.eyebrow { font: 500 12px/1.2 var(--f-mono); color: var(--t3); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 12px; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--t2); max-width: 58ch; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--pill);
  background: var(--acc); color: var(--on-acc); font: 650 15px/1 var(--f-body); text-decoration: none; border: 1px solid transparent;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -10px var(--acc); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--t1); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--t1); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------------------------------------------------------------- header / footer */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--t1); font: 800 22px/1 var(--f-display); font-stretch: 112%; }
.brand:hover { text-decoration: none; }
.primary { display: flex; flex-wrap: wrap; gap: 4px 4px; margin-left: 8px; order: 3; width: 100%; }
.primary a { color: var(--t2); text-decoration: none; padding: 8px 12px; border-radius: var(--pill); font-size: 14.5px; font-weight: 500; }
.primary a:hover { color: var(--t1); background: var(--s3); }
.primary a[aria-current="page"] { color: var(--t1); background: var(--s3); }
.bar > .btn { margin-left: auto; }
@media (min-width: 900px) { .primary { order: 0; width: auto; } .bar { flex-wrap: nowrap; } }

.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 48px 0 40px; background: var(--s1); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.foot-about { grid-column: 1 / -1; max-width: 38ch; color: var(--t2); font-size: 14.5px; }
.foot-about p { margin-top: 12px; }
.foot-h { font: 500 12px/1.2 var(--f-mono); color: var(--t3); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot ul a { color: var(--t2); text-decoration: none; font-size: 14.5px; }
.foot ul a:hover { color: var(--t1); text-decoration: underline; }
.legal-note, .copy { color: var(--t3); font-size: 13px; line-height: 1.55; max-width: 90ch; }
.legal-note { margin: 40px 0 8px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-about { grid-column: auto; } }

/* ---------------------------------------------------------------- home */
.hero { position: relative; padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) calc(var(--glow) * 100%), transparent), transparent); }
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--acc-t); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: var(--pill); font-size: 13.5px; color: var(--t2); margin-bottom: 24px; background: var(--s1); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 30%, transparent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--t3); }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; } }

.flow { margin: 0; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: clamp(12px, 3vw, 20px); box-shadow: var(--shadow); }
.flow svg { width: 100%; height: auto; }
.flow text { font-family: var(--f-body); fill: var(--t1); }
.flow .dim { fill: var(--t3); }
.flow .node { fill: var(--s2); stroke: var(--line-2); }
.flow .wire { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
.flow .hot { stroke: var(--acc-t); stroke-width: 2; fill: none; }
.flow figcaption { color: var(--t3); font-size: 13px; margin-top: 12px; }

.section { padding: clamp(40px, 6vw, 80px) 0 0; }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.section-head p { color: var(--t2); margin: 12px 0 0; }
.section-head .eyebrow, .band .eyebrow { color: var(--t3); margin: 0 0 12px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.c2, .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--t2); margin: 0; font-size: 15.5px; }
.card .tag { display: inline-block; font: 500 11.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--t3); margin-bottom: 14px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.yt { background: var(--yt); } .dot.ig { background: var(--ig); } .dot.fb { background: var(--fb); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 500 13px/1 var(--f-mono); color: var(--acc-t); margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--t2); font-size: 15px; }

.band { margin-top: clamp(40px, 6vw, 80px); background: var(--s1); border-block: 1px solid var(--line); padding: clamp(32px, 5vw, 56px) 0; }
.band .wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .band .wrap { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; color: var(--t2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--acc-t); border-bottom: 2px solid var(--acc-t); transform: rotate(-45deg) translateY(-2px); }
.checks strong { color: var(--t1); font-weight: 600; }
.callout { border: 1px solid var(--line-2); border-left: 4px solid var(--acc); border-radius: var(--r); background: var(--s1); padding: 16px 20px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.cta-end { text-align: center; padding: clamp(48px, 7vw, 96px) 0 0; }
.cta-end p { color: var(--t2); max-width: 52ch; margin: 16px auto 0; }
.cta-end .cta-row { justify-content: center; }

/* ---------------------------------------------------------------- documents (policies, features, FAQ) */
.doc { display: grid; gap: 32px; padding-top: clamp(32px, 5vw, 64px); }
.doc.one { max-width: 860px; }
@media (min-width: 1000px) { .doc:not(.one) { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }
.toc { font-size: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--t2); text-decoration: none; }
.toc a:hover { color: var(--t1); border-left-color: var(--acc-t); }
@media (min-width: 1000px) { .toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; } }
@media (max-width: 999px) { .toc { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; } .toc ol { border: 0; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } .toc a { padding-left: 0; } }

.prose { max-width: var(--read); min-width: 0; }
.doc.one .prose { max-width: none; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { margin: 2.2em 0 0.6em; padding-top: 0.2em; }
.prose h3 { margin: 1.6em 0 0.5em; }
.prose h1 + .meta { margin-top: 0; }
.prose li { margin: 0.35em 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose strong { font-weight: 650; }
.prose code { font: 0.88em var(--f-mono); background: var(--s3); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--acc); background: var(--s2); border-radius: 0 var(--r) var(--r) 0; color: var(--t1); }
blockquote p:last-child { margin: 0; }
.meta { color: var(--t3); font-size: 14px; margin-bottom: 2em; }
ul.plain { list-style: none; padding: 0; display: grid; gap: 6px; }
.address { white-space: pre-line; }

.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font: 500 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: 0.03em; color: var(--t3); background: var(--s3); }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

.qa { border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); margin: 0 0 10px; }
.qa summary { cursor: pointer; padding: 16px 20px; font: 650 17px/1.35 var(--f-body); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 24px/1 var(--f-mono); color: var(--acc-t); flex: none; }
.qa[open] summary::after { content: "\2212"; }
.qa .ans { padding: 0 20px 6px; color: var(--t2); }
.qa .ans p:last-child { margin-bottom: 14px; }

.contact-grid { display: grid; gap: 16px; margin: 1.6em 0; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-grid .card h3 { font-size: 16px; }
.contact-grid .card p { margin-bottom: 12px; }
.contact-grid .btn { min-height: 40px; font-size: 14px; }
