/* canvagent.com: one stylesheet, no web fonts, no framework. Colours are the app's own tokens (apps/desktop/src/theme.css,
   packages/design-tokens), dark first as in the app, light for people whose system asks for it or who switch. */

:root {
  color-scheme: dark;
  --backdrop: 4 6 11;
  --card: 23 23 23;
  --glass: 16 22 34;
  --glass-strong: 13 18 29;
  --rim: 148 170 210;
  --alpha-rim: 0.16;
  --content: 238 243 251;
  --content-2: 185 196 212;
  --muted: 154 168 189;
  --subtle: 114 128 149;
  --brand: 34 195 238;
  --brand-hi: 90 226 255;
  --brand-ink: 2 6 23;
  --accent: 58 214 245;
  --violet: 139 92 246;
  --success: 78 240 176;
  --warning: 255 200 87;
  --danger: 255 138 138;
  --shadow: 0 30px 80px rgb(0 0 0 / 0.55);
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --focus: 0 0 0 3px rgb(var(--accent) / 0.55);
}

:root[data-theme="light"] {
  color-scheme: light;
  --backdrop: 248 250 252;
  --card: 255 255 255;
  --glass: 255 255 255;
  --glass-strong: 255 255 255;
  --rim: 100 116 139;
  --alpha-rim: 0.22;
  --content: 15 23 42;
  --content-2: 51 65 85;
  --muted: 71 85 105;
  --subtle: 100 116 139;
  --brand: 21 94 117;
  --brand-hi: 14 116 144;
  --brand-ink: 255 255 255;
  --accent: 14 116 144;
  --violet: 109 40 217;
  --success: 4 120 87;
  --warning: 180 83 9;
  --danger: 185 28 28;
  --shadow: 0 24px 60px rgb(15 23 42 / 0.16);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --backdrop: 248 250 252;
    --card: 255 255 255;
    --glass: 255 255 255;
    --glass-strong: 255 255 255;
    --rim: 100 116 139;
    --alpha-rim: 0.22;
    --content: 15 23 42;
    --content-2: 51 65 85;
    --muted: 71 85 105;
    --subtle: 100 116 139;
    --brand: 21 94 117;
    --brand-hi: 14 116 144;
    --brand-ink: 255 255 255;
    --accent: 14 116 144;
    --violet: 109 40 217;
    --success: 4 120 87;
    --warning: 180 83 9;
    --danger: 185 28 28;
    --shadow: 0 24px 60px rgb(15 23 42 / 0.16);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: rgb(var(--backdrop));
  color: rgb(var(--content));
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgb(var(--brand) / 0.18), transparent 70%),
    radial-gradient(700px 480px at 6% 12%, rgb(var(--violet) / 0.12), transparent 70%),
    radial-gradient(rgb(var(--rim) / 0.16) 1px, transparent 1.2px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 60%, transparent 100%);
}
img, svg, video, iframe { max-width: 100%; display: block; }
a { color: rgb(var(--accent)); text-underline-offset: 3px; }
a:hover { color: rgb(var(--brand-hi)); }
:focus-visible { outline: 0; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
small { font-size: 0.875rem; }
code, kbd { font-family: var(--mono); font-size: 0.92em; background: rgb(var(--rim) / 0.14); padding: 0.1em 0.4em; border-radius: 6px; }
sup.tm { font-size: 0.5em; font-weight: 400; vertical-align: super; margin-left: 1px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: rgb(var(--brand)); color: rgb(var(--brand-ink)); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: rgb(var(--muted)); }
.center { text-align: center; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgb(var(--content-2)); max-width: 40em; line-height: 1.6; }
.grad { background: linear-gradient(100deg, rgb(var(--brand-hi)), rgb(var(--violet))); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); background: rgb(var(--backdrop) / 0.72); border-bottom: 1px solid rgb(var(--rim) / 0.12); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: rgb(var(--content)); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { font-weight: 700; }
.brand .agent { color: rgb(var(--accent)); }
.brand:hover { color: rgb(var(--content)); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: rgb(var(--content-2)); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 0.97rem; font-weight: 500; }
.nav a:hover { color: rgb(var(--content)); background: rgb(var(--rim) / 0.1); }
.nav a[aria-current="page"] { color: rgb(var(--content)); background: rgb(var(--rim) / 0.14); }
.bar-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; border-radius: 12px; border: 1px solid rgb(var(--rim) / var(--alpha-rim)); background: transparent; color: rgb(var(--content-2)); cursor: pointer; }
.icon-btn:hover { background: rgb(var(--rim) / 0.12); color: rgb(var(--content)); }
.menu-btn { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px; font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, rgb(var(--brand-hi)), rgb(var(--brand))); color: rgb(var(--brand-ink)); box-shadow: 0 8px 28px rgb(var(--brand) / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.4); }
.btn-primary:hover { color: rgb(var(--brand-ink)); box-shadow: 0 12px 34px rgb(var(--brand) / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.4); }
.btn-secondary { background: rgb(var(--glass) / 0.6); color: rgb(var(--content)); border-color: rgb(var(--rim) / 0.3); }
.btn-secondary:hover { background: rgb(var(--rim) / 0.12); color: rgb(var(--content)); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.btn[aria-disabled="true"] { opacity: 0.7; cursor: not-allowed; transform: none; text-align: center; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgb(var(--rim) / 0.28); background: rgb(var(--glass) / 0.5); color: rgb(var(--content-2)); font-size: 0.875rem; font-weight: 500; margin-bottom: 22px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--success)); box-shadow: 0 0 10px rgb(var(--success)); }
.hero-copy { max-width: 820px; }
.hero h1 { margin-bottom: 0.4em; }
.hero .btn-row { margin: 28px 0 14px; }
.hero-note { color: rgb(var(--subtle)); font-size: 0.92rem; }
.shot { margin: 56px auto 0; border-radius: 18px; overflow: hidden; border: 1px solid rgb(var(--rim) / 0.28); background: rgb(var(--glass-strong)); box-shadow: var(--shadow); }
.shot-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid rgb(var(--rim) / 0.16); background: rgb(var(--glass) / 0.8); }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgb(var(--rim) / 0.35); }
.shot-bar span { margin-left: 10px; font-size: 0.8rem; color: rgb(var(--subtle)); }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 12px 18px; font-size: 0.9rem; color: rgb(var(--muted)); border-top: 1px solid rgb(var(--rim) / 0.14); }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: linear-gradient(180deg, transparent, rgb(var(--glass) / 0.35) 12%, rgb(var(--glass) / 0.35) 88%, transparent); }
.section-head { max-width: 760px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.kicker { color: rgb(var(--accent)); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: rgb(var(--glass) / 0.62); border: 1px solid rgb(var(--rim) / var(--alpha-rim)); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card h3 { margin-bottom: 0.45em; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgb(var(--brand) / 0.14); color: rgb(var(--accent)); border: 1px solid rgb(var(--brand) / 0.3); }
.card .ico svg { width: 22px; height: 22px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 26px; border-radius: var(--radius); background: rgb(var(--glass) / 0.62); border: 1px solid rgb(var(--rim) / var(--alpha-rim)); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 16px; font-weight: 700; color: rgb(var(--brand-ink)); background: linear-gradient(180deg, rgb(var(--brand-hi)), rgb(var(--brand))); }
.steps h3 { margin-bottom: 0.4em; }
.split { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 88px); }
.split.rev { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
.split.rev > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 28px; margin: 0.55em 0; color: rgb(var(--content-2)); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 2.5px solid rgb(var(--success)); border-bottom: 2.5px solid rgb(var(--success)); transform: rotate(-45deg) scale(0.9); }
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid rgb(var(--rim) / 0.28); background: rgb(var(--glass-strong)); box-shadow: var(--shadow); }
.frame img { width: 100%; height: auto; }

/* Providers */
.providers { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.providers li { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 14px; background: rgb(var(--glass) / 0.62); border: 1px solid rgb(var(--rim) / var(--alpha-rim)); font-weight: 600; }
.providers img { width: 34px; height: 34px; border-radius: 9px; }
.providers small { display: block; font-weight: 400; color: rgb(var(--muted)); }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card .tag { align-self: flex-start; font-size: 0.8rem; font-weight: 600; color: rgb(var(--brand-ink)); background: linear-gradient(180deg, rgb(var(--brand-hi)), rgb(var(--brand))); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.price-card.featured { border-color: rgb(var(--brand) / 0.6); box-shadow: 0 0 0 1px rgb(var(--brand) / 0.35), 0 24px 60px rgb(var(--brand) / 0.12); }
.price { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 6px 0 4px; }
.price small { font-size: 1rem; font-weight: 500; color: rgb(var(--muted)); letter-spacing: 0; }
.price-card .ticks { margin-top: 18px; flex: 1; }
.price-card .btn { margin-top: 12px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border-radius: 14px; border: 1px solid rgb(var(--rim) / var(--alpha-rim)); background: rgb(var(--glass) / 0.62); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: rgb(var(--accent)); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: rgb(var(--content-2)); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Call to action band */
.cta { text-align: center; border-radius: 24px; padding: clamp(36px, 6vw, 64px) 24px; background: linear-gradient(135deg, rgb(var(--brand) / 0.2), rgb(var(--violet) / 0.16)); border: 1px solid rgb(var(--brand) / 0.35); }
.cta p { color: rgb(var(--content-2)); max-width: 36em; margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; margin-top: 22px; }

/* Demo page */
.demo-head { padding: 44px 0 18px; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; margin-bottom: 14px; }
.demo-frame { width: 100%; height: min(78vh, 880px); min-height: 520px; border: 1px solid rgb(var(--rim) / 0.3); border-radius: var(--radius); background: #04060b; box-shadow: var(--shadow); }
.demo-small { display: none; }

/* Prose (features detail, download) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: 0.4em 0; }
.callout { padding: 16px 20px; border-radius: 12px; border: 1px solid rgb(var(--rim) / 0.3); background: rgb(var(--glass) / 0.62); margin: 1.4em 0; }
.callout.warn { border-color: rgb(var(--warning) / 0.45); background: rgb(var(--warning) / 0.08); }
.table-wrap { overflow-x: auto; margin: 1.2em 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgb(var(--rim) / 0.2); vertical-align: top; }
th { color: rgb(var(--muted)); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Footer */
.site-footer { border-top: 1px solid rgb(var(--rim) / 0.14); padding: 56px 0 36px; background: rgb(var(--glass) / 0.3); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; color: rgb(var(--muted)); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 8px 0; }
.foot-grid a { color: rgb(var(--content-2)); text-decoration: none; }
.foot-grid a:hover { color: rgb(var(--content)); text-decoration: underline; }
.foot-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(var(--rim) / 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.875rem; color: rgb(var(--subtle)); }
.foot-note a { color: inherit; }

/* Small helpers (the content policy allows no style attributes, so these live here) */
.hero-tight { padding-bottom: 0; }
.h1-sm { font-size: clamp(2rem, 4vw, 3rem); }
.mt-lg { margin-top: 22px; }
.mt-xl { margin-top: 28px; }
.foot-blurb { margin-top: 14px; max-width: 26em; }
.demo-section { padding-bottom: 56px; }
.demo-small h2 { font-size: 1.3rem; }
.price-card h2 { font-size: 1.4rem; margin: 0; }
.price-card .tag-quiet { background: rgb(var(--glass-strong)); color: rgb(var(--content-2)); border: 1px solid rgb(var(--rim) / 0.3); }
.price-note { margin: 12px 0 0; }

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 10px 16px 16px; background: rgb(var(--backdrop)); border-bottom: 1px solid rgb(var(--rim) / 0.14); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .bar { position: relative; }
  .bar-actions { margin-left: auto; }
  .bar-actions .btn { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .demo-frame { display: none; }
  .demo-small { display: block; }
  .hero .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
  .btn:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .cta, .skip { display: none; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
}
