/* ==========================================================================
   豆芽App 官网 — Premium Landing Page
   Figma-style dual-board system with entrance animations
   ========================================================================== */

/* ===== 1. Design Tokens ===== */
:root {
  --bg: #fcf5f5;
  --ink: #111111;
  --muted: rgba(0, 0, 0, 0.42);
  --accent: #06dd08;
  --accent-dark: #03b005;
  --device-stroke: #111111;
  --device-fill: #ffffff;

  /* Canvas sizes (from Figma) */
  --desktop-w: 3701;
  --desktop-h: 1920;
  --mobile-w: 938;
  --mobile-h: 1920;

  /* Dynamic layout offsets */
  --desktop-drop-y: 0px;
  --desktop-cta-drop-y: 0px;
  --desktop-scene-scale: 1;
  --mobile-scene-scale: 1;
  --desktop-footer-right: 42px;
  --desktop-guide-shift: 0px;
  --mobile-guide-shift: 0px;

  /* Easings */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== 2. Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  padding: 20px 16px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== 3. Board / Scene System ===== */
.boards {
  width: 100%;
  display: flex;
  justify-content: center;
}

.board {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  container-type: size;
}

.scene {
  position: absolute;
  inset: 0 auto auto 0;
  transform-origin: top left;
}

/* Desktop Board */
.desktop-board {
  width: min(96vw, 1510px);
  height: calc(100vh - 40px);
  height: calc(100dvh - 40px);
  display: block;
  overflow: visible;
}

.desktop-scene {
  width: calc(var(--desktop-w) * 1px);
  height: calc(var(--desktop-h) * 1px);
  left: 50%;
  transform: scale(var(--desktop-scene-scale)) translateX(-50%);
}

/* Mobile Board */
.mobile-board {
  width: min(calc(100vw - 32px), 430px);
  aspect-ratio: 938 / 1920;
  display: none;
}

.mobile-scene {
  width: calc(var(--mobile-w) * 1px);
  height: calc(var(--mobile-h) * 1px);
  transform: scale(var(--mobile-scene-scale));
}

/* ===== 4. Typography ===== */
.title, .subhead, .cta-text, .footer-text {
  position: absolute;
  margin: 0;
}

.title {
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.subhead {
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

/* ===== 5. Device (Phone Mockup) ===== */
.device {
  --screen-inset: 30px;
  --screen-radius: 84px;
  --island-w: 120px;
  --island-h: 34px;
  --island-top: 16px;
  position: absolute;
  overflow: hidden;
  border: 18px solid var(--device-stroke);
  border-radius: 100px;
  background: var(--device-stroke);
  box-shadow:
    0 2px 20px rgba(0, 0, 0, 0.06),
    0 20px 60px rgba(17, 17, 17, 0.1),
    0 50px 120px rgba(17, 17, 17, 0.06);
}

.device-screen {
  position: absolute;
  inset: var(--screen-inset);
  z-index: 1;
  overflow: hidden;
  border-radius: var(--screen-radius);
  background:
    linear-gradient(180deg, #fdfbf8 0%, #f8f6f3 50%, #fdfbf8 100%);
}

/* Dynamic Island */
.device-screen::before {
  content: "";
  position: absolute;
  top: var(--island-top);
  left: 50%;
  transform: translateX(-50%);
  width: var(--island-w);
  height: var(--island-h);
  background: var(--device-stroke);
  border-radius: 999px;
  z-index: 5;
}

/* For user's real screenshots */
.screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* ===== Mock App UI (In-device screens) ===== */
.mock-app {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  overflow: hidden;
  background: #ffffff;
}

/* --- Home Screen --- */
.mock-home {
  display: flex;
  flex-direction: column;
}

.mock-nav {
  display: flex;
  align-items: center;
  padding: 8% 5% 3%;
  gap: 4%;
  flex-shrink: 0;
}

.mock-nav-title {
  font-size: 6.5cqi;
  font-weight: 700;
  color: #00BB30;
  flex-shrink: 0;
}

.mock-search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1.5px solid #00BB30;
  border-radius: 999px;
  font-size: 3.2cqi;
  color: #999;
  padding-left: 5%;
  overflow: hidden;
  height: 7.5cqi;
}

.mock-search-btn {
  margin-left: auto;
  background: #00BB30;
  color: #fff;
  font-size: 3.2cqi;
  font-weight: 700;
  padding: 0 5%;
  height: 100%;
  display: flex;
  align-items: center;
  border-radius: 0 999px 999px 0;
}

/* Banner Section */
.mock-banner {
  display: flex;
  gap: 3%;
  padding: 0 5% 2%;
  flex-shrink: 0;
}

.mock-banner-card {
  flex: 1;
  border-radius: 2.4cqi;
  overflow: hidden;
}

.mock-banner-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  border-radius: 2.4cqi;
}

.mock-banner-img-2 {
  background: linear-gradient(135deg, #2d1b38 0%, #44215a 40%, #5c2d82 100%);
}

/* Section */
.mock-section {
  padding: 1% 5% 1%;
  flex-shrink: 0;
}

.mock-section-title {
  font-size: 4.5cqi;
  font-weight: 700;
  color: #111;
}

/* Movie List Items */
.mock-movie-item {
  display: flex;
  padding: 2% 5%;
  gap: 4%;
}

.mock-poster {
  width: 22%;
  aspect-ratio: 2/3;
  border-radius: 2cqi;
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #D2691E 100%);
  flex-shrink: 0;
  position: relative;
}

.mock-poster-2 {
  background: linear-gradient(135deg, #b22222 0%, #dc143c 50%, #ff4500 100%);
}

.mock-poster-3 {
  background: linear-gradient(135deg, #2e8b57 0%, #3cb371 50%, #66cdaa 100%);
}

.mock-play-badge {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 4.5cqi;
  height: 4.5cqi;
  background: #00BB30;
  border-radius: 50%;
  color: #fff;
  font-size: 2.5cqi;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-movie-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8cqi;
}

.mock-movie-title {
  font-size: 4cqi;
  font-weight: 600;
  color: #111;
}

.mock-movie-meta {
  font-size: 3cqi;
  color: #888;
}

.mock-movie-rating {
  font-size: 3cqi;
  color: #888;
}

.mock-movie-rating strong {
  color: #FFAC2D;
  font-size: 3.6cqi;
}

.mock-resource-tag {
  font-size: 2.8cqi;
  color: #00BB30;
  font-weight: 600;
}

.mock-resource-waiting {
  color: #FF9800;
}

/* Tab Bar */
.mock-tabbar {
  position: absolute;
  bottom: 3%;
  left: 12%;
  right: 12%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 1.5% 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.mock-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3cqi;
  color: #8E8E93;
}

.mock-tab-active {
  color: #00BB30;
}

.mock-tab-icon {
  font-size: 5cqi;
  line-height: 1;
}

.mock-tab-label {
  font-size: 2.2cqi;
  font-weight: 600;
}

/* --- Detail Screen --- */
.mock-detail {
  display: flex;
  flex-direction: column;
  background: #111;
}

.mock-detail-hero {
  display: flex;
  padding: 14% 6% 4%;
  gap: 5%;
}

.mock-detail-poster {
  width: 30%;
  aspect-ratio: 2/3;
  border-radius: 2cqi;
  background: linear-gradient(135deg, #c2985b 0%, #8b6914 40%, #b8860b 100%);
  flex-shrink: 0;
}

.mock-detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.5cqi;
}

.mock-detail-title {
  font-size: 6cqi;
  font-weight: 700;
  color: #fff;
}

.mock-detail-meta {
  font-size: 3.2cqi;
  color: rgba(255,255,255,0.65);
}

.mock-detail-rating {
  display: flex;
  align-items: center;
  gap: 2cqi;
}

.mock-star {
  color: #FFAC2D;
  font-size: 3.5cqi;
  letter-spacing: 0.5px;
}

.mock-score {
  color: #FFAC2D;
  font-size: 6cqi;
  font-weight: 700;
}

/* Detail Tags */
.mock-detail-tags {
  display: flex;
  gap: 2%;
  padding: 3% 6%;
  flex-wrap: wrap;
}

.mock-tag {
  padding: 1% 3%;
  background: rgba(255,255,255,0.12);
  border-radius: 1cqi;
  color: rgba(255,255,255,0.7);
  font-size: 2.8cqi;
}

.mock-tag-green {
  background: rgba(0,187,48,0.18);
  color: #00BB30;
  font-weight: 600;
}

/* Detail Description */
.mock-detail-desc {
  padding: 3% 6%;
}

.mock-detail-desc .mock-section-title {
  color: #fff;
  font-size: 4cqi;
  margin-bottom: 2%;
}

.mock-desc-text {
  font-size: 3cqi;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* Detail Actions */
.mock-detail-actions {
  display: flex;
  gap: 3%;
  padding: 3% 6%;
}

.mock-btn {
  flex: 1;
  text-align: center;
  padding: 2.5% 0;
  border-radius: 2cqi;
  font-size: 3.5cqi;
  font-weight: 600;
}

.mock-btn-primary {
  background: #00BB30;
  color: #fff;
}

.mock-btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}

/* ===== 6. CTA Area ===== */
.cta-text {
  font-weight: 500;
  line-height: 1.3;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.04em;
  text-align: right;
}

.cta-text-inner {
  display: inline-block;
}

/* Download Bubble */
.download-bubble {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  box-shadow:
    0 8px 30px rgba(6, 221, 8, 0.22),
    0 24px 60px rgba(6, 221, 8, 0.14);
  transition: transform 220ms var(--ease-out-expo),
              box-shadow 220ms ease,
              background 180ms ease;
}

.download-bubble:hover {
  transform: translateY(-8px) scale(1.03);
  background: var(--accent-dark);
  box-shadow:
    0 16px 40px rgba(6, 221, 8, 0.3),
    0 40px 80px rgba(6, 221, 8, 0.18);
}

.download-bubble:active {
  transform: translateY(-2px) scale(0.98);
}

/* Bubble tail */
.download-bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-right: 30px solid var(--accent);
  transform: rotate(-24deg);
  transition: border-right-color 180ms ease;
}

.download-bubble:hover::after {
  border-right-color: var(--accent-dark);
}

/* Breathing glow animation */
.is-loaded .download-bubble {
  animation: bubble-breathe 4s ease-in-out infinite 2s;
}

/* Focus styles */
.download-bubble:focus-visible,
.download-option:focus-visible,
.footer-link:focus-visible,
.dialog-close:focus-visible {
  outline: 4px solid rgba(6, 221, 8, 0.28);
  outline-offset: 4px;
}

/* ===== 7. Guide Arrow ===== */
.guide-arrow {
  position: absolute;
}

.guide-arrow::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 0;
  background: #111;
  transition: height 0.7s var(--ease-out-expo);
}

.guide-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 42px;
  width: 0;
  height: 6px;
  background: #111;
  transition: width 0.6s var(--ease-out-expo) 0.5s;
}

.guide-arrow span {
  position: absolute;
  left: 0;
  bottom: 24px;
  width: 0; height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 32px solid #111;
  opacity: 0;
  transition: opacity 0.3s ease 0.9s;
}

/* Animate in on load */
.is-loaded .guide-arrow::before {
  height: calc(100% - 42px);
}

.is-loaded .guide-arrow::after {
  width: calc(100% - 22px);
}

.is-loaded .guide-arrow span {
  opacity: 1;
}

/* ===== 8. Footer ===== */
.footer-text {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: inherit;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--ink);
}

.footer-link.is-placeholder {
  cursor: default;
}

.footer-link__arrow {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  border-radius: 0.5px;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.footer-link:hover .footer-link__arrow {
  transform: rotate(45deg) translateX(2px);
}

.desktop-footer-fixed {
  display: none;
}

/* ===== 9. Desktop Scene Positions ===== */
.desktop-scene .title {
  left: 104px;
  top: 50px;
  font-size: 151px;
}

.desktop-scene .subhead {
  left: 104px;
  top: 316px;
  font-size: 184px;
}

.desktop-scene .device-back {
  left: 214px;
  top: calc(809px + var(--desktop-drop-y));
  width: 908px;
  height: 1723px;
  z-index: 1;
}

.desktop-scene .device-front {
  left: 841px;
  top: calc(662px + var(--desktop-drop-y));
  width: 908px;
  height: 1723px;
  z-index: 2;
}

.desktop-scene .cta-text {
  top: auto;
  bottom: calc(700px - var(--desktop-cta-drop-y));
  right: 44px;
  width: 220px;
  height: 760px;
  font-size: 106px;
}

.desktop-scene .download-bubble {
  left: 2783px;
  top: auto;
  bottom: calc(55px - var(--desktop-cta-drop-y));
  width: 507px;
  height: 507px;
  font-size: 85px;
}

.desktop-scene .download-bubble::after {
  left: 18px;
  bottom: 18px;
  border-top-width: 18px;
  border-right-width: 30px;
}

.desktop-scene .guide-arrow {
  left: 3449px;
  top: auto;
  bottom: calc(292px - var(--desktop-cta-drop-y));
  width: 152px;
  height: 336px;
  transform: translateX(var(--desktop-guide-shift, 0px));
}

.desktop-scene .footer-dev {
  left: 2206px;
  top: calc(1792px + var(--desktop-drop-y));
  font-size: 35px;
}

.desktop-scene .footer-policy {
  left: 2866px;
  top: calc(1792px + var(--desktop-drop-y));
  font-size: 35px;
}

.desktop-scene .footer-rights {
  left: 3324px;
  top: calc(1792px + var(--desktop-drop-y));
  font-size: 35px;
}

.desktop-scene .footer-icp {
  left: 2206px;
  top: calc(1840px + var(--desktop-drop-y));
  font-size: 30px;
}

/* ===== 10. Mobile Scene Positions & Overrides ===== */
.mobile-scene .device {
  --screen-inset: 14px;
  --screen-radius: 38px;
  --island-w: 64px;
  --island-h: 18px;
  --island-top: 8px;
  border-width: 8px;
  border-radius: 54px;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.05),
    0 16px 44px rgba(17, 17, 17, 0.08);
}

.mobile-scene .title {
  left: 38px;
  top: 63px;
  font-size: 54px;
}

.mobile-scene .subhead {
  left: 38px;
  top: 203px;
  font-size: 72px;
}

.mobile-scene .device-back {
  left: 62px;
  top: 507px;
  width: 443px;
  height: 841px;
  z-index: 1;
}

.mobile-scene .device-front {
  left: 278px;
  top: 397px;
  width: 443px;
  height: 841px;
  z-index: 2;
}

.mobile-scene .cta-text {
  top: 943px;
  right: 47px;
  width: 107px;
  height: 396px;
  font-size: 64px;
}

.mobile-scene .download-bubble {
  left: 494px;
  top: 1418px;
  width: 248px;
  height: 248px;
  font-size: 42px;
}

.mobile-scene .download-bubble::after {
  left: 8px;
  bottom: 10px;
  border-top-width: 10px;
  border-right-width: 16px;
}

.mobile-scene .guide-arrow {
  left: 784px;
  top: 1368px;
  width: 74px;
  height: 164px;
  transform: translateX(var(--mobile-guide-shift, 0px));
}

.mobile-scene .guide-arrow::before {
  width: 3px;
  height: 0;
}

.mobile-scene .guide-arrow::after {
  bottom: 20px;
  width: 0;
  height: 3px;
}

.is-loaded .mobile-scene .guide-arrow::before {
  height: calc(100% - 20px);
}

.is-loaded .mobile-scene .guide-arrow::after {
  width: calc(100% - 10px);
}

.mobile-scene .guide-arrow span {
  bottom: 10px;
  border-top-width: 10px;
  border-bottom-width: 10px;
  border-right-width: 16px;
}

.mobile-scene .footer-dev {
  left: 275px;
  top: 1767px;
  font-size: 24px;
}

.mobile-scene .footer-policy {
  left: 265px;
  top: 1829px;
  font-size: 24px;
}

.mobile-scene .footer-rights {
  left: 556px;
  top: 1829px;
  font-size: 24px;
}

.mobile-scene .footer-icp {
  left: 275px;
  top: 1870px;
  font-size: 20px;
}

/* ===== 11. Download Modal ===== */
.download-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 12, 12, 0.56);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s 0.35s;
}

.download-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.35s ease, visibility 0s;
}

.download-panel {
  width: min(100%, 720px);
  padding: 36px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 36px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  position: relative;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.45s var(--ease-spring), opacity 0.3s ease;
  opacity: 0;
}

.download-modal.is-open .download-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  color: var(--ink);
  font-size: 26px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dialog-close:hover {
  background: rgba(17, 17, 17, 0.12);
  transform: scale(1.08);
}

.download-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.download-desc {
  margin: 0 0 24px;
  font-size: 16px;
  color: rgba(17, 17, 17, 0.56);
  line-height: 1.5;
}

.download-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: stretch;
}

.download-option {
  flex: 1 1 220px;
  min-height: 120px;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.04), rgba(17, 17, 17, 0.02));
  border: 1.5px solid rgba(17, 17, 17, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  transition: transform 220ms var(--ease-out-expo), border-color 180ms ease, box-shadow 220ms ease;
}

.download-option:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 221, 8, 0.36);
  box-shadow: 0 12px 36px rgba(6, 221, 8, 0.1);
}

.download-option strong {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.download-option span {
  display: block;
  font-size: 14px;
  color: rgba(17, 17, 17, 0.5);
  line-height: 1.4;
}

.download-tip {
  min-height: 20px;
  margin-top: 18px;
  font-size: 14px;
  color: rgba(17, 17, 17, 0.5);
}

/* ===== 12. Animations ===== */

/* Phone float */
.is-loaded .device-back {
  animation: device-float 6s ease-in-out infinite 2.5s;
}

.is-loaded .device-front {
  animation: device-float 6s ease-in-out infinite 4s;
}

@keyframes device-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Bubble breathing glow */
@keyframes bubble-breathe {
  0%, 100% {
    box-shadow:
      0 8px 30px rgba(6, 221, 8, 0.22),
      0 24px 60px rgba(6, 221, 8, 0.14);
  }
  50% {
    box-shadow:
      0 12px 40px rgba(6, 221, 8, 0.32),
      0 30px 80px rgba(6, 221, 8, 0.2),
      0 0 120px rgba(6, 221, 8, 0.08);
  }
}

/* ===== 13. Entrance Animations ===== */
.anim-item {
  opacity: 0;
  transform: translateY(50px);
}

.anim-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}

/* ===== 14. Media Queries ===== */

/* Desktop: lock viewport, show fixed footer */
@media (min-width: 901px) {
  html, body {
    height: 100%;
  }

  body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .desktop-scene .footer-text {
    display: none;
  }

  .desktop-footer-fixed {
    position: fixed;
    right: var(--desktop-footer-right);
    bottom: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--muted);
    white-space: nowrap;
  }

  :root {
    --desktop-drop-y: clamp(220px, 20vh, 420px);
    --desktop-cta-drop-y: 0px;
    --desktop-cta-align-delta: calc(231px + var(--desktop-drop-y));
  }
}

@media (min-width: 901px) and (min-height: 1000px) {
  :root {
    --desktop-cta-drop-y: clamp(260px, 16vh, 420px);
  }
}

@media (min-width: 901px) and (min-height: 1250px) {
  :root {
    --desktop-drop-y: clamp(300px, 24vh, 520px);
    --desktop-cta-drop-y: clamp(380px, 24vh, 620px);
  }
}

body.desktop-align-cta {
  --desktop-cta-drop-y: var(--desktop-cta-align-delta);
}

/* Mobile: switch boards */
@media (max-width: 900px) {
  body {
    padding: 16px;
    overflow-x: hidden;
  }

  .desktop-board { display: none; }
  .desktop-footer-fixed { display: none; }
  .mobile-board { display: block; }

  .footer-link__arrow {
    width: 12px;
    height: 12px;
    border-top-width: 2px;
    border-right-width: 2px;
  }
}

@media (max-width: 640px) {
  .download-panel {
    padding: 22px 18px 18px;
    border-radius: 26px;
  }

  .dialog-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .download-option {
    min-height: 100px;
    border-radius: 20px;
  }

  .download-option strong {
    font-size: 20px;
  }
}
