/* CCSwitcherX website. One stylesheet, no external resources, no build step. */
:root {
  --bg: #f5f4ee;
  --bg-soft: #ebe9e0;
  --card: #ffffff;
  --border: #e0ddd2;
  --text: #1f1e1d;
  --text-2: #55534e;
  --muted: #6b6a65;
  --accent: #c96442;
  --accent-ink: #a94f32;
  --btn-bg: #a94f32;
  --btn-fg: #ffffff;
  --accent-soft: rgba(201, 100, 66, .10);
  --good: #2f8f5b;
  --good-ink: #1f6b42;
  --good-bg: #e3f3ea;
  --warn: #a8741a;
  --bad: #c0392b;
  --team: #4f6fc4;
  --shadow: 0 1px 2px rgba(31, 30, 29, .06), 0 12px 32px -14px rgba(31, 30, 29, .22);
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Cascadia Mono', Consolas, 'Courier New', monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1e1d;
    --bg-soft: #262523;
    --card: #2a2927;
    --border: #3b3936;
    --text: #f0eee6;
    --text-2: #c9c5bb;
    --muted: #a3a099;
    --accent: #d97757;
    --accent-ink: #d97757;
    --btn-bg: #d97757;
    --btn-fg: #1f1e1d;
    --accent-soft: rgba(217, 119, 87, .14);
    --good: #5bbf8a;
    --good-ink: #5bbf8a;
    --good-bg: #23382d;
    --warn: #e0a84b;
    --bad: #e5726b;
    --team: #6c8be0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --bg: #1f1e1d;
  --bg-soft: #262523;
  --card: #2a2927;
  --border: #3b3936;
  --text: #f0eee6;
  --text-2: #c9c5bb;
  --muted: #a3a099;
  --accent: #d97757;
  --accent-ink: #d97757;
  --btn-bg: #d97757;
  --btn-fg: #1f1e1d;
  --accent-soft: rgba(217, 119, 87, .14);
  --good: #5bbf8a;
  --good-ink: #5bbf8a;
  --good-bg: #23382d;
  --warn: #e0a84b;
  --bad: #e5726b;
  --team: #6c8be0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px 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; overflow-wrap: anywhere;
}
img, svg { 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: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--btn-bg); color: var(--btn-fg); 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(780px, 100% - 32px); margin-inline: auto; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; padding-block: 8px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { margin-left: auto; display: flex; gap: 2px; 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); }

/* hero */
.hero { padding: clamp(40px, 7vw, 84px) 0 40px; text-align: center; }
.eyebrow { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; font-size: 13px; color: var(--text-2); margin: 0; padding: 0; list-style: none; }
.eyebrow li { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; }
h1 {
  font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
  font-size: clamp(2rem, 5.6vw, 3.6rem); margin: 22px auto 18px; max-width: 18ch; text-wrap: balance;
}
.lede { font-size: clamp(1.02rem, 2vw, 1.22rem); color: var(--text-2); max-width: 44rem; 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 16px/1.2 var(--sans);
  padding: 13px 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 { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
.hero-art { margin: 44px auto 0; max-width: 1040px; }
.hero-art img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); background: var(--card); }

/* sections */
section { padding: clamp(48px, 7vw, 84px) 0; }
section.alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
h2 { font-weight: 700; letter-spacing: -.015em; line-height: 1.15; font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0 0 12px; text-wrap: balance; }
h3 { font-size: 1.08rem; margin: 0 0 6px; }
.sec-head { max-width: 44rem; margin-bottom: 32px; }
.sec-head p { color: var(--text-2); margin: 0; }
.lead { font-size: 1.1rem; color: var(--text-2); max-width: 46rem; }
.center { text-align: center; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .g2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin: 0; min-width: 0; }
.card img { width: 100%; height: auto; background: var(--bg-soft); }
.card figcaption, .card .body { padding: 14px 18px 18px; }
.card figcaption h3 { margin: 0 0 4px; }
.card figcaption p { margin: 0; color: var(--text-2); font-size: .95rem; }

.figure { margin: 28px 0 0; }
.figure img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.figure figcaption { color: var(--text-2); font-size: .95rem; margin-top: 10px; }

/* why */
.why p { max-width: 46rem; color: var(--text-2); font-size: 1.08rem; }

/* how it works */
.how { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 900px) { .how { grid-template-columns: minmax(0, 1fr); } }
.how img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); background: var(--card); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 50px; 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: var(--btn-fg); background: var(--btn-bg);
}

/* install */
.install-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; max-width: 760px; }
.install-steps li { min-width: 0; }
.install-steps p { margin: 0 0 8px; color: var(--text-2); }
.cmd {
  display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px 6px 4px 16px; min-width: 0;
}
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 11px 0; font: 15px/1.4 var(--mono); background: none; border: 0; color: var(--text); }
.cmd .p { color: var(--muted); user-select: none; }
.copy {
  font: 600 13px/1 var(--sans); color: var(--text); background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; cursor: pointer; min-width: 74px; min-height: 36px;
}
.copy:hover { border-color: var(--accent); }
.reqs { max-width: 760px; margin: 30px 0 0; padding-left: 20px; color: var(--text-2); }
.reqs li { margin-bottom: 4px; }

/* safety */
.priv { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
@media (max-width: 640px) { .priv { grid-template-columns: minmax(0, 1fr); } }
.priv li { padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.priv strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.priv span { color: var(--text-2); font-size: .97rem; }

/* compare 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: 560px; font-size: .95rem; }
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); }
tbody th { font-weight: 600; width: 26%; }
tbody tr.us th, tbody tr.us td { background: var(--accent-soft); }
.compare-note { margin-top: 16px; color: var(--text-2); }

/* faq */
.faq-list { max-width: 820px; }
.faq-list h3 { margin-top: 26px; font-size: 1.12rem; }
.faq-list h3:first-child { margin-top: 0; }
.faq-list p { margin: 0; color: var(--text-2); }

code { font-family: var(--mono); font-size: .9em; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 34px 0 44px; color: var(--text-2); font-size: .94rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-start; }
footer p { margin: 0 0 6px; max-width: 42rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 20px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
