/* Resona — shared styles. Design tokens mirror the iOS app. */

:root {
  --bg: #0B0B0F;
  --raised: rgba(255, 255, 255, 0.055);
  --hairline: rgba(255, 255, 255, 0.08);
  --text: #F5F5F7;
  --text-2: rgba(245, 245, 247, 0.6);
  --text-3: rgba(245, 245, 247, 0.45);
  --violet: #8E7AFA;
  --cyan: #5AD7E0;
  --tint: #A99CFF;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient mesh, drifting like the Now Playing background */
.mesh {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.55;
}
.mesh span {
  position: absolute;
  display: block;
  border-radius: 50%;
}
.mesh .b1 { width: 46vw; height: 46vw; left: -6vw; top: -4vw; background: radial-gradient(circle, var(--violet), transparent 65%); animation: drift-a 18s ease-in-out infinite; }
.mesh .b2 { width: 40vw; height: 40vw; right: -4vw; top: 6vw; background: radial-gradient(circle, var(--cyan), transparent 65%); animation: drift-b 14s ease-in-out infinite; }
.mesh .b3 { width: 52vw; height: 52vw; left: 22vw; top: 34vw; background: radial-gradient(circle, #4A3BD9, transparent 66%); animation: drift-a 22s ease-in-out infinite reverse; }

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3vw, -2vw) scale(1.12); }
  66% { transform: translate(-2vw, 1.6vw) scale(1.04); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1.06); }
  50% { transform: translate(-2.6vw, 2.2vw) scale(0.94); }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* Header */
header.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav-links a.on { color: var(--tint); background: rgba(169, 156, 255, 0.14); }

/* App icon mark, drawn in CSS */
.icon {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 24%;
  background:
    radial-gradient(120% 100% at 20% 8%, rgba(90, 215, 224, 0.85), transparent 55%),
    linear-gradient(160deg, var(--violet), #4A3BD9);
  overflow: hidden;
}
.icon::before, .icon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.26);
}
.icon::before { width: 69%; height: 69%; }
.icon::after { width: 92%; height: 92%; border-color: rgba(255, 255, 255, 0.13); }
.icon i {
  position: relative;
  font-style: normal;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.icon.sm { width: 38px; height: 38px; box-shadow: 0 8px 22px rgba(142, 122, 250, 0.4); }
.icon.sm i { font-size: 22px; }
.icon.lg { width: 108px; height: 108px; margin: 0 auto; box-shadow: 0 26px 64px -12px rgba(142, 122, 250, 0.6); }
.icon.lg i { font-size: 62px; }

/* Hero */
.hero { text-align: center; padding: 40px 0 8px; }
.hero h1 {
  font-size: clamp(34px, 7vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 26px 0 0;
}
.hero .lead {
  color: var(--text-2);
  font-size: clamp(15px, 2.4vw, 18px);
  font-weight: 500;
  max-width: 520px;
  margin: 14px auto 0;
  text-wrap: pretty;
}
.grad {
  background: linear-gradient(100deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 15px;
}

/* Page title (support / privacy) */
.page-head { padding: 26px 0 6px; }
.page-head h1 { font-size: clamp(28px, 5vw, 38px); font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.page-head p { color: var(--text-2); font-size: 15px; margin: 10px 0 0; max-width: 620px; text-wrap: pretty; }
.stamp { color: var(--text-3); font-size: 13px; font-weight: 600; margin-top: 6px; }

/* Cards */
.card {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.grid { display: grid; gap: 14px; margin-top: 30px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } }

.tile {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  flex: none;
}
.tile svg { width: 22px; height: 22px; display: block; }
.t1 { background: linear-gradient(140deg, #8E7AFA, #5AD7E0); box-shadow: 0 8px 20px rgba(142, 122, 250, 0.3); }
.t2 { background: linear-gradient(140deg, #E060A8, #4A3BD9); box-shadow: 0 8px 20px rgba(224, 96, 168, 0.25); }
.t3 { background: linear-gradient(140deg, #FFB84D, #FF7A59); box-shadow: 0 8px 20px rgba(255, 122, 89, 0.25); }
.t4 { background: linear-gradient(140deg, #54DEC8, #2E66E8); box-shadow: 0 8px 20px rgba(46, 102, 232, 0.25); }
.t5 { background: linear-gradient(140deg, #FF6B8A, #E8543E); box-shadow: 0 8px 20px rgba(232, 84, 62, 0.25); }
.t6 { background: linear-gradient(140deg, #AEB4C0, #5C6270); box-shadow: 0 8px 20px rgba(92, 98, 112, 0.25); }

.card h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 14.5px; margin: 0; text-wrap: pretty; }

/* Sections */
section { margin-top: 44px; }
h2.sec {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
}

/* Prose (privacy / faq) */
.prose h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.prose p { color: var(--text-2); font-size: 15px; margin: 0 0 12px; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { color: var(--text-2); font-size: 15px; margin: 0; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose li:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 700; }
.prose em { color: var(--text); font-style: normal; font-weight: 600; }
.stack { display: grid; gap: 14px; }

/* FAQ */
details.faq {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 4px 18px;
  transition: background 0.2s;
}
details.faq[open] { background: rgba(255, 255, 255, 0.075); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 28px 15px 0;
  font-size: 15.5px;
  font-weight: 700;
  position: relative;
  letter-spacing: -0.01em;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}
details.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details.faq .body { color: var(--text-2); font-size: 14.5px; padding: 0 0 16px; text-wrap: pretty; }

/* Contact */
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.contact .tile { margin: 0; }
.contact .who { flex: 1; min-width: 180px; }
.contact .who b { display: block; font-size: 16px; font-weight: 700; }
.contact .who span { color: var(--text-2); font-size: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(100deg, var(--violet), var(--cyan));
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 14px 34px -10px rgba(120, 150, 240, 0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -10px rgba(120, 150, 240, 0.7); }

a.link { color: var(--tint); text-decoration: none; font-weight: 600; }
a.link:hover { color: var(--cyan); }

/* Footer */
footer {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 600;
}
footer .fl { display: flex; gap: 16px; }

@media (prefers-reduced-motion: reduce) {
  .mesh span { animation: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
