/* Fret & Key — marketing site
   Palette pulled straight from the app's own theme (Assets/Scripts/Theme/FixedThemes.cs):
   accent #f09661, muted #6c5f47, cream fill #fdf4e0, near-black header #1b1b19. */

:root {
  --ink: #2c2a27;
  --charcoal: #4b4b49;
  --muted: #6c5f47;
  --accent: #f09661;
  --accent-dark: #d97d46;
  --cream: #fdf4e0;
  --cream-2: #f6efdf;
  --paper: #fffaf0;
  --near-black: #1b1b19;
  --line: rgba(75, 75, 73, 0.16);
  --max: 1100px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Nav ---------- */

header.site-nav {
  background: var(--near-black);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo img { height: 34px; width: auto; }
.nav-logo { display: flex; align-items: center; }

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: #eee6d6;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.nav-cta:hover { background: var(--accent-dark); text-decoration: none; }

/* ---------- Hero ---------- */

/* No real photograph available yet (see note to Randy) -- this is a CSS-only
   stand-in: warm bokeh-style light pools over a soft gradient, plus a faint
   fretboard-line texture, so the top section reads as a moody backdrop
   rather than a flat fill. Swap for a real photo later by replacing this
   background with a background-image on .hero and keeping .hero::before
   as a dark overlay for text contrast. */
.hero {
  position: relative;
  padding: 72px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 760px 480px at 12% 18%, rgba(240, 150, 97, 0.22), transparent 62%),
    radial-gradient(ellipse 620px 420px at 88% 82%, rgba(217, 125, 70, 0.14), transparent 58%),
    linear-gradient(to right, rgba(250, 240, 222, 0.97) 0%, rgba(250, 240, 222, 0.87) 34%, rgba(250, 240, 222, 0.55) 55%, rgba(250, 240, 222, 0.2) 72%, rgba(250, 240, 222, 0) 88%),
    url('assets/hero-bg.jpg');
  background-size: 146%;
  background-position: 77% 84%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(75, 75, 73, 0.05) 0px,
    rgba(75, 75, 73, 0.05) 1px,
    transparent 1px,
    transparent 34px
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--near-black);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.12;
  margin: 0 0 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero p.lede {
  font-size: 19px;
  color: var(--charcoal);
  max-width: 480px;
  margin: 0 0 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
}

.btn-primary { background: var(--near-black); color: #fff; }
.btn-primary:hover { background: #000; text-decoration: none; }
.btn-primary[aria-disabled="true"] { opacity: 0.55; cursor: default; }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--charcoal); text-decoration: none; }

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.hero-shot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1800px;
  padding: 30px 0;
}

.hero-shot::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(240, 150, 97, 0.35), rgba(240, 150, 97, 0) 70%);
  filter: blur(10px);
  z-index: 0;
}

/* Landscape phone mockup, tilted in real 3D so it reads as a physical object
   rather than a flat screenshot with rounded corners. The screenshots
   themselves are landscape (~19.5:9), matching how this fretboard app is
   actually used, so the frame is built landscape-first. */
.device-frame {
  position: relative;
  z-index: 1;
  background: linear-gradient(155deg, #2b2b28, var(--near-black) 55%);
  border-radius: 26px;
  padding: 12px;
  max-width: 540px;
  width: 100%;
  box-shadow:
    0 15px 30px -8px rgba(27, 27, 25, 0.35),
    0 45px 90px -25px rgba(27, 27, 25, 0.5),
    0 90px 120px -60px rgba(27, 27, 25, 0.45);
}

.device-frame .screen {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  /* Classic padding-top aspect-ratio box (2600:1195, the real screenshot
     ratio) -- more reliable across engines than aspect-ratio combined with
     percentage heights on a flex descendant. Height:0 + this padding is
     what actually gives the box its size; width comes from the parent. */
  height: 0;
  padding-top: 45.9615%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device-frame img {
  display: block;
  width: 100%;
}

/* Carousel: slides sit side by side; JS sets pixel widths on .carousel-track
   and each image, then animates transform to swipe between them.
   Absolutely positioned + inset:0 gives the track a definite height (the
   .screen box's height, from the padding-top trick above) without relying
   on percentage-height-through-a-flex-parent, which some engines resolve
   inconsistently once replaced elements with an intrinsic aspect ratio are
   involved. */
.carousel-track {
  display: flex;
  position: absolute;
  inset: 0;
}
.carousel-track img {
  flex: none;
  height: 100%;
  object-fit: cover;
}

/* Glossy sheen sweeping across the glass */
.device-frame .screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.04) 22%,
    rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

/* Camera pill on the top bezel edge -- decorative device chrome, not app UI */
.device-frame::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 12px;
  border-radius: 999px;
  background: #050504;
}

.device-frame .side-btn {
  position: absolute;
  right: -3px;
  top: 30%;
  width: 4px;
  height: 42px;
  border-radius: 3px 0 0 3px;
  background: #171614;
}

/* ---------- Section scaffolding ---------- */

section { padding: 84px 0; }
section.tight { padding: 56px 0; }

.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h2 { font-size: 32px; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--charcoal); font-size: 17px; margin: 0; }

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 28px 26px;
  border: 1px solid var(--line);
}

.feature-icon-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.feature-icon-group .feature-icon { margin-bottom: 0; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--near-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon img { width: 24px; height: 24px; display: block; }

.feature-card h3 { font-size: 19px; margin: 0 0 8px; }
.feature-card p { margin: 0; color: var(--charcoal); font-size: 15px; }

/* ---------- Showcase (screenshots) ---------- */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 36px;
  align-items: start;
}

.showcase-item img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -24px rgba(27,27,25,0.25);
}

.showcase-item figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Instruments row ---------- */

.instruments {
  background: var(--near-black);
  color: #f3ece0;
}
.instruments .section-head p { color: #cfc6b4; }
.instruments h2 { color: #fff; }
.instruments .kicker { color: var(--accent); }

.instrument-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.instrument-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 110px;
  text-align: center;
}

.instrument-item .icon-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #2a2925;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Icon source files are already solid white glyphs on transparent backgrounds
   (built for this dark circle) -- no filter needed. */
.instrument-item .icon-circle img { width: 36px; height: 36px; }
.instrument-item span { font-weight: 600; font-size: 15px; }

/* ---------- Pricing ---------- */

.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.pricing-card .price {
  font-size: 48px;
  font-weight: 800;
  color: var(--ink);
  margin: 6px 0 4px;
}
.pricing-card .price span { font-size: 18px; font-weight: 600; color: var(--muted); }

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  text-align: left;
  display: inline-block;
}
.pricing-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  color: var(--charcoal);
}
.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 800;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item h3 { font-size: 17px; margin: 0 0 8px; }
.faq-item p { margin: 0; color: var(--charcoal); }

/* ---------- Support CTA band ---------- */

.support-band {
  background: var(--cream);
  text-align: center;
}
.support-band h2 { margin-bottom: 10px; }
.support-band p { color: var(--charcoal); margin: 0 0 26px; }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--near-black);
  color: #cfc6b4;
  padding: 40px 0 30px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #cfc6b4; font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 13px; color: #8d8571; }
footer.site-footer .nav-logo img { height: 26px; }

/* ---------- Simple content pages (privacy/support) ---------- */

.page-hero {
  background: var(--cream);
  padding: 56px 0 40px;
}
.page-hero h1 { font-size: 36px; margin: 0 0 10px; }
.page-hero p { color: var(--charcoal); margin: 0; }

.content {
  padding: 48px 0 90px;
}
.content .prose { max-width: 720px; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--charcoal); font-size: 16px; }
.prose ul { padding-left: 22px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }

.contact-card {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 26px 0;
}
.contact-card a.email { font-size: 20px; font-weight: 700; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-shot { order: -1; perspective: none; }
  .device-frame { max-width: 400px; transform: none; box-shadow: 0 24px 50px -20px rgba(27,27,25,0.35); }
  .hero {
    background:
      radial-gradient(ellipse 760px 480px at 12% 18%, rgba(240, 150, 97, 0.38), transparent 62%),
      radial-gradient(ellipse 620px 420px at 88% 82%, rgba(217, 125, 70, 0.28), transparent 58%),
      radial-gradient(ellipse 500px 500px at 60% -10%, rgba(255, 255, 255, 0.5), transparent 55%),
      linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 55%, #f2e3c8 100%);
  }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav-links { gap: 14px; font-size: 14px; }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 28px 22px; }
}
