/* Fantom Setlist Editor — product page (floert.me / Google Sites embed) */
:root {
  --bg0: #070b18;
  --bg1: #121a33;
  --ink: #eef2ff;
  --muted: #a8b3d4;
  --line: rgba(168, 179, 212, 0.22);
  --accent: #7dd3fc;
  --accent2: #c084fc;
  --card: rgba(18, 26, 51, 0.72);
  --phone: #0b1020;
  --max: 52rem;
  --font-display: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(192, 132, 252, 0.28), transparent 60%),
    radial-gradient(700px 480px at 90% 20%, rgba(125, 211, 252, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #0a1024 100%);
  line-height: 1.55;
}

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

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: 1rem; top: 1rem; background: #000; padding: 0.5rem 0.75rem; z-index: 9; }

/* —— Hero —— */
.hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 3.5rem 1.25rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(125, 211, 252, 0.14), transparent 45%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 40rem; }
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  background: linear-gradient(110deg, #fff 20%, var(--accent) 55%, var(--accent2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.9s ease-out both;
}
.brand-sub {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise 1s ease-out 0.08s both;
}
.lead {
  margin: 0 auto 1.6rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  animation: rise 1s ease-out 0.16s both;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: rise 1s ease-out 0.24s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(120deg, #38bdf8, #a78bfa);
  color: #071018;
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.hero-phone {
  margin-top: 2.25rem;
  width: min(280px, 70vw);
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 80px rgba(0, 0, 0, 0.55);
  animation: float-in 1.1s ease-out 0.3s both;
}
.hero-phone img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* —— Nav —— */
.toc {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 24, 0.78);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 1rem;
}
.toc-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-size: 0.86rem;
}
.toc a { color: var(--muted); }
.toc a:hover { color: var(--accent); }

/* —— Sections —— */
main { padding-bottom: 4rem; }
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 0.5rem;
}
section > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}
section > .sub {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 40rem;
}
hr.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem auto 0;
  max-width: var(--max);
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--card);
}
.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.shot {
  margin: 1.25rem 0 1.75rem;
  text-align: center;
}
.shot figure {
  margin: 0;
  display: inline-block;
  max-width: min(320px, 100%);
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  background: var(--phone);
}
.shot figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.shot.wide figure { max-width: min(720px, 100%); }
.shot.wide img { border-radius: 0.75rem; }

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  margin: 1rem 0 1.75rem;
}
.gallery figure {
  margin: 0;
  text-align: center;
}
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  background: var(--phone);
}
.gallery figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.manual h3 {
  margin: 1.75rem 0 0.45rem;
  font-size: 1.12rem;
}
.manual p, .manual li { color: var(--muted); }
.manual ul, .manual ol { padding-left: 1.2rem; }
.manual table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.75rem 0 1.25rem;
}
.manual th, .manual td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}
.manual th { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.manual td { color: var(--muted); }
.manual td:first-child { color: var(--ink); min-width: 8.5rem; }
.manual code, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  color: #c4b5fd;
}

.callout {
  border-left: 3px solid var(--accent2);
  padding: 0.65rem 0.85rem;
  background: rgba(192, 132, 252, 0.08);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--muted);
  margin: 1rem 0;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

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