/* SoundPlayback public site — mobile-first, clean layout */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666a72;
  --line: #e8e8ec;
  --soft: #f6f6f8;
  --primary: #e11d48;
  --primary-dark: #be123c;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  --max: 1080px;
  --pad: 1.15rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
a { color: inherit; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

/* Layout shell */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.wrap--narrow { max-width: 680px; }
.wrap--center { text-align: center; }

/* —— Header logo (fixed position style) —— */
.site-header {
  background: #fff;
  padding: 1.75rem var(--pad) 0.75rem;
  text-align: center;
}
.site-header__logo {
  width: min(380px, 86vw);
  height: auto;
  margin: 0 auto;
}

/* —— Nav —— */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.85rem;
  padding: 0.65rem var(--pad) 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0.15rem;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--primary); }
.site-nav__cta {
  color: #fff !important;
  background: var(--primary);
  padding: 0.4rem 0.9rem !important;
  border-radius: 999px;
}
.site-nav__cta:hover { background: var(--primary-dark); color: #fff !important; }

/* —— Sections —— */
.section {
  padding: 2.5rem 0;
  background: #fff;
}
.section--soft { background: var(--soft); }
.section__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.45rem;
}
.section__title {
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.section__text {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 40rem;
}
.section__text--lead {
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}
.section--soft .section__text,
.section .section__text { margin-left: auto; margin-right: auto; }
.wrap--center .section__text { margin-left: auto; margin-right: auto; }

/* Hero photo */
.media-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #f0f0f2;
}
.media-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.media-frame--hero img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.media-frame--wide img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.media-frame--portrait img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.media-frame--icons img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  object-position: center;
  padding: 0.75rem;
  background: #fff;
}

/* —— Card grid —— */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 0; /* prevent grid blowout */
}
.card__img {
  width: 100%;
  margin: 0;
  background: #f0f0f2;
  overflow: hidden;
}
.card__img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}
.card--wide .card__img img { aspect-ratio: 4 / 3; }
.card__body {
  padding: 1rem 1.05rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.card__body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.card__body p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Feature list */
.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem;
}
.feature__num {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.feature h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.feature p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* About split */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
.about__copy p {
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.about__copy strong { color: var(--text); }
.ticks {
  margin-top: 0.5rem;
}
.ticks li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
}

/* CTA */
.cta {
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.btn-download {
  display: inline-block;
  margin-top: 0.35rem;
  background: var(--primary);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.22);
  border: 0;
}
.btn-download:hover { background: var(--primary-dark); }
.btn-download.is-disabled {
  background: #c8c8ce;
  box-shadow: none;
  pointer-events: none;
}
.hint {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.support-line {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.support-line a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: #fff;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
}
.footer-logo {
  width: min(240px, 80vw);
  margin-bottom: 0.65rem;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28rem;
}
.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.28rem 0;
}
.footer-col a:hover { color: var(--primary); }
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.social {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.social:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.footer-mail {
  margin-top: 0.85rem;
  font-size: 0.88rem;
}
.footer-mail a {
  color: var(--muted);
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 0.95rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-bottom .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--primary); }

/* Privacy page */
body.doc .simple { text-align: center; padding: 2rem var(--pad) 0.5rem; }
body.doc .content {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem var(--pad) 3rem;
  line-height: 1.65;
}

/* —— Tablet+ —— */
@media (min-width: 640px) {
  :root { --pad: 1.5rem; }
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom .wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .site-header { padding-top: 2.25rem; }
  .site-header__logo { width: min(400px, 70vw); }
}

/* —— Desktop —— */
@media (min-width: 960px) {
  .section { padding: 3.25rem 0; }
  .grid--3 { grid-template-columns: 1fr 1fr 1fr; }
  .feature-list { grid-template-columns: repeat(4, 1fr); }
  .about {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.25rem;
    align-items: center;
  }
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 1fr; gap: 2rem; }
  .media-frame--icons img { max-height: 200px; }
  .site-nav { gap: 0.5rem 1.15rem; }
}

/* Prevent long words overflowing */
.card__body p,
.section__text,
.about__copy p,
.feature p {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
