/* Name That Key — tokens lifted from the app's Design.swift */
:root {
  --bg:        #0E131C;
  --surface:   #181D28;
  --selected:  #272116;
  --hairline:  rgba(255,255,255,.09);
  --amber:     #ECB45C;
  --teal:      #35BFA6;
  --pink:      #EF6FA9;
  --ink:       #FFFFFF;
  --muted:     #A8A8A8;
  --faint:     #666666;

  /* New York on Apple devices — the app's actual display face */
  --display: ui-serif, "New York", Iowan Old Style, Palatino, Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", Segoe UI, Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 940px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 660px; }

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- the flat, used as the recurring mark ---- */
.flat {
  font-family: var(--display);
  color: var(--amber);
  font-style: italic;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 10px;
}
.eyebrow.amber { color: var(--amber); }
.eyebrow.teal  { color: var(--teal); }
.eyebrow.pink  { color: var(--pink); }

/* ---- header ---- */
header.site {
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lockup { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 21px; }
.lockup .flat { font-size: 30px; line-height: 1; }
.lockup em { font-style: italic; color: var(--muted); }
nav.site a { color: var(--muted); font-family: var(--body); font-size: 15px; margin-left: 22px; }
nav.site a:hover { color: var(--ink); }

/* ---- hero ---- */
.hero { padding: 76px 0 8px; text-align: center; }
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -.01em;
}
.hero h1 .key { color: var(--amber); }
.hero .lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 30em;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background: var(--amber);
  color: #17130A;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 30px;
  border-radius: 12px;
  border: 0;
}
.btn:hover { text-decoration: none; filter: brightness(1.07); }
.note { font-size: 14px; color: var(--faint); margin-top: 14px; }

.heroart {
  margin: 52px auto 0;
  max-width: 900px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  line-height: 0;
}
.heroart img { width: 100%; height: auto; }

/* ---- section rhythm ---- */
section { padding: 78px 0; border-top: 1px solid var(--hairline); }
section:first-of-type { border-top: 0; }
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.16;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.sub { color: var(--muted); margin: 0 0 34px; max-width: 34em; }

/* ---- the signature: reveal cards ---- */
.reveals { display: grid; gap: 16px; }
.reveal {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px 26px;
}
.reveal .key {
  font-family: var(--display);
  font-size: clamp(30px, 4.6vw, 41px);
  color: var(--amber);
  line-height: 1;
  margin: 0 0 12px;
}
.reveal .song { font-size: 16px; margin: 0 0 2px; }
.reveal .artist { font-size: 14px; color: var(--faint); margin: 0 0 14px; }
.reveal .why { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---- screenshots ---- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.shot { line-height: 0; }
.shot img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.shot figcaption {
  font-family: var(--body);
  line-height: 1.4;
  font-size: 13px;
  color: var(--faint);
  margin-top: 11px;
  text-align: center;
}

/* ---- what's free / what's paid ---- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.tier {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 26px;
}
.tier h3 { font-family: var(--display); font-size: 22px; margin: 0 0 4px; font-weight: 600; }
.tier .price { font-size: 14px; color: var(--amber); margin: 0 0 16px; }
.tier ul { margin: 0; padding-left: 19px; color: var(--muted); font-size: 15.5px; }
.tier li { margin-bottom: 7px; }
.tier li::marker { color: var(--faint); }

/* ---- prose pages ---- */
.prose h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(31px, 5vw, 42px);
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.prose .updated { color: var(--faint); font-size: 14px; margin: 0 0 40px; }
.prose h2 { font-size: clamp(21px, 3vw, 25px); margin: 42px 0 10px; }
.prose h3 { font-family: var(--display); font-size: 19px; margin: 28px 0 6px; font-weight: 600; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.callout {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--amber);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 26px 0;
}
.callout p { margin: 0; color: var(--ink); }

/* ---- footer ---- */
footer.site {
  border-top: 1px solid var(--hairline);
  padding: 44px 0 60px;
  color: var(--faint);
  font-size: 14.5px;
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; }
footer.site a { color: var(--muted); }
footer.site .links a { margin-right: 20px; }

@media (max-width: 620px) {
  .hero { padding-top: 52px; }
  section { padding: 58px 0; }
  nav.site a { margin-left: 15px; font-size: 14px; }
  .lockup { font-size: 18px; }
}
