/* Charmly website: the same warm dark lacquer and single gold accent as the apps. */
:root {
  color-scheme: dark;
  --bg: #120f0d;
  --bg2: #1b1613;
  --panel: rgba(44, 36, 30, 0.55);
  --edge: rgba(255, 236, 200, 0.09);
  --edge-strong: rgba(255, 236, 200, 0.18);
  --ink: #f5efe6;
  --ink-2: #c9bfb1;
  --muted: #9a9083;
  --gold: #e8c36a;
  --gold-2: #c99a35;
  --gold-soft: rgba(232, 195, 106, 0.14);
  --r-lg: 22px;
  --r-md: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --serif: "Iowan Old Style", "Palatino Linotype", Cambria, Georgia, serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 16px/1.6 var(--sans);
  background:
    radial-gradient(1100px 620px at 80% -8%, rgba(232, 195, 106, 0.11), transparent 60%),
    radial-gradient(900px 700px at -10% 40%, rgba(170, 70, 40, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg) 40%);
  background-color: var(--bg);
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd { font: 600 12px var(--sans); color: var(--ink-2); background: rgba(255,255,255,.05); border: 1px solid var(--edge-strong); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
  background: linear-gradient(180deg, rgba(18,15,13,.92), rgba(18,15,13,.6)); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); font: 600 22px var(--serif); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: 0 6px 16px rgba(0,0,0,.45); }
.top nav { display: flex; align-items: center; gap: 26px; }
.top nav a:not(.btn) { color: var(--ink-2); font-size: 15px; }
.top nav a:not(.btn):hover { color: var(--ink); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15.5px var(--sans); border: 1px solid var(--edge-strong); color: var(--ink); background: rgba(255,255,255,.04);
  transition: transform .18s var(--ease), background .18s, box-shadow .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: rgba(255,255,255,.08); }
.btn.gold {
  color: #2a1d05; border-color: transparent;
  background: linear-gradient(180deg, #f4d68c, var(--gold) 45%, var(--gold-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 26px rgba(201,154,53,.28);
}
.btn.gold:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 14px 32px rgba(201,154,53,.38); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- hero ---------- */
main { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: center; min-height: min(720px, calc(100vh - 70px)); }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.04; }
.lead { color: var(--ink-2); font-size: 19px; max-width: 30em; margin: 20px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cords-try { display: flex; align-items: center; gap: 12px; margin-top: 34px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--edge-strong); cursor: pointer; padding: 0;
  background: var(--bg2) center / 34px auto repeat-y; transition: transform .15s var(--ease), border-color .15s;
}
.chip:hover { transform: scale(1.08); }
.chip.on { border: 2px solid var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.stage { position: relative; height: min(640px, calc(100vh - 90px)); min-height: 460px; align-self: start; }
.hero { position: relative; }
.hero-text { position: relative; z-index: 1; }
/* the charms swing across the whole width of the page, over the words; clicks fall through except on a charm */
#hero { position: absolute; top: 0; left: calc(50% - 50vw); width: 100vw; height: calc(100% + 60px); pointer-events: none; z-index: 2; }
.flick {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 14px; white-space: nowrap; pointer-events: none; transition: opacity .6s;
}
.flick.gone { opacity: 0; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0 0; }
.features article, .card {
  background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 40px rgba(0,0,0,.25);
}
.features svg { width: 26px; height: 26px; color: var(--gold); }
.features h3 { font-size: 21px; margin: 14px 0 8px; }
.features p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- blocks ---------- */
.block { padding: 110px 0 0; }
.block-head { margin-bottom: 32px; }
.block-head h2 { font-size: clamp(32px, 3.6vw, 44px); }
.block-head p { color: var(--ink-2); margin: 10px 0 0; max-width: 40em; }

/* ---------- collection ---------- */
.collection { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.charm {
  display: flex; flex-direction: column; align-items: center; text-align: center; font: inherit; color: inherit; cursor: pointer;
  background: var(--panel); border: 1px solid var(--edge); border-radius: 18px; padding: 18px 16px 16px; position: relative; overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.charm::before {
  content: ""; position: absolute; left: 50%; top: -30px; width: 200px; height: 170px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent, var(--gold)), transparent); opacity: .18; pointer-events: none;
}
.charm:hover { transform: translateY(-3px); border-color: var(--edge-strong); box-shadow: 0 16px 36px rgba(0,0,0,.35); }
.charm .pic { width: 120px; height: 120px; display: grid; place-items: center; margin-bottom: 12px; position: relative; }
.charm img { width: auto; height: auto; max-width: 120px; max-height: 120px; filter: drop-shadow(3px 6px 5px rgba(0,0,0,.45)); transition: transform .4s var(--ease); }
.charm:hover img { transform: rotate(-5deg) scale(1.04); }
.charm small { color: var(--gold); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.charm h3 { font-size: 20px; margin: 2px 0 6px; }
.charm p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.charm .hang { margin-top: auto; padding-top: 12px; color: var(--gold); font-weight: 600; font-size: 13.5px; }
.charm.up { border-color: rgba(232,195,106,.45); }
.charm.up .hang::after { content: " · hanging"; color: var(--muted); font-weight: 400; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); font: 600 34px var(--serif); color: var(--gold); line-height: 1; margin-bottom: 8px; }
.steps b { font-size: 18px; }
.steps span { color: var(--ink-2); font-size: 15px; }

/* ---------- download ---------- */
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.download { display: flex; flex-direction: column; gap: 6px; color: var(--ink); transition: transform .2s var(--ease), border-color .2s; }
.download:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--edge-strong); }
.download svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 8px; }
.download b { font-size: 19px; }
.download .status { color: var(--ink-2); font-size: 15px; }
.download.soon { cursor: default; }
.download.soon:hover { transform: none; }
.download.soon .status::before { content: "Soon"; display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 12px; font-weight: 600; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-md); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--ink-2); }

/* ---------- footer ---------- */
footer { max-width: var(--wrap); margin: 120px auto 0; padding: 28px 24px 40px; border-top: 1px solid var(--edge); display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
footer .brand { font-size: 18px; }
footer p { margin: 0; }

/* ---------- privacy page ---------- */
.doc { max-width: 760px; margin: 40px auto 0; padding: 0 24px; }
.doc h1 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 6px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc .meta { color: var(--muted); font-size: 14px; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .top { padding: 12px 16px; }
  .top nav { gap: 14px; }
  .top nav a:not(.btn) { display: none; }
  main { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-text { padding-top: 18px; }
  .stage { order: -1; height: 400px; min-height: 0; margin: 0 -16px; }
  .lead { font-size: 17px; }
  .steps, .downloads { grid-template-columns: 1fr; }
  .block { padding-top: 80px; }
  footer { margin-top: 80px; padding: 24px 16px 32px; }
  .doc { padding: 0 16px; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; justify-content: center; }
  .chip { width: 40px; height: 40px; }
  .chips { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
