/* ==========================================================================
   PianoForAll Guide — shared design system
   ========================================================================== */

:root {
  --ink: #101826;
  --ink-soft: #3a4353;
  --paper: #faf7f0;
  --paper-alt: #f1ece0;
  --card: #ffffff;
  --navy: #0b1424;
  --navy-soft: #16233b;
  --brass: #b8862e;
  --brass-light: #d9a84a;
  --brass-dark: #8c6620;
  --line: #e4ddca;
  --line-dark: #263047;
  --good: #2f6b4f;
  --warn: #9c5a1f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px -16px rgba(16, 24, 38, 0.28);
  --shadow-soft: 0 4px 14px -6px rgba(16, 24, 38, 0.18);
  --maxw: 1180px;
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --font-body: -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-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section-alt { background: var(--paper-alt); }
.section-navy { background: var(--navy); color: #e9edf5; }
.section-navy h2, .section-navy h3 { color: #fff; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-dark);
  font-weight: 700;
  margin-bottom: 0.8em;
}
.section-navy .eyebrow { color: var(--brass-light); }
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brass);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 20, 36, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand img { height: 34px; width: auto; border-radius: 6px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: #fff;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: #cfd6e4;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-cta {
  background: linear-gradient(135deg, var(--brass-light), var(--brass-dark));
  color: #17130a !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700 !important;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brass-light), var(--brass-dark));
  color: #17130a;
  box-shadow: var(--shadow-soft);
}
.btn-secondary {
  background: transparent;
  border-color: var(--line-dark);
  color: inherit;
}
.section-navy .btn-secondary { border-color: #4a577a; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--brass-dark);
  padding: 6px 0;
  border-radius: 0;
  text-decoration: underline;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 15% 20%, #1a2740 0%, var(--navy) 55%, #070c16 100%);
  color: #f2f4f9;
  padding: 88px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero h1 { color: #fff; }
.hero .lede { color: #c6cddc; }
.hero-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #263047;
}
.page-hero {
  background: linear-gradient(180deg, var(--navy), var(--navy-soft));
  color: #fff;
  padding: 64px 0 48px;
}
.page-hero h1 { color: #fff; }
.page-hero .lede { color: #c6cddc; }
.breadcrumbs {
  font-size: 0.85rem;
  color: #98a3ba;
  margin-bottom: 18px;
}
.breadcrumbs a { color: #cfd6e4; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Trust / disclosure strip ---------- */
.trust-strip {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.trust-strip .container { display: flex; gap: 10px; align-items: flex-start; }
.disclosure-note {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 24px 0;
}
.disclosure-note strong { color: var(--ink); }
.quick-answer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0;
  box-shadow: var(--shadow-soft);
}
.quick-answer h2 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brass-dark);
  margin-bottom: 0.5em;
}
.quick-answer p { margin: 0; color: var(--ink); font-size: 1.02rem; }
.callout-warn {
  background: #fbf1e6;
  border: 1px solid #e6c894;
  border-left: 4px solid var(--warn);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.94rem;
}

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.card h3 { margin-bottom: 0.4em; }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tag-good { background: #e5f1ea; color: var(--good); }
.tag-warn { background: #f8ecd8; color: var(--warn); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.two-col > * { min-width: 0; }
.two-col h3 { display: flex; align-items: center; gap: 8px; }

/* ---------- Timeline / steps ---------- */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 28px;
  border-left: 3px solid var(--line);
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brass);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--brass);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
  margin-top: 32px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--brass-light);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 24px 0; }
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--good);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checklist-neutral li::before {
  content: "–";
  background: var(--warn);
}

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; margin: 24px 0; }
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { font-family: var(--font-display); background: var(--paper-alt); }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--card);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--ink);
}
.faq-q::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brass-dark);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[data-open="true"] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  color: var(--ink-soft);
}
.faq-item[data-open="true"] .faq-a {
  padding: 0 20px 20px;
  max-height: 600px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-soft), var(--navy));
  color: #fff;
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
  margin: 20px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c6cddc; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- Related nav ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.related-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.related-card .eyebrow { margin-bottom: 6px; }
.related-card p { margin: 6px 0 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b9c1d4;
  padding: 56px 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-grid > * { min-width: 0; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: #b9c1d4; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #263047;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: #8b96ad;
}
.footer-disclosure { font-size: 0.82rem; color: #8b96ad; max-width: 70ch; margin-bottom: 18px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.88rem; color: var(--ink-soft); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .nav-links.open { display: flex; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
}
