/* Pianoza site. Tokens come from the app (src/theme/tokens.scss): the dark play screen,
   the indigo-to-violet brand gradient, the coral accent and the hand colours of the falling notes.
   base.css holds the reset, prose and footer structure; this file is the Pianoza look. */

@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0e0b1f;
  --surface: #1a1630;
  --surface-2: #241e40;
  --text: #f4f2ff;
  --muted: #a8a3c9;
  --line: rgb(244 242 255 / .1);
  --primary: #4f46e5;
  --violet: #7c3aed;
  --accent: #ff6b5b;
  --accent-ink: #1d0b08;
  --right: #38bdf8;
  --left: #a78bfa;
  --hit: #34d399;
  --radius: 20px;
  --font-display: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background:
    radial-gradient(90% 60% at 20% 0%, rgb(79 70 229 / .38), transparent 70%),
    radial-gradient(60% 50% at 100% 30%, rgb(124 58 237 / .22), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}

.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand img { box-shadow: 0 4px 14px rgb(79 70 229 / .5); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center;
  padding-block: clamp(28px, 6vw, 72px) clamp(40px, 6vw, 80px);
}
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; min-height: min(calc(100svh - 190px), 640px); }
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  background: rgb(244 242 255 / .07); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--text);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 4px rgb(251 191 36 / .18); }

/* the three coral sound bars from the app icon */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 34px; margin: 26px 0 14px; }
.bars span { width: 9px; border-radius: 5px; background: var(--accent); }
.bars span:nth-child(1) { height: 16px; opacity: .7; }
.bars span:nth-child(2) { height: 34px; }
.bars span:nth-child(3) { height: 24px; opacity: .85; }

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.25rem); font-weight: 900; letter-spacing: -.035em; line-height: 1; margin: 0 0 .28em;
}
.hero .lead {
  font-family: var(--font-display); font-weight: 700; line-height: 1.25;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); max-width: 22ch; margin-bottom: .6em;
}
.hero .lead em { font-style: normal; color: var(--accent); }
.hero .sub { color: var(--muted); max-width: 48ch; margin-bottom: 1.6em; }

.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--hit); flex: none; }

/* a landscape phone, because the app is landscape only */
.device {
  position: relative; margin: 0; padding: 9px; border-radius: clamp(22px, 4vw, 40px);
  background: #06051a; border: 1px solid rgb(244 242 255 / .16);
  box-shadow: 0 0 0 1px #000, 0 30px 80px rgb(0 0 0 / .55), 0 0 120px rgb(79 70 229 / .35);
}
.device img { width: 100%; height: auto; aspect-ratio: 1434 / 660; border-radius: clamp(14px, 3vw, 31px); }
.hero .device { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); transform-origin: left center; }
@media (min-width: 960px) { .hero .device { width: 118%; } }
@media (max-width: 959px) { .hero .device { transform: none; } }

/* falling notes behind the hero */
.notes { position: absolute; inset: 0; pointer-events: none; }
.notes span {
  position: absolute; top: -8%; width: clamp(18px, 2.4vw, 30px); border-radius: 8px;
  background: var(--c); opacity: var(--o, .16);
}
.notes span:nth-child(1) { left: 6%;  height: 120px; --c: var(--left);  top: 6%; }
.notes span:nth-child(2) { left: 19%; height: 70px;  --c: var(--right); top: 58%; --o: .1; filter: blur(2px); }
.notes span:nth-child(3) { left: 38%; height: 150px; --c: var(--hit);   top: -4%; --o: .12; }
.notes span:nth-child(4) { left: 52%; height: 90px;  --c: var(--right); top: 70%; }
.notes span:nth-child(5) { left: 67%; height: 60px;  --c: var(--left);  top: 2%;  --o: .2; }
.notes span:nth-child(6) { left: 81%; height: 130px; --c: var(--right); top: 74%; --o: .1; filter: blur(3px); }
.notes span:nth-child(7) { left: 93%; height: 100px; --c: var(--accent); top: 12%; --o: .14; }

/* the keyboard the notes fall onto */
.keys {
  position: relative; z-index: 1; height: clamp(54px, 8vw, 86px);
  border-top: 5px solid #7c1d24;
  background:
    linear-gradient(90deg, transparent 31px, #17151f 31px 57px, transparent 57px 75px, #17151f 75px 101px,
      transparent 101px 163px, #17151f 163px 189px, transparent 189px 207px, #17151f 207px 233px,
      transparent 233px 251px, #17151f 251px 277px, transparent 277px) 0 0 / 308px 62% repeat-x,
    repeating-linear-gradient(90deg, #fbfaff 0 43px, #c4bfe0 43px 44px),
    #fbfaff;
  box-shadow: inset 0 -7px 0 #d9d5f5, 0 -18px 50px rgb(79 70 229 / .25);
}

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -.02em; max-width: 20ch; }
.section .intro { color: var(--muted); max-width: 56ch; margin-bottom: 2.2em; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.card {
  padding: 22px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgb(244 242 255 / .22); background: var(--surface-2); }
.card .tile {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); color: var(--c, var(--accent));
}
.card .tile svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 520px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 18px; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.shots figure { margin: 0; scroll-snap-align: center; }
.shots .device { box-shadow: 0 0 0 1px #000, 0 18px 40px rgb(0 0 0 / .45); padding: 7px; border-radius: 26px; }
.shots .device img { border-radius: 20px; }
.shots figcaption { margin-top: 12px; color: var(--muted); font-size: .93rem; }
.shots figcaption b { display: block; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
@media (min-width: 1100px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}

.cta { text-align: center; }
.cta .panel {
  padding: clamp(28px, 5vw, 56px); border-radius: 28px;
  background: linear-gradient(135deg, var(--primary), var(--violet)); box-shadow: 0 30px 80px rgb(79 70 229 / .35);
}
.cta h2 { margin-inline: auto; color: #fff; }
.cta p { color: rgb(255 255 255 / .86); max-width: 50ch; margin: 0 auto 1.6em; }
.cta .store-buttons { justify-content: center; }

/* ---------- store buttons ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px 12px; }
.store-btn {
  --btn-bg: #000; --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-width: 168px; height: 56px; padding: 0 18px 0 14px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid rgb(255 255 255 / .18); border-radius: 14px;
  text-decoration: none; line-height: 1.1; text-align: left;
  box-shadow: 0 6px 20px rgb(0 0 0 / .25);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .store-top { display: block; font-size: 11px; opacity: .85; letter-spacing: .01em; }
.store-btn .store-bottom { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
a.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgb(0 0 0 / .35); border-color: rgb(255 255 255 / .35); }
.store-btn.is-soon { cursor: default; box-shadow: none; }
.store-btn.is-soon > svg, .store-btn.is-soon > span:not(.soon-tag) { opacity: .7; }
.store-btn.is-soon .soon-tag {
  position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}

/* ---------- legal and support pages ---------- */
.prose h1 { font-weight: 900; letter-spacing: -.02em; }
.prose h2 { font-weight: 800; }
.prose p, .prose li, .prose td { color: #dcd9f0; }
.prose strong { color: var(--text); }
.prose th { color: var(--text); background: rgb(244 242 255 / .04); }
.prose table { border: 1px solid var(--line); border-radius: 14px; }
.prose td:first-child { min-width: 11em; }
.prose .summary { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 0 0 2em; }
.prose .summary li { margin-bottom: .25em; }
.contact-card { background: linear-gradient(135deg, rgb(79 70 229 / .28), rgb(124 58 237 / .18)); }
.contact-card .mail { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, 4vw, 1.5rem); overflow-wrap: anywhere; }
.contact-card p:last-child { margin: 0; color: var(--muted); }
.prose details p:last-child, .prose details ul:last-child, .prose details ol:last-child { margin-bottom: 14px; }

.site-footer .note { flex-basis: 100%; margin: 0; font-size: 13px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .notes span { animation: fall 9s ease-in-out infinite alternate; }
  .notes span:nth-child(2n) { animation-duration: 12s; animation-delay: -4s; }
  .notes span:nth-child(3n) { animation-duration: 7s; animation-delay: -2s; }
  .hero .copy > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .copy > :nth-child(2) { animation-delay: .05s; }
  .hero .copy > :nth-child(3) { animation-delay: .1s; }
  .hero .copy > :nth-child(4) { animation-delay: .15s; }
  .hero .copy > :nth-child(n+5) { animation-delay: .2s; }
  .bars span { transform-origin: bottom; animation: beat 1.6s ease-in-out infinite; }
  .bars span:nth-child(2) { animation-delay: -.5s; }
  .bars span:nth-child(3) { animation-delay: -1s; }
}
@keyframes fall { from { transform: translateY(-14px); } to { transform: translateY(26px); } }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes beat { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.6); } }
