/* Fantom Set List Buddy - help / product page (Cloudflare Pages) */
:root {
  --bg: #f3f1ee;
  --bg-deep: #ebe7e1;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #cfc9c2;
  --accent: #2f6f6a;
  --accent-soft: #e4f0ee;
  --card: #ffffff;
  --phone: #f7f5f2;
  --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(800px 420px at 15% -5%, rgba(47, 111, 106, 0.08), transparent 55%),
    radial-gradient(700px 400px at 95% 10%, rgba(61, 58, 54, 0.05), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 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: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  z-index: 9;
}

/* -- Hero (compact manual header) -- */
.hero {
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
  padding: 2.25rem 1.25rem 1.75rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-inner {
  position: relative;
  max-width: 40rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--ink);
  animation: rise 0.7s ease-out both;
}
.brand-sub {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise 0.75s ease-out 0.06s both;
}
.lead {
  margin: 0 auto 1.35rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.02rem;
  animation: rise 0.8s ease-out 0.1s both;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  animation: rise 0.8s ease-out 0.16s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 0.55rem;
  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: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #275c58; }
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--card);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-phone {
  margin-top: 1.75rem;
  width: min(240px, 62vw);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(26, 26, 26, 0.12);
  background: var(--phone);
  animation: float-in 0.9s ease-out 0.2s both;
}
.hero-phone img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(18px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

/* -- Nav -- */
.toc {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  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.5rem 1.25rem 0.5rem;
}
section > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 1.75rem);
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
section > .sub {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 40rem;
}

.process-figure {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.process-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.process-figure figcaption {
  padding: 0.65rem 0.9rem 0.85rem;
  font-size: 0.86rem;
  color: var(--muted);
  background: var(--accent-soft);
  border-top: 1px solid var(--line);
}
.process-steps {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
  max-width: 46rem;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}
.process-steps li {
  margin: 0 0 0.65rem;
}
.process-steps li:last-child {
  margin-bottom: 0;
}
.process-steps strong { color: var(--ink); }

hr.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.25rem 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.75rem;
  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: 1rem;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.1);
  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.65rem; }

.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.75rem;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(26, 26, 26, 0.08);
  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;
  color: var(--ink);
}
.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;
  background: var(--card);
}
.manual th, .manual td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}
.manual th {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
}
.manual td { color: var(--muted); }
.manual td:first-child { color: var(--ink); min-width: 8.5rem; }
.manual tr:nth-child(even) td { background: rgba(243, 241, 238, 0.55); }
.manual code, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  color: #1f4f4b;
  background: var(--accent-soft);
  padding: 0.08em 0.28em;
  border-radius: 0.25rem;
}

.callout {
  border-left: 3px solid var(--accent);
  padding: 0.65rem 0.85rem;
  background: var(--accent-soft);
  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;
  }
}
