/* OpenPuck home page: light and dark, works down to 320 px.
   Colors and fonts come from tokens.css (Holotable palette, docs/brand): void field,
   hairline frames, Violet only on things you can click. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
p { margin: 0 0 16px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

/* Shared width */
.nav, main, .foot-inner { max-width: 68rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .nav, main, .foot-inner { padding-left: 32px; padding-right: 32px; } }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.logo { line-height: 0; flex: none; }
.logo img { height: 30px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; padding: 8px 10px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.nav nav a:hover { color: var(--fg); background: var(--sunk); }
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .nav nav a { padding: 8px 6px; font-size: 0.9rem; }
  .logo img { height: 24px; }
}
@media (max-width: 380px) { .nav nav a[href="#features"] { display: none; } }

/* Buttons */
.btn { font: inherit; font-family: var(--font-display); font-weight: 700; min-height: 48px; padding: 10px 24px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; text-decoration: none; border: 2px solid var(--violet); }
.btn.primary { background: var(--violet); color: var(--violet-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--violet-line); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.cta.center, .center { justify-content: center; text-align: center; }
.fine { color: var(--muted); font-size: 0.9rem; }

/* Hero */
.hero { display: grid; gap: 40px; align-items: center; padding: 32px 0 56px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.15fr 1fr; padding: 56px 0 80px; } }
.eyebrow { color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin-bottom: 20px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-art { position: relative; justify-self: center; width: min(100%, 380px); aspect-ratio: 1 / 0.9; }
/* Hairline ring behind the pucks, echoing the logo ring */
.hero-art::before { content: ""; position: absolute; left: 50%; top: 50%; width: 92%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid var(--line-strong); }
.puck { position: absolute; width: 66%; filter: drop-shadow(0 18px 30px var(--shadow)); }
.puck.back { left: 0; top: 0; transform: rotate(-8deg); opacity: 0.85; }
.puck.front { right: 0; bottom: 0; }

/* Sections */
.band { padding: 56px 0; border-top: 1px solid var(--line); }
.band > h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 12px; text-align: center; }
.section-lede { color: var(--muted); text-align: center; max-width: 36rem; margin: 0 auto 32px; }

/* Features */
.features { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.features li { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; text-align: center; }
.features img { width: 160px; display: block; margin: 0 auto 16px; }
.features h3 { font-size: 1.15rem; margin-bottom: 8px; }
.features p { color: var(--muted); margin: 0; font-size: 0.98rem; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features .text-only { display: flex; flex-direction: column; justify-content: center; text-align: left; background: var(--sunk); }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 8px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--fg); font-family: var(--font-display); font-weight: 700; margin-bottom: 16px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* Restore + caution */
.split { display: grid; gap: 24px; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.split h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 16px; }
.arrow { font-weight: 700; }
.arrow::after { content: " \2192"; }
.caution { background: var(--caution-bg); border: 1px solid var(--caution-line); border-left-width: 6px; border-radius: 14px; padding: 20px; }
.caution h3 { font-size: 1.1rem; margin-bottom: 8px; }
.caution p { margin: 0; font-size: 0.98rem; }

/* FAQ */
.faq { max-width: 44rem; margin: 32px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot .links a { color: var(--fg); font-weight: 600; text-decoration: none; }
.foot .links a:hover { text-decoration: underline; }
