/* CCUsageX landing site — single small stylesheet, no external resources */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --card: #ffffff;
  --border: #d0d7de;
  --text: #1f2328;
  --text-2: #59636e;
  --muted: #6e7781;
  --accent: #5b3df5;
  --accent-ink: #4a2fd6;
  --accent-soft: rgba(91, 61, 245, .08);
  --good: #0a7d0a;
  --shadow: 0 1px 2px rgba(31, 35, 40, .04), 0 12px 32px -12px rgba(58, 29, 158, .18);
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --sans: -apple-system, 'Segoe UI', system-ui, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-soft: #161b22;
    --card: #161b22;
    --border: #30363d;
    --text: #e6edf3;
    --text-2: #9198a1;
    --muted: #8b949e;
    --accent: #8f7bff;
    --accent-ink: #b3a6ff;
    --accent-soft: rgba(143, 123, 255, .12);
    --good: #3fb950;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img, svg, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav a.gh { border: 1px solid var(--border); color: var(--text); }
@media (max-width: 720px) { .nav a.hide-s { display: none; } }

/* hero */
.hero { padding: clamp(48px, 9vw, 104px) 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 520px; z-index: -1; background: radial-gradient(60% 60% at 50% 0%, rgba(91, 61, 245, .16), rgba(91, 61, 245, 0) 70%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 999px; padding: 4px 12px; font-weight: 600; }
h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -.025em; line-height: 1.04; font-size: clamp(2.5rem, 6.4vw, 4.6rem); margin: 22px auto 18px; max-width: 16ch; text-wrap: balance; }
h1 .grad { background: linear-gradient(100deg, #5b3df5 0%, #3a1d9e 55%, #c13584 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { h1 .grad { background-image: linear-gradient(100deg, #a99bff 0%, #7a63ff 55%, #ff7ab8 100%); } }
.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-2); max-width: 46rem; margin: 0 auto 28px; text-wrap: pretty; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--sans); padding: 14px 22px; border-radius: 12px; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--card); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, #5b3df5, #3a1d9e 70%, #1b0b4a); }
.install { display: grid; gap: 10px; max-width: 640px; margin: 30px auto 0; text-align: left; }
.cmd { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 4px 6px 4px 16px; font-family: var(--mono); font-size: 14px; }
.cmd code { flex: 1; overflow-x: auto; white-space: nowrap; padding: 10px 0; scrollbar-width: none; }
.cmd .p { color: var(--muted); user-select: none; }
.cmd button { font: 600 12px var(--sans); color: var(--text-2); background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; cursor: pointer; min-width: 64px; }
.cmd button:hover { color: var(--text); }
.cmd-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 -4px 4px; }
.hero-art { margin: 48px auto 0; max-width: 1040px; }
.hero-art img { width: 100%; border-radius: 18px; }
.trust { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 26px 0 0; color: var(--text-2); font-size: 14px; }
.trust li::before { content: '✓'; color: var(--good); font-weight: 700; margin-right: 6px; }

/* sections */
section { padding: clamp(48px, 8vw, 88px) 0; }
section.alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--accent-ink); margin: 0 0 10px; }
h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0 0 14px; text-wrap: balance; }
h3 { font-size: 1.1rem; margin: 0 0 6px; letter-spacing: -.005em; }
.sec-head { max-width: 46rem; margin-bottom: 36px; }
.sec-head p { color: var(--text-2); font-size: 1.08rem; margin: 0; }
.center { text-align: center; margin-inline: auto; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .g2, .g3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.card .body { padding: 18px 20px 22px; }
.card .body p { margin: 0; color: var(--text-2); font-size: .97rem; }
.card img { width: 100%; background: var(--bg-soft); }
.feature h3 { font-family: var(--serif); font-size: 1.3rem; }

/* screenshots */
.shot { margin: 0; }
.shot img { width: 100%; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.shot figcaption { color: var(--text-2); font-size: .92rem; margin-top: 10px; }
.shots { display: grid; gap: 28px; grid-template-columns: 1.6fr 1fr; align-items: start; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }

/* how it works + steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; color: var(--text-2); }
.steps li strong { color: var(--text); display: block; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #5b3df5, #3a1d9e); }
.how { display: grid; gap: 36px; grid-template-columns: 1fr 1.25fr; align-items: center; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }
.how img { border-radius: 16px; border: 1px solid var(--border); background: var(--card); width: 100%; }

/* privacy */
.priv { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0; }
@media (max-width: 960px) { .priv { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .priv { grid-template-columns: 1fr; } }
.priv li { padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.priv b { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.priv span { color: var(--text-2); font-size: .94rem; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .94rem; }
caption { text-align: left; padding: 14px 18px; color: var(--text-2); font-size: .9rem; caption-side: bottom; border-top: 1px solid var(--border); }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--bg-soft); font-size: .85rem; color: var(--text-2); position: sticky; top: 0; }
tbody th { font-weight: 600; color: var(--text); width: 22%; }
td.us, thead th.us { background: var(--accent-soft); }
thead th.us { color: var(--accent-ink); font-weight: 700; }
.y { color: var(--good); font-weight: 600; }
.n { color: var(--muted); }

/* faq */
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--card); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 22px 20px; color: var(--text-2); }
.faq .ans p { margin: 0 0 10px; }
.faq .ans p:last-child { margin: 0; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }

/* final cta band */
.band { background: linear-gradient(135deg, #5b3df5 0%, #3a1d9e 55%, #1b0b4a 100%); color: #fff; border-radius: 24px; padding: clamp(32px, 6vw, 64px); text-align: center; }
.band h2 { color: #fff; margin-inline: auto; max-width: 22ch; }
.band p { color: rgba(255, 255, 255, .82); max-width: 40rem; margin: 0 auto 24px; }
.band .btn { background: #fff; color: #1b0b4a; border-color: #fff; }
.band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }

footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--text-2); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 20px; flex-wrap: wrap; }
footer p { margin: 0 0 6px; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.nf .big { font-family: var(--serif); font-size: clamp(5rem, 22vw, 11rem); line-height: 1; margin: 0; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.faq summary h3 { margin: 0; font-size: inherit; font-weight: inherit; }
.install > *, .cmd, .cmd code, .how > *, .shots > * { min-width: 0; }
