/* Together Lists website — glass gem style, matching the app. */
:root {
  --bg1: #0a0820;
  --bg2: #120c2c;
  --text: #ffffff;
  --text2: rgba(255, 255, 255, 0.72);
  --text3: rgba(255, 255, 255, 0.48);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --edge: rgba(255, 255, 255, 0.14);
  --hl: rgba(255, 255, 255, 0.28);
  --accent: #c4b5fd;
  --amethyst: #a855f7;
  --sapphire: #3b82f6;
  --emerald: #10b981;
  --ruby: #f43f5e;
  --topaz: #f59e0b;
  --aqua: #06b6d4;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg1: #ebe7ff;
    --bg2: #f7f2ff;
    --text: #16132e;
    --text2: rgba(22, 19, 46, 0.72);
    --text3: rgba(22, 19, 46, 0.5);
    --glass: rgba(255, 255, 255, 0.55);
    --glass-strong: rgba(255, 255, 255, 0.8);
    --edge: rgba(255, 255, 255, 0.9);
    --hl: rgba(255, 255, 255, 0.95);
    --accent: #7c3aed;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(170deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Drifting jewel light behind everything */
.orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orbs span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; animation: drift 24s ease-in-out infinite alternate; }
.orbs span:nth-child(1) { width: 480px; height: 480px; left: -140px; top: -120px; background: var(--amethyst); }
.orbs span:nth-child(2) { width: 420px; height: 420px; right: -140px; top: 30%; background: var(--sapphire); animation-duration: 28s; }
.orbs span:nth-child(3) { width: 380px; height: 380px; left: 10%; bottom: -160px; background: var(--emerald); animation-duration: 32s; }
.orbs span:nth-child(4) { width: 260px; height: 260px; right: 8%; bottom: 6%; background: var(--ruby); opacity: 0.35; animation-duration: 20s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .orbs span { animation: none; } }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--hl), 0 10px 30px rgba(0, 0, 0, 0.25);
  border-radius: 26px;
}

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.nav { position: sticky; top: 0; z-index: 10; padding: 14px 0; }
.nav .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px 10px 16px; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .brand-full, .brand .brand-full img { display: block; }
.brand .brand-full img { width: 166px; height: auto; }
.brand .brand-mark { display: none; width: 36px; height: auto; }
.nav .links { display: flex; gap: 18px; font-size: 15px; font-weight: 600; }
.nav .links a { color: var(--text2); }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Home */
.hero { text-align: center; padding: 72px 0 48px; }
.hero .gem { width: 112px; height: auto; margin: 0 auto 22px; display: block; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35)); }
.hero h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.hero p { font-size: clamp(17px, 2.4vw, 21px); color: var(--text2); max-width: 620px; margin: 18px auto 0; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; color: #fff; background: linear-gradient(140deg, var(--amethyst), #7e22ce); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 26px rgba(168, 85, 247, 0.45); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 24px 0 64px; }
.feature { padding: 24px; }
.feature .icon { font-size: 30px; line-height: 1; margin-bottom: 12px; }
.feature h3 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 6px; }
.feature p { color: var(--text2); font-size: 15.5px; }

/* Document pages (privacy, terms, support) */
.doc { padding: 36px 0 64px; }
.doc .card { padding: clamp(22px, 5vw, 48px); }
.doc h1 { font-size: clamp(32px, 6vw, 46px); letter-spacing: -0.03em; line-height: 1.1; }
.doc .updated { color: var(--text3); margin-top: 8px; font-size: 15px; }
.doc h2 { font-size: 21px; letter-spacing: -0.01em; margin: 34px 0 10px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text2); font-size: 16.5px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { margin: 10px 0 0 22px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--text); }
.callout { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--edge); }
.faq details { margin-top: 12px; padding: 16px 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--edge); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; color: var(--text); }
.faq details p, .faq details ol { margin-top: 10px; }

/* How-to guide */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.toc a { padding: 7px 14px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--edge); color: var(--text); font-weight: 600; font-size: 14.5px; }
.toc a:hover { text-decoration: none; border-color: var(--accent); }
.doc section { scroll-margin-top: 96px; }
.doc em { color: var(--text); font-style: normal; font-weight: 600; }
.more { text-align: center; padding: 0 0 64px; }
.more a { font-weight: 700; font-size: 17px; }

/* Footer */
footer { padding: 28px 0 40px; text-align: center; color: var(--text3); font-size: 14.5px; }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; font-weight: 600; }
footer nav a { color: var(--text2); }

@media (max-width: 560px) {
  .nav .links { gap: 11px; font-size: 13.5px; }
  .brand .brand-full { display: none; }
  .brand .brand-mark { display: block; }
  .hero { padding-top: 48px; }
}
