/* The Aux — theauxapp.com — Shared Stylesheet */

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design tokens ── */
:root {
  --bg:         #0D0D0D;
  --bg-raised:  #141414;
  --text:       #F5F5F5;
  --text-2:     #888888;
  --text-3:     #444444;
  --accent:     #007AFF;
  --accent-dim: rgba(0, 122, 255, 0.12);
  --border:     rgba(255, 255, 255, 0.07);
  --font:       -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
  --radius:     12px;
  --max-w:      680px;
}

/* ── Base ── */
html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ── Site header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  /* gradient fades to transparent so hero bleeds through */
  background: linear-gradient(to bottom,
    rgba(13,13,13,0.96) 0%,
    rgba(13,13,13,0.0) 100%);
}

.wordmark {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text);
  transition: opacity 0.2s;
}
.wordmark:hover { opacity: 0.7; }

.site-header nav {
  display: flex;
  gap: 28px;
}
.site-header nav a {
  font-size: 0.82rem;
  color: var(--text-2);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 32px 80px;
}

/* Album art mosaic — blurred colored squares as stand-ins */
.mosaic {
  position: absolute;
  inset: -5%; /* oversize to prevent blur edge artifacts */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  filter: blur(10px);
  opacity: 0.30;
}
.mosaic-item { width: 100%; height: 100%; }

/* Dark radial overlay — heaviest in center where text lives */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%,
      rgba(13,13,13,0.72) 0%,
      rgba(13,13,13,0.97) 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--text);
}

.subhead {
  font-size: clamp(1rem, 3vw, 1.18rem);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 460px;
}

/* ── Blur-reveal demo ── */
.demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 200px;
}

/* Outer clip — prevents blur from bleeding outside the rounded box */
.demo-art-clip {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  flex-shrink: 0;
}

/* Inner element — the blur animates here */
.demo-art {
  width: 100%;
  height: 100%;
  background: #3B0764; /* deep purple — bold, music-coded */
  filter: blur(20px);
  will-change: filter;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: rgba(255, 255, 255, 0.55);
  user-select: none;
  /* Scale prevents hairline gaps at edges when heavily blurred */
  transform: scale(1.08);
}

.demo-track { width: 100%; }

.demo-bar {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 1px;
  overflow: hidden;
}

.demo-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 1px;
  will-change: width;
}

.demo-time {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 0.72rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.demo-reply {
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.35s ease;
  font-weight: 500;
  letter-spacing: 0.01em;
  height: 1.2em; /* reserve space so layout doesn't shift */
}

.demo-caption {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
  text-align: center;
}

/* ── CTAs — pre/post launch toggle ── */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 380px;
}

[data-launch-state="pre"]  .cta-pre  { display: flex; }
[data-launch-state="pre"]  .cta-post { display: none; }
[data-launch-state="post"] .cta-pre  { display: none; }
[data-launch-state="post"] .cta-post { display: flex; }

/* Email capture */
.email-row {
  display: flex;
  width: 100%;
  gap: 8px;
}

.email-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.email-form input[type="email"]::placeholder { color: var(--text-3); }
.email-form input[type="email"]:focus {
  border-color: var(--accent);
  background: rgba(0,122,255,0.04);
}

.email-form button {
  padding: 13px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}
.email-form button:hover  { opacity: 0.85; }
.email-form button:active { transform: scale(0.97); }

.form-note {
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

.thanks {
  color: var(--accent);
  font-size: 0.95rem;
  padding: 12px 0;
  animation: fadeUp 0.4s ease forwards;
}

/* App Store badge — post-launch */
.app-store-link {
  display: inline-block;
  transition: opacity 0.2s, transform 0.2s;
}
.app-store-link:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}
.app-store-badge {
  height: 50px;
  width: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ── How it works ── */
.how {
  border-top: 1px solid var(--border);
  padding: 88px 32px;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 52px;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 24px;
  align-items: start;
}

.step-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 5px;
}

.step-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.step-body h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-body p {
  font-size: 0.97rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 28px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-2);
  flex-wrap: wrap;
}

.footer-inner a { transition: color 0.2s; }
.footer-inner a:hover { color: var(--text); }
.footer-sep { color: var(--text-3); }

/* ── Legal pages ── */
.legal-main {
  flex: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  width: 100%;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 0.88rem;
  margin-bottom: 44px;
  transition: color 0.2s;
}
.legal-back:hover { color: var(--text); }

.legal-main h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.effective-date {
  color: var(--text-2);
  font-size: 0.88rem;
  margin-bottom: 52px;
}

.legal-main h2 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin: 44px 0 14px;
}

.legal-main h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}

.legal-main p,
.legal-main li {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.78;
  margin-bottom: 8px;
}

.legal-main ul,
.legal-main ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.9rem;
}
.legal-main th,
.legal-main td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-2);
}
.legal-main th {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-disclaimer {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* App Store badge placeholder — replace with real <img> on launch day */
.app-store-badge-placeholder {
  display: inline-block;
  padding: 13px 24px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

/* ── /app page ── */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
  gap: 20px;
}

.app-main .wordmark-lg {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text);
  margin-bottom: 8px;
}

.app-main h1 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.app-main p {
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.65;
  max-width: 320px;
}

.btn-ghost {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  margin-top: 8px;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .site-header { padding: 18px 20px; }
  .hero        { padding: 100px 20px 60px; }
  .how         { padding: 64px 20px; }
  .site-footer { padding: 24px 20px; }
  .legal-main  { padding: 100px 20px 64px; }
  .app-main    { padding: 100px 20px 64px; }

  .email-row {
    flex-direction: column;
  }
  .email-form button {
    width: 100%;
    text-align: center;
  }

  .demo            { width: 168px; }
  .demo-art-clip   { width: 168px; height: 168px; }

  .step { grid-template-columns: 28px 1fr; gap: 16px; }
}
