/* matchsong.com: the app's own look. Warm studio black, bone white, one orange accent, the
   app's track colours for the audiences, Instrument Sans (served from this site: no outside
   services, no tracking). Motion is gentle and switched off for people who ask for less. */
@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-display: swap; src: url('fonts/InstrumentSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-display: swap; src: url('fonts/InstrumentSans-SemiBold.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #0E0D0C; --surface: #161412; --surface2: #1F1C19; --line: rgba(237, 232, 223, 0.09);
  --text: #EDE8DF; --muted: #A39D93; --accent: #FF7A33; --on-accent: #0E0D0C;
  --green: #9DB39A; --lavender: #B9A9D2; --sand: #D6C29C; --blue: #A2BED3; --rose: #D4A5A5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 18px; } }

/* top bar: glass once the page scrolls */
.top { position: sticky; top: 0; z-index: 10; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(14, 13, 12, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 22px; letter-spacing: -0.035em; }
.brand img { width: 34px; height: 34px; }
.brand b { font-weight: 600; }
.top nav { display: flex; gap: 24px; align-items: center; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
@media (max-width: 760px) { .top nav .link { display: none; } }

/* buttons and chips */
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform 0.2s, box-shadow 0.2s; }
.pill.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px rgba(255, 122, 51, 0.35); }
.pill.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255, 122, 51, 0.45); }
.pill.quiet { border: 1px solid var(--line); color: var(--text); background: rgba(31, 28, 25, 0.6); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(22, 20, 18, 0.7); color: var(--muted); font-size: 14px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 10px var(--accent); }

/* hero: the "lock" (noisy dots snapping onto one clean line) behind the words */
.hero { position: relative; overflow: hidden; }
.hero > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 40px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; margin: 20px 0 14px; max-width: 13em; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #FF9A5C, var(--accent) 45%, #E5561A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(20px, 2.4vw, 26px); color: var(--muted); max-width: 32em; margin: 0 0 36px; text-wrap: balance; }
.lead strong { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 28px; }
@media (max-width: 900px) { .hero .wrap { padding-top: 28px; } }

/* sections */
section.block { padding: 72px 0 0; }
@media (max-width: 600px) { section.block { padding-top: 56px; } }
.kicker { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
h2.title { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -0.04em; line-height: 1.06; font-weight: 600; margin: 10px 0 26px; max-width: 16em; }
.intro { color: var(--muted); font-size: 19px; max-width: 34em; margin: 0 0 44px; }
.intro b { color: var(--text); font-weight: 600; }

/* who it's for: each in one of the app's track colours */
.row4 .who .mark, .who .mark { background: color-mix(in srgb, var(--tint) 20%, transparent); }
.row4 .who .mark svg, .who .mark svg { stroke: var(--tint); }
.who.dancers { --tint: var(--green); } .who.djs { --tint: var(--lavender); } .who.bands { --tint: var(--sand); } .who.video { --tint: var(--blue); }

/* the live demo: one video, with what the phone recorded or the original song MatchSong put back */
.player { display: grid; gap: 14px; width: 100%; max-width: 900px; text-align: left; scroll-margin-top: 90px; }
.try { margin: 0; text-align: center; color: var(--muted); font-size: 15px; }
.screen { position: relative; border-radius: 26px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line), 0 40px 100px rgba(0, 0, 0, 0.6); }
.screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.switch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(14, 13, 12, 0.55); border: 1px solid rgba(237, 232, 223, 0.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.switch button { font: inherit; font-size: 15px; font-weight: 600; color: var(--text); background: none; border: 0; cursor: pointer; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 999px; position: relative; }
.switch button::after { content: ''; position: absolute; inset: -4px 0; }
.switch button[aria-checked="true"] { background: var(--text); color: var(--bg); box-shadow: 0 0 0 3px rgba(237, 232, 223, 0.25); }
.switch svg { width: 18px; height: 18px; }
.play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; border: 1px solid rgba(237, 232, 223, 0.18); cursor: pointer; color: var(--text); display: grid; place-items: center; background: rgba(14, 13, 12, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity 0.25s; }
.play svg { width: 34px; height: 34px; }
.playing .play { opacity: 0; }
.playing .screen:hover .play, .play:focus-visible { opacity: 1; }
.readout { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(14, 13, 12, 0.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.readout b { color: var(--accent); font-weight: 600; }
.lanes { position: relative; display: grid; gap: 8px; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; touch-action: none; }
.lane { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.lane span { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.lane span svg { width: 16px; height: 16px; flex: none; }
.lane span em { font-style: normal; }
.lane.on span { color: var(--text); }
.lane canvas { width: 100%; height: 48px; display: block; }
.playhead { position: absolute; top: 10px; bottom: 10px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--text); pointer-events: none; }
button:focus-visible, .lanes:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) { .lane { grid-template-columns: 22px 1fr; } .lane span em { display: none; } .switch button { padding: 0 13px; } .screen { border-radius: 18px; } }

/* how it works: the three steps beside the app in use (a short loop in an iPhone) */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.how .device { justify-self: center; }
.device { position: relative; width: 240px; border-radius: 40px; padding: 7px; background: #050505; box-shadow: 0 0 0 1.5px #3A3530, 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(255, 122, 51, 0.16); }
.device video { display: block; width: 100%; aspect-ratio: 660 / 1434; border-radius: 33px; background: #0E0D0C; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; gap: 36px; } .device { width: 220px; margin: 0 auto; } }
.free { color: var(--muted); font-size: 15px; }

/* the three steps: one light row */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps .num { flex: none; transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.steps.live li:not(.now) .num { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }  /* the steps the video isn't showing */
.steps h3 { margin: 6px 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.steps p { margin: 0; color: var(--muted); }

/* who it's for, and why: icon, title, one line, no boxes */
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.row4 .item h3 { margin: 14px 0 4px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.row4 .item p { margin: 0; color: var(--muted); font-size: 16px; }
.row4 .mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 122, 51, 0.12); }
.row4 .mark svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .row4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .row4 { gap: 22px 18px; } }

/* questions: each opens on a tap (no script needed) */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 24px; font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

/* how it works */
.num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 19px; color: var(--on-accent); background: var(--accent); box-shadow: 0 8px 24px rgba(255, 122, 51, 0.35); }

/* free and Pro */
.plan { margin: 72px 0 0; padding: 36px 40px; border-radius: 32px; background: radial-gradient(120% 160% at 100% 0%, rgba(255, 122, 51, 0.32), transparent 55%), var(--surface); border: 1px solid var(--line); display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.plan img { width: 64px; height: 64px; }
.plan h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.035em; margin: 0 0 8px; line-height: 1.08; font-weight: 600; }
.plan p { margin: 0; color: var(--muted); max-width: 32em; }
.plan .words { flex: 1 1 320px; display: flex; gap: 24px; align-items: center; }
@media (max-width: 600px) { .plan { padding: 30px; } .plan .words { flex-direction: column; align-items: flex-start; } }

/* footer */
footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 32px 0 48px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .credits { flex-basis: 100%; margin: 0; font-size: 13px; color: #857F76; }  /* 4.8:1 on studio black */
footer .credits a { text-decoration: underline; }

/* things that rise into view as the page scrolls (only once the script runs: no script, all shown) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pill, .play { transition: none; }
}

/* the privacy and terms pages */
.doc { max-width: 720px; padding-bottom: 24px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.04em; line-height: 1.08; margin: 40px 0 6px; font-weight: 600; }
.doc h2 { font-size: 21px; margin: 36px 0 6px; font-weight: 600; }
.doc .updated { color: var(--muted); margin: 0 0 26px; font-size: 15px; }
.doc .lead { color: var(--text); font-size: 20px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; color: var(--muted); }
.doc li b { color: var(--text); font-weight: 600; }
.doc p { color: var(--muted); }
