/* Copium website: the app's look (black, soft aurora, glass cards, mint accent), light and dark */

:root {
  --bg: #000;
  --ink: #fff;
  --muted: #a1a1a8;
  --line: rgba(255, 255, 255, 0.10);
  --card: rgba(28, 28, 30, 0.62);
  --card-solid: #1c1c1e;
  --card-edge: rgba(255, 255, 255, 0.09);
  --accent: #d0fc9c;
  --accent-ink: #0b1a10;
  --accent-soft: rgba(208, 252, 156, 0.12);
  --gold: #ffd66b;
  --button: #fff;
  --button-ink: #000;
  --aurora-a: rgba(183, 148, 255, 0.30);
  --aurora-b: rgba(143, 240, 216, 0.20);
  --aurora-c: rgba(255, 184, 208, 0.16);
  --aurora-d: rgba(142, 197, 255, 0.20);
  --font: -apple-system, BlinkMacSystemFont, "Inter", system-ui, "Segoe UI Variable", Roboto, sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f7;
    --ink: #1d1d1f;
    --muted: #5f5f66;
    --line: rgba(0, 0, 0, 0.10);
    --card: rgba(255, 255, 255, 0.68);
    --card-solid: #fff;
    --card-edge: rgba(0, 0, 0, 0.07);
    --accent: #2f7d12;
    --accent-ink: #fff;
    --accent-soft: rgba(47, 125, 18, 0.10);
    --gold: #a86f00;
    --button: #1d1d1f;
    --button-ink: #fff;
    --aurora-a: rgba(183, 148, 255, 0.28);
    --aurora-b: rgba(120, 220, 196, 0.24);
    --aurora-c: rgba(255, 170, 200, 0.20);
    --aurora-d: rgba(130, 185, 255, 0.24);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The calm aurora behind every page, like the app's CalmBackground */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); }
.aurora span:nth-child(1) { width: 60vw; height: 60vw; left: 50%; top: -25vw; background: var(--aurora-a); animation: drift 28s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 50vw; height: 50vw; right: -20vw; top: 40vh; background: var(--aurora-b); animation: drift 34s ease-in-out infinite alternate-reverse; }
.aurora span:nth-child(3) { width: 45vw; height: 45vw; left: -18vw; top: 60vh; background: var(--aurora-c); animation: drift 30s ease-in-out infinite alternate; }
.aurora span:nth-child(4) { width: 40vw; height: 40vw; left: -10vw; top: -12vw; background: var(--aurora-d); animation: drift 38s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(6vw, 4vh) scale(1.12); } }

a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card-solid); padding: 10px 16px; border-radius: 12px; }

/* Header: a translucent bar over the page */
.bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; margin-right: auto; }
.brand img { width: 32px; height: 32px; }
.bar nav { display: flex; gap: 4px; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--ink); }

/* Buttons: white capsule (main), glass capsule (quiet) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--button); color: var(--button-ink); font: 600 17px/1 var(--font); text-decoration: none; border: 0;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1), opacity .2s; }
.btn:active { transform: scale(0.96); }
.btn svg { width: 22px; height: 22px; }
.btn.quiet { background: var(--card); color: var(--ink); border: 1px solid var(--card-edge); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 72px 0 56px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; margin: 0 0 14px; letter-spacing: 0; }
.hero h1 { font-size: clamp(42px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; margin: 0 0 20px; }
.hero .lead { color: var(--muted); font-size: 20px; line-height: 1.5; margin: 0 0 30px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { font-size: 14px; color: var(--muted); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); }
.hero-fluff { position: relative; display: flex; justify-content: center; }
.hero-fluff::before { content: ""; position: absolute; inset: 12% 8%; border-radius: 50%; background: radial-gradient(closest-side, var(--aurora-b), transparent); filter: blur(30px); }
.hero-fluff img { position: relative; width: min(420px, 100%); height: auto; animation: bob 4.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }

/* Sections */
section { padding: 64px 0; }
.head { max-width: 640px; margin-bottom: 32px; }
.head h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 12px; }
.head p { color: var(--muted); margin: 0; font-size: 18px; }

.glass { background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); }

/* Fluff's mood: a slider like the app's mood page */
.mood { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; padding: 32px; }
.mood figure { margin: 0; display: flex; justify-content: center; align-items: center; height: 260px; }
.mood figure img { max-width: 100%; max-height: 260px; transition: opacity .25s; }
.mood .time { font-size: 15px; color: var(--muted); margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.mood h3 { font-size: 34px; letter-spacing: -0.03em; margin: 0 0 8px; }
.mood .says { color: var(--muted); margin: 0 0 24px; min-height: 3.1em; }
.track { position: relative; height: 44px; display: flex; align-items: center; }
.track input { width: 100%; margin: 0; appearance: none; -webkit-appearance: none; height: 44px; background: transparent; cursor: pointer; }
.track input::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: var(--strip); }
.track input::-moz-range-track { height: 8px; border-radius: 99px; background: var(--strip); }
.track input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35), 0 0 0 .5px rgba(0,0,0,.08); }
.track input::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.ticks { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 16px; }
.ladder button { all: unset; cursor: pointer; text-align: center; padding: 12px 6px; border-radius: var(--radius-sm); }
.ladder button:hover, .ladder button[aria-pressed="true"] { background: var(--accent-soft); }
.ladder button:focus-visible { outline: 2px solid var(--accent); }
.ladder img { width: 64px; height: 64px; object-fit: contain; display: block; margin: 0 auto 6px; }
.ladder b { display: block; font-size: 14px; font-weight: 600; }
.ladder small { color: var(--muted); font-size: 12px; }

/* Features */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 24px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; letter-spacing: -0.02em; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.5; }
.card ul { color: var(--muted); font-size: 15px; margin: 10px 0 0; padding-left: 18px; }
.card li { margin: 4px 0; }

/* Restriction kinds */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.list { padding: 8px 24px; }
.list h3 { font-size: 19px; margin: 18px 0 6px; letter-spacing: -0.02em; }
.row { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row b { min-width: 92px; font-weight: 600; }
.row span { color: var(--muted); font-size: 15px; }

/* Sparks and the collection */
.earn { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.earn .glass { padding: 20px; }
.earn strong { display: block; color: var(--gold); font-size: 26px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.earn span { color: var(--muted); font-size: 15px; }
.collection { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.collection li { padding: 14px 8px 12px; text-align: center; }
.collection img { width: 84px; height: 84px; object-fit: contain; display: block; margin: 0 auto 8px; }
.collection b { display: block; font-size: 15px; font-weight: 600; }
.collection small { color: var(--muted); font-size: 12px; }
.collection .gold { color: var(--gold); }

/* Privacy at a glance */
.promise { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; padding: 12px 28px; }
.promise p { display: flex; gap: 12px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.promise p b { color: var(--ink); font-weight: 600; }
.promise svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }

/* FAQ */
.faq { padding: 4px 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 600; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .3s cubic-bezier(.2, .9, .3, 1); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* Long text pages (privacy policy) */
.doc { max-width: 720px; margin: 0 auto; padding: 48px 0 72px; }
.doc h1 { font-size: clamp(36px, 6vw, 48px); letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 10px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc .summary { padding: 20px 24px; margin-bottom: 8px; }
.doc .summary p { margin: 0; color: var(--ink); }
.doc h2 { font-size: 24px; letter-spacing: -0.025em; margin: 44px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.table { overflow-x: auto; margin: 14px 0; border-radius: var(--radius-sm); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 600; }
.doc td:first-child { color: var(--ink); width: 34%; }

footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; align-items: center; }
footer a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: left; }
  .hero-fluff { order: -1; }
  .hero-fluff img { width: min(300px, 80%); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .earn { grid-template-columns: repeat(2, 1fr); }
  .collection { grid-template-columns: repeat(4, 1fr); }
  .mood { grid-template-columns: 1fr; }
  .mood figure { height: 200px; }
  .mood figure img { max-height: 200px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .bar nav a.hide-sm { display: none; }
  .cards, .split, .promise { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(4, 1fr); }
  .collection { grid-template-columns: repeat(3, 1fr); }
  .mood { padding: 20px; }
  .hero .lead { font-size: 18px; }
  .doc th, .doc td { padding: 10px 8px; font-size: 14px; }
  section { padding: 48px 0; }
}
@media (max-width: 380px) {
  .earn { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora span, .hero-fluff img { animation: none; }
  .btn, .faq summary::after, .mood figure img { transition: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .btn.quiet { background: var(--card-solid); }
}
