/* MelloTone Studios. Brand tokens mirror the app's colors.xml and type scale. */

@font-face {
  font-family: 'Outfit';
  src: url('/assets/font/outfit-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/assets/font/outfit-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/assets/font/outfit-semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #020E13;
  --surface: #0A171D;
  --surface-2: #141F22;
  --text: #E8F9FF;
  --muted: rgba(232, 249, 255, 0.66);
  --faint: rgba(232, 249, 255, 0.42);
  --line: rgba(232, 249, 255, 0.12);
  --line-strong: rgba(232, 249, 255, 0.22);
  --accent: #13BCF5;
  --accent-deep: #0C485E;
  --gold: #FEB904;

  --container: 1080px;
  --radius: 16px;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #02171F;
  padding: 12px 20px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 14, 19, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.wordmark-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(19, 188, 245, 0.18);
  flex: none;
}

.site-nav { display: flex; gap: 8px; flex-wrap: wrap; }

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: rgba(232, 249, 255, 0.07); }
.nav-link[aria-current='page'] { color: var(--text); background: rgba(19, 188, 245, 0.14); }

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-legal { padding: 56px 0 80px; }

.hero {
  position: relative;
  padding: 96px 0 88px;
  background-image: linear-gradient(180deg, rgba(2, 14, 19, 0.55) 0%, rgba(2, 14, 19, 0.92) 100%),
    url('/assets/img/hero-bg.webp');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }

.hero h1 { font-size: clamp(34px, 5.2vw, 50px); }
.page-title { font-size: clamp(30px, 4.4vw, 40px); margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 14px; }
h3 { font-size: 20px; font-weight: 600; }

.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 0 0 28px; max-width: 56ch; }
.section-intro { color: var(--muted); max-width: 62ch; margin: 0 0 40px; }

.center { text-align: center; }
.center .section-intro { margin-inline: auto; }

/* ---------- buttons ---------- */

.store-badge { display: inline-block; }
.store-badge img { width: 200px; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #02171F;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
}
.button:hover { background: #4FD0FF; color: #02171F; }

.button-quiet {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.button-quiet:hover { background: rgba(232, 249, 255, 0.07); color: var(--text); }

.button-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

.feature-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.feature-card img { width: 100%; background: var(--bg); }
.feature-card .feature-body { padding: 22px 24px 26px; }
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 16px; }

/* ---------- lists ---------- */

.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 30px; color: var(--muted); }
.tick-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.faq { display: grid; gap: 8px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { margin-bottom: 6px; font-size: 18px; }
.faq-item p { color: var(--muted); margin: 0; }

.contact-block {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 40px;
}
.contact-block p:last-child { margin-bottom: 0; }
.contact-email { font-size: clamp(19px, 2.6vw, 24px); font-weight: 500; }

/* ---------- long-form prose (legal pages) ---------- */

.prose { color: var(--muted); }
.prose h2 {
  color: var(--text);
  font-size: 24px;
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.prose h3 { color: var(--text); font-size: 18px; margin: 28px 0 10px; }
.prose h4 { color: var(--text); font-size: 16px; margin: 22px 0 8px; font-weight: 600; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 10px; }
.prose li > ul, .prose li > ol { margin-top: 10px; }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose > h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

.legal-updated {
  color: var(--faint);
  font-size: 15px;
  margin: 0 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-top: 56px;
  margin-top: 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-name { font-weight: 600; margin: 0 0 10px; }
.footer-address { color: var(--muted); font-size: 15px; margin: 0 0 14px; line-height: 1.6; }
.footer-brand p:last-child { margin: 0; font-size: 15px; }

.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 2px;
}
.footer-col a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }

.footer-base { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 32px; }
.footer-base p { color: var(--faint); font-size: 14px; margin: 0; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; max-width: 420px; }
  .section { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .header-inner { min-height: 60px; }
  .wordmark { font-size: 16px; }
  .nav-link { padding: 7px 11px; font-size: 14px; }
  .card, .contact-block { padding: 22px; }
  .prose h2 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
