/* watchtune.app — Obsidian Cinema
 * 1:1 visual token parity with Tune (Shared/Theme/TuneTheme.swift)
 * Zero external fonts, scripts, or third-party assets.
 */

:root {
  --bg-0: #0A0A0C;
  --bg-1: #111114;
  --bg-2: #16161B;
  --bg-3: #1E1E25;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  --fg-0: #F7F5EF;
  --fg-1: rgba(247, 245, 239, 0.82);
  --fg-2: rgba(247, 245, 239, 0.66);
  --fg-3: rgba(247, 245, 239, 0.56);

  --accent: #E89B3A;
  --accent-soft: rgba(232, 155, 58, 0.16);
  --accent-ink: #1C1207;
  --teal: #4FB8C8;
  --teal-soft: rgba(79, 184, 200, 0.16);
  --success: #6FAE6E;

  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --r-2: 8px;
  --r-3: 12px;
  --r-4: 18px;
  --r-5: 22px;
  --r-pill: 999px;
}

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

html {
  background: var(--bg-0);
  color: var(--fg-0);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-0);
  background-image: radial-gradient(920px 520px at 50% -60px, rgba(232, 155, 58, 0.13), transparent 68%);
  background-repeat: no-repeat;
  color: var(--fg-0);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--fg-0);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: var(--r-2);
  z-index: 200;
}

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

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════ NAVIGATION ═══════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--fg-0);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.03em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 140ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--fg-0);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms ease, filter 140ms ease;
}

.nav-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

main {
  flex: 1;
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  padding: 76px 0 44px;
  text-align: center;
}

.hero-icon-wrap {
  display: inline-flex;
  position: relative;
  margin-bottom: 24px;
}

.hero-icon-wrap::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(232, 155, 58, 0.30), rgba(79, 184, 200, 0.14) 55%, transparent 72%);
  filter: blur(18px);
  z-index: 0;
}

.hero-icon {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.8vw, 60px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 780px;
  margin: 0 auto 20px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--fg-1);
  max-width: 610px;
  margin: 0 auto 32px;
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(232, 155, 58, 0.22);
  transition: transform 140ms ease, filter 140ms ease;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  color: var(--fg-0);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--hairline-strong);
  transition: background 140ms ease;
}

.btn-secondary:hover {
  background: var(--bg-3);
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ═══════════════ DEVICE SHOWCASE (Apple TV + iPhone) ═══════════════ */
.showcase {
  position: relative;
  max-width: 960px;
  margin: 44px auto 76px;
  padding-bottom: 36px;
}

.tv-frame {
  background: var(--bg-0);
  border-radius: var(--r-5);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  overflow: hidden;
  color: var(--fg-0);
  aspect-ratio: 16 / 9.2;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px 12px;
}

.tv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.tv-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.tv-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: var(--r-pill);
  font-size: 12px;
}

.tv-tab {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  color: rgba(247, 245, 239, 0.62);
  font-weight: 500;
}

.tv-tab.active {
  background: var(--fg-0);
  color: var(--bg-0);
  font-weight: 600;
}

.tv-profile {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(247, 245, 239, 0.5);
}

.tv-hero-banner {
  margin: 4px 26px 18px;
  border-radius: 16px;
  padding: 26px 28px;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.58) 54%, rgba(31, 56, 57, 0.35) 100%),
    radial-gradient(460px 260px at 82% 35%, rgba(232, 155, 58, 0.38), rgba(42, 51, 64, 0.85) 65%, #111114);
  border: 1px solid var(--hairline);
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tv-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.tv-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.tv-desc {
  font-size: 13px;
  color: rgba(247, 245, 239, 0.74);
  max-width: 390px;
  margin-bottom: 14px;
}

.tv-actions {
  display: flex;
  gap: 10px;
}

.tv-pill {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
}

.tv-pill.amber {
  background: var(--accent);
  color: var(--accent-ink);
}

.tv-pill.glass {
  background: rgba(255, 255, 255, 0.10);
  color: var(--fg-0);
}

.tv-shelf {
  padding: 0 26px 20px;
  text-align: left;
}

.shelf-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.48);
  margin-bottom: 10px;
}

.poster-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.poster {
  aspect-ratio: 2 / 3;
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
}

.poster.focused {
  border: 2px solid var(--accent);
  box-shadow: 0 10px 24px rgba(232, 155, 58, 0.26);
  transform: translateY(-2px);
}

.poster-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.90);
}

.progress-track {
  height: 3px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  margin-top: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-pill);
}

.p1 { background: linear-gradient(160deg, #2A3340, #11161E); }
.p2 { background: linear-gradient(160deg, #4A1F22, #1A0B0D); }
.p3 { background: linear-gradient(160deg, #1F3839, #0B1718); }
.p4 { background: linear-gradient(160deg, #5C4232, #1D1510); }
.p5 { background: linear-gradient(160deg, #3A2740, #150E18); }
.p6 { background: linear-gradient(160deg, #2E3322, #12150D); }

/* Overlapping iPhone Seerr sheet preview */
.phone-frame {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: 248px;
  background: var(--bg-0);
  color: var(--fg-0);
  border-radius: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.68);
  padding: 14px;
  text-align: left;
}

.phone-notch {
  width: 68px;
  height: 18px;
  background: #000000;
  border-radius: var(--r-pill);
  margin: 0 auto 12px;
}

.phone-backdrop {
  height: 112px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.05), rgba(10, 10, 12, 0.92)),
    linear-gradient(135deg, #1F3839, #2A3340 55%, #5C4232);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 12px;
}

.phone-pill {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--r-pill);
  background: rgba(79, 184, 200, 0.22);
  color: #7DD8E6;
}

.phone-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.phone-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-2);
  margin-bottom: 10px;
}

.phone-seasons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.season-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.season-row.selected {
  border-color: rgba(232, 155, 58, 0.5);
  background: rgba(232, 155, 58, 0.10);
}

.season-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--fg-2);
}

.season-tag.avail {
  color: var(--success);
}

.season-tag.selected {
  color: var(--accent);
}

.phone-cta {
  width: 100%;
  padding: 10px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ═══════════════ FEATURE GRID ═══════════════ */
.section {
  padding: 52px 0;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  max-width: 580px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-4);
  padding: 24px;
  transition: border-color 140ms ease;
}

.card:hover {
  border-color: var(--hairline-strong);
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 16px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.56;
}

.promise-bar {
  margin: 20px 0 72px;
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-5);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
}

.promise-heading {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.promise-copy {
  font-size: 14px;
  color: var(--fg-2);
}

.promise-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.promise-pill {
  padding: 8px 13px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-1);
}

/* ═══════════════ SUBPAGES (/privacy, /support, /404) ═══════════════ */
.doc-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.doc-page h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.doc-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 32px;
}

.tldr-box {
  background: var(--accent-soft);
  border: 1px solid rgba(232, 155, 58, 0.30);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--fg-0);
}

.doc-card {
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-4);
  padding: 26px 28px;
  margin-bottom: 18px;
  scroll-margin-top: 84px;
}

.doc-card h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.doc-card p,
.doc-card li {
  font-size: 15px;
  color: var(--fg-1);
  line-height: 1.66;
}

.doc-card p + p {
  margin-top: 12px;
}

.doc-card ul {
  padding-left: 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-card a {
  color: var(--accent);
  text-decoration: none;
}

.doc-card a:hover {
  text-decoration: underline;
}

.not-found {
  text-align: center;
  padding: 110px 24px;
}

.not-found h1 {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.not-found p {
  color: var(--fg-2);
  margin-bottom: 28px;
}

/* ═══════════════ FOOTER ═══════════════ */
footer {
  border-top: 1px solid var(--hairline);
  padding: 34px 0 46px;
  color: var(--fg-3);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-meta a {
  color: var(--fg-2);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--fg-0);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--fg-0);
}

@media (max-width: 820px) {
  .brand-domain {
    display: none;
  }
  .nav-links {
    gap: 16px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .promise-bar {
    grid-template-columns: 1fr;
  }
  .promise-pills {
    justify-content: flex-start;
  }
  .tv-frame {
    aspect-ratio: auto;
  }
  .tv-top {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px 10px;
  }
  .tv-tabs {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 2px;
    font-size: 11px;
  }
  .tv-tab {
    padding: 4px 8px;
  }
  .tv-hero-banner {
    margin: 4px 16px 14px;
    padding: 18px 18px;
  }
  .tv-shelf {
    padding: 0 16px 16px;
  }
  .tv-title {
    font-size: 22px;
  }
  .poster-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .phone-frame {
    position: static;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
  }
}

@media (max-width: 560px) {
  .nav-cta {
    display: none;
  }
  .nav-inner {
    padding: 0 16px;
  }
  .nav-links {
    gap: 14px;
  }
}

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