/* kalinkaplayer.com home page. Self-contained: the other pages use site.css.
   Palette and typefaces are the app's own. Black bands hold the screens;
   the grey bands (the app's overlay surface) hold the explaining. */

:root {
  --ink: #080808;
  --ink-raised: #131211;
  --ink-line: rgba(238, 238, 238, .13);
  --frost: #EEEEEE;
  --frost-muted: #ABA69D;
  --grey: #222220; /* surfaceOverlay in the app palette */
  --berry: #C2394B;
  --berry-tint: #EF8E9B;

  --display: 'Playfair Display', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: 32px;
  --band-space: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

[hidden] { display: none !important; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--berry-tint); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- Type ---------- */

h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: 1.02; }
.h1-turn { display: block; font-style: italic; font-weight: 400; color: var(--berry-tint); }

h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; }

h3 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }

.lede { max-width: 34em; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 17px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}

.button--primary { background: var(--berry); color: #fff; }
.button--primary:hover { background: #D24558; }

.button--quiet { border-color: rgba(238, 238, 238, .34); color: var(--frost); }
.button--quiet:hover { border-color: var(--frost); }

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

.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 88px);
  background:
    radial-gradient(60% 46% at 50% 100%, rgba(194, 57, 75, .30), transparent 72%),
    var(--ink);
  overflow: hidden;
}

.hero-lede { max-width: 31em; margin-top: 28px; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: #D5D1CA; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 16px; color: var(--frost-muted); }

/* The hi-fi: Kalinka's screen on an amplifier, between two speakers, standing
   on the edge of the next band as if on a shelf. */

.hifi {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(18px, 3.2vw, 44px);
  margin-top: clamp(48px, 6vw, 84px);
}

.stack { flex: 0 1 780px; min-width: 0; }

.screen {
  padding: clamp(5px, .8vw, 10px);
  border: 1px solid rgba(238, 238, 238, .16);
  border-radius: clamp(8px, 1.2vw, 14px);
  background: #151413;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.screen img { width: 100%; border-radius: clamp(3px, .6vw, 6px); }

.amp {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  height: clamp(46px, 7.4vw, 88px);
  margin-top: clamp(6px, .9vw, 10px);
  padding: 0 clamp(14px, 2.6vw, 34px);
  border-radius: 4px 4px 0 0;
  /* a dark anodised faceplate, in the palette's greys */
  background: linear-gradient(180deg, #323235 0%, #222220 52%, #1C1C1A 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(238, 238, 238, .07);
}
.amp-led { width: 7px; height: 7px; border-radius: 50%; background: var(--berry); box-shadow: 0 0 8px rgba(194, 57, 75, .9); }

.amp-dial {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, #4B4B4E 0%, #323235 56%, #1C1C1A 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.amp-dial::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  width: 2px;
  height: 24%;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--frost);
}
.amp-dial--small { height: 36%; }
.amp-dial--small:nth-of-type(3) { transform: rotate(48deg); }
.amp-dial--volume { height: 66%; margin-left: auto; transform: rotate(-36deg); }

.speaker {
  position: relative;
  flex: 0 1 164px;
  align-self: stretch;
  min-width: 0;
  margin-bottom: 0;
  border: 1px solid rgba(238, 238, 238, .12);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #1A1918 0%, #0F0E0E 100%);
}
.tweeter, .woofer {
  position: absolute;
  left: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(238, 238, 238, .1);
}
.tweeter { top: 12%; width: 26%; background: radial-gradient(circle, #34322F 0 20%, #0B0B0B 22% 62%, #201F1D 64% 100%); }
.woofer { top: 36%; width: 70%; background: radial-gradient(circle, #2B2927 0 15%, #0A0A0A 17% 68%, #1D1C1A 70% 82%, #0E0E0D 84% 100%); }

/* ---------- Bands ---------- */

.band { padding: var(--band-space) 0; }

.band--dark { background: var(--ink); color: var(--frost); }
.band--dark p { color: #CFCBC4; }

.band--grey { background: var(--grey); color: var(--frost); }
.band--grey p, .needs-list li { color: #CFCBC4; }
.band--grey a { color: var(--berry-tint); }

/* the hero's hi-fi stands on this edge */
#how { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); background: linear-gradient(180deg, #121211 0, var(--grey) 30px) var(--grey); }

.band--berry { padding: clamp(56px, 7vw, 96px) 0; background: var(--berry); color: #fff; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 64px);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 14px;
  font: italic 400 clamp(56px, 6vw, 80px)/1 var(--display);
  color: var(--berry-tint);
}
.steps h3 { font-size: 22px; }
.steps p { margin-top: 10px; }

.needs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--ink-line);
}
.needs-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px clamp(24px, 4vw, 56px); }
.needs-list li { position: relative; padding-left: 22px; }
.needs-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--berry-tint); }

/* ---------- What it does ---------- */

.lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.lead-copy .lede { margin-top: 22px; }

.shot { border: 1px solid var(--ink-line); border-radius: 12px; overflow: hidden; background: #000; }
.shot img { width: 100%; }

.points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(44px, 5vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--ink-line);
}
.points p { margin-top: 8px; font-size: 17px; }

.pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(64px, 8vw, 112px); }
.shot-detail { position: relative; }
.detail {
  position: absolute;
  right: -14px;
  bottom: -22px;
  width: min(380px, 80%);
  border: 1px solid rgba(238, 238, 238, .24);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .7);
}
.pair-title { margin-top: 40px; font: 500 clamp(26px, 2.8vw, 34px)/1.15 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.pair-item p { max-width: 30em; margin-top: 12px; }

/* ---------- More ---------- */

.extras { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--ink-line); }
.extras li { padding: 28px clamp(20px, 2.6vw, 36px) 30px 0; border-bottom: 1px solid var(--ink-line); }
.extras li:not(:nth-child(3n + 1)) { padding-left: clamp(20px, 2.6vw, 36px); border-left: 1px solid var(--ink-line); }
.extras p { margin-top: 8px; font-size: 17px; }
.extras-note { max-width: 44em; margin-top: 28px; font-size: 16px; }

/* ---------- Free ---------- */

.free { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 5vw, 72px); align-items: end; }
.free p { max-width: 26em; padding-bottom: .35em; font-size: clamp(18px, 1.6vw, 21px); color: rgba(255, 255, 255, .92); }

/* ---------- Get Kalinka ---------- */

#install .lede { margin-top: 18px; }

.get-steps { margin-top: clamp(36px, 4vw, 56px); counter-reset: get; border-top: 1px solid var(--ink-line); }
.get-step {
  position: relative;
  padding: 34px 0 38px clamp(64px, 8vw, 112px);
  border-bottom: 1px solid var(--ink-line);
  counter-increment: get;
}
.get-step::before {
  content: counter(get);
  position: absolute;
  left: 0;
  top: 22px;
  font: italic 400 clamp(48px, 5vw, 64px)/1 var(--display);
  color: var(--berry-tint);
}
.get-step > h3 { font-size: 24px; }
.get-step > p { max-width: 38em; margin-top: 8px; }
.get-aside { font-size: 16px; }
.get-aside a, .picker-panel a:not(.button):not(.play-badge) { color: var(--berry-tint); }

.picker { margin-top: 20px; }
.picker-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.picker-tabs button {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid rgba(238, 238, 238, .26);
  border-radius: 999px;
  background: transparent;
  color: var(--frost);
  font: 500 16px/1.2 var(--sans);
  cursor: pointer;
}
.picker-tabs button:hover { border-color: var(--frost); }
.picker-tabs button[aria-selected="true"] { border-color: var(--frost); background: var(--frost); color: var(--ink); }

.picker-panel { max-width: 40em; margin-top: 18px; padding: 26px 28px 28px; border-radius: 14px; background: var(--ink-raised); }
.picker-panel > p { margin-top: 16px; font-size: 17px; }
.panel-title + p { margin-top: 0; }
.panel-title { margin-bottom: 6px; font-size: 18px; font-weight: 600; color: var(--frost); }
/* With the script running the tab already names the panel. */
.has-js .picker-panel .panel-title { display: none; }
/* Until home.js has set a picker up, show what it will most likely show (the
   first option), so the page does not open long and then collapse. */
.has-js .picker:not(.is-ready) .picker-panel ~ .picker-panel,
.has-js [data-screen-switch]:not(.is-ready) [data-variant="screen"] { display: none; }
html:not(.has-js) .picker-tabs { display: none; }

.download { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 18px; }
.panel-title + .download { margin-top: 0; }
.download-alt { font-size: 16px; }

/* Android: the store badge, and a QR code for visitors on a computer */
.android { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.android .download { flex-direction: column; align-items: flex-start; margin-top: 0; }
.qr { display: flex; align-items: center; gap: 18px; max-width: 21em; }
.qr img { flex: none; width: 132px; height: 132px; border-radius: 10px; }
.qr figcaption { font-size: 16px; line-height: 1.45; color: #CFCBC4; }
.play-badge img { height: 52px; width: auto; }
.check { display: inline-flex; align-items: center; gap: 10px; flex-basis: 100%; font-size: 16px; color: #CFCBC4; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--berry); }
html:not(.has-js) .check { display: none; }

.command {
  margin: 14px 0 4px;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  background: #000;
  font: 400 15px/1.5 var(--mono);
  color: var(--frost);
}
code { font-family: var(--mono); font-size: .92em; }

.release { margin-top: 28px; font-size: 15px; color: var(--frost-muted); }
.release span { font-family: var(--mono); font-size: 14px; }

/* ---------- Questions ---------- */

.questions { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq { border-top: 1px solid var(--ink-line); }
.faq details { border-bottom: 1px solid var(--ink-line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 28px/1 var(--display); color: var(--berry-tint); }
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 36em; padding: 0 0 24px; }

/* ---------- Community and footer ---------- */

.community { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 6vw, 96px); }
.community h2 { font-size: clamp(28px, 3.2vw, 38px); }
.community p { max-width: 28em; margin-top: 14px; }
.community .hero-actions { margin-top: 24px; }
.kofi { display: inline-block; margin-top: 24px; }

.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--ink-line); background: var(--ink); color: var(--frost-muted); font-size: 15px; }
.footer-top .brand img { width: 92px; }
.footer-top { display: flex; align-items: center; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--frost); }
.footer-copy { margin-top: 28px; }

/* ---------- Smaller screens ---------- */

@media (max-width: 960px) {
  .points { grid-template-columns: repeat(2, 1fr); }
  .extras { grid-template-columns: repeat(2, 1fr); }
  .extras li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .extras li:nth-child(even) { padding-left: clamp(20px, 2.6vw, 36px); border-left: 1px solid var(--ink-line); }
  .lead { grid-template-columns: 1fr; }
  .questions { grid-template-columns: 1fr; }
  .needs { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .footer-top .brand img { width: 80px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; }
  .steps li::before { grid-row: span 2; margin: -4px 0 0; }
  .needs-list { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; }
  .extras li, .extras li:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
  .community { grid-template-columns: 1fr; }
  .free { grid-template-columns: 1fr; }
  .hifi { gap: 0; }
  .speaker { display: none; }
  .get-step { padding-left: 0; padding-top: 28px; }
  .get-step::before { position: static; display: block; margin-bottom: 8px; }
  .picker-panel { padding: 22px 20px 24px; }
  .qr { display: none; }
  .detail { right: -8px; }
  .hero-actions .button { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
