/* Breakpoints: 768px tablet, 1024px desktop layout. */
/* Colours are set only in the first :root; everything else reads them through var(), SVG through currentColor. */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400-italic-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400-italic-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400-600-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400-600-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400-600-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400-600-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/manrope-400-700-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/manrope-400-700-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/manrope-400-700-normal-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/manrope-400-700-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/manrope-400-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/manrope-400-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #F6EEE3;
  --color-paper: #FFFBF6;
  --color-chip: #F3E9DC;
  --color-sand: #EFE4D5;
  --color-tint: #EFE0CE;
  --color-blush: #EBD3C2;
  --color-line-soft: #EDE1D1;
  --color-line: #E4D6C4;
  --color-line-strong: #D6C4AE;
  --color-ink: #2B221B;
  --color-text: #5C4C3E;
  --color-muted: #6B5A4A;
  --color-dark: #33281F;
  --color-dark-text: #E4D3C1;
  --color-dark-accent: #D9BBA4;
  /* The accent is the avatar colour; text uses darker shades to keep 4.5:1 contrast on light backgrounds */
  --color-accent: var(--color-avatar);
  --color-accent-text: #984A20;
  --color-accent-hover: #693416;
  /* Same colours as the bot's avatar in Telegram */
  --color-avatar: #C8622A;
  --color-avatar-cloud: #FFF4E6;
  --shadow-card: 0 24px 56px rgba(76, 56, 38, 0.12);
  --color-bordeaux: #4E1B22;
  --color-bordeaux-line: #612730;
  --color-bordeaux-orb: #5A222A;
  --color-bordeaux-avatar: #A7553A;
  --color-bordeaux-ink: #FFF4E6;
  --color-bordeaux-muted: #EBCFC8;
  --color-bordeaux-accent: #E6B8A2;
  --color-bordeaux-off: rgba(255, 244, 230, 0.16);
  --color-bordeaux-box: rgba(255, 244, 230, 0.08);
  --color-bordeaux-switch: rgba(230, 184, 162, 0.5);
  --color-bordeaux-tag: rgba(230, 184, 162, 0.6);
  --shadow-bordeaux: 0 24px 56px rgba(58, 18, 24, 0.3);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', system-ui, sans-serif;

  --text-display: clamp(50px, 5.7vw, 82px);
  --text-h2: clamp(40px, 4.03vw, 58px);
  --text-h2-sm: clamp(38px, 3.61vw, 52px);
  --text-h2-cta: clamp(44px, 4.45vw, 64px);
  --text-price: clamp(66px, 6vw, 86px);
  --text-wordmark: 20px;
  --text-song-title: 24px;
  --text-h3: 18px;
  --text-h3-sm: 17px;
  --text-lead: 17px;
  --text-body: 15px;
  --text-button: 17px;
  --text-ui: 14px;
  --text-meta: 13px;
  --text-caption: 12px;

  --leading-display: 1.02;
  --leading-heading: 1.1;
  --leading-tight: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --tracking-display: -0.02em;
  --tracking-heading: -0.015em;
  --tracking-caps: 0.08em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-section: clamp(44px, 7.25vw, 104px);
  --section-gap: 24px;
  --card-pad: 22px;
  --grid-gap: 14px;
  --gutter: 20px;
  --container: 1200px;
  /* Header height with its border: 44px menu button + 2×16px; from 768px, 46.5px bot button + 2×24px */
  --header-h: 77px;

  --radius-sm: 2px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;
}

@media (min-width: 768px) {
  :root {
    --text-wordmark: 26px;
    --text-song-title: 27px;
    --text-h3: 21px;
    --text-h3-sm: 19px;
    --text-lead: 19px;
    --text-body: 16px;
    --text-ui: 15px;
    --text-meta: 14px;
    --text-caption: 13px;
    --section-gap: 44px;
    --card-pad: 32px;
    --grid-gap: 24px;
    --gutter: 32px;
    --header-h: 96px;
    --radius-sm: 3px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 48px;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: var(--tracking-heading);
}

h1 {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
}

.h2--sm {
  font-size: var(--text-h2-sm);
}

h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.h3--sm {
  font-size: var(--text-h3-sm);
}

p {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

a {
  color: var(--color-accent-text);
}

a:hover {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

svg {
  display: block;
  flex-shrink: 0;
}

.container {
  /* max-width includes the gutters; with border-box the padding would otherwise come out of the content width. */
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.section {
  padding-block: var(--space-section);
}

.section > .container {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

/* For plain text pages (terms, privacy policy). */
.container.prose {
  display: block;
  max-width: calc(44em + 2 * var(--gutter));
}

.prose h2 {
  margin-top: var(--space-7);
  font-size: var(--text-h2-sm);
}

.prose h3 {
  margin-top: var(--space-5);
}

.prose p,
.prose ul,
.prose ol {
  margin-top: var(--space-4);
}

.prose ul {
  list-style: disc;
  padding-left: var(--space-5);
}

.prose ol {
  list-style: decimal;
  padding-left: var(--space-5);
}

.prose li {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.section--paper {
  background: var(--color-paper);
  border-top: 1px solid var(--color-line-soft);
  border-bottom: 1px solid var(--color-line-soft);
}

.section--sand {
  background: var(--color-sand);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.section-head .tag {
  align-self: flex-start;
}

.eyebrow {
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--color-accent-text);
}

.eyebrow--dark {
  color: var(--color-dark-accent);
}

.lead {
  font-size: var(--text-lead);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-h3);
  line-height: var(--leading-normal);
}

.quote--ink {
  color: var(--color-ink);
}

.note {
  padding-top: var(--space-1);
  font-size: var(--text-ui);
  color: var(--color-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 18px 24px;
  border-radius: var(--radius-pill);
  font-size: var(--text-button);
  font-weight: 600;
  text-decoration: none;
}

/* Each variant also sets its :hover colour, or the global a:hover would recolour the button text. */
.btn--dark,
.btn--dark:hover {
  background: var(--color-dark);
  color: var(--color-paper);
}

.btn--light,
.btn--light:hover {
  background: var(--color-paper);
  color: var(--color-dark);
}

.btn--outline,
.btn--outline:hover {
  padding: 17px 23px;
  border: 1px solid var(--color-line-strong);
  color: var(--color-dark);
}

.btn.btn--sm {
  padding: 13px 22px;
  font-size: var(--text-ui);
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--card-pad);
  background: var(--color-paper);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
}

.card--tint {
  background: var(--color-bg);
  border: 0;
}

.card--sand {
  background: var(--color-sand);
  border: 0;
}

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-blush);
  color: var(--color-accent-text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  padding: 9px 16px;
  background: var(--color-chip);
  border-radius: var(--radius-pill);
  font-size: var(--text-ui);
}

.tag {
  padding: 7px 14px;
  background: var(--color-tint);
  border-radius: var(--radius-pill);
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-accent-text);
}

.dot {
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-line-strong);
}

.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid-2,
.grid-3 {
  grid-template-columns: minmax(0, 1fr);
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tile {
  padding: 12px 18px;
  background: var(--color-paper);
  border-radius: var(--radius-pill);
  font-size: var(--text-ui);
}

.split {
  display: flex;
  flex-direction: column;
}

/* The body takes fill, the eyes take color */
.cloud-mark {
  fill: var(--color-paper);
  color: var(--color-dark);
}

.header .cloud-mark {
  transform-origin: 50% 100%;
  animation: cloud-breathe 4.5s ease-in-out infinite;
}

.cloud-eyes,
.cloud-smile {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 0.22s ease-in-out, opacity 0.22s ease-in-out;
}

.cloud-eyes {
  fill: currentColor;
}

.is-blinking .cloud-eyes {
  transform: scaleY(0.12);
  transition-duration: 0.11s;
}

.cloud-smile {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0;
  transform: scaleY(0.2);
}

.is-happy .cloud-eyes {
  opacity: 0;
  transform: scaleY(0.12);
}

.is-happy .cloud-smile {
  opacity: 1;
  transform: none;
}

@keyframes cloud-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035, 1.05); }
}

.avatar {
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
}

.avatar-bg {
  fill: var(--color-avatar);
}

.avatar-body {
  fill: var(--color-avatar-cloud);
}

.avatar-eyes {
  fill: var(--color-dark);
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: avatar-blink 4s ease-in-out infinite;
}

/* Idle: a large cloud low in the circle, as in the avatar. Playing: smaller and higher, with notes falling from under it */
.avatar--song .avatar-cloud {
  transform-box: view-box;
  transform-origin: 0 0;
  transform: matrix(1.6, 0, 0, 1.6, -45.6, -8.8);
  transition: transform 0.5s cubic-bezier(0.3, 0, 0.3, 1);
}

.is-playing .avatar--song .avatar-cloud {
  transform: matrix(0.95, 0, 0, 0.95, 4.9, -14.7);
  transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.5, 1);
}

.is-playing .avatar-bob {
  animation: avatar-bob 2.6s ease-in-out 0.6s infinite;
}

.avatar-note {
  opacity: 0;
  fill: var(--color-avatar-cloud);
  stroke: var(--color-avatar-cloud);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.avatar-note:nth-of-type(even) {
  fill: var(--color-blush);
  stroke: var(--color-blush);
}

/* Notes start once the cloud has finished moving up */
.is-playing .avatar-note {
  animation: avatar-fall 1.8s ease-in 0.55s infinite backwards;
}

.is-playing .avatar-note:nth-of-type(2) {
  animation-delay: 1s;
}

.is-playing .avatar-note:nth-of-type(3) {
  animation-delay: 1.45s;
}

.is-playing .avatar-note:nth-of-type(4) {
  animation-delay: 1.9s;
}

@keyframes avatar-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.12); }
}

@keyframes avatar-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes avatar-fall {
  0% { transform: translate(0, -4px); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(0, 22px); opacity: 0; }
}

.header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-dark);
  border-bottom: 1px solid var(--color-dark);
}

.header :focus-visible {
  outline-color: var(--color-dark-accent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding-block: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  margin-right: auto;
}

/* The bot button stays in the header on phones, outside the menu; the mark, the name and the paddings are smaller there so it all fits one row at 360px */
.header .cloud-mark {
  width: 32px;
  height: 22px;
}

.btn.header-bot {
  flex-shrink: 0;
  padding: 9px 10px;
  font-size: var(--text-meta);
  white-space: nowrap;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: var(--text-wordmark);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-paper);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-paper);
  cursor: pointer;
  /* Lines the icon up with the content edge while the tap target stays 44px */
  margin-right: -11px;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded='true'] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

.nav {
  display: none;
}

.menu-toggle[aria-expanded='true'] + .nav {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4) var(--gutter) var(--space-5);
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-line-soft);
}

.nav a:not(.btn) {
  font-size: var(--text-button);
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
}

.nav a:not(.btn):hover {
  color: var(--color-ink);
}

.nav a[aria-current='true'],
.nav a[aria-current='true']:hover {
  color: var(--color-accent-text);
}

.nav .lang-toggle {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-line-soft);
  font-weight: 600;
}

.section > .hero-inner {
  gap: var(--space-6);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.badge {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--space-3);
  padding: 9px 18px;
  background: var(--color-tint);
  border-radius: var(--radius-pill);
}

.badge .eyebrow {
  color: var(--color-muted);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero .lead {
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero-actions .btn {
  width: 100%;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-meta);
  color: var(--color-muted);
}

/* On a narrow screen the line wraps, and the dot would be left hanging at the end of a row */
.hero-meta .dot {
  display: none;
}

/* A card being thrown must not widen the page */
.hero {
  overflow-x: clip;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orb {
  display: none;
  position: absolute;
  border-radius: 50%;
}

.hero-orb--big {
  top: 18px;
  right: 6px;
  width: 320px;
  height: 320px;
  background: var(--color-blush);
}

.hero-orb--small {
  bottom: 10px;
  left: 0;
  width: 210px;
  height: 210px;
  background: var(--color-line);
}

.song-card {
  width: 100%;
  box-shadow: var(--shadow-card);
}

.song-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.song-head .avatar {
  width: 56px;
  height: 56px;
}

.song-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.song-title {
  font-family: var(--font-serif);
  font-size: var(--text-song-title);
  font-weight: 600;
  line-height: var(--leading-heading);
}

.song-sub {
  font-size: var(--text-meta);
  color: var(--color-muted);
}

.wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 58px;
}

.wave-bar {
  flex-grow: 1;
  border-radius: var(--radius-sm);
  background: var(--color-line);
  transition: height 0.25s ease, background-color 0.3s ease;
}

.wave-bar.is-on {
  background: var(--color-accent);
}

/* Fallback when the sound levels file did not load: bars bounce like an equaliser, neighbours out of step */
.is-bouncing .wave-bar {
  transform-origin: bottom;
  animation: wave-bounce 0.6s ease-in-out infinite alternate;
}

.is-bouncing .wave-bar:nth-child(2n) {
  animation-duration: 0.75s;
  animation-delay: 0.3s;
}

.is-bouncing .wave-bar:nth-child(3n) {
  animation-duration: 0.5s;
  animation-delay: 0.5s;
}

.is-bouncing .wave-bar:nth-child(5n) {
  animation-duration: 0.85s;
  animation-delay: 0.2s;
}

.is-bouncing .wave-bar:nth-child(7n) {
  animation-duration: 0.65s;
  animation-delay: 0.7s;
}

/* The script sets real sound levels every frame; a short transition smooths the steps between frames */
.is-live .wave-bar {
  transition: height 0.12s linear, background-color 0.3s ease;
}

@keyframes wave-bounce {
  to {
    transform: scaleY(0.35);
  }
}

.song-quote {
  padding: 18px 20px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.song-caption {
  padding-top: var(--space-3);
  font-size: var(--text-caption);
  color: var(--color-muted);
}

/* On narrow screens the tag wraps to the next row instead of stretching the stack */
.song-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
}

.song-variant {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-meta);
  color: var(--color-muted);
}

.play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-paper);
  cursor: pointer;
}

.play .icon-pause,
.is-playing .play .icon-play {
  display: none;
}

.is-playing .play .icon-pause {
  display: block;
}

.song-card--premium {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-bordeaux);
  border-color: var(--color-bordeaux-line);
  box-shadow: var(--shadow-bordeaux);
  color: var(--color-bordeaux-ink);
}

.song-card--premium::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -80px;
  right: -50px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--color-bordeaux-orb);
}

.song-card--premium .avatar-bg {
  fill: var(--color-bordeaux-avatar);
}

.song-card--premium .wave-bar {
  background: var(--color-bordeaux-off);
}

.song-card--premium .wave-bar.is-on {
  background: var(--color-bordeaux-accent);
}

.song-card--premium .song-quote {
  background: var(--color-bordeaux-box);
}

.song-card--premium .quote {
  color: var(--color-bordeaux-ink);
}

.song-card--premium .song-sub,
.song-card--premium .song-caption,
.song-card--premium .song-variant {
  color: var(--color-bordeaux-muted);
}

.song-card--premium .play {
  background: var(--color-bordeaux-accent);
  color: var(--color-bordeaux);
}

.song-card--premium :focus-visible {
  outline-color: var(--color-bordeaux-accent);
}

.variant-switch {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  isolation: isolate;
}

.variant-switch button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.25s ease;
}

.variant-switch button[aria-pressed='true'] {
  color: var(--color-paper);
}

/* One pill per switch, drawn by the first button behind the digits; it slides under the second button when that one is selected */
.variant-switch button:first-child {
  position: relative;
}

.variant-switch button:first-child::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--color-dark);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.variant-switch button:first-child[aria-pressed='false']::before {
  transform: translateX(34px);
}

.song-card--premium .variant-switch {
  border-color: var(--color-bordeaux-switch);
}

.song-card--premium .variant-switch button {
  color: var(--color-bordeaux-muted);
}

.song-card--premium .variant-switch button[aria-pressed='true'] {
  color: var(--color-bordeaux);
}

.song-card--premium .variant-switch button:first-child::before {
  background: var(--color-bordeaux-accent);
}

.tag--premium {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-bordeaux-tag);
  background: none;
  color: var(--color-bordeaux-accent);
}

.song-deck {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

.song-stack {
  display: grid;
  width: 100%;
  padding-bottom: 28px;
  /* Keeps the card z-indexes inside the stack, so the sticky header stays above them */
  isolation: isolate;
}

.song-stack .song-card {
  grid-area: 1 / 1;
  z-index: 0;
  transform: translateY(28px) scale(0.9);
  transform-origin: 50% 100%;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

.song-card[data-pos='0'] {
  z-index: 3;
  transform: none;
  opacity: 1;
  cursor: grab;
  touch-action: pan-y;
}

.song-card[data-pos='1'] {
  z-index: 2;
  transform: translateY(14px) scale(0.95);
  opacity: 1;
}

.song-card[data-pos='2'] {
  z-index: 1;
  opacity: 1;
}

/* The fourth card sits right under the third, so a thrown card does not vanish on its way to the bottom */
.song-card[data-pos='3'] {
  opacity: 1;
}

.song-stack .song-card.is-dragging {
  transition: none;
  cursor: grabbing;
}

.song-stack .song-card.is-leaving {
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
}

.song-dots {
  display: flex;
  gap: var(--space-1);
}

.song-dots[hidden] {
  display: none;
}

.song-dots button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  cursor: pointer;
}

.song-dots button::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-line-strong);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.song-dots button[aria-current='true']::before {
  width: 22px;
  background: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .song-stack .song-card,
  .song-dots button::before,
  .wave-bar,
  .variant-switch button,
  .variant-switch button:first-child::before,
  .avatar--song .avatar-cloud,
  .is-playing .avatar--song .avatar-cloud {
    transition: none;
  }

  .avatar-eyes,
  .header .cloud-mark,
  .is-playing .avatar-bob,
  .is-playing .avatar-note,
  .is-bouncing .wave-bar {
    animation: none;
  }

  .is-playing .avatar-note {
    opacity: 1;
  }
}

.value h2 {
  max-width: 13em;
}

.value .lead {
  max-width: 26em;
}

.value .icon-tile {
  width: 42px;
  height: 42px;
}

.section > .how-inner {
  gap: var(--space-6);
}

.how-main {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.how .lead {
  max-width: 30em;
}

.steps {
  border-bottom: 1px solid var(--color-line);
}

.step {
  display: flex;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-line);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-tint);
  color: var(--color-accent-text);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  /* Old-style 1 and 2 sit low and 3 drops below the baseline; lining figures are cap height */
  font-variant-numeric: lining-nums;
  line-height: 1;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.chat {
  gap: var(--space-3);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-line-soft);
}

.chat-who {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-name {
  font-size: var(--text-ui);
  font-weight: 700;
}

.chat-status {
  font-size: var(--text-caption);
  color: var(--color-muted);
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bubble {
  align-self: flex-start;
  max-width: 86%;
  padding: 12px 15px;
  background: var(--color-chip);
  border-radius: 16px 16px 16px 5px;
  font-size: var(--text-ui);
  line-height: var(--leading-normal);
  color: var(--color-ink);
}

.bubble--user {
  align-self: flex-end;
  background: var(--color-dark);
  border-radius: 16px 16px 5px 16px;
  color: var(--color-paper);
}

.bubble--audio {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 200px;
}

.audio-play {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-paper);
}

.audio-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.audio-title {
  font-weight: 600;
}

.audio-sub {
  font-size: var(--text-caption);
  color: var(--color-muted);
}

.chat-time {
  align-self: center;
  padding: 4px 12px;
  background: var(--color-bg);
  border-radius: var(--radius-pill);
  font-size: var(--text-caption);
  color: var(--color-muted);
}

.occasions h2 {
  max-width: 14em;
}

.occasions .lead {
  max-width: 24em;
}

.sound .section-head--stack {
  max-width: 34em;
}

.price {
  padding-top: 0;
}

.section > .price-inner {
  gap: var(--grid-gap);
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-dark);
  color: var(--color-paper);
  border-radius: var(--radius-xl);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.price-num {
  font-family: var(--font-serif);
  font-size: var(--text-price);
  font-weight: 600;
  line-height: 1;
}

.price-unit {
  font-size: 20px;
  color: var(--color-dark-text);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-button);
  line-height: var(--leading-normal);
}

.checklist .icon {
  margin-top: 3px;
  color: var(--color-dark-accent);
}

.price-card .btn {
  width: 100%;
}

.price-aside {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
}

.price-aside p {
  font-size: var(--text-ui);
}

.review-meta {
  display: flex;
  gap: 6px;
  font-size: var(--text-meta);
  color: var(--color-muted);
}

.review-meta b {
  font-weight: 600;
  color: var(--color-ink);
}

.review-meta span::before {
  content: '· ';
}

.faq-list {
  border-bottom: 1px solid var(--color-line);
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-line);
}

.section > .cta-inner {
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}

.cta h2 {
  max-width: 16em;
  font-size: var(--text-h2-cta);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}

.cta .lead {
  max-width: 32em;
}

.cta .btn {
  width: 100%;
}

.cta-note {
  font-size: var(--text-meta);
  color: var(--color-muted);
}

.footer {
  padding-block: var(--space-6);
  background: var(--color-dark);
  color: var(--color-dark-text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-meta);
}

.footer-year {
  margin-top: var(--space-5);
  font-size: var(--text-caption);
  text-align: center;
  color: var(--color-dark-text);
}

.footer-links a {
  color: var(--color-dark-text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-paper);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-dark-accent);
  border-radius: var(--radius-pill);
}

.footer-social a:hover {
  border-color: var(--color-paper);
}

.price-card :focus-visible,
.footer-links a:focus-visible {
  outline-color: var(--color-dark-accent);
}

@media (min-width: 768px) {
  .btn {
    padding: 19px 32px;
  }

  .btn--outline,
  .btn--outline:hover {
    padding: 18px 31px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
  }

  .tile {
    padding: 24px 26px;
    border-radius: var(--radius-lg);
    font-size: var(--text-button);
    font-weight: 600;
  }

  .header-inner {
    padding-block: var(--space-5);
  }

  .brand {
    gap: var(--space-3);
  }

  .header .cloud-mark {
    width: 46px;
    height: 32px;
  }

  .menu-toggle {
    display: none;
  }

  .nav,
  .menu-toggle[aria-expanded='true'] + .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-5);
    padding: 0;
    background: none;
    border-bottom: 0;
  }

  /* The header is dark, so the items look like the footer links */
  .nav a:not(.btn) {
    font-size: var(--text-ui);
    color: var(--color-dark-text);
  }

  .nav a:not(.btn):hover {
    color: var(--color-paper);
  }

  .nav a[aria-current='true'],
  .nav a[aria-current='true']:hover {
    color: var(--color-dark-accent);
  }

  /* The paddings give a tap target of at least 24px */
  .nav .lang-toggle {
    padding: var(--space-1) 3px;
    border-top: 0;
  }

  .header-inner {
    gap: var(--space-5);
  }

  /* Narrower button paddings leave room for the language link at 768px */
  .btn.header-bot {
    order: 1;
    padding: 13px 18px;
    font-size: var(--text-ui);
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .hero-actions .btn {
    width: auto;
  }

  .hero-meta {
    gap: var(--space-2) var(--space-5);
  }

  .hero-meta .dot {
    display: block;
  }

  .song-card {
    max-width: 398px;
    gap: var(--space-5);
    border-radius: var(--radius-xl);
  }

  .song-head .avatar {
    width: 66px;
    height: 66px;
  }

  .wave {
    height: 74px;
  }

  .play {
    width: 46px;
    height: 46px;
  }

  .song-stack {
    max-width: 398px;
  }

  .value .icon-tile {
    width: 48px;
    height: 48px;
  }

  .value .icon-tile .icon {
    width: 24px;
    height: 24px;
  }

  .step {
    gap: var(--space-5);
  }

  .step-num {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .chat {
    max-width: 398px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
  }

  .price-card {
    padding: var(--space-7);
  }

  .price-card .btn {
    align-self: flex-start;
    width: auto;
    margin-top: var(--space-2);
  }

  .price-unit {
    font-size: 24px;
  }

  .review-meta {
    flex-direction: column;
    gap: 3px;
  }

  .review-meta span::before {
    content: none;
  }

  .cta .btn {
    width: auto;
  }

  .footer {
    padding-block: var(--space-7);
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .header-inner,
  .nav,
  .menu-toggle[aria-expanded='true'] + .nav {
    gap: var(--space-6);
  }

  .btn.header-bot {
    padding-inline: 22px;
  }

  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-8);
  }

  .section-head--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .section-head .tag {
    align-self: auto;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section > .split {
    flex-direction: row;
    gap: var(--space-9);
  }

  .section > .price-inner {
    gap: var(--space-6);
  }

  /* The 560px basis keeps the column ratio: about 449px of copy at 1024, and 620 + 508 from 1296, as in the design. */
  .section > .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 72px;
  }

  .hero-copy {
    flex: 1 1 560px;
    min-width: 0;
  }

  .hero-art {
    position: relative;
    flex: 0 1 508px;
    min-width: 380px;
    min-height: 480px;
  }

  .hero-orb {
    display: block;
  }

  .song-card {
    position: relative;
  }

  .how-main {
    flex: 1 1 0;
    min-width: 0;
  }

  .chat {
    flex: 0 0 398px;
  }

  .price-card {
    flex: 1 1 0;
    min-width: 0;
  }

  .price-aside {
    flex: 0 0 420px;
    gap: var(--space-5);
  }

  .faq-inner > h2 {
    flex: 0 0 380px;
  }

  .faq-list {
    flex: 1 1 0;
    min-width: 0;
  }
}

.footer-links a[aria-current='page'] {
  color: var(--color-paper);
}

.footer-payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

/* Card scheme logos must keep their own colours, so each sits on a light chip instead of the dark footer */
.footer-payments img {
  box-sizing: content-box;
  width: auto;
  height: 24px;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
}

/* Legal documents: the header has only the brand and the language link, so it needs no menu script */
.legal-header .brand {
  text-decoration: none;
}

.legal-header .lang-toggle {
  padding: var(--space-2) var(--space-1);
  font-size: var(--text-ui);
  font-weight: 600;
  color: var(--color-dark-text);
  text-decoration: none;
}

.legal-header .lang-toggle:hover {
  color: var(--color-paper);
}

.container.legal {
  max-width: calc(70ch + 2 * var(--gutter));
}

.legal h1 {
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}

.legal h2 {
  margin-top: var(--space-6);
  font-size: var(--text-song-title);
  font-weight: 600;
  line-height: var(--leading-tight);
}

.legal-edition {
  color: var(--color-ink);
}

.legal-note {
  font-size: var(--text-meta);
  color: var(--color-muted);
}
