/* Quoductivity marketing site. Light by default, dark when the visitor's
   system asks for it. No inline styles anywhere: the CSP allows only this
   file. */

:root {
  color-scheme: light dark;
  --bg: #f9f9f7; --surface: #fcfcfb; --card: #fff;
  --ink: #0b0b0b; --ink2: #52514e; --muted: #6c6a65; --faint: #95938e;
  --accent: #256bbe; --accent-hover: #1c5cab;
  --accent-btn: #256bbe; --accent-btn-hover: #1c5cab;
  --line1: rgba(11,11,11,0.08); --line2: rgba(11,11,11,0.12);
  --line3: rgba(11,11,11,0.18); --line4: rgba(11,11,11,0.28);
  --shadow: 0 16px 40px rgba(11,11,11,0.07), 0 1px 2px rgba(11,11,11,0.04);
  --tint-accent: #eaf1fb; --tint-good: #eaf5e6; --tint-attn: #fdf3d7;
  --good-text: #006300;
  --deep: #0d0d0d; --deep2: #1a1a19; --deep3: #262624;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #262624; --surface: #2b2a28; --card: #30302e;
    --ink: #faf9f5; --ink2: #c2c0b6; --muted: #a3a197; --faint: #7d7b74;
    --accent: #7ab0f0; --accent-hover: #9ec5f4;
    --accent-btn: #2463b0; --accent-btn-hover: #256bbe;
    --line1: rgba(255,255,255,0.08); --line2: rgba(255,255,255,0.12);
    --line3: rgba(255,255,255,0.18); --line4: rgba(255,255,255,0.28);
    --shadow: none;
    --tint-accent: rgba(57,135,229,0.18); --tint-good: #26332a; --tint-attn: #3a3324;
    --good-text: #4cc24c;
    --deep: #1f1e1d; --deep2: #2b2a28; --deep3: #353432;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 760px) { .wrap { padding: 0 16px; } .hide-sm { display: none !important; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 8px; border: 0;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
}
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--accent-btn); color: #fff; }
.btn-primary:hover { background: var(--accent-btn-hover); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line3); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line4); }
.btn-white { background: #fff; color: #1c5cab; font-weight: 700; }
.btn-white:hover { color: #154a8a; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--line1); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -0.2px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 24px; flex-wrap: wrap; }
.nav a { color: var(--ink2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.spacer { flex: 1; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.back-link { font-size: 15px; color: var(--ink2); text-decoration: none; }
@media (max-width: 760px) {
  .site-header .wrap { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .header-actions .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
}

/* Sections */
section { padding: 88px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line1); border-bottom: 1px solid var(--line1); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split-rev { flex-wrap: wrap-reverse; }
@media (max-width: 760px) { section { padding: 56px 0; } .split { gap: 32px; } .split > * { flex-basis: 100%; } }

.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.2px; }
h1, h2, h3 { margin: 0; }
h1 { font-size: 54px; line-height: 1.06; letter-spacing: -1.4px; font-weight: 750; margin-bottom: 22px; }
h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.8px; margin-bottom: 16px; }
h3 { font-size: 18px; margin-bottom: 8px; }
.lead { margin: 0 0 32px; font-size: 19px; line-height: 1.55; color: var(--ink2); max-width: 540px; }
.body { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink2); }
.intro { margin: 0 0 40px; max-width: 720px; }
.note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { h1 { font-size: 38px; letter-spacing: -0.8px; } h2 { font-size: 28px; } .lead, .body { font-size: 17px; } }

.hero { padding: 88px 0 72px; }

/* Screenshots */
.shot { margin: 0; }
.shot-frame { background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.shot figcaption strong { color: var(--ink); }
.shots { display: flex; flex-wrap: wrap; gap: 28px; }
.shots > * { flex: 1 1 320px; min-width: 0; }

/* Problem band */
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.4px; text-transform: uppercase; }
.problem-title { max-width: 760px; margin-bottom: 36px; }
.tries { display: flex; flex-wrap: wrap; gap: 16px; }
.try { flex: 1 1 260px; background: var(--card); border: 1px solid var(--line1); border-radius: 12px; padding: 20px 22px; }
.try-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.try p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.better { margin-top: 24px; background: var(--accent-btn); color: #fff; border-radius: 16px; padding: 36px 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.better > div { flex: 1 1 520px; min-width: 0; }
.better-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; margin-bottom: 12px; opacity: 0.9; }
.better-title { margin: 0 0 10px; font-size: 30px; line-height: 1.2; font-weight: 750; letter-spacing: -0.6px; }
.better-body { margin: 0; font-size: 18px; line-height: 1.55; opacity: 0.92; }
@media (max-width: 760px) { .better { padding: 28px 22px; } .better-title { font-size: 24px; } }

/* AI tools */
.dark-band { background: var(--deep); color: #fff; }
.dark-band .body { color: #c3c2b7; margin-bottom: 24px; }
.points { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; color: #c3c2b7; }
.points strong { color: #fff; font-weight: 600; }
.chat { background: var(--deep2); border: 1px solid rgba(255,255,255,0.10); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.5; }
.chat-q { align-self: flex-end; max-width: 82%; background: #2463b0; color: #fff; padding: 11px 14px; border-radius: 12px 12px 4px 12px; }
.chat-tool { font-size: 12px; color: #95938e; }
.chat-a { max-width: 92%; background: var(--deep3); color: #ececea; padding: 13px 15px; border-radius: 12px 12px 12px 4px; }

/* Setup steps */
.steps { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); gap: 12px; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.step { background: var(--surface); border: 1px solid var(--line1); border-radius: 12px; padding: 24px; }
.step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.step-num { width: 32px; height: 32px; border-radius: 8px; background: var(--tint-accent); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step-last { background: var(--accent-btn); color: #fff; border-color: transparent; }
.step-last p { color: #fff; opacity: 0.92; }
.step-last .step-num { background: rgba(255,255,255,0.18); color: #fff; }
.step-arrow { display: flex; align-items: center; justify-content: center; }
@media (max-width: 1040px) { .steps { grid-template-columns: minmax(0,1fr); } .step-arrow { transform: rotate(90deg); } }

/* Story */
.story p { margin: 0 0 18px; }
.story p:last-child { margin: 0; }
.chart-card { margin: 0; background: var(--card); border: 1px solid var(--line1); border-radius: 12px; padding: 22px 22px 18px; }
.chart-label { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.chart-card svg { display: block; width: 100%; height: auto; }
.chart-card text { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.c-ink { fill: var(--ink); } .c-ink2 { fill: var(--ink2); } .c-muted { fill: var(--muted); }
.c-before { fill: var(--faint); } .c-after { fill: var(--accent); }
.chart-total { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line1); }
.chart-total strong { font-size: 40px; font-weight: 750; letter-spacing: -1px; color: var(--accent); line-height: 1; }
.chart-total span { flex: 1 1 200px; font-size: 15px; line-height: 1.45; color: var(--ink2); }

/* CRMs */
.crms-section { padding: 72px 0; }
.crms-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.crms-row > div:first-child { flex: 1 1 360px; }
.crms-row h2 { font-size: 28px; letter-spacing: -0.5px; margin-bottom: 10px; }
.crms-row p { margin: 0; font-size: 16px; color: var(--ink2); line-height: 1.55; }
.crms { display: flex; gap: 16px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.crm { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; padding: 14px 20px; min-width: 180px; font-weight: 600; font-size: 16px; }
.crm-soon { border-style: dashed; border-color: var(--line3); color: var(--ink2); }
.pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--tint-accent); color: var(--accent); white-space: nowrap; }

/* Closing */
.closing { padding: 96px 0; text-align: center; }
.closing h2 { font-size: 40px; letter-spacing: -1px; line-height: 1.12; margin-bottom: 14px; }
.closing p { margin: 0 auto 30px; font-size: 18px; color: var(--ink2); max-width: 560px; line-height: 1.6; }

/* Footer */
.site-footer { border-top: 1px solid var(--line1); background: var(--surface); padding: 48px 0 40px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.foot-cols > div:first-child { flex: 1 1 260px; }
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.foot-sub { font-size: 14px; color: var(--muted); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; margin: 0; color: var(--ink); }
.foot-col a { color: var(--ink2); text-decoration: none; font-size: 14px; }
.foot-col a:hover { color: var(--ink); }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line1); font-size: 13px; color: var(--muted); }
.foot-slim { padding: 24px 0; }
.foot-slim .wrap { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--muted); }
.foot-slim a { color: var(--ink2); }

/* Early access form */
.ea { display: flex; flex-wrap: wrap; gap: 64px; padding-top: 72px; padding-bottom: 88px; align-items: flex-start; }
.ea-copy { flex: 1 1 360px; min-width: 0; }
.ea-copy h1 { font-size: 44px; line-height: 1.1; letter-spacing: -1px; margin-bottom: 18px; }
.ea-copy .lead { font-size: 18px; line-height: 1.6; margin-bottom: 28px; }
.checks { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.5; color: var(--ink2); list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 12px; }
.checks svg { flex: none; margin-top: 2px; }
.ea-help { margin: 32px 0 0; font-size: 14px; color: var(--muted); }
.panel { flex: 1 1 520px; min-width: 0; background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); padding: 32px; }
@media (max-width: 760px) { .ea { gap: 32px; padding-top: 40px; padding-bottom: 56px; } .ea-copy h1 { font-size: 34px; } .panel { padding: 22px 18px; } }

.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.form-row > div { flex: 1 1 200px; }
.label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); padding: 0; }
.label .opt { font-weight: 400; color: var(--muted); }
.input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line3); border-radius: 8px; font: inherit; font-size: 16px; background: var(--card); color: var(--ink); }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea.input { min-height: 88px; padding: 10px 12px; resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 8px; background: var(--card); font-size: 15px; cursor: pointer; flex: 1 1 160px; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.form .btn { min-height: 50px; font-size: 16px; }
.notice { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { padding: 24px 0; text-align: center; }
.done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--tint-good); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.done-icon path { stroke: var(--good-text); }
.done h1 { font-size: 28px; letter-spacing: 0; margin-bottom: 12px; }
.done p { margin: 0 auto 28px; font-size: 16px; color: var(--ink2); line-height: 1.6; max-width: 420px; }

.tick { stroke: var(--accent); }
.x-mark { stroke: var(--faint); }
.arrow { stroke: var(--accent); }
