:root {
  color-scheme: dark;
  --background: #020405;
  --surface: #0a0e10;
  --surface-soft: #0e1417;
  --text: #f4f7f7;
  --muted: #b8c3c5;
  --teal: #20d5d2;
  --teal-bright: #61efea;
  --teal-soft: rgba(32, 213, 210, 0.16);
  --border: rgba(97, 239, 234, 0.25);
  --page-width: 1120px;
}

* { box-sizing: border-box; }

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 19rem, rgba(17, 106, 110, 0.13), transparent 29rem),
    linear-gradient(180deg, #020405 0%, #050809 62%, #020304 100%);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.55;
}

body.viewer-open { overflow: hidden; }

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: min(100% - 2rem, var(--page-width));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  color: var(--teal);
  font-size: 2rem;
  text-shadow: 0 0 16px rgba(32, 213, 210, 0.6);
}

.brand-copy, .footer-brand { display: grid; }

.brand-name {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-tagline,
.footer-brand > span:last-child {
  color: var(--teal);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-support {
  min-height: 44px;
  padding: 0.65rem 1rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--teal);
  border-radius: 7px;
  color: var(--teal-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

main {
  width: min(100% - 2rem, var(--page-width));
  margin: 0 auto;
}

.hero {
  padding: clamp(2.25rem, 5vw, 4.25rem) 0 0;
  text-align: center;
}

.eyebrow, .section-label {
  margin: 0 auto 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--teal-bright);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before, .eyebrow::after,
.section-label::before, .section-label::after {
  content: "";
  width: min(18vw, 92px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(32, 213, 210, 0.5));
}

.eyebrow::after, .section-label::after { transform: rotate(180deg); }

h1 {
  max-width: 800px;
  margin: 0 auto;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.65rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.title-rule {
  width: min(100%, 260px);
  margin: 0.8rem auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--teal);
}

.title-rule::before, .title-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--teal);
}

.intro {
  max-width: 610px;
  margin: 0 auto;
  color: #e1e7e8;
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
}

.player-shell { margin: 1.5rem auto 0; }

.video-crop {
  position: relative;
  aspect-ratio: 808.9 / 1920;
  overflow: hidden;
  background: #030708;
  border: 1px solid var(--teal);
  box-shadow: 0 0 8px rgba(32, 213, 210, 0.55), 0 0 30px rgba(32, 213, 210, 0.14);
}

.video-crop video {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: auto;
  max-width: none;
  height: 100%;
  transform: translate(-50%, -50%);
  background: transparent;
}

.video-crop--inline {
  height: clamp(24rem, 62vh, 38rem);
  max-width: calc(100vw - 2rem);
  margin: 0 auto;
  border-radius: 20px;
}

.video-placeholder {
  position: absolute;
  z-index: 1;
  inset: 0;
  padding: 1.4rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #dce9ea;
  background:
    radial-gradient(circle at 50% 43%, rgba(15, 129, 142, 0.38), transparent 32%),
    linear-gradient(180deg, #041015 0%, #061c23 46%, #020506 100%);
}

.placeholder-kindle { align-self: flex-start; color: var(--teal-bright); font-size: 0.7rem; }
.placeholder-title { margin-top: 25%; font-size: 0.88rem; font-weight: 600; line-height: 1.5; }
.placeholder-art { margin-top: auto; color: rgba(32, 213, 210, 0.35); font-size: 5rem; }

.play-button {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #22d8d4, #078d9c);
  box-shadow: 0 0 0 8px rgba(32, 213, 210, 0.12), 0 10px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.play-button[hidden] { display: none; }
.play-button:disabled { cursor: not-allowed; filter: grayscale(0.7); opacity: 0.72; }

.play-icon {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 19px solid white;
}

.video-status {
  min-height: 1.3rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.quick-steps { padding-top: clamp(2.25rem, 5vw, 3.5rem); }
.section-label { margin-bottom: 1rem; }

.steps-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.step-card {
  min-width: 0;
  min-height: 150px;
  padding: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(16, 21, 23, 0.96), rgba(7, 10, 11, 0.96));
}

.step-number, .help-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal-bright);
  font-size: 1.1rem;
}

.step-card h3, .troubleshooting h2 {
  margin: 0.15rem 0 0.45rem;
  font-size: 1rem;
  line-height: 1.3;
}

.step-card p, .troubleshooting p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.send-button {
  width: min(100%, 430px);
  min-height: 52px;
  margin: 1.5rem auto 0;
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid var(--teal-bright);
  border-radius: 9px;
  color: white;
  background: linear-gradient(180deg, #1bbec2, #087887);
  box-shadow: 0 0 20px rgba(32, 213, 210, 0.25);
  font-weight: 700;
  text-decoration: none;
}

.amazon-note { margin: 0.4rem auto 0; color: #8f9b9d; font-size: 0.7rem; text-align: center; }

.troubleshooting {
  margin: 1.6rem auto clamp(2.5rem, 6vw, 4rem);
  padding: 1.15rem 1.3rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(10, 14, 16, 0.92);
}

.troubleshooting > a {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal);
  border-radius: 7px;
  color: var(--teal-bright);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  width: min(100% - 2rem, var(--page-width));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer p { margin: 0; text-align: center; }
.site-footer strong { color: var(--teal); font-weight: 600; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 1rem; }
.site-footer nav a { color: var(--muted); }

.video-dialog {
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  background: #000;
  overflow: hidden;
}

.video-dialog::backdrop { background: #000; }

.dialog-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  display: grid;
  place-items: center;
}

.close-button {
  position: absolute;
  z-index: 5;
  top: max(0.75rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  min-width: 76px;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.78);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.close-button span:first-child { font-size: 1.35rem; line-height: 1; }

.video-crop--dialog {
  height: min(calc(100vh - 2rem), calc((100vw - 1.5rem) * 1920 / 808.9));
  height: min(calc(100dvh - 2rem), calc((100vw - 1.5rem) * 1920 / 808.9));
  max-width: calc(100vw - 1.5rem);
  border-radius: 18px;
}

@media (max-width: 700px) {
  .site-header { min-height: 66px; }
  .brand-name { font-size: 1rem; }
  .brand-tagline { font-size: 0.48rem; }
  .brand-mark { font-size: 1.55rem; }
  .header-support { padding-inline: 0.7rem; font-size: 0.7rem; }
  main { width: min(100% - 1.5rem, var(--page-width)); }
  .hero { padding-top: 2rem; }
  .desktop-break { display: none; }
  .intro { max-width: 32rem; }
  .video-crop--inline { height: clamp(22rem, 56vh, 31rem); max-width: calc(100vw - 1.5rem); border-radius: 18px; }
  .steps-list { grid-template-columns: 1fr; gap: 0.65rem; }
  .step-card { min-height: 0; padding: 0.9rem; align-items: center; }
  .step-card h3 { margin-top: 0; }
  .troubleshooting { grid-template-columns: auto 1fr; }
  .troubleshooting > a { grid-column: 1 / -1; width: 100%; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-items: center; }
  .site-footer nav { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 360px) {
  .site-header, .site-footer { width: calc(100% - 1rem); }
  main { width: calc(100% - 1rem); }
  .header-support { min-width: 44px; padding-inline: 0.55rem; }
  h1 { font-size: clamp(1.75rem, 9vw, 2rem); }
  .play-button { width: 64px; height: 64px; }
  .step-card { gap: 0.7rem; }
  .troubleshooting { padding: 1rem; gap: 0.75rem; }
}

@media (max-width: 260px) {
  .site-header { flex-wrap: wrap; }
  .header-support { width: 100%; justify-content: center; }
}

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