/* MSG Songs — shared stylesheet
   Palette mirrors the app theme (lib/utils/colors.dart) */

:root {
  --primary:        #FF3D4B;
  --primary-hover:  #FF6D7A;
  --accent:         #00ACC1;
  --bg:             #FFFAFB;
  --surface:        #FFFFFF;
  --tint:           #FFDFE1;
  --text:           #000000;
  --text-muted:     #60696B;
  --border:         #C2D2D5;
  --border-light:   #DBDBDB;
  --radius:         12px;
  --maxw:           1080px;
  --readw:          760px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.readable { max-width: var(--readw); }

/* ---------- header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img { width: 34px; height: 34px; border-radius: 8px; }

.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--primary); }
.site-nav a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%);
  padding: 72px 0 64px;
  text-align: center;
}

.hero img.mark {
  width: 88px; height: 88px;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(255, 61, 75, 0.22);
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p.lede {
  margin: 0 auto 12px;
  max-width: 640px;
  font-size: 20px;
  color: var(--text-muted);
}

.hero p.sub {
  margin: 0 auto 32px;
  max-width: 600px;
  font-size: 16px;
  color: var(--text-muted);
}

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.badge-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- sections ---------- */

section { padding: 64px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--border-light); }

h2 {
  font-size: 30px;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.section-lede {
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 640px;
  font-size: 17px;
}

.center { text-align: center; }
.center .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 26px 24px;
}

section.alt .card { background: var(--bg); }

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 14px;
}

/* ---------- page header (inner pages) ---------- */

.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  padding: 52px 0 40px;
}

.page-head h1 {
  margin: 0 0 8px;
  font-size: 38px;
  letter-spacing: -0.02em;
}

.page-head .meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- legal / long-form copy ---------- */

.doc { padding: 48px 0 72px; }

.doc h2 {
  font-size: 22px;
  margin: 40px 0 10px;
  padding-top: 6px;
}

.doc h2:first-child { margin-top: 0; }

.doc h3 {
  font-size: 17px;
  margin: 26px 0 8px;
}

.doc p, .doc li { color: #2b3133; }

.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15.5px;
}

.doc th, .doc td {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  vertical-align: top;
}

.doc th { background: var(--tint); font-weight: 600; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 24px 0;
}

.callout p { margin: 0; }
.callout p + p { margin-top: 10px; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.toc h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em;
          color: var(--text-muted); margin: 0 0 10px; padding: 0; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 4px; }

/* ---------- support page ---------- */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 22px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li strong { display: block; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "+";
  color: var(--primary);
  font-weight: 700;
  margin-right: 10px;
}

.faq details[open] summary::before { content: "\2013"; }

.faq details p { margin: 12px 0 2px; color: var(--text-muted); font-size: 16px; }

.contact-box {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.contact-box h2 { margin-top: 0; }
.contact-box p { margin: 0 auto 20px; max-width: 520px; color: #4a4f51; }

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2px 7px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  padding: 40px 0 48px;
  font-size: 15px;
  color: var(--text-muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.site-footer .copyright { margin: 0; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 32px; }
  .hero p.lede { font-size: 18px; }
  .page-head { padding: 36px 0 28px; }
  .page-head h1 { font-size: 29px; }
  h2 { font-size: 25px; }
  section { padding: 44px 0; }
  .wrap { padding: 0 18px; }
  .site-header .wrap { justify-content: center; }
  .site-nav { gap: 16px; }
  .btn { width: 100%; text-align: center; }
  .btn-row { flex-direction: column; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
  .doc table, .doc thead, .doc tbody, .doc th, .doc td, .doc tr { display: block; }
  .doc thead { display: none; }
  .doc td { border-top: none; }
  .doc tr { margin-bottom: 16px; border-top: 1px solid var(--border-light); }
}

.contact-details {
  margin: 22px auto 0 !important;
  font-size: 15.5px;
  line-height: 1.7;
  color: #4a4f51;
}

.footer-addr { font-size: 14px; }
