/* Ear to Eye — marketing + support pages under rick3.dev/ear2eye/
   Same font pair as the parent site (Instrument Serif + DM Sans); palette
   pulled from the app itself: deep navy, glass panels, iOS-blue highlight. */

:root {
  --bg: #070a12;
  --bg-raise: rgba(255, 255, 255, 0.04);
  --bg-raise-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e8ecf4;
  --dim: #9aa3b5;
  --faint: #626b7d;
  --accent: #8db8e8;
  --accent-deep: #4a7fc0;
  --warm: #d9a06b;
  --live: #7ec9a0;
  --serif: "Instrument Serif", "New York", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Soft radial glow behind the hero, echoing the app's bottom glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 40% at 50% -5%, rgba(74, 127, 192, 0.16), transparent 70%),
    radial-gradient(50% 35% at 50% 105%, rgba(74, 127, 192, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.mark {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}
.mark .dim { color: var(--faint); }
.mark:hover { text-decoration: none; color: var(--accent); }

.top-nav { display: flex; gap: 22px; font-size: 15px; }
.top-nav a { color: var(--dim); }
.top-nav a:hover { color: var(--text); text-decoration: none; }

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

.hero {
  text-align: center;
  padding: 48px 0 20px;
}

.app-icon {
  width: 108px;
  height: 108px;
  border-radius: 24%;
  box-shadow: 0 8px 40px rgba(74, 127, 192, 0.35);
  margin-bottom: 26px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 68px);
  line-height: 1.05;
  letter-spacing: 0.005em;
}

.tagline {
  font-family: var(--serif);
  font-size: clamp(21px, 3.4vw, 27px);
  color: var(--dim);
  margin: 14px auto 0;
  max-width: 560px;
  line-height: 1.35;
}
.tagline em { color: var(--accent); font-style: italic; }

.status-pill {
  display: inline-block;
  margin-top: 22px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raise);
  color: var(--dim);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-pill .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--warm);
  margin-right: 8px;
  vertical-align: 1px;
}
/* Shipped: the pending amber dot turns live green */
.status-pill.live { color: var(--text); }
.status-pill.live .dot {
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(126, 201, 160, 0.18);
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Apple's official App Store badge — artwork is used unmodified
   (min 40px tall; clear space >= 1/4 badge height, provided by the row gap). */
.store-badge { display: inline-flex; align-items: center; }
.store-badge:hover { text-decoration: none; }
.store-badge img { display: block; height: 48px; width: auto; }
.get-row { margin: 26px 0 22px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg, #5b8fce, #4a7fc0);
  color: #fff;
  box-shadow: 0 4px 24px rgba(74, 127, 192, 0.35);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  border: 1px solid var(--line);
  background: var(--bg-raise);
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-raise-2); }

/* ---------- RSVP live demo ---------- */

.demo {
  margin: 56px auto 0;
  max-width: 640px;
}

.demo-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015) 60%),
    var(--bg-raise);
  padding: 58px 24px 64px;
  overflow: hidden;
}

.demo-label {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--faint);
}

.rsvp-word {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 58px);
  line-height: 1.15;
  min-height: 1.2em;
  white-space: pre;
}
.rsvp-pre  { flex: 1; text-align: right; }
.rsvp-post { flex: 1; text-align: left; }
.rsvp-orp  { color: var(--accent); }

.demo-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--faint);
}

.demo-toggle {
  position: absolute;
  right: 16px;
  bottom: 14px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  color: var(--dim);
  font-family: var(--sans);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.demo-toggle:hover { color: var(--text); background: var(--bg-raise-2); }

/* Static fallback shown when JS is off or reduced motion is set */
.demo-static {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 32px);
  text-align: center;
  color: var(--text);
  line-height: 1.4;
}
.demo-static .rsvp-orp { color: var(--accent); }

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

section { padding: 64px 0 0; }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.lede {
  color: var(--dim);
  max-width: 640px;
  font-size: 18px;
}
.lede strong { color: var(--text); font-weight: 600; }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.step {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-raise);
  padding: 24px 22px;
}
.step .num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--dim); }

/* screenshots */
.shots {
  display: flex;
  gap: 20px;
  margin-top: 34px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shot {
  flex: 0 0 auto;
  width: 236px;
  scroll-snap-align: start;
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  display: block;
}
.shot figcaption {
  text-align: center;
  font-size: 13.5px;
  color: var(--faint);
  margin-top: 12px;
}

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.feature {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-raise);
  padding: 24px 22px;
}
.feature h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 7px; }
.feature h3 .glyph { color: var(--accent); margin-right: 8px; }
.feature p { font-size: 14.5px; color: var(--dim); }

/* honest notes */
.notes {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--warm);
  border-radius: 14px;
  background: var(--bg-raise);
  padding: 22px 26px;
  font-size: 15.5px;
  color: var(--dim);
}
.notes strong { color: var(--text); }
.notes p + p { margin-top: 10px; }

/* prose pages (support / privacy) */
.prose { max-width: 680px; padding-top: 40px; }
.prose h1 { font-size: clamp(36px, 6vw, 48px); margin-bottom: 8px; }
.prose .updated { color: var(--faint); font-size: 14.5px; margin-bottom: 34px; }
.prose h2 { font-size: 27px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--dim); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 24px; margin-top: 10px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose .card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-raise);
  padding: 20px 24px;
  margin: 22px 0;
}

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

footer {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  padding: 30px 0 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14.5px;
  color: var(--faint);
}
footer nav { display: flex; gap: 20px; }
footer a { color: var(--dim); }
footer a:hover { color: var(--text); }

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

@media (max-width: 760px) {
  .steps, .features { grid-template-columns: 1fr; }
  .shot { width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
