/* CloudHive site styles.
   Studio palette comes from the CloudHive logo (sky blue, honey yellow, pollen-to-sage cloud);
   Lyric Hero pages borrow the app's "midnight arena" palette (ink, violet, hot pink, cyan). */

@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-variable-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #faf8f1;
  --surface: #ffffff;
  --surface-2: #f3f0e4;
  --ink: #14213a;
  --muted: #4d586b;
  --line: #e4dfcd;
  --sky: #8eb8e6;
  --sky-strong: #245ea8;
  --honey: #ffe96e;
  --honey-strong: #8a6500;
  --pollen: #dedd8e;
  --sage: #bccdb5;
  --accent: var(--sky-strong);
  --eyebrow: var(--honey-strong);
  --focus: #245ea8;
  --hex-line: rgba(20, 33, 58, 0.07);
  --shadow: 0 1px 2px rgba(20, 33, 58, 0.06), 0 12px 32px -12px rgba(20, 33, 58, 0.18);

  --arena-bg: #0b0b1f;
  --arena-surface: #161633;
  --violet: #6366f1;
  --violet-soft: #a5b4fc;
  --pink: #ec4899;
  --pink-soft: #f9a8d4;
  --cyan: #22d3ee;
  --gold: #fbbf24;

  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1160px;

  color-scheme: light dark;
}

[data-section="lyric-hero"] {
  --accent: #4f46e5;
  --eyebrow: #be185d;
  --focus: #4f46e5;
  --surface-2: #f1f0fb;
  --line: #e2e0f0;
  --hex-line: rgba(79, 70, 229, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1522;
    --surface: #151e2e;
    --surface-2: #111a29;
    --ink: #eef1f6;
    --muted: #a9b4c5;
    --line: #26324a;
    --sky-strong: #a3c8f0;
    --honey-strong: #ffe96e;
    --focus: #ffe96e;
    --hex-line: rgba(142, 184, 230, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  }
  [data-section="lyric-hero"] {
    --bg: #0b0b1f;
    --surface: #15152e;
    --surface-2: #10102a;
    --line: #2a2a4d;
    --accent: #a5b4fc;
    --eyebrow: #f9a8d4;
    --focus: #f9a8d4;
    --hex-line: rgba(165, 180, 252, 0.08);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 720px;
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 0.9rem;
}

.display {
  font-size: clamp(2.35rem, 1.4rem + 4.2vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.title {
  font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.85rem);
  font-weight: 700;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--muted);
  max-width: 60ch;
}

.hive-bg {
  position: relative;
  isolation: isolate;
}

.hive-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--hex-line);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E")
    0 0 / 56px 100px repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E")
    0 0 / 56px 100px repeat;
  pointer-events: none;
}

/* ---------- Buttons & pills ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 1.75rem;
}

.actions--center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 120ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: var(--honey);
  color: #14213a;
  box-shadow: 0 8px 24px -10px rgba(170, 140, 0, 0.55);
}

.button--primary:hover {
  background: #ffe04a;
}

.button--ghost {
  border-color: currentColor;
  color: var(--ink);
}

.button--ghost:hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.button--arena {
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(99, 102, 241, 0.8);
}

.button--arena:hover {
  background: #5b54ee;
}

.button--large {
  min-height: 60px;
  padding-inline: 1.75rem;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  overflow-wrap: anywhere;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pill--arena {
  color: #e0e7ff;
  border: 1px solid rgba(165, 180, 252, 0.4);
  background: rgba(99, 102, 241, 0.14);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: none;
}

.brand__mark {
  width: 44px;
  height: auto;
}

.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

/* Logo colors: wordmark, exempt from text contrast rules, darkened slightly on light paper. */
.brand__cloud {
  color: #5f93cf;
}

.brand__hive {
  color: #e0b800;
}

@media (prefers-color-scheme: dark) {
  .brand__cloud {
    color: var(--sky);
  }
  .brand__hive {
    color: var(--honey);
  }
}

.nav {
  display: flex;
  gap: clamp(2px, 1vw, 10px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 clamp(8px, 1.4vw, 14px);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav a:hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

@media (max-width: 480px) {
  .brand__word {
    font-size: 1.1rem;
  }
  .brand__mark {
    width: 36px;
  }
  .nav a {
    font-size: 0.875rem;
    padding: 0 8px;
  }
  .nav li:nth-child(2) {
    display: none;
  }
}

/* Lyric Hero sub navigation */
.subnav {
  background: var(--arena-bg);
  color: #e0e7ff;
  --focus: #f9a8d4;
}

.subnav__inner {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  min-height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav__app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

.subnav__app img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.subnav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.subnav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: #c7d2fe;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.subnav ul a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.subnav ul a[aria-current="page"] {
  color: #fff;
  background: rgba(99, 102, 241, 0.35);
}

@media (max-width: 560px) {
  .subnav__app span {
    display: none;
  }
  .subnav ul {
    margin-left: 0;
  }
  .subnav ul a {
    padding: 0 10px;
    font-size: 0.875rem;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section--tint {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* ---------- Home hero ---------- */

.hero {
  padding-block: clamp(48px, 9vw, 120px) clamp(48px, 7vw, 96px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero__copy .lede {
  margin-top: 1.25rem;
}

.hero__art {
  position: relative;
  aspect-ratio: 1 / 0.85;
  display: grid;
  place-items: center;
}

.hero__art::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--honey) 55%, transparent), transparent 70%),
    radial-gradient(closest-side at 70% 40%, color-mix(in srgb, var(--sky) 60%, transparent), transparent 75%);
  filter: blur(8px);
  opacity: 0.75;
}

.hero__cloud {
  position: relative;
  width: 88%;
  filter: drop-shadow(0 24px 40px rgba(20, 33, 58, 0.18));
  animation: float 9s ease-in-out infinite;
}

.hero__cells span {
  position: absolute;
  width: 46px;
  aspect-ratio: 1 / 1.1547;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  animation: float 7s ease-in-out infinite;
}

.hero__cells span:nth-child(1) { top: 2%; left: 14%; background: var(--honey); width: 40px; animation-delay: -1s; }
.hero__cells span:nth-child(2) { top: 10%; right: 6%; background: var(--sky); width: 30px; animation-delay: -3s; }
.hero__cells span:nth-child(3) { bottom: 8%; left: 4%; background: var(--sage); width: 34px; animation-delay: -5s; }
.hero__cells span:nth-child(4) { bottom: 2%; right: 18%; background: var(--honey); width: 24px; animation-delay: -2s; }
.hero__cells span:nth-child(5) { top: 44%; right: -1%; background: var(--pollen); width: 20px; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 820px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__art {
    order: -1;
    max-width: 380px;
    width: 80%;
    margin-inline: auto;
  }
}

/* ---------- Featured product card (always dark: Lyric Hero's arena) ---------- */

.feature-card {
  --focus: #f9a8d4;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 32px;
  overflow: hidden;
  color: #eef0ff;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(99, 102, 241, 0.45), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(236, 72, 153, 0.3), transparent 60%),
    var(--arena-bg);
  box-shadow: var(--shadow);
}

.feature-card a:not(.button) {
  color: var(--violet-soft);
}

.eyebrow--arena {
  color: var(--eyebrow);
}

.feature-card .eyebrow--arena,
.arena-hero .eyebrow--arena {
  color: var(--pink-soft);
}

.feature-card__title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0.5rem;
}

.feature-card__title img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 24px -8px rgba(236, 72, 153, 0.6);
}

.feature-card__title h2 {
  margin: 0;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  color: #fff;
}

.feature-card__lede {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 600;
  background: linear-gradient(90deg, #a5b4fc, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-card p {
  color: #c9cdee;
  max-width: 54ch;
}

.tick-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 10px;
}

.tick-list li {
  position: relative;
  padding-left: 30px;
  color: #e6e8ff;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 20px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

.feature-card__device {
  display: grid;
  place-items: center;
}

@media (max-width: 820px) {
  .feature-card {
    grid-template-columns: 1fr;
  }
  .feature-card__device {
    max-width: 220px;
    margin-inline: auto;
  }
}

/* ---------- Device frame ---------- */

.device {
  margin: 0;
  width: 100%;
  max-width: 300px;
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(160deg, #3a3a5c, #111122 40%, #22223a);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 60px -10px rgba(99, 102, 241, 0.35);
}

.device img {
  width: 100%;
  aspect-ratio: 600 / 1016;
  object-fit: cover;
  border-radius: 34px;
  background: #0b0b1f;
}

.device--tilt {
  transform: rotate(4deg);
}

/* ---------- Services ---------- */

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}

.service {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease;
}

.service:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--sky) 60%, var(--line));
}

.service h3 {
  font-size: 1.2rem;
  margin: 18px 0 8px;
}

.service p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

.hex-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #14213a;
}

.hex-badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hex-badge polygon {
  fill: var(--honey);
  stroke: color-mix(in srgb, var(--honey-strong) 40%, transparent);
  stroke-width: 2;
}

.service:nth-child(2) .hex-badge polygon { fill: var(--sky); }
.service:nth-child(3) .hex-badge polygon { fill: var(--sage); }
.service:nth-child(4) .hex-badge polygon { fill: var(--pollen); }

.hex-badge .icon {
  position: relative;
  width: 26px;
  height: 26px;
}

/* ---------- Approach ---------- */

.approach {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
}

.approach__list {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.approach__list li {
  counter-increment: step;
  position: relative;
  padding-left: 64px;
}

.approach__list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 50px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
}

.approach__list h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.approach__list p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 820px) {
  .approach {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */

.section--contact {
  padding-top: 0;
}

.contact-card {
  text-align: center;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px);
  border-radius: 32px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pollen) 45%, var(--surface)), color-mix(in srgb, var(--sky) 40%, var(--surface)));
  border: 1px solid var(--line);
  overflow: hidden;
}

.contact-card .lede {
  margin-inline: auto;
  color: var(--ink);
}

.contact-card .button {
  margin-top: 1rem;
}

/* ---------- Lyric Hero hero ---------- */

.arena-hero {
  --focus: #f9a8d4;
  position: relative;
  overflow: hidden;
  color: #eef0ff;
  padding-block: clamp(40px, 7vw, 96px) clamp(48px, 8vw, 110px);
  background:
    radial-gradient(40% 60% at 85% 20%, rgba(99, 102, 241, 0.55), transparent 70%),
    radial-gradient(35% 50% at 10% 90%, rgba(236, 72, 153, 0.4), transparent 70%),
    radial-gradient(25% 35% at 60% 100%, rgba(34, 211, 238, 0.25), transparent 70%),
    var(--arena-bg);
}

.arena-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.arena-hero__icon {
  width: clamp(88px, 12vw, 120px);
  height: auto;
  border-radius: 26px;
  margin-bottom: 1.5rem;
  box-shadow: 0 16px 48px -12px rgba(236, 72, 153, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.arena-hero h1 {
  color: #fff;
}

.arena-gradient {
  background: linear-gradient(90deg, #a5b4fc 0%, #f472b6 60%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.arena-hero .lede {
  color: #c9cdee;
  margin-top: 1.25rem;
}

.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 12px 22px 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(165, 180, 252, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.store-soon strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.store-soon__sub {
  display: block;
  font-size: 0.875rem;
  color: #c7d2fe;
}

.store-soon__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  80%, 100% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); }
}

.phones {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(420px, 48vw, 600px);
}

.phones .device {
  position: absolute;
  width: clamp(170px, 20vw, 250px);
}

.phones .device--front {
  z-index: 3;
  width: clamp(200px, 23vw, 280px);
}

.phones .device--back {
  z-index: 2;
  transform: translateX(-62%) rotate(-9deg) scale(0.86);
  opacity: 0.9;
}

.phones .device--side {
  z-index: 1;
  transform: translateX(62%) rotate(9deg) scale(0.86);
  opacity: 0.9;
}

@media (max-width: 900px) {
  .arena-hero__grid {
    grid-template-columns: 1fr;
  }
  .phones {
    min-height: clamp(380px, 110vw, 520px);
  }
  .phones .device {
    width: clamp(150px, 40vw, 220px);
  }
  .phones .device--front {
    width: clamp(180px, 48vw, 250px);
  }
}

/* ---------- Lyric Hero features ---------- */

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}

.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.feature h3 {
  font-size: 1.125rem;
  margin: 16px 0 6px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--pink));
}

.feature:nth-child(4n + 2) .feature__icon { background: linear-gradient(135deg, #0891b2, var(--violet)); }
.feature:nth-child(4n + 3) .feature__icon { background: linear-gradient(135deg, #d97706, var(--pink)); }
.feature:nth-child(4n + 4) .feature__icon { background: linear-gradient(135deg, #059669, #0891b2); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.fine-print {
  margin-top: 28px;
  color: var(--muted);
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.link-card {
  display: grid;
  gap: 6px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.link-card__icon {
  color: var(--accent);
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
}

.link-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.link-card__body {
  color: var(--muted);
  font-size: 0.975rem;
}

/* ---------- Document pages (privacy, terms, support) ---------- */

.doc-hero {
  --focus: #f9a8d4;
  padding-block: clamp(40px, 6vw, 72px);
  color: #fff;
  background:
    radial-gradient(40% 90% at 90% 0%, rgba(99, 102, 241, 0.45), transparent 70%),
    radial-gradient(30% 80% at 0% 100%, rgba(236, 72, 153, 0.28), transparent 70%),
    var(--arena-bg);
}

.doc-hero .eyebrow--arena {
  color: var(--pink-soft);
}

.doc-hero .title {
  color: #fff;
  margin-bottom: 0.4rem;
}

.doc-hero__meta {
  margin: 0;
  color: #c7d2fe;
}

.doc {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 96px);
  align-items: start;
}

.doc__toc {
  position: sticky;
  top: 92px;
  font-size: 0.9375rem;
}

.doc__toc-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
}

.doc__toc ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 2px;
}

.doc__toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  text-decoration: none;
}

.doc__toc a:hover {
  color: var(--accent);
}

.prose {
  max-width: 72ch;
}

.prose__intro {
  font-size: 1.15rem;
  color: var(--muted);
  padding-bottom: 8px;
}

.prose section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}

.prose section:first-of-type {
  border-top: 0;
  margin-top: 8px;
}

.prose h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
}

.prose h3 {
  font-size: 1.125rem;
  margin: 1.5em 0 0.4em;
}

.prose ul {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose li::marker {
  color: var(--accent);
}

.support-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  margin: 8px 0 20px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.support-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--pink));
}

.support-card__label {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.support-card__email {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.faq__item[open] {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
  border-radius: 16px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.faq__item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 220ms ease;
}

.faq__item[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq__answer {
  padding: 0 20px 6px;
}

.faq__answer p,
.faq__answer ul {
  color: var(--muted);
}

@media (max-width: 860px) {
  .doc {
    grid-template-columns: 1fr;
  }
  .doc__toc {
    position: static;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
  }
  .doc__toc ol {
    border-left: 0;
    padding-left: 0;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    column-gap: 16px;
  }
}

/* ---------- 404 ---------- */

.not-found__hex {
  width: 150px;
  margin: 0 auto 24px;
}

.not-found__hex .nf-a { fill: var(--honey); stroke: var(--bg); }
.not-found__hex .nf-b { fill: var(--sky); stroke: var(--bg); }
.not-found__hex .nf-missing { fill: none; stroke: var(--muted); stroke-dasharray: 8 8; }

.not-found .lede {
  margin-inline: auto;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding-top: clamp(40px, 6vw, 64px);
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.site-footer__about p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 40ch;
}

.site-footer__heading {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.site-footer ul a {
  display: inline-block;
  padding: 6px 0;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer ul a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 40px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer__legal p {
  margin: 0;
}

@media (max-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__about {
    grid-column: 1 / -1;
  }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Small-screen refinements ---------- */

@media (max-width: 560px) {
  .phones {
    min-height: clamp(330px, 92vw, 440px);
  }
  .feature,
  .step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px;
  }
  .feature h3,
  .step h3 {
    margin-top: 2px;
  }
  .feature__icon,
  .step__num {
    grid-row: span 2;
  }
  .step__num {
    font-size: 1.9rem;
    margin: 0;
  }
  .feature p,
  .step p {
    grid-column: 2;
  }
}

@media (prefers-color-scheme: dark) {
  .step__num {
    background-image: linear-gradient(90deg, #a5b4fc, #f9a8d4);
  }
}

@media (prefers-color-scheme: dark) {
  .contact-card {
    background: radial-gradient(60% 90% at 0% 0%, rgba(255, 233, 110, 0.14), transparent 70%),
      radial-gradient(60% 90% at 100% 100%, rgba(142, 184, 230, 0.2), transparent 70%), var(--surface);
  }
}
