/* Cueline website: one stylesheet for every page. Light and dark follow the visitor's system setting. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f9;
  --panel: #ffffff;
  --fg: #16171d;
  --dim: #5b5e6b;
  --line: #e3e5eb;
  --accent: #b88a00;          /* readable yellow on white */
  --accent-strong: #facc15;   /* brand yellow */
  --accent-ink: #1a1400;
  --hero-a: #1c2030;
  --hero-b: #0b0b10;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 18, 30, .10);
  --maxw: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f13;
    --bg-soft: #15161c;
    --panel: #181920;
    --fg: #ececf1;
    --dim: #a3a5b2;
    --line: #2a2b35;
    --accent: #facc15;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.65 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Nirmala UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 54px); }
h2 { font-size: clamp(25px, 3.2vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
code, kbd { font-family: "Cascadia Mono", Consolas, monospace; font-size: .88em; }
kbd { background: var(--bg-soft); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--dim); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--panel); padding: 8px 12px; border-radius: 8px; }

/* ---------- header / nav ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; color: var(--fg); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--fg); text-decoration: none; padding: 7px 12px; border-radius: 9px; font-size: 15.5px; }
.nav a:hover { background: var(--bg-soft); }
.nav a[aria-current="page"] { background: var(--bg-soft); font-weight: 600; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 9px; height: 38px; padding: 0 12px; font: inherit; font-size: 15px; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; border-radius: 12px; padding: 13px 22px; font-size: 16.5px; border: 1px solid transparent; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-strong); color: var(--accent-ink); box-shadow: 0 6px 20px rgba(250, 204, 21, .28); }
.btn-ghost { color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.nav .btn { padding: 8px 14px; font-size: 15px; margin-left: 6px; }

/* ---------- hero ---------- */
.hero { color: #f3f3f7; background: radial-gradient(1200px 500px at 75% -10%, rgba(250, 204, 21, .22), transparent 60%), linear-gradient(160deg, var(--hero-a), var(--hero-b)); padding: 72px 0 0; overflow: hidden; }
.hero .wrap { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); color: #c9cad4; max-width: 720px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 6px; }
.hero .fine { font-size: 14.5px; color: #a8aab6; }
.hero .shot { border-radius: 16px 16px 0 0; box-shadow: 0 -10px 60px rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .1); border-bottom: 0; }
.pill { display: inline-block; font-size: 13.5px; font-weight: 600; letter-spacing: .02em; color: var(--accent-ink); background: var(--accent-strong); padding: 4px 11px; border-radius: 99px; margin-bottom: 18px; }

/* ---------- sections ---------- */
section { padding: 76px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--dim); margin: 0; font-size: 16px; }
.card .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent-strong) 18%, transparent); color: var(--accent); font-size: 21px; margin-bottom: 12px; }
.split { display: grid; gap: 36px; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.split.rev { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: minmax(0, 1fr); } .split.rev > :first-child { order: 0; } }
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.langs span { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 5px 13px; font-size: 15.5px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 30px; position: relative; margin: 8px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* pricing */
.price { max-width: 520px; margin: 0 auto; text-align: center; padding: 34px 28px; }
.price .amount { font-size: 56px; font-weight: 700; letter-spacing: -.02em; line-height: 1; margin: 10px 0 4px; }
.price .ticks { text-align: left; display: inline-block; }

/* ---------- docs layout (guide / help / legal) ---------- */
.page-head { padding: 54px 0 28px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-head p { color: var(--dim); max-width: 760px; margin: 0; font-size: 18px; }
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 40px 20px 80px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 15px; }
.toc strong { display: block; margin-bottom: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.toc a { display: block; color: var(--dim); text-decoration: none; padding: 5px 10px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--fg); border-left-color: var(--accent); }
@media (max-width: 900px) { .docs { grid-template-columns: minmax(0, 1fr); gap: 20px; } .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; } }
.prose { max-width: 780px; }
.prose h2 { margin-top: 56px; padding-top: 8px; scroll-margin-top: 84px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; scroll-margin-top: 84px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 1em; }
.prose li { margin: 5px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 600; }
/* Phones: each table row becomes a small card instead of scrolling sideways. */
@media (max-width: 600px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose tr:has(th) { display: none; }
  .prose tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 0; margin: 0 0 10px; background: var(--panel); }
  .prose td { border: 0; padding: 4px 14px; }
  .prose td:first-child { font-weight: 600; }
}
.note { border: 1px solid color-mix(in srgb, var(--accent-strong) 45%, var(--line)); background: color-mix(in srgb, var(--accent-strong) 9%, var(--panel)); border-radius: 12px; padding: 14px 16px; margin: 0 0 1.2em; }
.note p:last-child { margin: 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 46px; margin: 14px 0 !important; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-strong); color: var(--accent-ink); font-weight: 700; font-size: 15px; }
pre { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: 15px; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 10px 0; background: var(--panel); }
details summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--dim); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 0; }
details > p:last-child { padding-bottom: 6px; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 40px 0; font-size: 15px; color: var(--dim); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer.site a { color: var(--dim); text-decoration: none; }
footer.site a:hover { color: var(--fg); }

/* ---------- contact form ---------- */
.contact { display: grid; gap: 14px; margin-top: 16px; }
.contact label { display: grid; gap: 6px; font-weight: 600; font-size: 15.5px; }
.contact input, .contact select, .contact textarea { font: inherit; font-weight: 400; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.contact input:focus, .contact select:focus, .contact textarea:focus { outline: 2px solid var(--accent-strong); outline-offset: 1px; border-color: transparent; }
.contact textarea { resize: vertical; }
.contact .btn { justify-self: start; cursor: pointer; }
.contact .fine { font-size: 14px; color: var(--dim); margin: 0; }
.contact .hp { position: absolute; left: -9999px; }
