/* home.css - home page layout on top of diveo-ds.css (white theme, blue accent). */

html { scroll-behavior: smooth; }
body { margin: 0; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; }

/* White theme: page sections between the blue header and the blue footer. */
.theme-white {
  --dm-color-page: #ffffff;
  --dm-color-panel: #ffffff;
  --dm-color-surface: #eef1ff;
  --dm-color-text: #1c2260;
  --dm-color-muted: #5b6bd6;
  --dm-color-accent: #485ded;
  --dm-shadow-app-icon: -4px 2px 12px rgba(65, 86, 227, .22);
  --dm-shadow-platform: -4px 2px 20px rgba(65, 86, 227, .22);
  --dm-shadow-social: -4px 2px 12px rgba(65, 86, 227, .22);
  background: var(--dm-color-page);
  color: var(--dm-color-text);
  display: flex;
  flex-direction: column;
}

/* Header: logo, menu that never wraps, burger under 880px. */
.dm-header .dm-header__bar { grid-template-columns: auto 1fr auto; }
.dm-nav a { white-space: nowrap; }

/* Sticky header on mobile only; anchor targets stop below it. */
@media (max-width: 880px) {
  .dm-header { position: sticky; top: 0; z-index: 50; }
  [id] { scroll-margin-top: 73px; }
}

/* Mobile menu panel */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  box-sizing: border-box;
  background: var(--dm-color-panel);
  color: var(--dm-color-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 32px;
  overflow-y: auto;
}
.menu-panel[hidden] { display: none; }
.menu-panel__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  padding: 10px;
  cursor: pointer;
  color: inherit;
}
.menu-panel__close svg { display: block; }
.menu-panel__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  margin-top: 32px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
}
.menu-panel__nav a { padding: 7px 12px; }
.menu-panel__copy { margin: auto 0 0; font-size: 16px; line-height: 24px; }
@media (min-width: 881px) {
  .menu-panel { display: none; }
}

/* Shared text */
.text-lead { margin: 0; font-size: clamp(16px, 2.4vw, 20px); line-height: 1.45; }
.text-strong { margin: 0; font-size: clamp(18px, 2.6vw, 22px); line-height: 1.45; font-weight: 600; }
.title-h2 { margin: 0; font-size: clamp(28px, 5vw, 44px); line-height: 1.25; font-weight: 700; }
.title-h3 { margin: 0; font-size: clamp(24px, 4vw, 32px); line-height: 1.25; font-weight: 700; }
.wrap {
  max-width: 1210px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 25px;
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__art { flex: 1.4 1 480px; min-width: 0; }
.hero__art img { width: 100%; height: auto; display: block; }
@media (max-width: 800px) {
  .hero__text { text-align: center; }
}

/* Numbers band */
.stats-band { background: var(--dm-color-surface); padding: 40px 0; }
.stats {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
/* Each number sits centred over its label, and each group is centred in its column. */
.stats > div { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; text-align: center; }
.stats dt { font-size: 18px; line-height: 26px; font-weight: 500; }
.stats dd {
  margin: 0;
  font-family: var(--dm-font-display);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
  color: var(--dm-color-accent);
}
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Meet Little Stories */
.ls { display: flex; flex-direction: column; gap: 48px; }
.ls__intro { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.ls__head { flex: 1 1 360px; min-width: 0; display: flex; align-items: center; gap: 28px; }
.ls__points {
  flex: 1.4 1 420px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.45;
}
/* The number sits at the vertical centre of its item, however many lines the text takes. */
.ls__points li { display: flex; align-items: center; gap: 16px; }
.ls__num {
  font-family: var(--dm-font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--dm-color-accent);
  flex: none;
  width: 24px;
  text-align: center;
  /* VAG World digits sit low in their line box; this lifts them to the text's optical centre. */
  transform: translateY(-0.12em);
}
/* The strip starts and ends at the content edge of .wrap; the scrollbar is hidden. */
.shots {
  --shots-edge: max(25px, calc((100% - 1210px) / 2 + 25px));
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px var(--shots-edge) 24px;
  scroll-padding-inline: var(--shots-edge);
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots img {
  flex: none;
  width: 560px;
  max-width: 80vw;
  height: auto;
  display: block;
  box-sizing: border-box;
  border: 4px solid var(--dm-color-text);
  border-radius: 24px;
}
.badges { display: flex; gap: clamp(8px, 2vw, 24px); }
.badges--center { justify-content: center; }
.badges > .dm-store-badge { flex: 1 1 0; min-width: 0; max-width: 200px; }
.badges--small > .dm-store-badge { max-width: 180px; }

/* How it works */
.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
}
.flow__step {
  flex: 1 1 0;
  min-width: 0;
  background: var(--dm-color-surface);
  border: 3px solid var(--dm-color-text);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--dm-shadow-app-icon);
}
.flow__arrow { flex: none; align-self: center; display: flex; }
@media (max-width: 800px) {
  .flow { flex-direction: column; }
  .flow__arrow { transform: rotate(90deg); }
}

/* Other apps */
.app-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.app-row__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.app-row__head { display: flex; align-items: center; gap: 20px; }
.app-row__art { flex: 1 1 380px; min-width: 0; max-width: 560px; width: 100%; height: auto; display: block; }

/* Process */
.process {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.45;
}
.process p { margin: 0; }

/* Reviews */
.reviews { padding: clamp(48px, 8vw, 96px) 0; }
.reviews__inner { display: flex; flex-direction: column; gap: 40px; }
.reviews__title { text-align: center; }
.reviews__grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.reviews__col { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.review {
  margin: 0;
  background: var(--dm-color-surface);
  color: var(--dm-color-text);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review--large { flex: 1.3 1 420px; min-width: 0; padding: 40px; gap: 16px; font-weight: 500; }
.review blockquote { margin: 0; font-size: 18px; line-height: 28px; }
.review figcaption { font-size: 16px; line-height: 24px; font-weight: 600; }
.review__stars { display: block; flex: none; align-self: flex-start; fill: #ffb400; }

/* Music */
.music { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.music__art { flex: 0 1 240px; min-width: 0; width: 240px; height: auto; display: block; }
.music__list { flex: 1 1 480px; min-width: 0; }

/* About */
.about { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 40px; }
.about__art { flex: 0 1 389px; min-width: 0; display: flex; flex-direction: column; }
.about__art > img { width: 100%; height: auto; display: block; }
.about__badge {
  border: 2px solid var(--dm-color-text);
  border-radius: 0 0 16px 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: -2px;
}
.about__badge img { width: 56px; height: 56px; display: block; flex: none; }
.about__badge p { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; }
.about__text {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.45;
}
.about__text p { margin: 0; }

/* Footer */
.site-footer { display: flex; flex-direction: column; gap: 56px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 40px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 16px 40px; font-size: 20px; line-height: 30px; font-weight: 500; }
.site-footer__nav a,
.site-footer__email { padding: 7px 0; transition: opacity var(--dm-transition); }
.site-footer__nav a:hover,
.site-footer__email:hover { opacity: var(--dm-hover-fade); }
.site-footer__contact { display: flex; flex-direction: column; gap: 4px; }
.site-footer__label { font-size: 16px; line-height: 24px; }
.site-footer__email { font-size: 20px; line-height: 30px; font-weight: 600; }
.site-footer__copy { margin: 0; font-size: 16px; line-height: 24px; }

/* Cookie consent window (design: "Cookies" artboards). Lies over the page; the page stays under it. */
body.consent-open { overflow: hidden; }
.consent {
  position: fixed;
  inset: 0;
  z-index: 200;
  box-sizing: border-box;
  padding: 16px;
  overflow-y: auto;
  background: rgba(28, 34, 96, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.consent[hidden],
.consent__view[hidden] { display: none; }
.consent__dialog {
  width: 560px;
  max-width: 100%;
  margin: auto;
  box-sizing: border-box;
  background: #ffffff;
  color: #1c2260;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 24px 64px rgba(28, 34, 96, 0.35);
  font-family: var(--dm-font-body);
}
.consent__view { display: flex; flex-direction: column; gap: 16px; }
.consent__view p { margin: 0; font-size: 17px; line-height: 26px; }
.consent__title { margin: 0; font-size: 30px; line-height: 1.25; font-weight: 700; }
.consent__buttons { display: flex; flex-direction: row; gap: 12px; margin-top: 8px; }
.consent__button {
  flex: 1 1 0;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 14px;
  background: #ffffff;
  color: #1c2260;
  border: 2px solid #1c2260;
  font-family: inherit;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  cursor: pointer;
}
.consent__button--primary { background: #485ded; color: #ffffff; border-color: #485ded; }
.consent__button:focus-visible,
.consent__switch:focus-visible { outline: 3px solid #485ded; outline-offset: 3px; }
.consent__option {
  border: 2px solid #c9cff5;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.consent__option-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.consent__option-name { font-size: 18px; line-height: 26px; font-weight: 700; }
.consent__option-kind { font-size: 15px; line-height: 22px; font-weight: 600; }
.consent__option-note { font-size: 15px; line-height: 22px; }
.consent__switch {
  position: relative;
  flex: none;
  width: 56px;
  height: 34px;
  border-radius: 17px;
  border: 0;
  padding: 0;
  background: #8a90b8;
  cursor: pointer;
}
.consent__switch span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  transition: left var(--dm-transition);
}
.consent__switch[aria-checked="true"] { background: #485ded; }
.consent__switch[aria-checked="true"] span { left: 26px; }

@media (max-width: 600px) {
  .consent__dialog { padding: 24px; }
  .consent__title { font-size: 24px; }
  .consent__buttons { flex-direction: column; }
  .consent__button { flex: none; width: 100%; }
}

/* App icons: the area under the picture takes the frame's colour, so no light seam shows at the rounded corners. */
.dm-app-icon { background-color: var(--dm-color-text); }
