/* SoundDeck website — orange/grey design system, matching the app.
   No build step: plain CSS custom properties + a small utility set. */

:root {
  --orange: #ff9500;
  --orange-hi: #ffaa33;
  --orange-lo: #e08400;
  --bg-0: #1c1c1c;
  --bg-1: #232323;
  --bg-2: #2a2a2a;
  --card: #262626;
  --line: #383838;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.62);
  --text-faint: rgba(255, 255, 255, 0.38);
  --radius: 14px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(20, 20, 20, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: inline-flex; align-items: center; gap: 0px; font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.logo .b { color: var(--orange); }
.logo-mark { width: 28px; height: 28px; border-radius: 7px; display: block; }

/* Big logo above the hero headline */
.hero-logo { width: 88px; height: 88px; border-radius: 22px; display: block; margin: 0 auto 24px; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45); }

/* Google sign-in button wrapper (Google Identity Services renders into it) */
.g-wrap { display: flex; justify-content: center; }
#google-btn { min-height: 40px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { color: var(--orange) !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 10px; border: none; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700; color: #fff;
  background: var(--orange); transition: background .15s, transform .05s;
  text-align: center;
}
.btn:hover { background: var(--orange-hi); }
.btn:active { transform: translateY(1px); background: var(--orange-lo); }
.btn.secondary { background: transparent; border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.btn.secondary:hover { border-color: var(--orange); color: var(--orange); background: transparent; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -1.5px; font-weight: 800; }
.hero h1 .accent { color: var(--orange); }
.hero p.lead { font-size: clamp(17px, 2.4vw, 21px); color: var(--text-dim); max-width: 620px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; color: var(--text-faint); font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.8px; margin: 0 0 8px; text-align: center; }
.section .sub { color: var(--text-dim); text-align: center; margin: 0 auto 40px; max-width: 560px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { color: var(--text-dim); margin: 0 0 18px; font-size: 15px; }

/* Download cards */
.dl-card { text-align: center; }
.dl-card .os-icon { font-size: 34px; margin-bottom: 10px; }
.dl-card .meta { color: var(--text-faint); font-size: 13px; margin-top: 12px; }

/* Feature cards */
.feature .fi { font-size: 26px; margin-bottom: 10px; }

/* ---------- Auth / forms ---------- */
.auth-wrap { max-width: 420px; margin: 56px auto; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.tabs { display: flex; gap: 6px; background: var(--bg-2); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.tab { flex: 1; text-align: center; padding: 9px; border-radius: 7px; color: var(--text-dim); cursor: pointer; font-weight: 600; font-size: 14px; border: none; background: transparent; font-family: inherit; }
.tab.active { background: var(--orange); color: #fff; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 13px; border-radius: 9px; border: 1px solid var(--line);
  background: #303030; color: #fff; font-size: 15px; font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--orange); }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 13px; font-family: inherit; }
.pw-toggle:hover { color: var(--orange); }
.form-msg { font-size: 13px; margin: 4px 0 12px; min-height: 18px; }
.form-msg.error { color: #ff6b6b; }
.form-msg.ok { color: var(--orange); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-faint); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.link-btn { background: none; border: none; color: var(--text-dim); font-family: inherit; font-size: 14px; cursor: pointer; padding: 4px; }
.link-btn:hover { color: var(--orange); }
.auth-card h3 { margin: 0 0 6px; }

/* Logged-in panel */
.account-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.account-row:last-child { border-bottom: none; }
.account-row .k { color: var(--text-dim); }

/* ---------- Pricing ---------- */
.price { font-size: 38px; font-weight: 800; margin: 6px 0 2px; }
.price .per { font-size: 15px; color: var(--text-faint); font-weight: 500; }
.plan.featured { border-color: var(--orange); position: relative; }
.plan.featured::before { content: "Popular"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; }
.plan li { padding: 7px 0; color: var(--text-dim); font-size: 15px; }
.plan li::before { content: "✓"; color: var(--orange); font-weight: 800; margin-right: 10px; }
.badge-soon { display: inline-block; background: var(--bg-2); color: var(--text-dim); font-size: 12px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--line); }

/* Frosted-glass cover for plans whose feature list isn't finalized yet.
   .plan-body holds everything below the <h3> title. It's a single-cell CSS
   grid; .plan-content (price/list/button) and .frost-overlay both occupy
   that same cell (grid-area 1/1), so the overlay always matches the real
   content's size — no absolute-positioning/auto-height guesswork, which is
   what silently collapsed it to 0 height before. */
.plan-body { display: grid; }
.plan-body > * { grid-area: 1 / 1; }
.frost-overlay {
  /* Full card width by default. Narrow it by lowering this percentage (or
     use a fixed value like 220px) — pair with justify-self below to control
     where it sits when it's narrower than the card. */
  width: 110%;
  justify-self: center; /* left | center | right — only matters if width < 100% */
  border-radius: 7px;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 48px; color: var(--text-faint); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links a.hide-sm { display: none; }
  .hero { padding: 64px 0 48px; }
}

.hidden { display: none !important; }

/* ---------- Legal pages (Imprint / Privacy Policy) ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 6px; letter-spacing: -0.8px; }
.legal .updated { color: var(--text-faint); font-size: 13px; margin: 0 0 40px; }
.legal h2 { font-size: 20px; margin: 40px 0 12px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 16px; margin: 22px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--text-dim); font-size: 15px; line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 8px 0 16px; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--orange); text-decoration: underline; text-decoration-color: rgba(255,149,0,0.35); }
.legal a:hover { text-decoration-color: var(--orange); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--text-dim); vertical-align: top; }
.legal th { color: var(--text); font-weight: 600; }
.legal .callout { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 8px; padding: 14px 16px; margin: 18px 0; font-size: 14px; color: var(--text-dim); }
.legal .placeholder { color: var(--orange); font-weight: 700; }
