/* C-Switcher website. Cartoon style to match the app: Fredoka, ink outlines, hard offset shadows. */

:root {
  --paper: #fff4de;
  --paper-2: #ffe9c2;
  --paper-3: #fbe0ae;
  --card: #ffffff;
  --text: #2a2338;
  --muted: #6a6079;
  --line: #2a2338;
  --brand: #5b5bd6;
  --brand-ink: #ffffff;
  --brand-soft: #e2dfff;
  --good: #1f9d78;
  --bad: #d9663f;
  --shadow: 4px 4px 0 var(--line);
  --shadow-lg: 7px 7px 0 var(--line);
  --outline: 2.5px;
  --radius: 18px;

  --c-amber: #c79210;
  --c-blue: #2f6fde;
  --c-green: #1f9d78;
  --c-violet: #8e57d6;
  --c-rose: #d14b7a;
  --c-clay: #d9663f;
  --c-teal: #0e9ab5;
  --c-indigo: #5b5bd6;
  --c-lime: #78b83a;
}

:root[data-theme="dark"] {
  --paper: #161618;
  --paper-2: #1c1c20;
  --paper-3: #26262b;
  --card: #212125;
  --text: #f3efe6;
  --muted: #a49fb0;
  --line: #000000;
  --brand: #c1c1ff;
  --brand-ink: #2a2a60;
  --brand-soft: #404178;
  --shadow: 4px 4px 0 var(--line);
  --shadow-lg: 7px 7px 0 var(--line);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: Fredoka, "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .86em;
  background: var(--paper-3);
  border: 1.5px solid var(--line);
  padding: 1px 7px;
  border-radius: 8px;
}
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); border: var(--outline) solid var(--line); padding: 8px 14px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 8px; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 40px); }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font: inherit; font-weight: 600; cursor: pointer;
  color: var(--text); background: var(--card);
  border: var(--outline) solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-light { background: #fff; color: #2a2338; }
.btn-sm { padding: 7px 18px; font-size: .95rem; }
.btn-lg { padding: 15px 30px; font-size: 1.08rem; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; cursor: pointer;
  background: var(--card); color: var(--text);
  border: var(--outline) solid var(--line); border-radius: 14px; box-shadow: 3px 3px 0 var(--line);
  transition: transform .12s, box-shadow .12s;
}
.icon-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }

/* Nav */
.nav { position: fixed; top: 0; width: 100%; z-index: 50; transition: background .2s, border-color .2s; border-bottom: 2.5px solid transparent; }
.nav.scrolled { background: var(--paper); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; }
.logo-mark { width: 36px; height: 36px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 500; }
.nav-links a { padding: 4px 2px; border-bottom: 3px solid transparent; transition: border-color .15s; }
.nav-links a:hover { border-color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: 132px 0 56px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(var(--paper-3) 2px, transparent 2.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.sticker {
  display: inline-block; padding: 5px 16px; font-weight: 600; font-size: .92rem;
  background: var(--c-amber); color: #2a2338; border: var(--outline) solid var(--line); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--line); transform: rotate(-2deg);
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); line-height: 1.08; letter-spacing: -.01em; margin: 22px 0 20px; font-weight: 700; }
.mark {
  background: linear-gradient(transparent 60%, var(--brand-soft) 60%);
  padding: 0 .1em; border-radius: 4px; white-space: nowrap;
}
.lead { font-size: 1.22rem; color: var(--muted); max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 500; color: var(--muted); }
.trust li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; font-size: .8rem; font-weight: 700; color: #fff; background: var(--good); border: 2px solid var(--line); border-radius: 50%; }

/* App window illustration */
.win { background: var(--card); border: var(--outline) solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: .85rem; font-weight: 600; background: var(--paper-3); border-bottom: var(--outline) solid var(--line); }
.win-bar img { vertical-align: middle; }
.dots { margin-left: auto; display: flex; gap: 6px; }
.dots i { width: 12px; height: 12px; border: 2px solid var(--line); border-radius: 50%; background: var(--card); }
.win-body { display: grid; grid-template-columns: 128px 1fr; }
.win-side { padding: 14px 10px; background: var(--paper-2); border-right: var(--outline) solid var(--line); display: grid; align-content: start; gap: 6px; font-size: .82rem; font-weight: 500; }
.side-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; border: 2px solid transparent; }
.side-item.on { background: var(--brand-soft); border-color: var(--line); font-weight: 700; }
.tile { display: inline-block; width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line); box-shadow: 1.5px 1.5px 0 var(--line); flex: none; }
.win-main { padding: 14px; display: grid; gap: 10px; min-width: 0; }
.acct {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--card); border: var(--outline) solid var(--line); border-radius: 16px;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.acct:hover { transform: translateY(-1px); }
.acct.on { background: var(--paper-2); box-shadow: 3px 3px 0 var(--line); }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; font-weight: 700; color: #fff; border: var(--outline) solid var(--line); border-radius: 13px; box-shadow: 2px 2px 0 var(--line); }
.avatar.sm { width: 28px; height: 28px; font-size: .8rem; border-radius: 9px; border-width: 2px; }
.av-green, .l-green { background: var(--c-green); }
.av-blue, .l-blue { background: var(--c-blue); }
.acct-info strong { display: block; font-size: 1rem; line-height: 1.2; margin-bottom: 4px; }
.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.meters span { font-size: .66rem; font-weight: 500; color: var(--muted); display: block; line-height: 1.2; }
.meters i, .w-row i { display: block; height: 7px; margin-top: 3px; border-radius: 99px; background: var(--paper-3); border: 1.5px solid var(--line); overflow: hidden; }
.meters u, .w-row u { display: block; height: 100%; width: var(--v); background: var(--brand); text-decoration: none; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.launch { padding: 7px 14px; font-size: .85rem; font-weight: 600; color: #fff; border: 2px solid var(--line); border-radius: 999px; box-shadow: 2px 2px 0 var(--line); }
.term { padding: 12px 14px; font: .8rem/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; color: #e8e4f4; background: #1b1724; border: var(--outline) solid var(--line); border-radius: 14px; }
.term .dim { color: #8f89a3; }
.term .ok { color: #6ee0a8; animation: pop .45s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.caption { margin-top: 18px; text-align: center; font-size: .85rem; color: var(--muted); }

/* Stats */
.stats { padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 18px 10px; background: var(--card); border: var(--outline) solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat b { display: block; font-size: 2.7rem; line-height: 1.1; color: var(--brand); }
.stat:nth-child(2) b { color: var(--c-green); }
.stat:nth-child(3) b { color: var(--c-clay); }
.stat:nth-child(4) b { color: var(--c-violet); }
.stat span { font-weight: 500; color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--paper-2); border-block: var(--outline) solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; padding: 3px 14px; margin-bottom: 14px; font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand); border: 2px solid var(--line); border-radius: 999px; box-shadow: 2px 2px 0 var(--line); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.15; margin-bottom: 14px; font-weight: 700; }
h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 8px; font-weight: 600; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { padding: 26px 24px; background: var(--card); border: var(--outline) solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--line); }
.card p { color: var(--muted); }
.card .tile { width: 54px; height: 54px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 16px; box-shadow: 3px 3px 0 var(--line); }
.card .tile svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.t-amber svg, .t-lime svg { stroke: #2a2338 !important; }
.t-amber { background: var(--c-amber); }
.t-blue { background: var(--c-blue); }
.t-green { background: var(--c-green); }
.t-violet { background: var(--c-violet); }
.t-rose { background: var(--c-rose); }
.t-clay { background: var(--c-clay); }
.t-teal { background: var(--c-teal); }
.t-indigo { background: var(--c-indigo); }
.t-lime { background: var(--c-lime); }

/* Live meters */
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lead-sm { font-size: 1.12rem; color: var(--muted); margin-bottom: 22px; }
.bullets { display: grid; gap: 12px; }
.bullets li { padding: 12px 16px; background: var(--card); border: var(--outline) solid var(--line); border-radius: 16px; box-shadow: 3px 3px 0 var(--line); }
.bullets b { color: var(--brand); }
:root[data-theme="light"] .bullets b { color: #4a4ab8; }
.live-art { display: grid; gap: 32px; justify-items: center; }
.widget { width: min(340px, 100%); padding: 16px 18px; background: var(--card); border: var(--outline) solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); transform: rotate(1.5deg); }
.w-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.w-head em { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 700; color: var(--c-blue); letter-spacing: .06em; text-transform: uppercase; }
.w-row { display: grid; grid-template-columns: 64px 1fr 40px; align-items: center; gap: 10px; margin-top: 9px; font-size: .85rem; }
.w-row span { color: var(--muted); }
.w-row b { text-align: right; }
.w-row i { margin: 0; height: 9px; }
.taskbar { display: flex; align-items: center; gap: 14px; width: min(420px, 100%); padding: 10px 18px; color: #f3efe6; background: #202024; border: var(--outline) solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: .85rem; }
.tb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-blue); }
.tb-meter { display: grid; line-height: 1.15; }
.tb-meter small { color: #a49fb0; font-size: .75rem; }
.tb-meter b { font-size: .8rem; }
.tb-sep { flex: 1; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step { position: relative; padding: 38px 24px 26px; background: var(--card); border: var(--outline) solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.step p { color: var(--muted); }
.num { position: absolute; top: -22px; left: 22px; display: grid; place-items: center; width: 46px; height: 46px; font-size: 1.4rem; font-weight: 700; color: #2a2338; background: var(--c-amber); border: var(--outline) solid var(--line); border-radius: 15px; box-shadow: 3px 3px 0 var(--line); transform: rotate(-4deg); }
.step:nth-child(2) .num { background: var(--c-green); color: #fff; transform: rotate(3deg); }
.step:nth-child(3) .num { background: var(--c-violet); color: #fff; }
.under { text-align: center; margin-top: 40px; color: var(--muted); }

/* Privacy */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { padding: 28px 26px; background: var(--card); border: var(--outline) solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin-bottom: 16px; }
.badge { display: inline-grid; place-items: center; width: 32px; height: 32px; font-weight: 700; color: #fff; border: 2px solid var(--line); border-radius: 50%; box-shadow: 2px 2px 0 var(--line); }
.badge.ok { background: var(--good); }
.badge.x { background: var(--bad); }
.panel ul { display: grid; gap: 11px; }
.panel li { padding-left: 26px; position: relative; }
.panel li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border: 2px solid var(--line); border-radius: 4px; background: var(--good); }
.panel.no li::before { background: var(--bad); border-radius: 50%; }

/* FAQ */
.faq { margin-bottom: 14px; background: var(--card); border: var(--outline) solid var(--line); border-radius: 16px; box-shadow: 3px 3px 0 var(--line); transition: background .15s; }
.faq[open] { background: var(--paper-2); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 600; position: relative; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px; font-weight: 700; line-height: 1; color: var(--brand-ink); background: var(--brand); border: 2px solid var(--line); border-radius: 50%; transition: transform .2s; }
.faq[open] summary::after { content: "–"; transform: translateY(-50%) rotate(180deg); }
.faq p { padding: 0 20px 18px; color: var(--muted); }

/* CTA */
.cta { padding: 40px 0 96px; }
.cta-card { text-align: center; padding: 60px 24px; color: #fff; background: var(--c-indigo); border: var(--outline) solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); background-image: radial-gradient(rgba(255,255,255,.14) 2px, transparent 2.5px); background-size: 24px 24px; }
:root[data-theme="dark"] .cta-card { background-color: #404178; }
.cta-card h2 { margin-bottom: 8px; }
.cta-card p { font-size: 1.15rem; opacity: .92; margin-bottom: 28px; }
.cta-card small { display: block; margin-top: 18px; opacity: .85; }

/* Footer */
.footer { padding: 28px 0 40px; border-top: var(--outline) solid var(--line); background: var(--paper-2); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: .92rem; }
.logo.sm { font-size: 1rem; font-weight: 600; }
.logo.sm .logo-mark { width: 24px; height: 24px; }

/* Scroll reveal: only hidden once JS is running, so the page works without it */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .sticker.reveal.in { transform: rotate(-2deg); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .live-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 112px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 18px; background: var(--paper); border-bottom: var(--outline) solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 2px dashed var(--paper-3); }
  .nav.scrolled, .nav:has(.nav-links.open) { background: var(--paper); border-color: var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .cards, .two { grid-template-columns: 1fr; }
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
  .meters { gap: 6px; }
  .acct { grid-template-columns: auto 1fr; }
  .launch { display: none; }
  .btn-lg { width: 100%; }
  .hero-copy .cta-row { gap: 12px; }
  .nav-actions .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
