/* ═══════════════════ Hookcord — Website (Cartoon UI) ═══════════════════ */
:root {
  --bg: #f5efff;
  --panel: #ffffff;
  --soft: #f1ebff;
  --soft-2: #ece4ff;
  --ink: #221d3a;
  --text: #221d3a;
  --muted: #8b85a8;
  --line: #221d3a;

  --grape: #7c5cff;
  --grape-d: #5b3ae0;
  --pink: #ff5ca8;
  --sky: #38bdf8;
  --yellow: #ffd23f;
  --mint: #2fe0a0;
  --coral: #ff6b6b;

  --bw: 2.5px;
  --shadow: 3px 3px 0 var(--ink);
  --shadow-lg: 5px 6px 0 var(--ink);
  --radius: 18px;
  --radius-lg: 26px;
  --font: "Baloo 2", system-ui, sans-serif;
  --head: "Fredoka", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #17132b;
  --panel: #221d3a;
  --soft: #2b2450;
  --soft-2: #332a5c;
  --ink: #0d0a1c;
  --text: #f3efff;
  --muted: #a59ecb;
  --line: #0d0a1c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 600;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  background:
    radial-gradient(circle at 8% 4%, rgba(124, 92, 255, .16), transparent 38%),
    radial-gradient(circle at 92% 8%, rgba(255, 92, 168, .13), transparent 38%),
    radial-gradient(circle at 75% 96%, rgba(56, 189, 248, .12), transparent 44%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.15; }
a { color: var(--grape); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 22px; }

/* floating blobs */
.blobs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.blobs span {
  position: absolute; width: 84px; height: 84px;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  border: var(--bw) solid var(--line); opacity: .1;
  animation: float 10s ease-in-out infinite;
}
.blobs span:nth-child(1) { background: var(--grape); left: 5%; top: 18%; }
.blobs span:nth-child(2) { background: var(--pink); right: 7%; top: 26%; animation-delay: 1.8s; }
.blobs span:nth-child(3) { background: var(--sky); left: 12%; bottom: 14%; animation-delay: 3.4s; }
.blobs span:nth-child(4) { background: var(--yellow); right: 14%; bottom: 20%; animation-delay: 5s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-26px) rotate(15deg); } }

/* ─── nav ─── */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: var(--bw) solid var(--line);
}
.nav-inner {
  max-width: 920px; margin: 0 auto; padding: 11px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img {
  width: 40px; height: 40px; border-radius: 12px;
  border: var(--bw) solid var(--line); box-shadow: 2px 2px 0 var(--line);
  transform: rotate(-5deg);
}
.brand b { font-family: var(--head); font-size: 1.3rem; color: var(--text); }
.brand .v2 {
  font-family: var(--head); font-size: .68rem; font-weight: 700; color: #fff;
  background: var(--pink); border: 2px solid var(--line); border-radius: 99px;
  padding: 1px 8px 2px; box-shadow: 1.5px 1.5px 0 var(--line); transform: rotate(-5deg);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 7px 13px; border-radius: 11px; font-size: .9rem; font-weight: 800;
  color: var(--text); border: 2px solid transparent; transition: background .15s, border-color .15s, transform .1s;
}
.nav-links a:hover { text-decoration: none; background: var(--soft); border-color: var(--line); transform: translate(-1px, -1px); }
.nav-links a.active { background: var(--grape); color: #fff; border-color: var(--line); box-shadow: 2px 2px 0 var(--line); }

.theme-toggle {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px;
  background: var(--soft); border: var(--bw) solid var(--line); box-shadow: 2px 2px 0 var(--line);
  font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; transition: transform .1s;
}
.theme-toggle:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.theme-toggle:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--line); }

/* ─── buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; border: var(--bw) solid var(--line);
  font-weight: 800; font-size: 1rem; cursor: pointer; color: var(--text);
  background: var(--panel); box-shadow: var(--shadow); transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-lg); text-decoration: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn.primary { background: var(--grape); color: #fff; }
.btn.mint { background: var(--mint); color: #08381f; }
.btn.chrome { background: #fff; color: #1a1a2e; }
.chrome-ic { flex: 0 0 auto; }

/* nav install button */
.nav-install {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 12px; font-size: .88rem; font-weight: 800;
  background: var(--grape); color: #fff; border: 2px solid var(--line);
  box-shadow: 2px 2px 0 var(--line); transition: transform .1s, box-shadow .1s;
}
.nav-install:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.nav-install:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--line); }
.nav-install .chrome-ic { background: #fff; border-radius: 50%; }

/* ─── hero ─── */
.hero { text-align: center; padding: 64px 0 34px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px;
  padding: 6px 15px; border-radius: 99px; background: var(--mint); color: #08381f;
  border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line); font-weight: 800; font-size: .82rem;
}
.hero-logo {
  width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 26px;
  border: var(--bw) solid var(--line); box-shadow: var(--shadow-lg); transform: rotate(-5deg);
  display: block;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); margin-bottom: 14px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--grape), var(--pink));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { color: var(--muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── feature grid ─── */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px; margin: 48px 0;
}
.feature {
  background: var(--panel); border: var(--bw) solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; transition: transform .12s, box-shadow .12s;
}
.feature:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.feature .emoji {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; border: var(--bw) solid var(--line); box-shadow: 2px 2px 0 var(--line);
  margin-bottom: 12px; transform: rotate(-5deg);
}
.feature h3 { font-size: 1.18rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ─── cta band ─── */
.cta-band {
  background: var(--panel); border: var(--bw) solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 36px 28px; text-align: center; margin: 40px 0;
}
.cta-band h2 { font-size: 1.9rem; margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 22px; }

/* ─── legal pages (privacy / terms) ─── */
.page-head { text-align: center; padding: 50px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
.page-head p { color: var(--muted); margin-top: 8px; }
.doc {
  background: var(--panel); border: var(--bw) solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 30px 32px; margin: 26px 0 40px;
}
.doc h2 {
  font-size: 1.35rem; margin: 26px 0 10px; display: flex; align-items: center; gap: 9px;
}
.doc h2:first-child { margin-top: 0; }
.doc h2 .num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; font-size: .9rem;
  background: var(--grape); color: #fff; border: 2px solid var(--line); box-shadow: 1.5px 1.5px 0 var(--line);
  display: grid; place-items: center;
}
.doc p { margin: 8px 0; color: var(--text); }
.doc ul { margin: 8px 0 8px 6px; padding-left: 20px; }
.doc li { margin: 6px 0; color: var(--text); }
.doc li::marker { color: var(--grape); }
.doc strong { color: var(--text); font-weight: 800; }
.doc a { word-break: break-word; }
.doc .pill-note {
  background: var(--soft); border: 2px solid var(--line); border-radius: 13px;
  padding: 14px 16px; margin: 16px 0; box-shadow: 2px 2px 0 var(--line); font-size: .95rem;
}
.doc .pill-note.good { background: #d6f8e9; color: #0b6b48; }
[data-theme="dark"] .doc .pill-note.good { background: var(--soft); color: var(--mint); }
.updated {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 6px;
  background: var(--soft); border: 2px solid var(--line); border-radius: 99px;
  padding: 5px 14px; font-size: .82rem; font-weight: 800; color: var(--muted);
}

table.perms { width: 100%; border-collapse: separate; border-spacing: 0; margin: 12px 0; }
table.perms th, table.perms td {
  text-align: left; padding: 10px 12px; border: 2px solid var(--line); font-size: .9rem;
}
table.perms th { background: var(--soft-2); font-weight: 800; }
table.perms tr td:first-child { font-weight: 800; white-space: nowrap; background: var(--soft); }

/* ─── footer ─── */
footer {
  border-top: var(--bw) solid var(--line); margin-top: 30px; padding: 26px 0 34px;
  text-align: center;
}
.foot-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.foot-links a { font-weight: 800; font-size: .9rem; }
footer .copy { color: var(--muted); font-size: .85rem; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--grape); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 560px) {
  .nav-links a { padding: 6px 9px; font-size: .82rem; }
  .brand b { font-size: 1.1rem; }
  .doc { padding: 22px 18px; }
}
