/* cuewire.dev: calm type, the brand's violet, real screenshots in frames. Light by default,
   dark with the reader's setting. No web fonts and no scripts. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f9;
  --bg-tint: #f4f2fe;
  --text: #16161a;
  --text-2: #4a4a55;
  --text-3: #6e6e7a;
  --line: #e6e6ec;
  --accent: #5a48c0;
  --accent-strong: #4a39ad;
  --accent-on: #ffffff;
  --accent-soft: #ece9fc;
  --good: #1f9d55;
  --frame-shadow: 0 1px 2px rgba(20, 18, 40, 0.06), 0 24px 60px -20px rgba(40, 30, 110, 0.28);
  --radius: 14px;
  --wrap: 1140px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f12;
    --bg-soft: #16161b;
    --bg-tint: #17152a;
    --text: #ececf1;
    --text-2: #b4b4c0;
    --text-3: #8d8d99;
    --line: #26262e;
    --accent: #a99cf5;
    --accent-strong: #c2b8fa;
    --accent-on: #14121f;
    --accent-soft: #221f3a;
    --good: #4cc38a;
    --frame-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 30px 70px -24px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img, picture { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; padding: 8px 14px; border-radius: 8px;
  background: var(--accent); color: var(--accent-on); z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.lead { font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: var(--text-2); max-width: 40em; }
.eyebrow {
  font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9em;
}
.muted { color: var(--text-3); }
.small { font-size: 0.9rem; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--text); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.logo { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--text-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 0.95rem; }
.nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a.btn, .nav a.btn:hover { color: var(--accent-on); background: var(--accent); }
.nav a.btn:hover { background: var(--accent-strong); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-on); font-weight: 600; font-size: 1rem;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { background: var(--accent-strong); color: var(--accent-on); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-small { padding: 8px 14px; border-radius: 10px; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }

/* Hero */
.hero { padding: 76px 0 36px; text-align: center; }
.hero .lead { margin: 0 auto; }
.hero .actions { justify-content: center; }
.hero h1 { max-width: 15em; margin-left: auto; margin-right: auto; }
.hero-shot { margin: 46px auto 0; max-width: 1240px; padding: 0 24px; }

/* A tall picture (a panel or a sheet) beside text: not as wide as its column. */
.frame-narrow { max-width: 400px; width: 100%; justify-self: center; }

.frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-soft); box-shadow: var(--frame-shadow);
}

/* The agents strip */
.agents { padding: 34px 0 16px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text-2); font-size: 0.93rem;
}

/* Feature rows */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 46em; margin: 0 auto 52px; }
.section-head .lead { margin: 0 auto; }

.row {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center;
  margin: 0 0 96px;
}
.row:last-child { margin-bottom: 0; }
.row.flip > :first-child { order: 2; }
.row h3 { font-size: 1.55rem; letter-spacing: -0.02em; margin-bottom: 0.45em; }
.row .text p { color: var(--text-2); }

.points { list-style: none; padding: 0; margin: 16px 0 0; }
.points li { position: relative; padding-left: 28px; margin: 0 0 10px; color: var(--text-2); }
.points li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}

kbd {
  font: 0.82em var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line);
  border-bottom-width: 2px; background: var(--bg); color: var(--text);
}
code { font: 0.9em var(--mono); background: var(--bg-soft); padding: 1px 5px; border-radius: 5px; }
/* A long hash wraps anywhere rather than widening the page. */
code.hash { word-break: break-all; font-size: 0.8em; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg);
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--text-2); margin: 0; font-size: 0.98rem; }
.card .icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.card .icon svg { width: 20px; height: 20px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 26px 22px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg);
}
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--frame-shadow); }
.plan h3 { font-size: 1.2rem; margin: 0 0 6px; }
/* On the card's top edge, so every plan's name lines up. */
.plan .tag {
  position: absolute; top: -12px; left: 20px; font-size: 0.75rem; font-weight: 650;
  padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-on);
}
.price { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; margin: 4px 0 2px; }
.price span { font-size: 0.95rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.plan .note { color: var(--text-3); font-size: 0.9rem; min-height: 2.8em; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 0.95rem; color: var(--text-2); border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 0.85em; width: 12px; height: 7px;
  border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg);
}
.plan .btn { width: 100%; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex;
  justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); margin: 0 0 16px; }

/* Callout band */
.band { padding: 78px 0; text-align: center; background: var(--bg-tint); border-top: 1px solid var(--line); }
.band .actions { justify-content: center; }

/* Download */
.download { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.box { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.box h2 { font-size: 1.4rem; }
.steps { padding-left: 1.3em; color: var(--text-2); }
.steps li { margin: 0 0 8px; }

/* Long-form text (legal) */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 24px 84px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose p, .prose li { color: var(--text-2); }
.prose li { margin-bottom: 6px; }
.draft {
  padding: 14px 18px; border-radius: 12px; border: 1px solid #e5b54d;
  background: color-mix(in srgb, #e5b54d 14%, var(--bg)); color: var(--text); margin: 0 0 28px;
  font-size: 0.95rem;
}

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--text-3); max-width: 20em; margin-top: 12px; font-size: 0.95rem; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin: 0 0 6px; }
.foot nav a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.foot nav a:hover { color: var(--text); }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-legal p { color: var(--text-3); font-size: 0.85rem; margin: 0; }

/* Narrow screens */
@media (max-width: 960px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .row, .row.flip, .download { grid-template-columns: 1fr; gap: 26px; }
  .row.flip > :first-child { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .row { margin-bottom: 64px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .hero-shot { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .nav a[href="/pricing/"] { display: inline; }
  .plans, .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color 0.15s ease, color 0.15s ease; }
}
