/* Stillpad site — dark field, mono type, sky + pulse as the only accents (matches the app). */
:root {
  --field: #0A0A0A; --panel: #141414; --raised: #1C1C1C; --ink: #000;
  --cream: #E4E2E0; --mute: #8A8A8A; --sky: #2BA1E8; --pulse: #FA114E; --jade: #1FB58F; --marigold: #F5A623;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --doto: "Doto", "IBM Plex Mono", monospace;
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--field); color: var(--cream); font-family: var(--mono); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.eyebrow { color: var(--sky); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; margin: 8px 0 14px; }
h3 { font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.mute { color: var(--mute); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: rgba(10,10,10,0.72); border-bottom: 1px solid rgba(228,226,224,0.06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 700; letter-spacing: 0.04em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav nav { display: flex; gap: 20px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav nav a { color: var(--mute); }
.nav nav a:hover { color: var(--cream); text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; letter-spacing: 0.06em; font-size: 13px; text-transform: uppercase; }
.btn-sky { background: var(--sky); color: var(--ink); }
.btn-sky:hover { text-decoration: none; filter: brightness(1.08); }
.btn-ghost { border: 1px solid rgba(228,226,224,0.18); color: var(--cream); }
.btn-ghost:hover { text-decoration: none; border-color: var(--cream); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 10vw, 120px) 40px; }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.glow.sky { width: 60vw; height: 60vw; left: -20vw; top: -20vw; background: radial-gradient(circle, var(--sky) 0%, transparent 65%); }
.glow.pulse { width: 56vw; height: 56vw; right: -22vw; top: 10vw; background: radial-gradient(circle, var(--pulse) 0%, transparent 65%); animation-delay: -7s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(6vw, 4vw) scale(1.12); } }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.5vw, 84px); line-height: 0.98; margin: 10px 0 18px; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero .lede { font-size: clamp(15px, 1.6vw, 19px); color: var(--mute); max-width: 48ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.hero .fine { font-size: 11px; color: var(--mute); letter-spacing: 0.06em; margin-top: 10px; }

/* Playable pad: disc + band + key grid */
.pad { background: var(--panel); border-radius: 24px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(228,226,224,0.05); }
.pad .status { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.pad .status .live { color: var(--mute); display: flex; gap: 6px; align-items: center; }
.pad .status .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mute); }
.pad.playing .status .live { color: var(--pulse); }
.pad.playing .status .live::before { background: var(--pulse); box-shadow: 0 0 10px var(--pulse); }
.disc { position: relative; width: 150px; height: 150px; margin: 18px auto 14px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font-family: var(--doto); font-weight: 900; font-size: 68px; color: var(--mute); }
.disc::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; padding: 2px; background: rgba(138,138,138,0.35); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.pad.playing .disc { color: var(--cream); }
.pad.playing .disc::before { background: conic-gradient(from -60deg, var(--sky), var(--sky) 40%, var(--pulse) 62%, var(--sky)); padding: 4px; inset: -4px; animation: spin 6s linear infinite; box-shadow: 0 0 40px rgba(43,161,232,0.55); }
@keyframes spin { to { transform: rotate(360deg); } }
.band { display: flex; gap: 3px; margin: 0 auto 18px; }
.band i { flex: 1; height: 8px; border-radius: 2px; background: var(--raised); transition: background 80ms linear; }
.band i.on { background: var(--sky); }
.band i.on.hot { background: var(--pulse); }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.keys button { all: unset; cursor: pointer; display: grid; place-items: center; min-height: 56px; border-radius: 14px; background: var(--raised); color: var(--cream); font: 600 17px var(--mono); box-shadow: inset 0 0 0 1px rgba(228,226,224,0.07); transition: transform 80ms ease, background 160ms ease, box-shadow 160ms ease; }
.keys button:hover { transform: translateY(-1px); }
.keys button:active { transform: scale(0.97); }
.keys button:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.keys button.on { background: var(--sky); color: var(--ink); font-weight: 700; box-shadow: 0 0 28px rgba(43,161,232,0.5); }
.pad .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.panic { all: unset; cursor: pointer; flex: 1; text-align: center; min-height: 44px; line-height: 44px; border-radius: 12px; border: 1.5px solid rgba(250,17,78,0.55); color: var(--pulse); font: 700 13px var(--mono); letter-spacing: 0.2em; transition: background 160ms ease, color 160ms ease; }
.pad.playing .panic { background: var(--pulse); color: var(--cream); border-color: var(--pulse); }
.panic:focus-visible { outline: 2px solid var(--pulse); outline-offset: 2px; }
.hint { font-size: 11px; color: var(--mute); text-align: center; margin-top: 10px; letter-spacing: 0.04em; }

/* Sections */
section { padding-block: clamp(48px, 7vw, 96px); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feature { background: var(--panel); border-radius: 18px; padding: 22px; }
.feature .k { font-family: var(--doto); font-weight: 900; font-size: 30px; color: var(--sky); line-height: 1; margin-bottom: 10px; }
.feature.pulse .k { color: var(--pulse); }
.feature p { color: var(--mute); margin: 0; font-size: 13.5px; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.shot { background: var(--panel); border-radius: 18px; padding: 12px 12px 14px; }
.shot img { border-radius: 14px; }
.shot figcaption { font-size: 12px; color: var(--mute); margin-top: 10px; }
.shot figcaption b { color: var(--cream); display: block; }

.families { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.family { border-radius: 16px; padding: 18px 16px; background: var(--panel); position: relative; overflow: hidden; }
.family::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(30px); opacity: 0.35; background: var(--tint); }
.family b { display: block; font-size: 16px; }
.family span { color: var(--mute); font-size: 12px; }
.family em { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tint); }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.plan { background: var(--panel); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.plan.pro { box-shadow: 0 0 0 2px var(--sky); }
.plan .price { font-family: var(--doto); font-weight: 900; font-size: 44px; line-height: 1; }
.plan .price small { font: 500 12px var(--mono); color: var(--mute); letter-spacing: 0.1em; margin-left: 6px; }
.plan ul { margin: 6px 0 0; padding: 0; list-style: none; color: var(--mute); font-size: 13.5px; }
.plan li { padding: 5px 0 5px 20px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--sky); }

.faq details { background: var(--panel); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--mute); margin: 10px 0 0; }

footer { border-top: 1px solid rgba(228,226,224,0.06); padding-block: 36px; color: var(--mute); font-size: 12px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* Documents (privacy / terms / support) */
.doc { max-width: 72ch; padding-block: 48px 80px; }
.doc h1 { font-size: clamp(30px, 4.5vw, 48px); line-height: 1.05; margin: 8px 0 8px; }
.doc .updated { color: var(--mute); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 28px; }
.doc h2 { font-size: 20px; margin: 34px 0 10px; }
.doc p, .doc li { color: #C9C7C4; }
.doc ul { padding-left: 20px; }
.doc .card { background: var(--panel); border-radius: 16px; padding: 18px 20px; margin: 16px 0; }
.doc code { background: var(--raised); padding: 1px 6px; border-radius: 5px; font-size: 13px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .nav nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .glow, .pad.playing .disc::before { animation: none; }
  html { scroll-behavior: auto; }
}
