/* Lyricly landing. Warm, quiet, product-first. */

@font-face { font-family: "Satoshi"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/satoshi-400.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/satoshi-500.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/satoshi-700.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --bg-warm: #faf8f4;
  --ink: #17150f;
  --ink-2: #5f5a50;
  --ink-3: #8c8679;
  --line: rgba(23, 21, 15, 0.1);
  --amber: #ffbf00;
  --amber-deep: #9a6b00;
  --amber-glow: rgba(255, 191, 0, 0.22);
  --night: #0f0d0a;

  --font: "Satoshi", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 28px;
  --phone-radius: 14.5% / 7.04%;   /* matches the iPhone body in the captures */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ───── Type ───── */
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(48px, 8vw, 104px); line-height: 1; }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-deep); }
.sub { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 20px 0 0; max-width: 34em; text-wrap: pretty; }
.section-head { max-width: 640px; }
.section-head h2 { margin-bottom: 0; }

/* ───── Nav ───── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav-inner { height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.brand-mark { width: 22px; height: 24px; fill: var(--amber); }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav-links a { opacity: 0.78; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav .btn-sm { background: rgba(255, 255, 255, 0.14); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.nav .btn-sm:hover { background: rgba(255, 255, 255, 0.24); }
.nav.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-scrolled .btn-sm { background: var(--amber); color: var(--ink); box-shadow: none; }
.nav.is-scrolled .btn-sm:hover { background: #ffc92e; }
@media (max-width: 720px) { .nav-links { display: none; } .nav .btn-sm { margin-left: auto; } }

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { background: #ffc92e; box-shadow: 0 8px 24px -8px var(--amber-glow); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px 0 12px;
  border-radius: 11px;
  background: #fff;
  color: var(--night);
  cursor: default;
  user-select: none;
}
.store-badge svg { width: 19px; height: 23px; fill: currentColor; }
.store-badge > span { display: flex; flex-direction: column; font-size: 18px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.store-badge small { font-size: 10px; font-weight: 500; letter-spacing: 0; margin-bottom: 2px; }
.coming { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.72); }

/* ───── Hero ───── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: var(--night);
  padding: calc(96px + env(safe-area-inset-top, 0px)) 0 0;
  isolation: isolate;
}
/* The photo and shade are clipped to the hero; the phone is allowed to hang below it. */
.hero-bg { overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 50% 45%; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(255, 191, 0, 0.16), transparent 70%),
    linear-gradient(to bottom, rgba(15, 13, 10, 0.74) 0%, rgba(15, 13, 10, 0.42) 36%, rgba(15, 13, 10, 0.62) 66%, rgba(15, 13, 10, 0.97) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; padding-bottom: clamp(40px, 6vw, 72px); }
.hero-icon {
  width: clamp(84px, 9vw, 112px);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}
.hero h1 { color: #fff; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45); }
.hero-lead { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.5; color: rgba(255, 255, 255, 0.84); text-shadow: 0 1px 24px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4); max-width: 32em; margin: 24px auto 0; text-wrap: pretty; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

.hero-phone {
  position: relative;
  z-index: 2;
  width: clamp(230px, 24vw, 330px);
  margin-bottom: calc(-1 * var(--overlap));
  --overlap: 200px;
  border-radius: var(--phone-radius);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 60px 120px -30px rgba(0, 0, 0, 0.8), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.hero-phone img { border-radius: inherit; }
.hero-phone::after {
  /* Thin highlight on the top edge so the device reads as glass, not a flat cut-out. */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.14), transparent 18%);
}
@media (max-width: 700px) {
  .hero { min-height: 0; padding-top: calc(112px + env(safe-area-inset-top, 0px)); }
  .hero-bg img { object-position: 50% 40%; }
  .hero-phone { width: min(260px, 66vw); --overlap: 140px; }
}

/* Reveal: hero items stagger on load, everything else on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero-phone.reveal { transition-delay: 0.3s; transition-duration: 1s; }

/* ───── How it works ───── */
.how { padding: calc(var(--overlap, 200px) + clamp(40px, 5vw, 64px)) 0 clamp(80px, 9vw, 128px); --overlap: 200px; }
@media (max-width: 700px) { .how { --overlap: 140px; } }
.steps {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.steps li { padding-top: 24px; border-top: 1px solid var(--line); }
.steps .num { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--amber-deep); margin-bottom: 40px; }
.steps h3 { margin-bottom: 10px; }
.steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } .steps .num { margin-bottom: 18px; } }

/* ───── Devices (plain cut-outs, no drawn frame) ───── */
.device { margin: 0; border-radius: var(--phone-radius); overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(23, 21, 15, 0.08), 0 40px 80px -36px rgba(23, 21, 15, 0.45); aspect-ratio: 1283 / 2644; }
.device img, .device video { width: 100%; height: 100%; object-fit: cover; }

/* ───── Chords + transpose ───── */
.chords { background: var(--bg-warm); padding: clamp(80px, 9vw, 128px) 0; }
.chords-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(40px, 7vw, 96px); align-items: center; }
.transposer { margin-top: 36px; padding: 28px 28px 22px; border-radius: 22px; background: var(--bg); box-shadow: 0 1px 2px rgba(23, 21, 15, 0.04), 0 24px 48px -32px rgba(23, 21, 15, 0.25); }
.tp-sheet { font-size: clamp(18px, 2vw, 22px); font-weight: 500; }
.sheet-line { display: flex; flex-wrap: wrap; column-gap: 0.3em; row-gap: 0.2em; }
.sheet-line + .sheet-line { margin-top: 0.8em; }
.tok { display: inline-flex; flex-direction: column; align-items: flex-start; }
.tok.cont { margin-left: -0.3em; }
.tok .ch { height: 1.5em; margin-bottom: 0.1em; display: inline-flex; align-items: center; }
.tok .ch b { font-size: 0.68em; font-weight: 700; padding: 0.3em 0.5em; border-radius: 0.45em; background: var(--bg-warm); color: var(--ink); white-space: nowrap; }
.tok .ch b.flip { animation: flip 0.45s var(--ease); }
@keyframes flip { 0% { background: var(--amber); transform: translateY(-4px); } 100% { background: var(--bg-warm); transform: none; } }
.tok .wd { white-space: nowrap; }
.tp-controls { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.tp-controls button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 20px; line-height: 1; cursor: pointer; transition: background 0.2s, transform 0.12s; }
.tp-controls button:hover { background: var(--bg-warm); }
.tp-controls button:active { transform: scale(0.92); }
.tp-key { min-width: 88px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.tp-key span { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.tp-key b { font-size: 22px; font-weight: 700; }
.tp-hint { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.chords-detail { margin: 0; border-radius: var(--radius); overflow: hidden; background: #1a120a; box-shadow: 0 0 0 1px rgba(23, 21, 15, 0.08), 0 40px 80px -36px rgba(23, 21, 15, 0.45); }
.chords-detail img { width: 100%; }
@media (max-width: 860px) {
  .chords-inner { grid-template-columns: 1fr; }
  .chords-detail { max-width: 520px; margin: 0 auto; }
}

/* ───── Feature grid ───── */
.grid-section { padding: clamp(80px, 9vw, 128px) 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-warm);
  padding: 36px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
}
.card-wide { grid-column: span 2; }
.card-copy { position: relative; z-index: 1; max-width: 30em; }
.card-copy p { margin: 10px 0 0; color: var(--ink-2); }
.card-device { width: 220px; margin: 32px auto -200px; flex: none; }
.card-wide .card-device { position: absolute; right: 48px; top: 44px; width: 250px; margin: 0; }
.card-wide .card-copy { max-width: min(22em, calc(100% - 300px)); }
.card-list { min-height: 0; }
.card-list ul { list-style: none; margin: -8px 0 0; padding: 0; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.card-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.card-list li:first-child { border-top: 0; }
.card-list h3 { font-size: 20px; margin-bottom: 8px; }
.card-list p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-column: span 2; }
  .card-wide .card-device { right: 32px; top: 36px; width: 210px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card, .card-wide { grid-column: span 1; padding: 28px; min-height: 0; }
  .card-wide .card-device { position: static; width: 220px; margin: 28px auto -200px; }
  .card:not(.card-list) { min-height: 440px; }
}

/* ───── FAQ ───── */
.faq { background: var(--bg-warm); padding: clamp(80px, 9vw, 128px) 0; }
.faq-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); transition: transform 0.3s var(--ease); }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list details p { margin: -6px 0 24px; color: var(--ink-2); max-width: 36em; }
.faq-list details a { color: var(--amber-deep); font-weight: 500; }
@media (max-width: 760px) { .faq-inner { grid-template-columns: 1fr; } }

/* ───── Contact ───── */
.contact { padding: clamp(80px, 9vw, 128px) 0; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-warm);
  padding: 14px 16px;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { border-color: var(--amber); background: var(--bg); box-shadow: 0 0 0 4px var(--amber-glow); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d0463b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: 15px; color: var(--ink-2); }
.form-status.is-error { color: #b4321f; }
.contact-form.is-done { align-content: start; }
.contact-form.is-done .field, .contact-form.is-done .btn { display: none; }
.contact-form.is-done .form-status { font-size: 19px; font-weight: 500; color: var(--ink); padding: 24px 28px; border-radius: 18px; background: var(--bg-warm); }
@media (max-width: 760px) { .contact-inner { grid-template-columns: 1fr; } }

/* ───── Footer ───── */
.footer { background: var(--night); color: rgba(255, 255, 255, 0.6); }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer .brand { color: #fff; }
.footer-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin: 0; font-size: 13px; flex-basis: 100%; }
@media (min-width: 720px) { .footer-copy { flex-basis: auto; margin-left: 28px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tok .ch b.flip { animation: none; }
}
