/* Learn Music Notes Piano — site styles */

:root {
  --teal: #10a4bf;
  --teal-dark: #0b7f95;
  --blue: #1668dd;
  --blue-dark: #0f4fb0;
  --navy: #0d2b4e;
  --ink: #1c2a39;
  --ink-soft: #46586c;
  --bg: #f5fafc;
  --card: #ffffff;
  --line: #dce9f0;
  --sun: #ffc832;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(13, 43, 78, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  min-width: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.site-header nav a:hover {
  color: var(--blue);
}

@media (max-width: 720px) {
  .site-header nav a.nav-link {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #ff9f1c, #f97316);
  color: #fff;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.40);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.55);
  filter: brightness(1.05);
}

.btn-secondary {
  background: #fff;
  color: var(--blue-dark);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background: #eef5ff;
}

.btn small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.8;
  line-height: 1.1;
  text-align: left;
}

.btn .store-label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.btn svg {
  flex: none;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 15px;
  border-radius: 11px;
}

/* Hero */

.hero {
  background: linear-gradient(160deg, #14b2c4 0%, #0f8fc9 45%, var(--blue) 100%);
  color: #fff;
  padding: 64px 0 0;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

.hero p.lead {
  font-size: clamp(17px, 2.2vw, 21px);
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.94);
  max-width: 34em;
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero .stars {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 46px;
}

.hero .stars .glyphs {
  color: var(--sun);
  font-size: 18px;
  letter-spacing: 2px;
}

.hero-shot {
  align-self: end;
  display: flex;
  justify-content: center;
}

.hero-shot img {
  width: min(320px, 80%);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.28);
  display: block;
}

@media (max-width: 820px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-shot {
    order: 2;
  }
}

/* Trust strip */

.trust {
  background: var(--navy);
  color: #d9e6f5;
  font-size: 15px;
}

.trust .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-weight: 600;
}

/* Sections */

section {
  padding: 64px 0;
}

section.alt {
  background: #fff;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 10px;
  letter-spacing: -0.4px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
}

/* Screenshots */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(240px, 62vw);
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
}

.shots figure {
  margin: 0;
  scroll-snap-align: center;
}

.shots img {
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: block;
}

.shots figcaption {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* Feature / step cards */

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 4px 14px rgba(13, 43, 78, 0.05);
}

.card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}

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

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* Guides grid */

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

.guide-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(13, 43, 78, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

.guide-card h3 {
  margin: 0 0 6px;
  font-size: 17.5px;
  color: var(--blue-dark);
}

.guide-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.guide-card .more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--teal-dark);
}

/* FAQ */

.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 22px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
  padding: 14px 0;
  list-style: none;
  position: relative;
  padding-right: 34px;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--teal-dark);
  font-weight: 600;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .answer {
  padding: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.faq .answer a {
  font-weight: 700;
}

/* Big CTA */

.big-cta {
  background: linear-gradient(150deg, var(--teal) 0%, var(--blue) 100%);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  padding: 54px 28px;
  box-shadow: var(--shadow);
}

.big-cta h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 12px;
}

.big-cta p {
  margin: 0 auto 26px;
  max-width: 36em;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.94);
}

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

/* Footer */

.site-footer {
  background: var(--navy);
  color: #b9cbe0;
  padding: 44px 0 30px;
  font-size: 14.5px;
  margin-top: 64px;
}

.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 28px;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: #b9cbe0;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  font-size: 13px;
  color: #8ba4c2;
}

/* Article (guide) pages */

.article-hero {
  background: linear-gradient(160deg, #14b2c4 0%, var(--blue) 100%);
  color: #fff;
  padding: 46px 0 42px;
}

.article-hero .crumbs {
  font-size: 14px;
  margin-bottom: 14px;
}

.article-hero .crumbs a {
  color: rgba(255, 255, 255, 0.85);
}

.article-hero h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.4px;
  max-width: 20em;
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 20px 20px;
}

.article h2 {
  font-size: 26px;
  margin: 40px 0 12px;
  letter-spacing: -0.3px;
}

.article h3 {
  font-size: 20px;
  margin: 28px 0 8px;
}

.article p,
.article li {
  font-size: 17px;
  color: #2c3e50;
}

.article .lead-answer {
  background: #e8f6f9;
  border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-size: 17.5px;
  margin: 0 0 8px;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 16px;
}

.article th,
.article td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}

.article th {
  background: #eaf4f8;
}

.article .mnemonic {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: 0.5px;
}

.app-bridge {
  background: var(--card);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 40px 0;
}

.app-bridge h2 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-bridge h2 img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.related {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 30px;
}

.related h2 {
  font-size: 22px;
}

.inline-cta {
  text-align: center;
  margin: 36px 0;
}
