/* ballroombuddy.dance: shared styles for the home, confirm and unsubscribe pages. */
:root {
  color-scheme: light dark;
  --bg: #fbf8f4; --bg2: #f3ede6; --fg: #1f1b24; --muted: #625a6b; --accent: #7a2e5c; --accent-fg: #fff;
  --card: #fff; --line: #e6ddd3; --ok: #1f6b3a; --err: #a3262a; --shadow: 0 18px 40px -20px rgba(60, 30, 50, .35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141118; --bg2: #1b1720; --fg: #efe9f3; --muted: #aba2b4; --accent: #e594c2; --accent-fg: #2a0f20;
    --card: #211c28; --line: #332c3c; --ok: #7fd39b; --err: #ff9a9a; --shadow: 0 18px 40px -20px rgba(0, 0, 0, .8);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--fg); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 11px 22px; font: inherit; font-weight: 600;
  background: var(--accent); color: var(--accent-fg); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.small { padding: 8px 16px; font-size: .95rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 36px; padding-bottom: 64px; }
.pill { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 999px; padding: 4px 12px; }
h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); line-height: 1.05; letter-spacing: -.025em; margin: 16px 0 18px; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 28px; max-width: 32em; }
.duo { position: relative; justify-self: center; width: min(400px, 100%); padding-left: 120px; }
.duo .phone { width: 260px; }
.duo .back { position: absolute; left: 0; top: 48px; transform: rotate(-6deg) scale(.88); opacity: .95; }
.duo .front { position: relative; }

/* Phone frame around a screenshot */
.phone { width: min(280px, 72vw); aspect-ratio: 640 / 1270; border-radius: 34px; padding: 9px; background: #18141c;
  box-shadow: 0 0 0 1px var(--line), var(--shadow); position: relative; }
.phone img, .phone .ph { width: 100%; height: 100%; border-radius: 26px; object-fit: cover; object-position: top; }
.phone .ph { display: none; place-items: center; text-align: center; padding: 20px; background: var(--bg2); color: var(--muted); font-size: .9rem; }
.phone.missing img { display: none; }
.phone.missing .ph { display: grid; }

/* Features */
section { padding: 56px 0; }
section.alt { background: var(--bg2); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -.015em; margin: 0 0 10px; line-height: 1.15; }
.sub { color: var(--muted); margin: 0 0 36px; max-width: 40em; }
.feature { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; padding: 28px 0; }
.feature.flip { grid-template-columns: 300px 1fr; }
.feature.flip .phone { order: -1; }
.feature .phone { justify-self: center; }
.feature h3 { font-size: 1.45rem; margin: 0 0 8px; }
.feature p { margin: 0 0 10px; color: var(--muted); }
.feature ul { margin: 8px 0 0; padding-left: 1.2rem; color: var(--muted); }
.feature li { margin: 4px 0; }
/* DJ party: the studio's TV with a phone in front of it */
.feature.wide { grid-template-columns: 1fr 1.3fr; }
.tvset { position: relative; width: 100%; aspect-ratio: 1 / .88; }
.tv { position: absolute; left: 0; top: 0; width: 88%; aspect-ratio: 16 / 9; padding: 10px; border-radius: 14px;
  background: #18141c; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.tv img { width: 100%; height: 100%; border-radius: 4px; object-fit: cover; }
.tv::after { content: ''; position: absolute; left: 38%; width: 24%; bottom: -18px; height: 18px; background: #2a2430;
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.feature .tvset .phone { position: absolute; right: 0; bottom: 0; width: 31%; border-radius: 24px; padding: 6px; }
.tvset .phone img { border-radius: 19px; }
.tag { font-size: .8rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }

/* Sign-up */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.signup { max-width: 560px; margin: 0 auto; }
label.field { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=email] { width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--fg); }
input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: .95rem; color: var(--muted); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.choices { border: 0; padding: 0; margin: 18px 0 4px; min-width: 0; }
.choices legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); cursor: pointer; font-weight: 500; }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.choice input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.check.studio { margin-bottom: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha { min-height: 70px; margin: 8px 0 16px; }
.msg { margin: 14px 0 0; font-weight: 500; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }
.fine { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }

/* Footer */
footer { padding: 32px 0 44px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Small pages (confirm, unsubscribe) */
.narrow { max-width: 560px; margin: 8vh auto; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; gap: 32px; }
  .top .btn.small { padding: 7px 14px; }
  .duo { padding-left: 0; width: auto; }
  .duo .back { display: none; }
  .duo .front { width: min(240px, 64vw); }
  .feature, .feature.flip, .feature.wide { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .phone { order: 0; }
  .feature .phone { width: min(240px, 64vw); }
  section { padding: 40px 0; }
  .card { padding: 22px 18px; }
}
