/* InstaJam site: the app's dark stage, amber pick and guitar-wood palette. */
@font-face { font-family: "Ubuntu"; src: url("fonts/ubuntu-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("fonts/ubuntu-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #121214;
  --surface: #1C1C20;
  --raised: #26262B;
  --line: #3D3D42;
  --amber: #F2B33D;
  --amber-hi: #FBCA65;
  --amber-lo: #E3A63F;
  --cream: #EEE3CE;
  --muted: #B5AD9F;
  --wood: #3B2414;
  --wood-dark: #1C0F07;
  --string: #D4D4D5;
  --wound: #C9A055;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--cream);
  font: 400 17px/1.65 "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}
body > main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--amber); }
a:hover { color: var(--amber-hi); }
h1, h2, h3 { font-family: "Ubuntu", "Inter", sans-serif; font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
::selection { background: var(--amber); color: var(--bg); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------------------------------------------------------- top bar */
.top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand img { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); }
.brand span { font-family: "Ubuntu", sans-serif; font-weight: 700; font-size: 24px; color: var(--amber); }
.top nav { display: flex; gap: 26px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--cream); }

/* ---------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 78% 55%, rgba(242, 179, 61, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 0%, rgba(59, 36, 20, 0.6), transparent 70%),
    var(--bg);
  padding-bottom: 72px;
}
/* Six guitar strings behind the hero; the bottom three are wound. */
.strings { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; justify-content: space-evenly; padding: 90px 0 40px; pointer-events: none; }
.strings i { display: block; height: 2px; background: var(--string); opacity: 0.09; transform-origin: center; }
.strings i:nth-child(n+4) { height: 3px; background: repeating-linear-gradient(90deg, var(--wound) 0 2px, #8F7747 2px 3px); opacity: 0.14; }
.strings i.pluck { animation: pluck 0.6s ease-out; }
@keyframes pluck {
  0% { transform: scaleY(1); opacity: 0.5; }
  15% { transform: translateY(-3px) scaleY(1.6); }
  30% { transform: translateY(3px); }
  45% { transform: translateY(-2px); }
  60% { transform: translateY(1.5px); }
  100% { transform: none; }
}

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; padding-top: 36px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 500; }
.eyebrow b { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.hero h1 { font-size: clamp(40px, 4.6vw, 58px); margin: 20px 0 18px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 13px 24px; border-radius: 999px;
  font-family: "Ubuntu", sans-serif; font-weight: 700; font-size: 18px; text-decoration: none;
  background: var(--amber); color: #1A1407; border: 0;
  box-shadow: 0 8px 26px rgba(242, 179, 61, 0.28); transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { background: var(--amber-hi); color: #1A1407; transform: translateY(-2px); }
.btn small { display: block; font: 600 11px/1 "Inter", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-bottom: 2px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); box-shadow: none; padding: 15px 22px; }
.btn.ghost:hover { border-color: var(--amber); color: var(--amber); }

.device {
  position: relative; border-radius: 30px; padding: 12px; background: #050506;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.02);
}
.device img { border-radius: 19px; width: 100%; height: auto; }

/* Chord buttons, like the app's left hand. */
.chords { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 56px; }
.chords span {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--raised); color: var(--cream); font: 700 21px "Ubuntu", sans-serif;
  border: 1px solid var(--line); transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.chords span.on, .chords span:hover { background: var(--amber); color: #1A1407; border-color: var(--amber); transform: translateY(-3px); }

/* ---------------------------------------------------------- sections */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.kicker { color: var(--amber); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 12px; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(242, 179, 61, 0.12); color: var(--amber); margin-bottom: 16px; }
.card .ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 23px; margin-bottom: 12px; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.card li { position: relative; padding-left: 22px; }
.card li::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* ---------------------------------------------------------- songs */
.songs-band { background: linear-gradient(180deg, var(--bg), #191210 20%, #191210 80%, var(--bg)); }
.songs { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.songs h2 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 14px; }
.songs p { color: var(--muted); margin: 0 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips span { padding: 6px 14px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--cream); }
.chips span:first-child { background: var(--amber); border-color: var(--amber); color: #1A1407; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.list div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid #2A2A2F; }
.list div:first-child { border-top: 0; }
.list b { display: block; font-weight: 600; }
.list small { color: var(--muted); font-size: 13px; }
.list i { font: 700 16px "Ubuntu", sans-serif; color: var(--amber); font-style: normal; }

/* ---------------------------------------------------------- gallery */
.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 24px; scrollbar-color: var(--line) transparent; }
.gallery figure { margin: 0; flex: 0 0 min(820px, 88%); scroll-snap-align: center; }
.gallery figcaption { text-align: center; margin-top: 14px; color: var(--muted); font-weight: 500; }
.gallery-hint { text-align: center; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------- tip */
.tip { display: flex; gap: 20px; align-items: flex-start; background: linear-gradient(135deg, var(--wood), var(--wood-dark)); border: 1px solid #4A3020; border-radius: 22px; padding: 28px 30px; }
.tip svg { width: 34px; height: 34px; flex: none; color: var(--amber); margin-top: 2px; }
.tip h3 { font-size: 21px; margin-bottom: 6px; }
.tip p { margin: 0; color: #D9CBB0; }

/* ---------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 40px; background: #0D0D0F; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer p { margin: 0; color: var(--muted); }
footer nav { display: flex; gap: 22px; }
footer nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
footer nav a:hover { color: var(--amber); }

/* ---------------------------------------------------------- document pages (privacy) */
.doc { padding: 12px 0 40px; }
.doc article { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 56px); max-width: 820px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 10px; }
.doc h2 { font-size: 23px; margin: 34px 0 8px; color: var(--amber); }
.doc p, .doc li { color: #DDD3BF; }
.doc ul { padding-left: 22px; }

/* ---------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .hero-grid, .songs { grid-template-columns: 1fr; }
  .hero-grid { text-align: center; gap: 40px; }
  .hero p.lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .top nav { display: none; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .chords span { width: 52px; height: 52px; font-size: 18px; }
  .tip { flex-direction: column; padding: 24px; }
  .gallery figure { flex-basis: 94%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strings i.pluck { animation: none; }
  .btn, .chords span { transition: none; }
}
