/* ============================================================
   Base — light theme, matches the original musicideas site
   ============================================================ */
:root {
  --black: #000000;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-50: #f9fafb;
  --blue-50: #eff6ff;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --red-600: rgba(220, 38, 38, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--gray-900);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
}

/* ============================================================
   Section 0 — Intro letter (white background)
   ============================================================ */
.letter {
  background: #fff;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(56px, 9vw, 120px) 24px;
}

.letter__card {
  max-width: 640px;
  width: 100%;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.7;
  color: #1a1a1a;
}

.letter__card p {
  margin: 0 0 1.2em;
}

.letter__greeting {
  font-size: 1.7em;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.2em;
}

.letter__role {
  font-weight: 600;
  color: #555;
  margin: 0 0 1.4em !important;
}

.letter__subhead {
  font-size: 1.15em;
  margin: 1.8em 0 0.4em !important;
}

.letter__list {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.letter__list li {
  margin-bottom: 0.45em;
}

.letter__sign {
  font-weight: 600;
  margin-top: 1.6em;
}

.letter__ps {
  font-size: 0.78em;
  color: #555;
  line-height: 1.6;
  margin-top: 1.8em !important;
}

/* ============================================================
   PS — Vibe Jam game
   ============================================================ */
.ps {
  background: #fff;
  padding: clamp(48px, 9vw, 100px) 24px;
  border-top: 1px solid #eee;
}

.ps__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}

.ps__text {
  flex: 1;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
  text-align: left;
}

.ps__text a {
  color: #1a73e8;
  text-decoration: underline;
}

.ps__video-frame {
  flex: none;
  position: relative;
  width: min(260px, 45%);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .ps__inner {
    flex-direction: column;
    text-align: center;
  }
  .ps__text {
    text-align: center;
  }
  .ps__video-frame {
    width: min(260px, 80%);
  }
}

.ps__video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Legacy hero styles (kept in case the dark hero is reused) */
.hero {
  height: 100vh;
  width: 100%;
  background: var(--black);
}

.hero__overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hero__title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin: 0;
  max-width: 56rem;
}

.hero__attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 56rem;
  width: 100%;
  margin-top: 24px;
}

.hero__name {
  color: #e5e7eb;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.hero__sub {
  color: #f3f4f6;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin: 4px 0 0;
}

/* On wider screens, mirror the original: left-aligned title, right-aligned cite */
@media (min-width: 768px) {
  .hero__overlay {
    align-items: flex-start;
    padding: 64px;
  }
  .hero__title {
    text-align: left;
    width: 55%;
    max-width: none;
  }
  .hero__attribution {
    align-items: flex-end;
  }
  .hero__name,
  .hero__sub {
    text-align: right;
  }
}

/* ============================================================
   Section 1 — Idea / intro  (monospace)
   ============================================================ */
.idea {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 32px;
  font-family: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* Vertical stepper */
.stepper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stepper .step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--gray-200);
  color: var(--gray-600);
  transition: all 0.2s ease;
}

/* Highlight the current step based on data-step on .idea */
.idea[data-step="1"] .stepper .step:nth-of-type(1),
.idea[data-step="2"] .stepper .step:nth-of-type(2),
.idea[data-step="3"] .stepper .step:nth-of-type(3),
.idea[data-step="4"] .stepper .step:nth-of-type(4),
.idea[data-step="5"] .stepper .step:nth-of-type(5),
.idea[data-step="6"] .stepper .step:nth-of-type(6),
.idea[data-step="7"] .stepper .step:nth-of-type(7) {
  width: 40px;
  height: 40px;
  background: var(--black);
  color: #fff;
}

.stepper .line {
  width: 4px;
  height: 24px;
  margin-top: 4px;
  margin-bottom: 0;
  background: var(--gray-200);
}

.idea__body {
  width: 100%;
  max-width: 56rem;
  padding: 32px;
}

.idea__eyebrow {
  font-size: 1.125rem;
  text-align: left;
  margin: 0 0 8px;
}

.idea__headline {
  position: relative;
  display: inline-block;
  color: var(--black);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.1;
  margin: 0 0 24px;
}

.idea__underline {
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--red-600);
}

.idea__paragraph {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  white-space: pre-line;
  margin: 24px 0;
  line-height: 1.5;
}

.idea__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.btn {
  font-family: inherit;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  padding: 16px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: scale(1.05);
}

.btn--outline {
  background: transparent;
  color: var(--blue-700);
  font-weight: 600;
  border: 1px solid var(--blue-500);
}

.btn--outline:hover {
  background: var(--blue-500);
  color: #fff;
  border-color: transparent;
}

.btn--solid {
  background: var(--black);
  color: #fff;
  font-weight: 700;
  border: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.btn--solid:hover {
  background: var(--gray-800);
}

@media (min-width: 640px) {
  .idea__buttons {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .stepper {
    display: none;
  }
}

/* ============================================================
   Section 2 — App Store page
   ============================================================ */
.appstore {
  max-width: 56rem;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
  border-top: 2px solid var(--gray-50);
  border-bottom: 2px solid var(--gray-50);
}

.appstore__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 16px;
}

.appstore__feature {
  background: var(--blue-50);
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.appstore__feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.appstore__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.appstore__list li {
  display: flex;
  align-items: center;
}

.appstore__list li span {
  margin-right: 8px;
}

.appstore__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.appstore__icon {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  flex: none;
}

.appstore__head-info {
  flex: 1;
}

.appstore__head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.appstore__name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.appstore__tagline {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}

.appstore__formula {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin: 4px 0 0;
}

.get-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-500);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 4px 32px 8px;
  border-radius: 9999px;
  flex: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.get-btn:hover {
  background: var(--blue-600);
  transform: scale(1.05);
}

.appstore__shots-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 16px;
}

/* Carousel */
.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track img {
  flex: 0 0 calc(50% - 8px);
  scroll-snap-align: start;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  width: calc(50% - 8px);
  height: auto;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gray-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__arrow--prev {
  left: 8px;
}

.carousel__arrow--next {
  right: 8px;
}

@media (min-width: 768px) {
  .carousel__track img {
    flex-basis: calc(33.333% - 11px);
    width: calc(33.333% - 11px);
  }
}

@media (min-width: 1024px) {
  .carousel__track img {
    flex-basis: calc(25% - 12px);
    width: calc(25% - 12px);
  }
}

/* Placeholder variants for a blank App Store template */
.appstore__icon--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f4;
  font-size: 2.4rem;
}

.carousel__ph {
  flex: 0 0 calc(50% - 8px);
  width: calc(50% - 8px);
  aspect-ratio: 9 / 19;
  scroll-snap-align: start;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, #f5f5f5, #f5f5f5 12px, #efefef 12px, #efefef 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa0a6;
  font-size: 0.9rem;
}

.appstore__qr--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f4;
  color: #9aa0a6;
  font-family: "Geist Mono", monospace;
}

@media (min-width: 768px) {
  .carousel__ph {
    flex-basis: calc(33.333% - 11px);
    width: calc(33.333% - 11px);
  }
}

@media (min-width: 1024px) {
  .carousel__ph {
    flex-basis: calc(25% - 12px);
    width: calc(25% - 12px);
  }
}

.appstore__download {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  padding-bottom: 24px;
}

.appstore__qr {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.appstore__tf {
  width: 250px;
  height: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease;
}

.appstore__tf:hover {
  transform: scale(1.05);
}

@media (min-width: 1024px) {
  .appstore__download {
    margin-top: 64px;
  }
}

/* ---- Get TestFlight button + contact modal form ---- */
.tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border: 0;
  border-radius: 999px;
  background: #0a84ff;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 12px 20px -8px rgba(10, 132, 255, 0.55);
  transition: transform 0.15s ease, background 0.18s ease;
}

.tf-btn:hover {
  transform: scale(1.04);
  background: #0072e6;
}

.tf-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.tf-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d9d9de;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
}

.tf-form input:focus {
  outline: none;
  border-color: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

.tf-submit {
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: #0a84ff;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s ease;
}

.tf-submit:hover {
  background: #0072e6;
}

.tf-note {
  margin-top: 10px;
  min-height: 1em;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}

/* ---- Yallpaper CTA: mobile link / desktop QR ---- */
.yp-cta .yp-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 12px;
  margin-bottom: 12px;
}

.yp-cta .yp-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.yp-qr-caption {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.yp-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: #0a84ff;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(10, 132, 255, 0.35);
  transition: transform 0.15s ease;
}

.yp-open-btn:hover {
  transform: scale(1.04);
}

/* Mobile (default): show the tappable link, hide the QR */
.yp-cta .yp-qr,
.yp-qr-caption {
  display: none;
}

.yp-open-btn {
  display: inline-flex;
}

/* Desktop: show the QR, hide the tappable link */
@media (min-width: 768px) {
  .yp-cta .yp-qr {
    display: flex;
  }

  .yp-qr-caption {
    display: block;
  }

  .yp-open-btn {
    display: none;
  }
}

/* ============================================================
   Section 2c — Chrome extension intro (title + blue feature box)
   ============================================================ */
.cws-intro {
  max-width: 56rem;
  margin: 0 auto;
  padding: 64px 16px 0;
}

.cws-intro__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: #202124;
}

/* ============================================================
   Section 2d — Chrome Web Store panel
   ============================================================ */
.cws {
  font-family: "Roboto", "Geist", system-ui, -apple-system, sans-serif;
  color: #202124;
}

/* Top nav */
.cws__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  border-bottom: 1px solid #ebebeb;
}

.cws__nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.cws__logo {
  display: flex;
}

.cws__brand {
  font-size: 1.25rem;
  color: #5f6368;
  white-space: nowrap;
}

.cws__search {
  flex: 1;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f3f4;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 10px 18px;
}

.cws__search:focus-within {
  background: #fff;
  border-color: #dadce0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cws__search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  width: 100%;
  color: #202124;
}

.cws__nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.cws__icon-btn {
  color: #5f6368;
  font-size: 1.2rem;
  cursor: pointer;
}

.cws__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Tabs */
.cws__tabs {
  display: flex;
  gap: 32px;
  padding: 0 24px;
  border-bottom: 1px solid #ebebeb;
}

.cws__tabs a {
  text-decoration: none;
  color: #5f6368;
  font-size: 0.95rem;
  padding: 14px 0;
  border-bottom: 3px solid transparent;
}

.cws__tabs a.is-active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
  font-weight: 500;
}

/* Listing */
.cws__main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.cws__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cws__header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cws__app-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex: none;
}

.cws__app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cws__app-title {
  font-size: 2.25rem;
  font-weight: 400;
  margin: 0;
  color: #202124;
}

.cws__add-btn {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  flex: none;
}

.cws__add-btn:hover {
  background: #1b66c9;
}

.cws__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #202124;
}

.cws__rating {
  font-weight: 500;
}

.cws__star {
  color: #202124;
}

.cws__link {
  color: #1a73e8;
  text-decoration: none;
}

.cws__info {
  color: #5f6368;
  font-size: 0.85rem;
}

.cws__share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1a73e8;
  margin-left: 16px;
  cursor: pointer;
}

.cws__chips {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.cws__chip {
  background: #f1f3f4;
  color: #3c4043;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.cws__users {
  color: #5f6368;
  font-size: 0.9rem;
  margin-left: 4px;
}

/* Screenshots */
.cws__shots {
  position: relative;
  margin-top: 32px;
}

.cws__shot-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.cws__shot-track::-webkit-scrollbar {
  display: none;
}

.cws__shot {
  flex: 0 0 calc(50% - 8px);
  scroll-snap-align: start;
  aspect-ratio: 16 / 10;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f3f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa0a6;
  font-size: 0.95rem;
}

.cws__shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cws__shot-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  color: #5f6368;
  cursor: pointer;
}

.cws__shot-arrow--prev {
  left: -28px;
}

.cws__shot-arrow--next {
  right: -28px;
}

.cws__thumbs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.cws__thumb {
  width: 72px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background: #f4f3f0;
  border: 2px solid transparent;
}

.cws__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cws__thumb.is-active {
  border-color: #1a73e8;
}

/* Overview */
.cws__section-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #202124;
  margin: 48px 0 20px;
}

.cws__overview {
  position: relative;
  max-height: 230px;
  overflow: hidden;
  color: #3c4043;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Always show the full overview (no "See more" clamp) */
.cws__overview--full {
  max-height: none;
  overflow: visible;
}

.cws__overview p {
  margin: 0 0 16px;
}

.cws__overview ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cws__overview li {
  margin-bottom: 6px;
}

.cws__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

/* Expanded state — reveal full overview, hide the fade */
.cws__overview.is-expanded {
  max-height: none;
}

.cws__overview.is-expanded .cws__fade {
  display: none;
}

.cws__seemore {
  display: inline-block;
  margin-top: 12px;
  color: #202124;
  text-decoration: underline;
  font-size: 0.95rem;
  cursor: pointer;
}

.cws__download-row {
  margin-top: 24px;
}

.cws__download-btn {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.cws__download-btn:hover {
  background: #1b66c9;
}

/* ============================================================
   Install modal (fullscreen)
   ============================================================ */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  background: #fff;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  font-family: "Geist", system-ui, sans-serif;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: #5f6368;
  cursor: pointer;
}

.modal__logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.modal__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #111;
}

.modal__sub {
  color: #5f6368;
  margin: 0 0 24px;
  line-height: 1.5;
}

.modal__steps {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal__steps li {
  color: #202124;
}

.modal__steps li strong {
  font-size: 1.05rem;
}

.modal__steps li p {
  margin: 4px 0 0;
  color: #5f6368;
  line-height: 1.5;
}

.modal__steps code {
  background: #f1f3f4;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: "Geist Mono", monospace;
  font-size: 0.9em;
}

.modal__download {
  display: inline-block;
  margin-top: 10px;
  background: #f6a800;
  color: #111;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
}

.modal__download:hover {
  background: #e89c00;
}

.cws__rule {
  border: none;
  border-top: 1px solid #ebebeb;
  margin: 40px 0;
}

/* Rating summary */
.cws__bigrating {
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0;
  color: #202124;
}

.cws__stars {
  color: #1a73e8;
  letter-spacing: 2px;
}

.cws__ratingmeta {
  color: #5f6368;
  font-size: 0.9rem;
  margin: 12px 0 20px;
}

.cws__link-underline {
  color: #5f6368;
  text-decoration: underline;
}

.cws__reviews {
  color: #1a73e8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Details */
.cws__details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cws__detail-label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #202124;
  margin: 0 0 8px;
}

.cws__detail-value {
  color: #5f6368;
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 768px) {
  .cws__brand {
    display: none;
  }
  .cws__app-title {
    font-size: 1.6rem;
  }
  .cws__shot {
    flex-basis: calc(100% - 8px);
  }
  .cws__details {
    grid-template-columns: repeat(2, 1fr);
  }
  .cws__shot-arrow--prev {
    left: 0;
  }
  .cws__shot-arrow--next {
    right: 0;
  }
}

/* ============================================================
   Section 2h — "Me News" panel (NEWS 24 style)
   ============================================================ */
.menews {
  --news-red: #f5333f;
  --news-red-dark: #d41f2b;
  --news-chip: #ef5d62;
  font-family: "Oswald", "Geist", system-ui, sans-serif;
  background: #fff;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 16px 56px;
}

/* Logo + banner row */
.menews__top {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.menews__logo {
  display: inline-flex;
  border: 3px solid var(--news-red);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -1px;
}

.menews__logo-a {
  background: var(--news-red);
  color: #fff;
  padding: 8px 12px;
}

.menews__logo-b {
  background: #fff;
  color: #111;
  padding: 8px 12px;
}

.menews__banner {
  flex: 1;
  min-width: 320px;
  min-height: 90px;
  background: #1c1c1e
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
}

.menews__banner-text {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.2px;
}

.menews__banner-btn {
  flex: none;
  background: var(--news-red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 14px 26px;
  border-radius: 2px;
  white-space: nowrap;
}

.menews__banner-btn:hover {
  background: var(--news-red-dark);
}

/* Nav bar */
.menews__nav {
  background: var(--news-red);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
}

.menews__menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.menews__menu a {
  display: flex;
  align-items: center;
  height: 100%;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.6px;
  padding: 18px 22px;
}

.menews__menu li.is-active a,
.menews__menu a:hover {
  background: rgba(0, 0, 0, 0.18);
}

/* Article copy + video */
.menews__content {
  margin-top: 32px;
  display: flex;
  gap: clamp(28px, 5vw, 56px);
  align-items: flex-start;
}

.menews__article {
  flex: 1;
  font-family: "Geist", system-ui, sans-serif;
}

.menews__kicker {
  display: inline-block;
  background: var(--news-red);
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.menews__headline {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: #111;
  margin: 0 0 14px;
}

.menews__standfirst {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 500;
  color: #111;
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5e5e5;
}

.menews__subhead {
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #111;
  margin: 24px 0 8px;
}

.menews__article p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin: 0 0 16px;
}

.menews__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  background: var(--news-red);
  color: #fff;
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 2px;
}

.menews__cta:hover {
  background: var(--news-red-dark);
}

.menews__video {
  flex: none;
  width: min(320px, 42%);
}

.menews__video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  scroll-margin-top: 24px;
}

.menews__video-frame iframe,
.menews__video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 720px) {
  .menews__content {
    flex-direction: column;
  }
  .menews__video {
    width: 100%;
    max-width: 320px;
    align-self: center;
  }
}

/* ============================================================
   Section 3 — FAQ + About
   ============================================================ */
.faq {
  padding: 48px 16px;
  border-top: 2px solid var(--gray-50);
}

.faq__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.faq__title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px;
}

.faq__sub {
  text-align: center;
  color: var(--gray-600);
  margin: 0 0 32px;
}

/* Accordion */
.acc {
  border-bottom: 1px solid var(--gray-200);
}

.acc summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-size: 1.25rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.acc summary::-webkit-details-marker {
  display: none;
}

.acc summary::after {
  content: "⌄";
  font-size: 1.25rem;
  color: var(--gray-500);
  transition: transform 0.2s ease;
}

.acc[open] summary::after {
  transform: rotate(180deg);
}

.acc__body {
  padding: 0 0 16px;
}

.acc__body p {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin: 0;
}

/* About */
.about {
  max-width: 80rem;
  margin: 32px auto 0;
  padding: 0 16px;
}

.about__intro {
  max-width: 48rem;
  margin: 0 auto 64px;
  text-align: center;
}

.about__intro h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.025em;
  margin: 8px 0 24px;
}

.about__intro p {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.about__featured {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--gray-700);
  text-align: center;
  margin: 0 0 48px;
}

/* Previous projects grid */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 72px;
}

.project-card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.project-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.project-thumb {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  overflow: hidden;
  background: #f3f4f6;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Logo-style thumbs (e.g. Silver Kitty) — contain, not crop */
.project-thumb--logo {
  background: #f3f4f6;
}

.project-thumb--logo img {
  object-fit: contain;
  padding: 16px;
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 16px 18px 4px;
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--gray-600);
  margin: 0 18px 18px;
}

@media (max-width: 768px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .projects {
    grid-template-columns: 1fr;
  }
}

/* Emoji badge for award cards without a logo image */
.award__emoji {
  font-size: 3rem;
  line-height: 1;
}

/* Idea panel with an image on the right (e.g. the pet idea) */
.idea--media {
  gap: clamp(24px, 4vw, 56px);
}

.idea--media .idea__body {
  width: auto;
  max-width: 38rem;
}

.idea__media {
  flex: none;
}

.idea__media img {
  display: block;
  height: min(78vh, 720px);
  width: auto;
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

@media (max-width: 860px) {
  .idea--media {
    flex-direction: column;
  }
  .idea--media .idea__body {
    max-width: 100%;
  }
  .idea__media img {
    height: auto;
    width: min(300px, 80vw);
    margin-top: 8px;
  }
}

/* Press logos */
.press-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 16px;
}

.press-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  height: 48px;
}

.press-logo img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.press-logo--more {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  color: var(--gray-700);
}

@media (min-width: 768px) {
  .press-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .press-logos {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.tcard {
  width: 100%;
  max-width: 24rem;
  margin: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 20px;
  color: var(--gray-800);
}

.tcard header {
  display: flex;
  margin-bottom: 16px;
}

.tcard__avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex: none;
}

.tcard__avatar--round {
  border-radius: 50%;
}

.tcard header > div {
  flex: 1;
  padding-left: 12px;
}

.tcard__name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.tcard__user {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin: 0;
}

.tcard__body {
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

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

/* Silver Kitty award card */
.tcard--award {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
}

.award__circle {
  width: 128px;
  height: 128px;
  background: var(--gray-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex: none;
}

.award__circle img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.award__text {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

/* ============================================================
   Closing quote — static (no animation)
   ============================================================ */
.quote {
  min-height: 100vh;
  width: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.quote__inner {
  max-width: 68rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
}

.quote__content {
  flex: 1 1 0;
  text-align: left;
}

.quote__text {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.quote__cite {
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 28px;
  opacity: 0.7;
}

.quote__img {
  flex: none;
  width: clamp(220px, 30vw, 360px);
  height: auto;
  /* Transparent cutout — drop shadow lifts it off the black background */
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.7));
}

@media (max-width: 768px) {
  .quote__inner {
    flex-direction: column-reverse;
    text-align: center;
  }
  .quote__content {
    text-align: center;
  }
}

/* ============================================================
   Floating contact widget (bottom-right)
   ============================================================ */
.contact-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.contact-fab__toggle {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #0a84ff;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 24px -8px rgba(10, 132, 255, 0.6);
  transition: transform 0.15s ease, background 0.2s ease;
}

.contact-fab__toggle:hover {
  transform: scale(1.06);
  background: #0072e6;
}

.contact-fab__card {
  width: 260px;
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: contact-pop 0.18s ease-out;
}

.contact-fab__card[hidden] {
  display: none;
}

@keyframes contact-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

.contact-fab__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1c1e;
}

.contact-fab__text {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #5f6368;
}

.contact-fab__btn {
  display: block;
  padding: 12px;
  border-radius: 12px;
  background: #0a84ff;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.contact-fab__btn:hover {
  background: #0072e6;
}
