:root {
  --purple: #4b2aa5;
  --purple-dark: #321675;
  --purple-soft: #f2efff;
  --text: #17151d;
  --muted: #68636f;
  --border: #e6e3eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background: #fff;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}

a {
  color: inherit;
}

.page {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--purple);
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.lang-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-button {
  min-width: 52px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--purple);
  border-radius: 12px;
  background: #fff;
  color: var(--purple);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lang-button:hover {
  background: var(--purple-soft);
}

.lang-button.is-active {
  background: var(--purple);
  color: #fff;
}

.hero {
  min-height: 525px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 75px;
  padding: 48px 55px 75px;
}

.hero-logo-wrap {
  display: grid;
  place-items: center;
}

.hero-logo {
  width: min(350px, 90%);
  height: auto;
  filter: none;
}

.hero-copy {
  display: grid;
  grid-template-rows: auto minmax(4.08em, auto) minmax(3.2em, auto) auto auto;
  align-content: center;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--purple);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  max-width: 760px;
  min-height: 2.04em;
  margin: 0;
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 650px;
  min-height: 3.2em;
  margin: 26px 0 28px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.download-button {
  width: fit-content;
  height: 58px;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 20px;
  border-radius: 15px;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 750;
  box-shadow: 0 12px 25px rgba(75, 42, 165, 0.16);
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.download-button:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

.android-icon {
  width: 27px;
  height: 27px;
  display: inline-flex;
}

.android-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.version {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
}

.download-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.stores {
  padding: 0 0 48px;
  border-top: 1px solid var(--border);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding-top: 36px;
}

.store-card {
  height: 220px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 25px;
  padding: 25px 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
}

.store-brand {
  width: 88px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.store-info h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.store-info p {
  min-height: 3.1em;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.store-link {
  color: var(--purple);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.store-link:hover {
  text-decoration: underline;
}

.qr {
  width: 170px;
  height: 170px;
  padding: 7px;
  justify-self: end;
}

.qr img {
  display: block;
  width: 100%;
  height: 100%;
}

footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: var(--purple);
  text-decoration: none;
}

@media (max-width: 1200px) {
  .page {
    width: min(100% - 36px, 1120px);
  }

  .hero {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 42px;
    padding: 40px 20px 64px;
  }

  .hero-logo {
    width: min(300px, 90%);
  }

  h1 {
    font-size: clamp(42px, 5vw, 58px);
  }

  .lead {
    margin: 22px 0 28px;
  }
}

@media (max-width: 900px) {
  /* Mobile layout: QR codes are hidden and the APK CTA is centered. */
  .hero-copy {
    justify-items: center;
  }

  .download-button {
    justify-self: center;
  }

  .download-note {
    text-align: center;
  }

  .qr {
    display: none;
  }

  .store-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .page {
    width: min(100% - 32px, 680px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 0 56px;
    text-align: center;
  }

  .hero-logo-wrap {
    order: 0;
  }

  .hero-copy {
    order: 1;
    grid-template-rows: auto minmax(3.06em, auto) minmax(3em, auto) auto auto;
  }

  .hero-logo {
    width: min(240px, 58vw);
  }

  .eyebrow {
    margin: 0 0 14px;
  }

  h1 {
    width: 100%;
    max-width: 680px;
    min-height: 3.06em;
    margin: 0;
    font-size: clamp(36px, 7vw, 54px);
    line-height: 1.02;
  }

  .lead {
    width: 100%;
    max-width: 600px;
    min-height: 3em;
    margin: 20px 0 26px;
    font-size: 17px;
    line-height: 1.5;
  }

  .download-button {
    display: inline-flex;
  }

  .download-note {
    margin-left: 0;
    margin-right: 0;
  }

  .store-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    height: 76px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-logo {
    width: 190px;
  }

  h1 {
    min-height: 3.06em;
    font-size: 39px;
  }

  .lead {
    font-size: 17px;
  }

  .store-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 16px;
  }

  .store-brand {
    width: 64px;
    height: 115px;
  }

  .store-brand img {
    width: 58px;
    height: 58px;
  }

  .qr {
    width: 115px;
    height: 115px;
  }

  .store-info h2 {
    font-size: 20px;
  }

  .store-info p {
    font-size: 14px;
  }

  .store-link {
    font-size: 13px;
  }

  footer {
    min-height: 110px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .page {
    width: min(100% - 24px, 380px);
  }

  .lang-button {
    min-width: 46px;
    height: 38px;
    padding: 0 10px;
  }

  .hero-logo {
    width: 165px;
  }

  h1 {
    min-height: 3.06em;
    font-size: 34px;
  }

  .download-button {
    width: 100%;
  }

  .store-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .store-brand {
    width: 100%;
    height: 72px;
  }

  .store-card .store-info {
    text-align: center;
  }

  .qr {
    grid-column: 1;
    grid-row: auto;
    margin: 8px auto 0;
  }
}

@media (max-width: 768px) {
  .store-card {
    height: auto; /* Сбрасываем фиксированную высоту */
    grid-template-columns: 1fr; /* Перестраиваем всё в одну колонку */
    gap: 15px;
    padding: 20px;
    text-align: center; /* Центрируем контент для мобильных */
  }

  .store-brand {
    width: 100%;
    height: auto; /* Сбрасываем высоту контейнера логотипа */
    margin-bottom: 5px;
  }

  .store-info p {
    min-height: auto; /* На мобильных не нужно резервировать место под строки */
  }

  /* ДОБАВЛЯЕМ ОТСТУП ПОСЛЕ ССЫЛКИ ДЛЯ МОБИЛЬНЫХ */
  .store-link {
    display: inline-block; /* Чтобы margin-bottom начал работать */
    margin-bottom: 20px;
  }

  .qr {
    justify-self: center; /* Центрируем QR-код на мобильном */
    width: 140px; /* Можно немного уменьшить QR-код на телефонах */
    height: 140px;
  }
}


/* Version 4.0: compact features section */
.features {
  padding: 72px 24px 86px;
  border-top: 1px solid var(--border);
}
.section-heading {
  max-width: 750px;
  margin: 0 auto 36px;
  text-align: center;
}
.section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
}
.feature-card--highlight {
  grid-column: span 2;
  background: var(--purple-soft);
  border-color: #dfd5ff;
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--purple);
  background: var(--purple-soft);
  font-size: 24px;
}
.feature-card--highlight .feature-icon {
  background: #fff;
}
.feature-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
}
.feature-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.feature-card .feature-example {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--purple-dark);
  font-weight: 650;
}
@media (max-width: 900px) {
  .features { padding: 56px 0 66px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--highlight { grid-column: auto; }
  .feature-card { padding: 22px; }
  .section-heading > p:last-child { font-size: 16px; }
}


/* 4.0 — branded Happy Sunrise hero, layered over the existing static site */
html { scroll-behavior: smooth; }
.topbar { gap: 24px; }
.brand-name { display: flex; flex-direction: column; gap: 1px; line-height: 1.05; }
.brand-name small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.topnav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.topnav a {
  color: #484057;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color .18s ease;
}
.topnav a:hover,
.topnav a:focus-visible { color: var(--purple); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 620px;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 20px;
  padding: 78px 52px 84px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 58% 80% at 88% 13%, rgba(252, 172, 205, .50) 0%, transparent 70%),
    radial-gradient(ellipse 70% 76% at 60% 96%, rgba(255, 207, 166, .42) 0%, transparent 73%),
    linear-gradient(124deg, #f7f2ff 0%, #fbf3ff 50%, #fff1ee 100%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 480px;
  height: 480px;
  top: -300px;
  right: 8%;
  border: 1px solid rgba(151, 100, 201, .16);
  border-radius: 50%;
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-content: initial;
  min-width: 0;
  text-align: left;
}
.hero .eyebrow {
  margin: 0 0 18px;
  color: #6b35b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 800px;
  min-height: 0;
  margin: 0;
  color: #24143f;
  font-size: clamp(40px, 4.7vw, 64px);
  line-height: 1.075;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero h1 .title-accent {
  display: block;
  color: #7541c3;
}
.hero-promise {
  margin: 24px 0 0;
  color: #602aab;
  font-size: clamp(18px, 2.15vw, 23px);
  font-weight: 770;
  line-height: 1.3;
}
.hero .lead {
  max-width: 590px;
  min-height: 0;
  margin: 19px 0 29px;
  color: #514760;
  font-size: 17px;
  line-height: 1.64;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  max-width: 100%;
}
.hero-actions .download-button {
  height: 58px;
  flex-shrink: 0;
  background: #6736b7;
  box-shadow: 0 12px 25px rgba(93, 49, 168, .22);
}
.hero-actions .download-button:hover { background: #502391; }
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5f32a6;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}
.feature-link:hover { text-decoration: underline; }
.hero .download-note {
  margin: 13px 0 0;
  max-width: 490px;
  color: #7b7183;
  font-size: 12px;
  line-height: 1.5;
}
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 455px;
  isolation: isolate;
}
.sunrise-disc {
  position: absolute;
  width: min(440px, 96%);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 50%;
  background:
    radial-gradient(circle at 47% 31%, rgba(255, 255, 255, .95) 0%, rgba(255, 238, 222, .80) 38%, rgba(255, 188, 205, .70) 66%, rgba(190, 151, 245, .34) 100%);
  box-shadow: 0 20px 85px rgba(169, 102, 195, .15), inset 0 0 75px rgba(255, 255, 255, .7);
}
.sunrise-glow {
  position: absolute;
  width: min(470px, 105%);
  height: 200px;
  bottom: 3%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(241, 157, 180, .42), rgba(255, 196, 163, .20) 48%, transparent 74%);
  filter: blur(18px);
}
.hero-lumi {
  position: relative;
  z-index: 2;
  display: block;
  width: min(390px, 84%);
  height: auto;
  max-height: 425px;
  object-fit: contain;
  filter: drop-shadow(0 24px 26px rgba(64, 26, 112, .18));
}
.hero-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 78%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 15px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 9px 30px rgba(89, 52, 143, .11);
  color: #43256f;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  backdrop-filter: blur(7px);
}
.hero-float--top { top: 12%; right: 0; }
.hero-float--bottom { bottom: 13%; left: 0; }
.float-sparkle { color: #a05bd5; font-size: 19px; line-height: 1; }
.float-dot { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: #dd7fbc; }
.topbar a:focus-visible,
.hero a:focus-visible {
  outline: 3px solid #a46ade;
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .hero { gap: 10px; padding: 62px 36px 68px; }
  .hero h1 { font-size: clamp(40px, 4.8vw, 55px); }
  .hero-visual { min-height: 395px; }
  .hero-lumi { width: min(340px, 84%); }
  .hero-float--top { right: -5px; }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 18px;
    padding: 52px 34px 44px;
    text-align: center;
  }
  .hero-copy { align-items: center; order: 0; text-align: center; }
  .hero h1 { width: 100%; max-width: 680px; min-height: 0; font-size: clamp(39px, 6vw, 57px); }
  .hero .lead { min-height: 0; margin: 19px 0 27px; }
  .hero-actions { justify-content: center; }
  .hero .download-note { text-align: center; }
  .hero-visual { min-height: 340px; order: 1; }
  .hero-lumi { width: min(300px, 70vw); }
  .sunrise-disc { width: min(340px, 85%); }
  .hero-float--top { top: 10%; right: 12%; }
  .hero-float--bottom { bottom: 11%; left: 12%; }
}
@media (max-width: 560px) {
  .topbar { gap: 12px; }
  .topnav { display: none; }
  .brand-name small { font-size: 9px; }
  .hero { gap: 4px; padding: 40px 20px 24px; border-radius: 23px; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero h1 { min-height: 0; font-size: clamp(32px, 8.2vw, 42px); line-height: 1.12; }
  .hero-promise { margin-top: 18px; font-size: 19px; }
  .hero .lead { font-size: 15px; line-height: 1.57; }
  .hero-actions { width: 100%; flex-direction: column; gap: 18px; align-items: center; }
  .hero-actions .download-button { width: 100%; justify-content: center; font-size: 18px; }
  .hero-visual { min-height: 295px; width: 100%; }
  .hero-lumi { width: min(265px, 76vw); }
  .sunrise-disc { width: min(285px, 88%); }
  .hero-float { padding: 9px 11px; border-radius: 12px; font-size: 10px; }
  .hero-float--top { top: 7%; right: 0; }
  .hero-float--bottom { bottom: 9%; left: 0; }
}
@media (max-width: 400px) {
  .hero { padding: 34px 15px 20px; }
  .hero h1 { min-height: 0; font-size: 30px; }
  .hero .lead { font-size: 14px; }
  .hero-actions .download-button { font-size: 16px; }
  .hero-visual { min-height: 265px; }
  .hero-lumi { width: min(225px, 74vw); }
  .sunrise-disc { width: min(250px, 85%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topnav a { transition: none; }
}


/* 4.0 screenshot gallery: scroll-snap, mobile-first interactions, and honest
   asset placeholders until the approved PNGs are transferred. */
.screenshots-section {
  padding: 70px 0 78px;
  border-top: 1px solid var(--border);
}
.screenshots-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 30px;
}
.screenshots-intro {
  max-width: 740px;
  margin: 0;
  text-align: left;
}
.screenshots-intro .eyebrow {
  color: #8650bd;
  font-size: 13px;
}
.screenshots-controls { display: flex; gap: 12px; flex-shrink: 0; }
.screenshots-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #e2d9ed;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  font: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.screenshots-arrow svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.screenshots-arrow:hover:not(:disabled) {
  background: var(--purple);
  color: #fff;
}
.screenshots-arrow:focus-visible,
.screenshots-track:focus-visible {
  outline: 3px solid #a46ade;
  outline-offset: 4px;
}
.screenshots-arrow:disabled { cursor: default; opacity: .32; }
.screenshots-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  gap: 18px;
  padding: 5px 3px 14px;
  -webkit-overflow-scrolling: touch;
  /* Navigation buttons and the partially visible next card signal scrolling.
     Hide the native OS scrollbar without disabling swipe, wheel or keyboard. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.screenshots-track::-webkit-scrollbar {
  display: none;
}
.screenshot-card {
  flex: 0 0 clamp(205px, 24%, 292px);
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}
.screenshot-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 941 / 1672;
  border: 1px solid #e6daef;
  border-radius: 24px;
  background:
    radial-gradient(circle at 78% 15%, rgba(255, 193, 196, .6), transparent 45%),
    linear-gradient(145deg, #f2e7fe, #fff2e9);
  box-shadow: 0 10px 33px rgba(71, 40, 118, .09);
}
.screenshot-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .25s ease;
}
.screenshot-card.has-image .screenshot-image {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .screenshot-image { transition: none; }
}
.screenshot-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 25px;
  color: #79678b;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.screenshot-fallback-mark {
  color: #8351c5;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -.04em;
}
.screenshot-card.has-image .screenshot-fallback { display: none; }
.screenshot-card figcaption {
  margin: 16px 5px 0;
  color: #35234e;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .screenshots-section { padding: 55px 0 62px; }
  .screenshot-card { flex-basis: clamp(200px, 36%, 280px); }
}
@media (max-width: 560px) {
  .screenshots-section { padding: 45px 0 55px; }
  .screenshots-heading { align-items: end; margin-bottom: 22px; gap: 10px; }
  .screenshots-intro .eyebrow { margin-bottom: 12px; }
  .screenshots-intro h2 { font-size: 27px; }
  .screenshots-intro > p:last-child { font-size: 15px; }
  .screenshots-controls { gap: 8px; }
  .screenshots-arrow { width: 37px; height: 37px; font-size: 26px; }
  .screenshot-card { flex-basis: min(71vw, 295px); }
  .screenshot-frame { border-radius: 18px; }
  .screenshot-card figcaption { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .screenshots-arrow { transition: none; }
}


/*
 * 06:00 by MITRI / v4 — Happy Sunrise visual layer
 * Uses the approved purple Lumi SVG and restrained dawn tones: lavender,
 * warm pink, and gold. No third-party fonts or runtime dependencies.
 */
:root {
  --brand-violet: #6930b4;
  --brand-ink: #27143d;
  --brand-mauve: #dfb8ec;
  --brand-pink: #f2b3cd;
  --brand-sun: #fee8a1;
  --brand-powder: #f6eeff;
  --brand-outline: rgba(102, 58, 159, .16);
}
body {
  background:
    radial-gradient(ellipse 68% 820px at 95% 0%, rgba(242, 186, 225, .2), transparent 70%),
    linear-gradient(180deg, #fcfaff 0%, #fff 38%, #fbf8ff 70%, #fff 100%);
}
.page { width: min(1320px, calc(100% - 56px)); }
.topbar {
  position: relative;
  z-index: 4;
  height: 98px;
  padding-inline: 10px;
}
.brand { letter-spacing: .01em; color: var(--brand-ink); }
.brand-logo { width: 51px; height: 51px; filter: drop-shadow(0 4px 8px rgba(90, 42, 138, .12)); }
.brand-name small { color: #8454b6; letter-spacing: .13em; }
.topnav { gap: 32px; }
.topnav a { color: #493757; }
.lang-button {
  border: 1px solid #d2b9e9;
  background: #fff8ff;
  color: #6735a6;
  border-radius: 14px;
  transition: background .18s ease, border-color .18s ease;
}
.lang-button.is-active { background: #6939b4; border-color: #6939b4; color: #fff; }

.hero {
  background:
    radial-gradient(ellipse at 79% 45%, rgba(255, 231, 162, .55), transparent 46%),
    radial-gradient(ellipse at 92% 10%, rgba(170, 152, 248, .40), transparent 60%),
    linear-gradient(124deg, #f9f4ff 0%, #f7edff 46%, #ffecf2 100%);
  box-shadow: 0 22px 84px rgba(86, 47, 152, .09);
}
.hero .eyebrow { color: #7441ad; }
.hero h1 .title-accent { color: #7a36bc; }
.hero-promise { color: #6f39a8; }
.sunrise-disc {
  background:
    radial-gradient(circle at 53% 37%, rgba(255, 251, 225, 1) 0%, #ffe7a5 31%, rgba(255, 182, 208, .90) 62%, rgba(176, 150, 244, .58) 96%);
  box-shadow: 0 23px 100px rgba(166, 91, 185, .23), inset 0 0 66px rgba(255, 255, 255, .8);
}
.hero-visual::before,
.hero-visual::after {
  content: "✦";
  position: absolute;
  z-index: 1;
  color: #fff8ee;
  text-shadow: 0 0 18px rgba(255, 214, 165, .8);
  font-size: 30px;
  pointer-events: none;
}
.hero-visual::before { top: 12%; left: 12%; }
.hero-visual::after { right: 13%; bottom: 17%; font-size: 18px; }
.hero-float {
  background: rgba(255, 255, 255, .91);
  border: 1px solid rgba(255, 255, 255, .92);
}
.feature-link:hover { color: #402176; }

.features {
  position: relative;
  margin-top: 32px;
  padding: 96px 38px 108px;
  border-top: 0;
  border-radius: 38px;
  background:
    radial-gradient(ellipse 55% 52% at 95% 10%, rgba(251, 211, 228, .34), transparent 75%),
    radial-gradient(ellipse 42% 65% at 0% 100%, rgba(190, 172, 251, .32), transparent 70%),
    linear-gradient(165deg, #fefbff, #f9f4ff 60%, #fff8fb);
}
.features .section-heading { max-width: 780px; margin-bottom: 35px; }
.section-heading h2 { color: var(--brand-ink); }
.features-instruction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px !important;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(117, 66, 175, .09);
  color: #7646aa !important;
  font-size: 13px !important;
  font-weight: 720;
}
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

/* Clickable flip cards — native buttons enable Enter and Space automatically. */
.feature-card.flip-card {
  display: block;
  position: relative;
  width: 100%;
  height: 330px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 27px;
  background: transparent;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  perspective: 1300px;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
}
.feature-card--highlight.flip-card { grid-column: auto; }
.flip-card:focus-visible { outline: 3px solid #7643bf; outline-offset: 5px; }
.flip-card-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform .66s cubic-bezier(.2, .7, .12, 1);
}
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card:not(.is-flipped):hover .flip-card-inner { transform: translateY(-5px); }
.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  min-width: 0;
  padding: 29px 26px 24px;
  border: 1px solid var(--brand-outline);
  border-radius: 27px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 16px 40px rgba(77, 42, 123, .09);
  scrollbar-width: thin;
  scrollbar-color: #cfb9e7 transparent;
}
.flip-face--front {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(241, 207, 244, .40), transparent 63%),
    rgba(255, 255, 255, .95);
}
.feature-card--highlight .flip-face--front {
  border-color: rgba(136, 66, 191, .31);
  background:
    radial-gradient(ellipse at 90% 0%, rgba(248, 194, 210, .36), transparent 66%),
    linear-gradient(130deg, #f9f0ff, #fff8fb);
}
.flip-face--back {
  transform: rotateY(180deg);
  border-color: rgba(112, 60, 176, .24);
  color: #fff;
  background:
    radial-gradient(ellipse at 95% 0%, rgba(255, 193, 217, .33), transparent 66%),
    radial-gradient(ellipse at 0 100%, rgba(198, 160, 236, .44), transparent 65%),
    linear-gradient(145deg, #713bac, #4b277f);
}
.flip-face .feature-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 49px;
  height: 49px;
  margin: 0 0 23px;
  border-radius: 15px;
  background: #f1e4ff;
  color: #7438ad;
  font-size: 27px;
}
.feature-card--highlight .feature-icon { background: #fff; }
.feature-title {
  display: block;
  color: var(--brand-ink);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.23;
}
.feature-description {
  display: block;
  margin-top: 12px;
  color: #686071;
  font-size: 15px;
  line-height: 1.56;
}
.feature-card .feature-example {
  display: inline-block;
  align-self: flex-start;
  margin: 12px 0 0;
  padding: 9px 12px;
  background: rgba(255, 255, 255, .85);
  color: #79429d;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.flip-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 19px;
  color: #8a4abe;
  font-size: 13px;
  font-weight: 800;
}
.flip-hint [aria-hidden="true"] { font-size: 20px; }
.flip-back-decor {
  position: absolute;
  right: 18px;
  top: 12px;
  color: rgba(255, 231, 185, .42);
  font-size: 74px;
  line-height: 1;
}
.flip-back-label {
  position: relative;
  z-index: 1;
  color: #efd7ff;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .15em;
}
.flip-back-title {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 30px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.flip-back-copy {
  display: block;
  margin-top: 14px;
  color: #f3ebfc;
  font-size: 14px;
  line-height: 1.65;
}
.flip-hint--back { color: #ffe1bf; }
@media (hover: none) {
  .flip-card:not(.is-flipped):hover .flip-card-inner { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-card-inner { transition: none; }
  .flip-card:not(.is-flipped):hover .flip-card-inner { transform: none; }
}

/* Screenshots: designed as product photography, not a technical carousel. */
.screenshots-section { padding: 105px 0 100px; border-top: 0; }
.screenshots-intro .eyebrow { color: #8254ad; }
.screenshot-card figcaption { color: #39264f; }
.screenshot-frame {
  border-radius: 30px;
  border: 1px solid rgba(183, 144, 210, .30);
  background: #efe4fb;
  box-shadow: 0 22px 46px rgba(104, 69, 160, .15);
}

/* Closing invitation and final download choices. */
.closing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: 63px 66px;
  margin: 6px 0 55px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 40% 80% at 80% 25%, rgba(255, 212, 173, .4), transparent 72%),
    radial-gradient(ellipse 60% 100% at 15% 100%, rgba(226, 160, 222, .35), transparent 80%),
    linear-gradient(120deg, #eedcfd, #f9d9e7 85%, #fff1e2);
}
.closing-copy { min-width: 0; }
.closing-kicker {
  margin: 0 0 13px;
  color: #7642b1;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .15em;
}
.closing-copy h2 {
  margin: 0;
  max-width: 610px;
  color: #301847;
  font-size: clamp(29px, 3.9vw, 45px);
  line-height: 1.13;
  letter-spacing: -.04em;
}
.closing-copy > p:last-child { color: #654a75; font-size: 17px; margin: 16px 0 0; }
.closing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 0 0 auto;
  min-height: 56px;
  padding: 16px 24px;
  border-radius: 15px;
  background: #6531ac;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 25px rgba(90, 46, 139, .2);
}
.closing-button:hover { background: #4c2189; }
.closing-button:focus-visible { outline: 3px solid #603aa2; outline-offset: 4px; }
.stores { padding: 12px 0 85px; border-top: 0; }
.stores-heading { margin-bottom: 18px; }
.stores-heading .eyebrow { color: #8758b0; }
.store-card {
  border-color: var(--brand-outline);
  border-radius: 27px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(242, 218, 246, .26), transparent 66%),
    #fff;
  box-shadow: 0 12px 38px rgba(94, 47, 148, .075);
}
footer { border-top-color: #eadfee; }
@media (max-width: 1100px) {
  .closing-cta { padding: 50px 40px; gap: 24px; }
  .features { padding: 80px 30px 92px; }
  .flip-face { padding: 25px 21px 22px; }
  .feature-card.flip-card { height: 340px; }
}
@media (max-width: 900px) {
  .page { width: min(100% - 34px, 740px); }
  .features { padding: 62px 20px 75px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .feature-card--highlight.flip-card { grid-column: auto; }
  .feature-card.flip-card { height: 322px; }
  .screenshots-section { padding: 74px 0 70px; }
  .closing-cta { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .closing-button { align-self: flex-start; }
}
@media (max-width: 560px) {
  .page { width: min(100% - 26px, 440px); }
  .topbar { padding-inline: 0; }
  .features {
    margin-top: 22px;
    padding: 50px 15px 62px;
    border-radius: 26px;
  }
  .feature-grid { grid-template-columns: 1fr; gap: 17px; }
  .feature-card.flip-card { height: 292px; }
  .flip-face { padding: 23px 24px 20px; border-radius: 23px; }
  .flip-face .feature-icon { width: 44px; height: 44px; margin-bottom: 16px; }
  .flip-back-title { margin-top: 22px; font-size: 21px; }
  .features-instruction { font-size: 12px !important; }
  .screenshots-section { padding: 64px 0 65px; }
  .screenshot-frame { border-radius: 22px; }
  .closing-cta { padding: 37px 26px; border-radius: 25px; gap: 24px; }
  .closing-copy > p:last-child { font-size: 15px; }
  .closing-button { width: 100%; }
  .stores { padding-bottom: 55px; }
}
@media (max-width: 400px) {
  .features { padding-inline: 12px; }
  .feature-card.flip-card { height: 308px; }
  .feature-description { font-size: 14px; }
  .closing-copy h2 { font-size: 28px; }
}


/* The supplied Happy Sunrise background can be placed in assets/ later.
   Until then, the CSS gradient beneath the URL is a complete fallback. */
.hero {
  background:
    linear-gradient(105deg,
      rgba(250, 247, 255, .97) 0%,
      rgba(251, 246, 255, .90) 40%,
      rgba(252, 242, 255, .50) 72%,
      rgba(255, 241, 249, .34) 100%),
    url("assets/happy_sunrise_0600_v4.webp") center 47% / cover no-repeat,
    linear-gradient(120deg, #e6e8ff, #f6c7eb 55%, #fff0c5);
}
.closing-cta {
  background:
    linear-gradient(110deg, rgba(237, 214, 253, .94), rgba(246, 208, 234, .80) 69%, rgba(255, 231, 198, .65)),
    url("assets/happy_sunrise_0600_v4.webp") center 55% / cover no-repeat,
    linear-gradient(105deg, #ebe1ff, #f5d2ea);
}


/* Mobile usability: keep one-page section navigation accessible without
   squeezing the logo or language controls into the same row. */
@media (max-width: 560px) {
  .topbar {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    align-content: center;
    row-gap: 10px;
    padding-block: 14px 16px;
  }
  .topnav {
    display: flex;
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    margin-left: 0;
    justify-content: center;
    gap: clamp(14px, 4.5vw, 25px);
  }
  .topnav a {
    font-size: clamp(11px, 3.1vw, 13px);
    white-space: nowrap;
    padding-block: 5px;
  }
  .lang-buttons { margin-left: auto; }
}


/* Respect motion preferences for section-anchor navigation as well. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Keep legal/support/analytics footer controls from overflowing tablets. */
footer {
  flex-wrap: wrap;
  gap: 12px clamp(16px, 2.6vw, 30px);
  padding-block: 18px;
}
/* Optional analytics, designed to match the Happy Sunrise landing.
   Hidden unless the user has not yet made a choice or reopens settings. */
.analytics-settings {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--purple);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.analytics-settings:hover { text-decoration: underline; }
.analytics-settings:focus-visible {
  outline: 3px solid #a46ade;
  outline-offset: 3px;
  border-radius: 4px;
}
.analytics-panel {
  position: fixed;
  z-index: 50;
  bottom: clamp(12px, 3vw, 28px);
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: min(980px, calc(100% - 32px));
  padding: 20px 24px;
  transform: translateX(-50%);
  border: 1px solid rgba(122, 75, 164, .20);
  border-radius: 23px;
  background: #fffafedb;
  box-shadow: 0 16px 60px rgba(53, 26, 88, .24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.analytics-panel[hidden] { display: none; }
.analytics-panel__copy { flex: 1 1 auto; min-width: 0; }
.analytics-panel__copy strong {
  display: block;
  margin-bottom: 7px;
  color: #36204c;
  font-size: 16px;
  font-weight: 800;
}
.analytics-panel__copy p {
  margin: 0;
  color: #665a71;
  font-size: 13px;
  line-height: 1.55;
}
.analytics-panel__copy a {
  color: #6531ac;
  text-underline-offset: 3px;
}
.analytics-panel__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.analytics-panel__actions button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d7bcec;
  border-radius: 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 740;
  cursor: pointer;
}
.analytics-panel__actions button:focus-visible {
  outline: 3px solid #9d62d1;
  outline-offset: 3px;
}
.analytics-decline { background: #fff; color: #69418c; }
.analytics-accept {
  border-color: #6739ac !important;
  background: #6739ac;
  color: #fff;
}
.analytics-accept:hover { background: #512485; }
@media (max-width: 700px) {
  .analytics-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 19px 18px;
    gap: 16px;
    border-radius: 20px;
  }
  .analytics-panel__actions button { flex: 1; }
}
@media (max-width: 400px) {
  .analytics-panel__actions {
    flex-wrap: wrap;
  }
  .analytics-panel__actions button { flex: 1 0 100%; }
}
/* Mobile: labels above and below Lumi */
@media (max-width: 560px) {
  .hero-visual {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    row-gap: 12px;
  }

  .hero-float {
    position: relative;
    grid-column: 1;
    max-width: 92%;
  }

  .hero-float--top {
    grid-row: 1;
    top: auto;
    right: auto;
    justify-self: end;
  }

  .hero-lumi {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-float--bottom {
    grid-row: 3;
    bottom: auto;
    left: auto;
    justify-self: start;
  }
}
/* Desktop and tablet: keep labels clear of Lumi */
@media (min-width: 561px) {
  .hero-visual {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    row-gap: 16px;
    padding-block: 12px;
  }

  .hero-float {
    position: relative;
    grid-column: 1;
  }

  .hero-float--top {
    grid-row: 1;
    top: auto;
    right: auto;
    justify-self: end;
  }

  .hero-lumi {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-float--bottom {
    grid-row: 3;
    bottom: auto;
    left: auto;
    justify-self: start;
  }
}
/* APK download option in stores */
.store-card--apk {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  height: auto;
  min-height: 155px;
  gap: 24px;
}

.store-card--apk .store-info {
  min-width: 0;
}

.store-card--apk .store-info p {
  min-height: 0;
  margin-bottom: 0;
}

.store-card--apk .download-button {
  width: auto;
  height: 56px;
  justify-self: end;
  align-self: center;
  white-space: nowrap;
  font-size: 17px;
}

@media (max-width: 768px) {
  .store-card--apk {
    grid-column: 1;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    text-align: center;
  }

  .store-card--apk .store-info {
    text-align: center;
  }

  .store-card--apk .download-button {
    width: 100%;
    justify-self: center;
  }
}
/* APK download option in stores */
.store-card--apk {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  height: auto;
  min-height: 155px;
  gap: 24px;
}

.store-card--apk .store-info {
  min-width: 0;
}

.store-card--apk .store-info p {
  min-height: 0;
  margin-bottom: 0;
}

.store-card--apk .download-button {
  width: auto;
  height: 56px;
  justify-self: end;
  align-self: center;
  white-space: nowrap;
  font-size: 17px;
}

@media (max-width: 768px) {
  .store-card--apk {
    grid-column: 1;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    text-align: center;
  }

  .store-card--apk .store-info {
    text-align: center;
  }

  .store-card--apk .download-button {
    width: 100%;
    justify-self: center;
  }
}
