@charset "UTF-8";
:root {
  color-scheme: light;
  --canvas: #f8faff;
  --ink: #080b18;
  --muted: #59657b;
  --placeholder: #9fa8bc;
  --glass: rgba(255, 255, 255, 0.82);
  --glass-heavy: rgba(255, 255, 255, 0.92);
  --rim: rgba(255, 255, 255, 0.9);
  --line: rgba(220, 228, 242, 0.8);
  --line-solid: #dce4f2;
  --pink: #fe2c55;
  --bright-pink: #ff3fa4;
  --violet: #8a35ff;
  --blue: #287cff;
  --cyan: #25f4ee;
  --page-max-width: 1240px;
  --page-gutter: clamp(20px, 4vw, 48px);
  --gradient: linear-gradient(110deg, #ff2f8e 0%, #b635f2 42%, #5a4fff 70%, #168bff 100%);
  --gradient-alt: linear-gradient(
    135deg,
    #fe2c55 0%,
    #ff3fa4 32%,
    #8a35ff 68%,
    #287cff 100%
  );
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  scroll-behavior: smooth;
}

:root[data-theme=dark] {
  color-scheme: dark;
  --canvas: #0d101a;
  --ink: #f5f6fc;
  --muted: #9fa8bc;
  --placeholder: #5d657b;
  --glass: rgba(29, 35, 52, 0.76);
  --glass-heavy: rgba(20, 25, 40, 0.92);
  --rim: rgba(255, 255, 255, 0.12);
  --line: rgba(50, 60, 85, 0.8);
  --line-solid: #323c55;
  --pink: #ff80ad;
  --bright-pink: #ff9dcc;
  --violet: #c299ff;
  --blue: #93beff;
  --cyan: #7af0eb;
  --gradient: linear-gradient(110deg, #ff6c98 0%, #e68bdf 42%, #bf99ff 66%, #7bb2ff 100%);
  --gradient-alt: linear-gradient(
    135deg,
    #ff80ad 0%,
    #e68bdf 32%,
    #bf99ff 68%,
    #7bb2ff 100%
  );
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--canvas);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

button {
  color: inherit;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

img {
  display: block;
  max-width: 100%;
}

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

p {
  color: var(--muted);
  line-height: 1.65;
}

h2 {
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
  font-weight: 800;
  color: var(--ink);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

::selection {
  background: rgba(138, 53, 255, 0.15);
  color: var(--ink);
}

.icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.gradient-text,
.brand {
  background: var(--gradient);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

.wordmark {
  min-height: 44px;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  display: inline-flex;
  align-items: center;
}

.brand-suffix {
  margin-left: 0.08em;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand-dot {
  width: 6px;
  height: 6px;
  margin-left: 4px;
  background: var(--pink);
  border-radius: 50%;
}

.kicker {
  display: block;
  color: var(--violet);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--rim);
  border-radius: 24px;
  box-shadow: 0 20px 40px -15px rgba(40, 124, 255, 0.07), 0 0 25px rgba(254, 44, 85, 0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.primary-button {
  border: 0;
  background: var(--gradient);
  color: white;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 28px -8px rgba(254, 44, 85, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(254, 44, 85, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  opacity: 0.95;
}

.primary-button:active {
  transform: translateY(0);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  background: var(--canvas);
  padding: 14px;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.container {
  width: min(var(--page-max-width), 100% - var(--page-gutter) * 2);
  margin-inline: auto;
}

section[id],
#downloader {
  scroll-margin-top: 100px;
}

/* ── Body background glows ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 680px 520px at 8% 18%, rgba(37, 244, 238, 0.13), transparent 55%), radial-gradient(ellipse 600px 500px at 88% 35%, rgba(254, 44, 85, 0.1), transparent 50%), radial-gradient(ellipse 800px 600px at 60% 80%, rgba(138, 53, 255, 0.08), transparent 55%), radial-gradient(ellipse 500px 400px at 25% 65%, rgba(40, 124, 255, 0.07), transparent 50%);
}

body > * {
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: background 0.3s;
}

[data-theme=dark] .site-header {
  background: rgba(13, 16, 26, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.desktop-nav {
  display: flex;
  gap: 32px;
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--muted);
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  transition: color 0.15s;
  position: relative;
  padding-bottom: 2px;
}

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

.desktop-nav .nav-active {
  color: var(--ink);
  font-weight: 650;
}

.desktop-nav .nav-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.site-footer a:hover {
  color: var(--pink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-solid);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  transition: border-color 0.15s, background 0.15s;
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--muted);
  background: rgba(255, 255, 255, 0.95);
}

[data-theme=dark] .theme-toggle,
[data-theme=dark] .menu-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-solid);
}

.header-cta {
  min-height: 46px;
  border-radius: 15px;
  background: var(--ink);
  color: var(--canvas);
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: opacity 0.15s, transform 0.15s;
}

.header-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  padding-block: 6px 20px;
  background: var(--canvas);
}

.mobile-nav a {
  display: block;
  padding: 16px 0;
  border-top: 1px solid var(--line-solid);
  font-weight: 550;
  font-size: 1rem;
}

.mobile-nav .nav-active {
  color: var(--pink);
  font-weight: 650;
}

/* ── Sections ── */
.section {
  padding-block: 88px;
}

.section-heading {
  text-align: center;
  margin-bottom: 52px;
}

.section-heading p {
  margin-top: 16px;
  font-size: 1.0625rem;
  max-width: 520px;
  margin-inline: auto;
}

.mobile-break {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .desktop-nav {
    gap: 22px;
  }
}
@media (max-width: 800px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
  .header-inner {
    min-height: 68px;
  }
  .header-actions {
    gap: 8px;
  }
  .section {
    padding-block: 64px;
  }
}
@media (max-width: 480px) {
  .mobile-break {
    display: block;
  }
  .section-heading p {
    font-size: 1rem;
  }
  .section {
    padding-block: 52px;
  }
}
/* ══════════════════════════════════════════
   HERO — Idle + Active workspace layout
   Two distinct layout modes driven by:
     [data-downloader-state="idle"]  → two-column with decorative phone
     [data-downloader-state="ready|starting-download|downloading|completed|download-requested|error"]
                                     → compact intro + full result-workspace below
══════════════════════════════════════════ */
/* ── Hero shell ── */
.hero {
  overflow: visible;
  padding-bottom: 72px;
  background: radial-gradient(ellipse 520px 380px at 20% 45%, rgba(37, 244, 238, 0.09), transparent 72%), radial-gradient(ellipse 560px 420px at 78% 45%, rgba(254, 44, 85, 0.08), transparent 72%);
}

/* ── Intro row: heading + form + idle art ── */
.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  min-height: 620px;
  padding-block: 48px;
}

/* ── Hero copy ── */
.hero-copy {
  min-width: 0;
}

/* ── Eyebrow pill ── */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 26px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

[data-theme=dark] .eyebrow-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.eyebrow-spark {
  font-size: 1rem;
  line-height: 1;
}

.eyebrow-dot {
  color: var(--placeholder);
  font-weight: 400;
}

/* ── Headline ── */
h1 {
  font-size: clamp(3.625rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.99;
  color: var(--ink);
}

/* ── Description ── */
.hero-description {
  font-size: 1.0625rem;
  max-width: 560px;
  margin-block: 22px 26px;
  line-height: 1.6;
}

/* ── Downloader inside hero ── */
.downloader {
  width: 100%;
  max-width: 620px;
}

.field-label {
  display: block;
  font-weight: 650;
  font-size: 0.875rem;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

#download-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.field-label,
.availability,
.form-status {
  grid-column: 1/-1;
}

.input-capsule {
  grid-column: 1/-1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(220, 228, 242, 0.9);
  border-radius: 22px;
  padding: 6px 8px 6px 18px;
  min-height: 70px;
  box-shadow: 0 12px 32px -16px rgba(40, 124, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

[data-theme=dark] .input-capsule {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-solid);
}

.input-capsule:focus-within {
  border-color: rgba(138, 53, 255, 0.4);
  box-shadow: 0 12px 32px -16px rgba(138, 53, 255, 0.2), 0 0 0 3px rgba(138, 53, 255, 0.08);
}

.input-icon {
  color: var(--muted);
  display: flex;
  flex-shrink: 0;
}

.input-capsule input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 0;
  padding-block: 14px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9375rem;
}

.input-capsule input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.paste-button {
  border: 1px solid var(--line-solid);
  background: rgba(248, 250, 255, 0.8);
  padding: 8px 16px;
  border-radius: 11px;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.paste-button:hover {
  border-color: var(--violet);
  color: var(--violet);
}

[data-theme=dark] .paste-button {
  background: rgba(255, 255, 255, 0.05);
}

.clear-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--placeholder);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.clear-button:hover {
  background: rgba(254, 44, 85, 0.08);
  color: var(--pink);
}

.analyze-button {
  grid-column: 1/-1;
  justify-self: start;
  margin-top: 4px;
}

.analyze-button .icon {
  width: 20px;
  height: 20px;
}

.availability {
  font-size: 0.8125rem;
  margin-top: 8px;
  max-width: 580px;
  line-height: 1.55;
}

.form-status {
  font-size: 0.9375rem;
  color: var(--pink);
  overflow-wrap: anywhere;
}

.form-status:empty {
  display: none;
}

/* ══════════════════════════════════════════
   IDLE HERO ART — Right column
   Only visible in idle state
══════════════════════════════════════════ */
.hero-art {
  position: relative;
  display: block;
  width: 100%;
  height: 540px;
  isolation: isolate;
  overflow: visible;
}

.phone-stage {
  position: absolute;
  top: 0;
  left: 34%;
  width: 290px;
  min-width: 0;
  z-index: 1;
  padding-bottom: 14px;
  transform: translateX(-50%);
}

/* ── Background glow behind idle phone ── */
.phone-stage::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 40% 40%, rgba(254, 44, 85, 0.2), transparent 50%), radial-gradient(circle at 70% 70%, rgba(138, 53, 255, 0.15), transparent 50%), radial-gradient(circle at 20% 70%, rgba(37, 244, 238, 0.12), transparent 55%);
  pointer-events: none;
  filter: blur(10px);
}

/* ── Shared phone shell (idle + result) ── */
.phone {
  position: relative;
  padding: 7px;
  border: 2.5px solid #b0b2bc;
  border-radius: 46px;
  background: linear-gradient(105deg, #a0a2ad 0%, #f2f0ee 12%, #b3b5bd 35%, #dddfe3 80%, #8f919b);
  box-shadow: 0 24px 44px -16px rgba(16, 23, 42, 0.38), 0 8px 16px rgba(16, 23, 42, 0.1), inset 0 0 0 1px #f4f2f0;
}

.idle-phone {
  transform: rotate(2deg);
  transform-origin: center bottom;
  animation: phone-breathe 7s ease-in-out infinite;
}

/* ── Phone screen ── */
.phone-screen {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  border-radius: 36px;
  border: 3px solid #111316;
  background: #131519;
  color: white;
}

/* ── Top/bottom overlay gradients ── */
.phone-overlay-top {
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.2), transparent);
  pointer-events: none;
  z-index: 2;
}

.phone-overlay-bottom {
  position: absolute;
  inset: auto 0 0 0;
  height: 200px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
  z-index: 2;
}

/* ── Phone scene image (idle only) ── */
.phone-scene {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.phone-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* ── Dynamic Island ── */
.island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 22px;
  background: #0a0b0e;
  border-radius: 999px;
  z-index: 5;
}

.island span {
  position: absolute;
  right: 9px;
  top: 7px;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 40% 40%, #1a2a45, #0c101a);
  border: 1px solid #1e2030;
  border-radius: 50%;
}

/* ── Status bar ── */
.phone-top {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 4;
}

.phone-time {
  font-size: 0.625rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── Decorative social-video action rail ── */
.phone-action-rail {
  position: absolute;
  z-index: 4;
  right: 9px;
  bottom: 56px;
  display: grid;
  justify-items: center;
  gap: 12px;
  pointer-events: none;
}

.phone-action {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.58));
  animation: action-breathe 4.5s ease-in-out infinite;
}

.phone-action:nth-child(2) {
  animation-delay: -1.1s;
}

.phone-action:nth-child(3) {
  animation-delay: -2.2s;
}

.phone-action:nth-child(4) {
  animation-delay: -3.3s;
}

.phone-action svg {
  width: 23px;
  height: 23px;
  overflow: visible;
  fill: currentcolor;
  stroke: currentcolor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-action--comment svg circle {
  fill: #22242b;
  stroke: none;
}

.phone-action--share svg,
.phone-action--sound svg {
  fill: white;
}

.phone-action--sound {
  width: 31px;
  height: 31px;
  margin-top: 3px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(10, 11, 15, 0.72);
}

.phone-action--sound svg {
  width: 17px;
  height: 17px;
}

/* ── Caption area (idle phone only) ── */
.phone-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  z-index: 3;
}

.creator-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.creator-avatar {
  display: block;
  flex: 0 0 28px;
  width: 28px;
}

.creator-avatar img {
  width: 28px;
  height: 28px;
  border: 1.5px solid white;
  border-radius: 50%;
  object-fit: cover;
}

.phone-caption p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.6875rem;
  line-height: 1.35;
  font-weight: 500;
  margin-bottom: 2px;
}

.scene-label {
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Home indicator ── */
.home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 99px;
  z-index: 3;
}

/* ── Physical buttons (idle phone) ── */
.phone-button {
  position: absolute;
  right: -4px;
  top: 130px;
  width: 3px;
  height: 52px;
  border-radius: 2px;
  background: linear-gradient(#f5f3f2, #9b9da8);
}

.phone-volume {
  position: absolute;
  left: -4px;
  width: 3px;
  height: 28px;
  background: linear-gradient(#f5f3f2, #9b9da8);
  border-radius: 2px;
}

.volume-up {
  top: 96px;
}

.volume-down {
  top: 132px;
}

/* ── Pedestal ── */
.phone-pedestal {
  position: relative;
  z-index: -1;
  width: 118%;
  height: 38px;
  margin: 8px 0 0 -9%;
  border-radius: 50%;
  background: linear-gradient(110deg, #decee5, #f5fafb 28%, #cce5e9 52%, #eee7f2 75%, #d4c6e7);
  border: 1px solid #f5f0fc;
  box-shadow: 0 12px 28px -8px rgba(82, 70, 127, 0.28), inset 0 -10px 10px rgba(120, 101, 164, 0.12);
}

/* ── Iridescent ribbon ── */
.iridescent-ribbon {
  position: absolute;
  z-index: -2;
  left: -30px;
  top: 116px;
  width: calc(100% + 60px);
  height: 190px;
  border: 18px solid transparent;
  border-color: #d6d2fa #b0e2e9 #f1c7df #c7c2f5;
  border-radius: 50%;
  transform: rotate(-28deg) skewX(-14deg);
  opacity: 0.48;
  box-shadow: inset 0 1px 3px white;
  pointer-events: none;
}

/* ── Decorative spheres ── */
.art-sphere {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff, #d9dcf9 40%, #a0bad6 80%, #949ab9);
  box-shadow: 0 8px 18px rgba(60, 82, 121, 0.14);
  pointer-events: none;
  z-index: 2;
  animation: sphere-drift 6.5s ease-in-out infinite;
}

.sphere-one {
  left: -14px;
  top: 42px;
}

.sphere-two {
  right: -12px;
  bottom: 82px;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 30% 25%, #fff, #f0d5e5 40%, #bab1e6 80%);
  animation-delay: -3s;
}

/* ── Floating music and TikTok tiles ── */
.music-tile,
.tiktok-tile {
  position: absolute;
  z-index: 8;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--pink);
  background: linear-gradient(120deg, rgba(126, 205, 215, 0.3), rgba(202, 160, 225, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px 14px 20px 14px;
  transform: rotate(8deg);
  box-shadow: 0 8px 20px rgba(60, 82, 121, 0.12);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.music-tile {
  top: 42px;
  left: -28px;
  animation: music-tile-float 7s ease-in-out -2s infinite;
}

.tiktok-tile {
  left: -24px;
  bottom: 70px;
  border-radius: 16px 14px 16px 20px;
  background: rgba(12, 14, 24, 0.88);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 24px rgba(16, 23, 42, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  animation: tiktok-tile-float 7.5s ease-in-out -4s infinite;
}

[data-theme=dark] .music-tile,
[data-theme=dark] .tiktok-tile {
  background: linear-gradient(120deg, rgba(126, 205, 215, 0.15), rgba(202, 160, 225, 0.18));
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme=dark] .tiktok-tile {
  background: rgba(5, 7, 13, 0.9);
}

/* ── Floating quality panel (idle only) ── */
.floating-quality-panel {
  width: 276px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 24px 48px -12px rgba(22, 24, 40, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-side-card {
  position: absolute;
  z-index: 4;
  top: 178px;
  right: -36px;
}

[data-theme=dark] .floating-quality-panel {
  background: rgba(25, 30, 48, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

.fqp-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fqp-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}

.fqp-icon--blue {
  background: rgba(40, 124, 255, 0.12);
  color: var(--blue);
}

.fqp-icon--pink {
  background: rgba(254, 44, 85, 0.1);
  color: var(--pink);
}

.fqp-icon--violet {
  background: rgba(138, 53, 255, 0.1);
  color: var(--violet);
}

.fqp-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.fqp-sub {
  font-size: 0.6875rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   ACTIVE-STATE VISIBILITY RULES
   hide idle decorations, show result workspace
══════════════════════════════════════════ */
.result-workspace {
  display: none;
  /* Scrolls the workspace so its top lands just below the sticky header (96px). */
  scroll-margin-top: 96px;
}

/* Active states: show result workspace, hide idle art column */
.hero[data-downloader-state=ready] .hero-art,
.hero[data-downloader-state=starting-download] .hero-art,
.hero[data-downloader-state=downloading] .hero-art,
.hero[data-downloader-state=completed] .hero-art,
.hero[data-downloader-state=download-requested] .hero-art,
.hero[data-downloader-state=error] .hero-art {
  display: none;
}
.hero[data-downloader-state=ready] .result-workspace,
.hero[data-downloader-state=starting-download] .result-workspace,
.hero[data-downloader-state=downloading] .result-workspace,
.hero[data-downloader-state=completed] .result-workspace,
.hero[data-downloader-state=download-requested] .result-workspace,
.hero[data-downloader-state=error] .result-workspace {
  display: block;
}
.hero[data-downloader-state=ready] .hero-intro,
.hero[data-downloader-state=starting-download] .hero-intro,
.hero[data-downloader-state=downloading] .hero-intro,
.hero[data-downloader-state=completed] .hero-intro,
.hero[data-downloader-state=download-requested] .hero-intro,
.hero[data-downloader-state=error] .hero-intro {
  grid-template-columns: 1fr;
  gap: 0;
  padding-bottom: 20px;
}
.hero[data-downloader-state=ready] .hero-description,
.hero[data-downloader-state=starting-download] .hero-description,
.hero[data-downloader-state=downloading] .hero-description,
.hero[data-downloader-state=completed] .hero-description,
.hero[data-downloader-state=download-requested] .hero-description,
.hero[data-downloader-state=error] .hero-description {
  max-width: 600px;
}

/* Analyzing state: collapse intro heading, keep form prominent */
.hero[data-downloader-state=validating] .hero-art,
.hero[data-downloader-state=analyzing] .hero-art {
  display: none;
}
.hero[data-downloader-state=validating] .hero-intro,
.hero[data-downloader-state=analyzing] .hero-intro {
  grid-template-columns: 1fr;
  gap: 0;
  padding-bottom: 32px;
}

/* ══════════════════════════════════════════
   RESULT WORKSPACE — Desktop two-column
══════════════════════════════════════════ */
.result-workspace {
  padding-block: 0 0;
}

.result-workspace-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: center;
  max-width: 880px;
  margin-inline: auto;
  padding-block: 40px 72px;
  position: relative;
}

/* Shared ambient glow behind both phone and panel */
.result-workspace-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 48px;
  background: radial-gradient(ellipse 400px 300px at 20% 50%, rgba(254, 44, 85, 0.07), transparent 70%), radial-gradient(ellipse 400px 300px at 80% 50%, rgba(138, 53, 255, 0.07), transparent 70%), radial-gradient(ellipse 600px 400px at 50% 50%, rgba(40, 124, 255, 0.04), transparent 70%);
  pointer-events: none;
}

/* ── Result preview column (phone) ── */
/* top matches scroll-margin-top so the phone never slides under the header */
.result-preview-column {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Result phone ── */
.result-phone {
  width: 280px;
  max-width: 100%;
  transform: rotate(-0.5deg);
  transform-origin: center bottom;
  transition: transform 0.3s ease;
}

.result-phone .phone-screen {
  aspect-ratio: 9/16;
  border-radius: 40px;
}

/* Phone side button for result phone */
.phone-side-button {
  position: absolute;
  right: -4px;
  top: 120px;
  width: 3px;
  height: 52px;
  border-radius: 2px;
  background: linear-gradient(#f5f3f2, #9b9da8);
}

.result-volume-up {
  top: 88px;
}

.result-volume-down {
  top: 124px;
}

/* Subtle glow beneath result phone */
.result-phone-glow {
  width: 220px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(138, 53, 255, 0.2), transparent 70%);
  margin-top: -8px;
  filter: blur(8px);
}

/* Analyzing shimmer overlay */
.phone-analyzing-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(35, 25, 70, 0.1), rgba(145, 125, 215, 0.2));
  opacity: 0;
  transition: opacity 0.3s;
}

.hero[data-downloader-state=analyzing] .phone-analyzing-overlay,
.hero[data-downloader-state=validating] .phone-analyzing-overlay {
  opacity: 1;
  animation: preview-breathe 1.2s ease-in-out infinite alternate;
}

@keyframes preview-breathe {
  to {
    opacity: 0.45;
  }
}
/* ══════════════════════════════════════════
   ANALYZED PHONE PREVIEW
══════════════════════════════════════════ */
.analyzed-phone {
  position: absolute;
  inset: 0;
  z-index: 3;
}

#result-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.result-preview-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 64px 16px 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.preview-play {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 8px;
  opacity: 0.85;
  pointer-events: none;
}

.preview-meta {
  display: grid;
  gap: 3px;
}

.preview-creator {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.preview-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-duration {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.7);
}

.preview-unavailable-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

#preview-creator:empty,
#preview-title:empty,
#preview-duration:empty,
#preview-unavailable:empty {
  display: none;
}

/* ── Animations ── */
@keyframes phone-breathe {
  0%, 100% {
    transform: translateY(0) rotate(2deg);
  }
  50% {
    transform: translateY(-5px) rotate(1.5deg);
  }
}
@keyframes music-tile-float {
  0%, 100% {
    transform: translateY(0) rotate(8deg);
  }
  50% {
    transform: translateY(-8px) rotate(4deg);
  }
}
@keyframes tiktok-tile-float {
  0%, 100% {
    transform: translateY(0) rotate(-7deg);
  }
  50% {
    transform: translateY(7px) rotate(-3deg);
  }
}
@keyframes sphere-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(3px, -7px, 0);
  }
}
@keyframes action-breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (768–1179px)
══════════════════════════════════════════ */
@media (max-width: 1179px) {
  .hero-intro {
    grid-template-columns: minmax(0, 1.06fr) minmax(390px, 0.94fr);
    gap: 32px;
    min-height: 590px;
    padding-block: 42px;
  }
  h1 {
    font-size: clamp(3.125rem, 5.2vw, 3.75rem);
  }
  .hero-art {
    height: 500px;
  }
  .phone-stage {
    width: 260px;
    left: 40%;
  }
  .floating-quality-panel {
    width: 240px;
    padding: 17px;
  }
  .hero-side-card {
    top: 165px;
  }
  .result-workspace-inner {
    grid-template-columns: 260px 1fr;
    gap: 24px;
    max-width: 780px;
  }
  .result-phone {
    width: 240px;
    transform: rotate(-0.5deg);
  }
}
@media (max-width: 1100px) {
  .hero-side-card {
    display: none;
  }
}
/* ══════════════════════════════════════════
   RESPONSIVE — COMPACT TABLET / LARGE MOBILE (600–767px)
══════════════════════════════════════════ */
@media (max-width: 767px) {
  .hero {
    padding-bottom: 52px;
  }
  .hero-intro {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
    padding-block: 40px 28px;
  }
  .hero-copy {
    text-align: center;
    max-width: 600px;
    margin-inline: auto;
  }
  .hero-description {
    margin-inline: auto;
  }
  .downloader {
    margin-inline: auto;
    text-align: left;
    max-width: 540px;
  }
  .analyze-button {
    justify-self: stretch;
    width: 100%;
  }
  .hero-art {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 6px 20px 16px;
  }
  .phone-stage {
    width: 260px;
  }
  .hero-side-card {
    display: none;
  }
  .result-workspace-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 440px;
    margin-inline: auto;
    padding-block: 32px 56px;
  }
  .result-preview-column {
    position: static;
    align-items: center;
  }
  /* No rotation on mobile */
  .result-phone {
    width: 220px;
    transform: none;
  }
}
/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-intro {
    gap: 28px;
    padding-top: 24px;
  }
  .hero-copy {
    text-align: left;
  }
  .eyebrow-pill {
    font-size: 0.8125rem;
    margin-bottom: 20px;
  }
  h1 {
    font-size: clamp(2.5rem, 11vw, 2.875rem);
    line-height: 1.02;
  }
  .hero-description {
    font-size: 1rem;
    margin-block: 18px 22px;
  }
  .input-icon {
    display: none;
  }
  .input-capsule {
    padding-left: 14px;
    gap: 6px;
  }
  .input-capsule input {
    font-size: 16px; /* prevents iOS zoom */
  }
  .phone-stage {
    width: 260px;
  }
  .iridescent-ribbon {
    left: -20px;
    width: calc(100% + 40px);
  }
  .sphere-one {
    left: -12px;
  }
  .sphere-two {
    right: -12px;
  }
  .result-phone {
    width: 210px;
    transform: none;
  }
  .result-workspace-inner {
    padding-block: 24px 44px;
  }
}
/* ══════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .idle-phone,
  .music-tile {
    animation: none;
  }
  .tiktok-tile,
  .art-sphere,
  .phone-action {
    animation: none;
  }
  .phone-analyzing-overlay {
    animation: none;
  }
  .result-phone {
    transition: none;
  }
}
/* ══════════════════════════════════════════
   FEATURE GRID
══════════════════════════════════════════ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -8px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -18px rgba(40, 124, 255, 0.12), 0 0 25px rgba(254, 44, 85, 0.06);
}

.feature-card h3 {
  margin-block: 18px 10px;
  font-size: 1.0625rem;
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.icon-well {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.icon-well .icon {
  width: 22px;
  height: 22px;
}

.pink {
  color: var(--pink);
  background: rgba(254, 44, 85, 0.09);
}

.blue {
  color: var(--blue);
  background: rgba(40, 124, 255, 0.09);
}

.violet {
  color: var(--violet);
  background: rgba(138, 53, 255, 0.09);
}

.cyan {
  color: #0e7b84;
  background: rgba(37, 244, 238, 0.12);
}

[data-theme=dark] .cyan {
  color: #5ae0db;
}

/* ══════════════════════════════════════════
   STEPS SECTION
══════════════════════════════════════════ */
.steps-section {
  background: radial-gradient(ellipse 600px 400px at 5% 50%, rgba(40, 124, 255, 0.06), transparent 60%), radial-gradient(ellipse 500px 400px at 95% 50%, rgba(138, 53, 255, 0.06), transparent 60%), rgba(248, 250, 255, 0.6);
  border-block: 1px solid var(--line-solid);
}

[data-theme=dark] .steps-section {
  background: rgba(255, 255, 255, 0.02);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-card {
  padding: 28px 24px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-header {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-art {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 24px;
  order: -1;
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.06) 0%, rgba(138, 53, 255, 0.08) 100%);
}

.step-grid li:nth-child(2) .step-art {
  background: linear-gradient(135deg, rgba(138, 53, 255, 0.06) 0%, rgba(40, 124, 255, 0.08) 100%);
}

.step-grid li:nth-child(3) .step-art {
  background: linear-gradient(135deg, rgba(40, 124, 255, 0.06) 0%, rgba(37, 244, 238, 0.08) 100%);
}

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

.step-number {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--pink);
  margin-bottom: 14px;
  line-height: 1;
}

.step-grid li:nth-child(2) .step-number {
  color: var(--violet);
}

.step-grid li:nth-child(3) .step-number {
  color: var(--blue);
}

.step-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════
   FAQ SECTION
══════════════════════════════════════════ */
.faq-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 100px;
}

.faq-intro p {
  margin-top: 18px;
  font-size: 1.0625rem;
}

.faq-list {
  border-radius: 24px;
  overflow: hidden;
  padding: 4px 0;
}

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

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 18px 28px;
  font-weight: 650;
  font-size: 0.9375rem;
  list-style: none;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
}

.faq-item summary:hover {
  background: rgba(138, 53, 255, 0.03);
}

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

.faq-plus {
  font-size: 22px;
  font-weight: 300;
  color: var(--violet);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  line-height: 1;
}

.faq-item[open] > summary .faq-plus {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 28px 22px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════ */
.cta-section {
  padding-bottom: 88px;
}

.cta-panel {
  position: relative;
  text-align: center;
  padding: 72px 32px;
  border-radius: 32px;
  overflow: hidden;
}

.cta-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.cta-orb--pink {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(254, 44, 85, 0.18), transparent 70%);
  top: -100px;
  left: -80px;
}

.cta-orb--blue {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(40, 124, 255, 0.14), transparent 70%);
  bottom: -100px;
  right: -80px;
}

.cta-panel .kicker {
  display: block;
  margin-bottom: 16px;
}

.cta-panel h2 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  position: relative;
  z-index: 1;
}

.cta-panel p {
  max-width: 460px;
  margin: 20px auto 32px;
  font-size: 1.0625rem;
  position: relative;
  z-index: 1;
}

.cta-button {
  position: relative;
  z-index: 1;
  min-height: 56px;
  padding: 16px 36px;
  font-size: 1.0625rem;
  box-shadow: 0 12px 36px -8px rgba(254, 44, 85, 0.5), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cta-button:hover {
  box-shadow: 0 18px 48px -8px rgba(254, 44, 85, 0.6), 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  padding-block: 52px 28px;
  border-top: 1px solid var(--line-solid);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 240px;
  line-height: 1.6;
}

.footer-nav-heading {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-nav a,
.footer-dmca a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}

.footer-nav a:hover {
  color: var(--pink);
}

.footer-legal {
  font-size: 0.875rem;
}

.footer-legal p {
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-top: 4px;
}

.footer-dmca {
  margin-top: 12px !important;
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid var(--line-solid);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--muted);
  font-size: 0.8125rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   PRIVACY ART
══════════════════════════════════════════ */
.privacy-art {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(130deg, #e9dcfa, #d9e4f7);
  color: #7537aa;
  aspect-ratio: 4/3;
  border-radius: 16px;
  margin-bottom: 22px;
}

.privacy-art .icon {
  width: 64px;
  height: 64px;
}

.privacy-art span {
  font-weight: 600;
  font-size: 0.875rem;
}

/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-grid {
    gap: 20px;
  }
  .faq-section {
    gap: 48px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
}
@media (max-width: 800px) {
  .faq-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-intro {
    position: static;
    text-align: center;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-bottom p {
    order: 3;
    width: 100%;
  }
  .cta-section {
    padding-bottom: 64px;
  }
}
@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feature-card {
    padding: 22px 20px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 8px 16px;
  }
  .feature-card .feature-art {
    grid-column: 1/-1;
    margin-bottom: 12px;
    aspect-ratio: 2/1;
  }
  .feature-card .privacy-art {
    grid-column: 1/-1;
    aspect-ratio: 2/1;
  }
  .feature-card .icon-well {
    grid-row: 2/4;
  }
  .feature-card h3 {
    grid-row: 2;
    margin: 0;
    align-self: center;
  }
  .feature-card p {
    grid-column: 2;
    font-size: 0.875rem;
  }
  .step-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .step-number {
    font-size: 2rem;
  }
  .cta-panel {
    padding: 52px 24px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .footer-legal {
    grid-column: 1/-1;
  }
}
@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}
/* ══════════════════════════════════════════
   IMAGERY — supplementary overrides
   (core phone styles are in _hero.scss)
══════════════════════════════════════════ */
/* Feature and step art images */
.feature-art,
.step-art {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 22px;
}

.feature-art img,
.step-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-art img {
  transform: scale(1.04);
}

/* ══════════════════════════════════════════
   DOWNLOADER STATE CONTROLS
   Note: .format-option and quality rows are defined in _result.scss
══════════════════════════════════════════ */
.clear-button,
.cancel-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line-solid);
  background: var(--canvas);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}

.cancel-button {
  grid-column: 1/-1;
  justify-self: start;
}

.analyzing-indicator {
  grid-column: 1/-1;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1.6;
  padding: 16px 20px;
  border: 1px solid var(--line-solid);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(12px);
}

.analyzing-spinner {
  flex: 0 0 22px;
  height: 22px;
  border: 3px solid var(--line-solid);
  border-top-color: var(--violet);
  border-right-color: var(--pink);
  border-radius: 50%;
  animation: analyze-spin 0.85s linear infinite;
}

@keyframes analyze-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ── Download button override ── */
.download-button {
  margin-top: 0;
  width: 100%;
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .input-capsule input {
    font-size: 16px;
  }
  .download-button,
  .analyze-button {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .input-capsule {
    flex-wrap: wrap;
    padding: 10px 12px;
    min-height: auto;
  }
  .input-capsule input {
    flex-basis: 100%;
    width: 100%;
    padding-block: 10px;
  }
  .paste-button,
  .clear-button {
    flex: 1;
  }
  .cancel-button {
    width: 100%;
    justify-self: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .analyzing-spinner {
    animation: none;
  }
}
/* ══════════════════════════════════════════════════════════
   RESULT PANEL — Compact premium glass card
   Reference: the floating panel beside the phone mockup.
   Width: 440-500px desktop; stacks below phone on mobile.
   All states live inside one card — no jumps, no reflow.
══════════════════════════════════════════════════════════ */
/* ── Panel shell ── */
.result-panel {
  width: 100%;
  padding: 24px 26px 26px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 28px 70px -8px rgba(76, 59, 150, 0.16), 0 8px 24px -4px rgba(29, 39, 74, 0.08), inset 0 1.5px 1px rgb(255, 255, 255);
  overflow: visible;
}

[data-theme=dark] .result-panel {
  background: rgba(18, 22, 40, 0.82);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px -8px rgba(0, 0, 0, 0.4), 0 8px 24px -4px rgba(0, 0, 0, 0.24), inset 0 1.5px 1px rgba(255, 255, 255, 0.06);
}

/* ══════════════════════════════════════════════════════════
   PERSISTENT MEDIA HEADER
   Creator name · mini thumbnail · title · duration
   Stays visible across ready / downloading / completed / error
══════════════════════════════════════════════════════════ */
.rp-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(220, 228, 242, 0.6);
}

[data-theme=dark] .rp-header {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

/* Mini thumbnail */
.rp-thumb-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(138, 53, 255, 0.08);
  border: 1px solid rgba(220, 228, 242, 0.6);
  position: relative;
}

[data-theme=dark] .rp-thumb-wrap {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.rp-mini-thumb {
  width: 80px;
  height: 56px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Creator + copy stack */
.rp-header-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rp-creator-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.rp-creator {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--violet);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.rp-creator:empty {
  display: none;
}

.rp-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.018em;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rp-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  flex-wrap: wrap;
}

.rp-duration {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
}

.rp-duration:empty {
  display: none;
}

.rp-format-badge {
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--blue);
  background: rgba(40, 124, 255, 0.1);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   READY STATE — status badge + quality tiles + download btn
══════════════════════════════════════════════════════════ */
/* Status badge row */
.rp-status-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.result-success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: -0.005em;
  background: rgba(16, 185, 129, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Section label */
.rp-section-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  padding: 0;
}

/* Fieldset reset */
.rp-format-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}

/* Compact quality tile grid */
.rp-tile-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-tile-grid--extra {
  margin-top: 8px;
}

/* Single quality tile — label wraps the radio */
.format-option {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1.5px solid rgba(220, 228, 242, 0.9);
  border-radius: 12px;
  cursor: pointer;
  background: rgba(248, 250, 255, 0.7);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  min-width: 0;
  flex-shrink: 0;
  user-select: none;
}

[data-theme=dark] .format-option {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
}

.format-option:hover {
  border-color: rgba(138, 53, 255, 0.4);
  background: rgba(138, 53, 255, 0.04);
}

.format-option input[type=radio] {
  /* visually hidden but accessible */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.format-option:has(input:checked) {
  border-color: var(--violet);
  border-width: 2px;
  background: rgba(138, 53, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(138, 53, 255, 0.08);
}

.format-option:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.format-option:has(input:disabled) {
  pointer-events: none;
  opacity: 0.6;
}

/* Tile text block */
.quality-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.quality-text strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.2;
}

.format-option:has(input:checked) .quality-text strong {
  color: var(--violet);
}

.quality-detail {
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* Best badge */
.quality-badge {
  font-size: 0.5625rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(40, 124, 255, 0.1);
  color: var(--blue);
  letter-spacing: 0.04em;
  white-space: nowrap;
  align-self: flex-start;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Selected checkmark */
.selected-indicator {
  display: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--violet);
  align-self: flex-start;
}

.format-option:has(input:checked) .selected-indicator {
  display: block;
}

/* More options disclosure */
#more-formats {
  margin-top: 8px;
}

.rp-more-summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding-block: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--violet);
  cursor: pointer;
  list-style: none;
  gap: 5px;
}

.rp-more-summary::before {
  content: "+";
  font-size: 0.9375rem;
  font-weight: 700;
  width: 18px;
  text-align: center;
}

#more-formats[open] .rp-more-summary::before {
  content: "−";
}

/* ── Primary download / save button ── */
.rp-dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 16px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(108deg, #e62c73 0%, #8249ec 50%, #386fe1 100%);
  box-shadow: 0 10px 30px -8px rgba(226, 44, 115, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rp-dl-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(226, 44, 115, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.rp-dl-btn:active:not(:disabled) {
  transform: translateY(0);
}

.rp-dl-btn:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

/* ── Ghost secondary button ── */
.rp-ghost-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 9px;
  padding: 10px 16px;
  border: 1.5px solid rgba(220, 228, 242, 0.9);
  background: transparent;
  border-radius: 13px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.rp-ghost-btn:hover {
  border-color: var(--violet);
  background: rgba(138, 53, 255, 0.04);
}

[data-theme=dark] .rp-ghost-btn {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Helper text */
.rp-helper {
  margin-top: 12px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--placeholder);
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   PROGRESS STATE
   Compact integrated progress — no raw bytes, clean metrics
══════════════════════════════════════════════════════════ */
.rp-progress {
  padding: 0;
}

.rp-progress-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.rp-prog-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

/* Gradient spinner */
.rp-prog-spinner {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(138, 53, 255, 0.15);
  border-top-color: var(--violet);
  border-right-color: var(--pink);
  animation: rp-spin 0.85s linear infinite;
  display: block;
}

@keyframes rp-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Quality label during progress */
.rp-prog-quality {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
}

/* Progress track — custom styled, wraps native <progress> */
.rp-prog-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(138, 53, 255, 0.1);
  margin-bottom: 10px;
}

/* Style the native <progress> element — keep for accessibility */
#download-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* hidden visually; accessible value remains */
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
}

/* Custom visual fill (updated by CSS custom property via JS) */
.rp-prog-fill {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pink) 0%, var(--violet) 60%, var(--blue) 100%);
  transform-origin: left center;
  transform: scaleX(var(--rp-progress, 0));
  transition: transform 0.3s ease;
}

/* Indeterminate shimmer when no value */
.rp-prog-track[data-indeterminate=true] .rp-prog-fill {
  transform: scaleX(1);
  background: linear-gradient(90deg, transparent 0%, rgba(138, 53, 255, 0.5) 30%, rgba(254, 44, 85, 0.5) 60%, transparent 100%);
  background-size: 200% 100%;
  animation: rp-shimmer 1.4s ease-in-out infinite;
}

@keyframes rp-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/* Progress metrics row — clean formatted values */
.rp-prog-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 0.8125rem;
  color: var(--muted);
  min-height: 20px;
}

.rp-prog-metrics p {
  margin: 0;
  line-height: 1;
  color: var(--muted);
}

/* Compact cancel button */
.rp-cancel-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 20px;
  border: 1.5px solid rgba(220, 228, 242, 0.9);
  background: transparent;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.rp-cancel-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* ══════════════════════════════════════════════════════════
   COMPLETED STATE
══════════════════════════════════════════════════════════ */
.rp-completed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.rp-done-icon {
  flex-shrink: 0;
  display: flex;
}

.rp-done-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

.rp-done-detail {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 3px;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.rp-done-size {
  margin-bottom: 14px;
}

.rp-completed .rp-dl-btn {
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════
   ERROR STATE
══════════════════════════════════════════════════════════ */
.rp-error-header {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 8px;
}

.rp-error-icon {
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
}

.rp-error-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

.rp-error-msg {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 14px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   FORM STATE COLORS (error status message in the input form)
══════════════════════════════════════════════════════════ */
.downloader .form-status {
  color: var(--muted);
}

.downloader[data-state=error] .form-status {
  color: var(--pink);
}

[data-state=error] .form-status {
  border-left: 3px solid var(--pink);
  padding: 12px 16px;
  background: rgba(254, 44, 85, 0.04);
  border-radius: 0 12px 12px 0;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 767px)
══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .result-panel {
    padding: 20px 20px 22px;
    border-radius: 26px;
  }
  .rp-thumb-wrap,
  .rp-mini-thumb {
    width: 68px;
    height: 48px;
  }
  .rp-title {
    font-size: 0.875rem;
  }
  .rp-dl-btn {
    min-height: 50px;
    font-size: 1rem;
    border-radius: 14px;
  }
}
/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 480px)
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .result-panel {
    padding: 18px 16px 20px;
    border-radius: 24px;
  }
  .rp-header {
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }
  .rp-tile-grid {
    gap: 7px;
  }
  .format-option {
    padding: 7px 11px;
    border-radius: 10px;
  }
  .quality-text strong {
    font-size: 0.8125rem;
  }
  .quality-detail {
    font-size: 0.625rem;
  }
  .rp-dl-btn {
    min-height: 48px;
    border-radius: 13px;
  }
  .rp-ghost-btn {
    min-height: 42px;
    font-size: 0.8125rem;
  }
}
/* ══════════════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .rp-prog-spinner {
    animation: none;
    border-top-color: var(--violet);
    border-right-color: var(--violet);
    opacity: 0.6;
  }
  .rp-prog-fill {
    transition: none;
  }
  .rp-prog-track[data-indeterminate=true] .rp-prog-fill {
    animation: none;
    opacity: 0.4;
  }
  .rp-dl-btn:hover:not(:disabled) {
    transform: none;
  }
}
/* Luminous lower-page composition; decorations stay outside the content grid. */
.landing-showcase {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: 20px 60px;
  background: radial-gradient(ellipse at 0% 18%, rgba(238, 153, 255, 0.16), transparent 38%), radial-gradient(ellipse at 100% 43%, rgba(133, 202, 255, 0.17), transparent 38%), radial-gradient(ellipse at 50% 60%, rgba(206, 192, 255, 0.12), transparent 55%);
}
.landing-showcase > .container,
.landing-showcase .steps-section > .container {
  position: relative;
  z-index: 1;
  width: min(1120px, 100% - 80px);
}
.landing-showcase .section {
  padding-block: 32px;
}
.landing-showcase .section-heading {
  margin-bottom: 24px;
}
.landing-showcase .section-heading h2 {
  margin-top: 12px;
  font-size: clamp(1.75rem, 2.65vw, 2.4rem);
  letter-spacing: -0.04em;
  line-height: 1.18;
}
.landing-showcase .section-heading p {
  max-width: 760px;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.5;
}
.landing-showcase .glass-card {
  border-color: var(--rim);
  box-shadow: 0 12px 36px -14px rgba(94, 113, 189, 0.18);
}
.landing-showcase .feature-grid {
  gap: 20px;
}
.landing-showcase .feature-card {
  display: block;
  text-align: center;
  padding: 26px 20px 24px;
  border-radius: 24px;
  transform: none;
}
.landing-showcase .feature-card .icon-well {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
}
.landing-showcase .feature-card .icon-well .icon {
  width: 30px;
  height: 30px;
}
.landing-showcase .feature-card h3 {
  font-size: 1.125rem;
  margin: 0 0 6px;
}
.landing-showcase .feature-card p {
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 215px;
  margin-inline: auto;
}
.landing-showcase .steps-section {
  background: transparent;
  border: 0;
}
.landing-showcase .step-grid {
  gap: 44px;
}
.landing-showcase .step-card {
  position: relative;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  border-radius: 24px;
  min-width: 0;
}
.landing-showcase .step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -27px;
  top: calc(50% - 6px);
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  transform: rotate(45deg);
}
.landing-showcase .step-card h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}
.landing-showcase .step-card p {
  font-size: 0.875rem;
  line-height: 1.5;
}
.landing-showcase .step-header {
  position: relative;
  margin: 0;
  flex-shrink: 0;
}
.landing-showcase .step-number {
  position: absolute;
  top: -12px;
  left: -11px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff74ba, #f22178);
  border: 2px solid var(--rim);
  color: white;
  font-size: 0.875rem;
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  -webkit-text-fill-color: white;
}
.landing-showcase .step-card:nth-child(2) .step-number {
  background: linear-gradient(135deg, #57bcff, #075bff);
}
.landing-showcase .step-card:nth-child(3) .step-number {
  background: linear-gradient(135deg, #b493ff, #752bff);
}
.landing-showcase .faq-section {
  gap: 36px;
  padding-top: 32px;
  align-items: start;
}
.landing-showcase .faq-intro {
  position: static;
}
.landing-showcase .faq-intro h2 {
  margin-top: 14px;
  font-size: clamp(1.75rem, 2.6vw, 2.3rem);
}
.landing-showcase .faq-intro p {
  margin-top: 12px;
  font-size: 1rem;
}
.landing-showcase .faq-item summary {
  min-height: 58px;
  padding: 16px 22px;
}
.landing-showcase .cta-section {
  padding-block: 12px 0;
}
.landing-showcase .cta-panel {
  padding: 28px 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}
.landing-showcase .cta-panel h2 {
  margin: 0 0 6px;
  font-size: 1.375rem;
  letter-spacing: -0.035em;
}
.landing-showcase .cta-panel p {
  max-width: none;
  margin: 0;
  font-size: 0.9375rem;
}
.landing-showcase .cta-button {
  flex-shrink: 0;
  margin: 0;
}

.showcase-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(138, 53, 255, 0.07);
  color: #7540cb;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 550;
}

.showcase-decoration {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.showcase-art {
  position: absolute;
  top: 80px;
  width: clamp(220px, 50vw - 500px, 360px);
  filter: drop-shadow(0 15px 22px rgba(119, 106, 196, 0.08));
}
.showcase-art img {
  width: 100%;
  height: auto;
}

.showcase-art--left {
  left: -65px;
}

.showcase-art--right {
  right: -65px;
  top: 130px;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--glass-heavy);
  border: 1px solid rgba(138, 53, 255, 0.1);
  color: var(--violet);
  box-shadow: 0 5px 12px rgba(138, 53, 255, 0.08);
}
.step-icon .icon {
  width: 30px;
  height: 30px;
}

.step-card:first-child .step-icon {
  color: var(--muted);
}

.step-card:nth-child(2) .step-icon {
  color: var(--blue);
}

.moment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.moment-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 24px;
}

.moment-image {
  display: block;
  flex: 0 0 105px;
  height: 115px;
  border-radius: 16px;
  overflow: hidden;
}
.moment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moment-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.moment-title h3 {
  font-size: 1rem;
}
.moment-title .icon-well {
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 50%;
}
.moment-title .icon-well .icon {
  width: 20px;
  height: 20px;
}

.moment-copy p {
  font-size: 0.875rem;
  line-height: 1.5;
}

.capability-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 22px 20px;
  border-radius: 24px;
  margin-top: 24px;
}
.capability-strip > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.capability-strip > div + div {
  border-left: 1px solid var(--line);
}
.capability-strip .icon-well {
  margin: 0;
  border-radius: 50%;
}
.capability-strip strong {
  display: block;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.capability-strip p {
  font-size: 0.875rem;
  line-height: 1.5;
}

[data-theme=dark] .showcase-label {
  background: rgba(177, 135, 255, 0.12);
  color: #d3b4ff;
}
[data-theme=dark] .showcase-art {
  opacity: 0.8;
}

@media (max-width: 1250px) {
  .showcase-decoration {
    display: none;
  }
  .landing-showcase .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .moment-card {
    flex-direction: column;
    align-items: stretch;
  }
  .moment-image {
    flex-basis: auto;
    height: 170px;
  }
}
@media (max-width: 900px) {
  .landing-showcase .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .landing-showcase .step-grid {
    gap: 14px;
  }
  .landing-showcase .step-card {
    flex-direction: column;
    align-items: start;
    gap: 14px;
    padding: 24px 20px;
  }
  .landing-showcase .step-card::after {
    display: none;
  }
  .landing-showcase .cta-panel {
    flex-direction: column;
    text-align: center;
  }
  .moment-title {
    gap: 7px;
  }
  .capability-strip {
    padding: 20px 12px;
  }
  .capability-strip > div {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .landing-showcase {
    padding-block: 0 40px;
  }
  .landing-showcase > .container,
  .landing-showcase .steps-section > .container {
    width: calc(100% - 40px);
  }
  .landing-showcase .section {
    padding-block: 28px;
  }
  .landing-showcase .section-heading p {
    font-size: 0.9375rem;
  }
  .landing-showcase .feature-grid {
    gap: 12px;
  }
  .landing-showcase .feature-card {
    padding: 22px 14px;
    border-radius: 20px;
  }
  .landing-showcase .feature-card h3 {
    font-size: 1rem;
  }
  .landing-showcase .feature-card p {
    font-size: 0.875rem;
  }
  .landing-showcase .step-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .landing-showcase .step-card {
    flex-direction: row;
    align-items: center;
    padding: 24px;
    gap: 20px;
  }
  .landing-showcase .faq-section {
    gap: 24px;
  }
  .landing-showcase .cta-panel {
    padding: 28px 24px;
  }
  .landing-showcase .cta-button {
    width: 100%;
  }
  .moment-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .moment-card {
    flex-direction: row;
    align-items: center;
  }
  .moment-image {
    flex: 0 0 104px;
    height: 120px;
  }
  .capability-strip {
    grid-template-columns: 1fr;
    padding: 8px 24px;
  }
  .capability-strip > div {
    flex-direction: row;
    justify-content: start;
    padding-block: 18px;
    gap: 16px;
    text-align: left;
  }
  .capability-strip > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
/* Fetching capsule and source-selection panel, inspired by the supplied glass UI. */
.analyzing-indicator {
  padding: 24px;
  gap: 22px;
  border-radius: 24px;
  border: 1px solid var(--rim);
  background: linear-gradient(110deg, rgba(183, 161, 255, 0.12), rgba(172, 228, 255, 0.12)), var(--glass-heavy);
  box-shadow: 0 18px 44px -18px rgba(104, 72, 180, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(28px);
}

.analyzing-spinner {
  flex-basis: 54px;
  height: 54px;
  border-width: 5px;
  border-color: rgba(138, 53, 255, 0.17);
  border-top-color: var(--violet);
  border-left-color: var(--violet);
}

.fetching-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.fetching-copy strong {
  color: var(--ink);
  font-size: 1.1875rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.result-panel {
  padding: 28px;
  border-radius: 30px;
  background: radial-gradient(ellipse at 95% 5%, rgba(229, 193, 251, 0.15), transparent 65%), var(--glass-heavy);
}

.rp-creator-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.rp-creator-header > div {
  min-width: 0;
}
.rp-creator-header p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 3px;
}

.rp-creator-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid var(--rim);
  background: linear-gradient(135deg, #e4c8f7, #c7e8ff);
  color: #5f338e;
  font-size: 1.375rem;
  font-weight: 750;
}

.rp-creator {
  display: block;
  font-size: 1.125rem;
  color: var(--ink);
  line-height: 1.4;
}

.rp-header {
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.rp-thumb-wrap,
.rp-mini-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
}

.rp-title {
  font-size: 1.0625rem;
  line-height: 1.4;
}

.rp-header-copy {
  gap: 10px;
}

.rp-duration {
  font-size: 0.875rem;
  line-height: 1.4;
}

.rp-format-badge {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0 0 0 10px;
  border-left: 1px solid var(--line-solid);
  border-radius: 0;
  background: transparent;
  letter-spacing: 0;
}

.rp-status-row {
  margin-bottom: 16px;
}

.rp-section-label {
  font-size: 0.9375rem;
  margin-bottom: 10px;
}

.rp-container-section {
  margin-bottom: 20px;
}

.rp-container-tabs {
  display: flex;
  gap: 10px;
}

.rp-container-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  min-width: 140px;
  padding: 12px 24px;
  border: 1.5px solid var(--violet);
  border-radius: 14px;
  background: rgba(138, 53, 255, 0.07);
  color: var(--violet);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 var(--rim);
}

.rp-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rp-tile-grid:has(.format-option:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rp-tile-grid:has(.format-option:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.format-option {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 86px;
  padding: 14px 8px;
  gap: 7px;
  border-color: transparent;
  border-width: 1.5px;
  border-radius: 16px;
  background: rgba(114, 127, 170, 0.07);
}
.format-option:has(input:checked) {
  border-width: 1.5px;
  box-shadow: inset 0 1px 0 var(--rim);
  background: rgba(138, 53, 255, 0.07);
}

.quality-text {
  gap: 5px;
  width: 100%;
}
.quality-text strong {
  font-size: 1rem;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.quality-detail {
  max-width: none;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.quality-badge {
  font-size: 0.625rem;
}

.selected-indicator {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.6875rem;
}

.rp-more-summary,
.rp-cancel-btn,
.rp-ghost-btn {
  min-height: 44px;
}

.rp-dl-btn {
  min-height: 58px;
  border-radius: 18px;
  background: linear-gradient(110deg, #ff2f8e, #a82af1 45%, #146cff 100%);
  font-size: 1.0625rem;
}

.rp-helper {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

[data-theme=dark] .result-panel {
  background: radial-gradient(ellipse at 95% 5%, rgba(143, 69, 215, 0.12), transparent 65%), var(--glass-heavy);
}

@media (max-width: 480px) {
  .result-panel {
    padding: 22px 18px;
  }
  .analyzing-indicator {
    padding: 20px 18px;
    gap: 16px;
  }
  .analyzing-spinner {
    flex-basis: 44px;
    height: 44px;
    border-width: 4px;
  }
  .rp-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .analyzing-spinner {
    animation: none;
  }
}
/* Keep the desktop landing composition present throughout the workflow. */
@media (min-width: 1024px) {
  .hero[data-downloader-state] .hero-intro {
    grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
    gap: clamp(40px, 5vw, 72px);
    padding-block: 48px;
  }
  .hero[data-downloader-state] .hero-art {
    display: block;
  }
  .hero[data-downloader-state] .hero-description {
    max-width: 600px;
  }
  .hero[data-downloader-state] h1 {
    font-size: clamp(3.625rem, 5vw, 4.5rem);
    line-height: 0.99;
  }
  .input-capsule {
    border-radius: 22px;
    padding: 7px 8px 7px 20px;
    min-height: 70px;
    border-color: var(--rim);
  }
  .input-capsule .analyze-button {
    flex-shrink: 0;
    min-height: 56px;
    margin: 0;
    padding: 14px 22px;
    width: auto;
    border-radius: 17px;
  }
  .input-capsule input {
    min-width: 0;
  }
  .result-workspace-inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    padding-block: 12px 44px;
  }
}
/* The result card already includes a source thumbnail. Avoid a second phone. */
.result-preview-column {
  display: none;
}

@media (max-width: 1023px) {
  .hero[data-downloader-state] .hero-art {
    display: none;
  }
  .hero[data-downloader-state] .hero-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .hero-copy {
    width: 100%;
    max-width: 660px;
    margin-inline: auto;
  }
  .result-workspace-inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
  .input-capsule {
    flex-wrap: wrap;
    border-radius: 22px;
  }
  .input-capsule .analyze-button {
    flex-basis: 100%;
    width: 100%;
    min-height: 52px;
    margin: 4px 0 0;
    border-radius: 16px;
  }
}
.rp-media-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}

.rp-media-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 14px 12px;
  border: 1px solid var(--line-solid);
  border-radius: 17px;
  background: var(--glass);
  cursor: pointer;
  color: var(--muted);
  min-width: 0;
}

.rp-media-choice input {
  position: absolute;
  opacity: 0;
}

.rp-media-choice strong,
.rp-media-choice small {
  display: block;
  line-height: 1.4;
}

.rp-media-choice strong {
  font-size: 14px;
  color: var(--ink);
}

.rp-media-choice small {
  font-size: 12px;
}

.rp-type-check {
  visibility: hidden;
  margin-left: auto;
  font-weight: 800;
}

.rp-media-choice:has(input:checked) {
  border-color: var(--violet);
  background: rgba(138, 53, 255, 0.07);
  color: var(--violet);
}

.rp-media-choice:has(input:checked) .rp-type-check {
  visibility: visible;
}

.rp-media-choice:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.rp-media-choice:has(input:disabled) {
  opacity: 0.55;
  cursor: default;
}

.rp-audio-notice {
  font-size: 13px;
  margin-bottom: 18px;
}

.rp-audio-card {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--violet);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 20px;
  background: rgba(138, 53, 255, 0.06);
}

.rp-audio-card strong {
  font-size: 16px;
}

.rp-audio-card p {
  font-size: 13px;
  margin-top: 5px;
}

.rp-audio-badge {
  font-size: 12px;
  color: var(--violet);
  white-space: nowrap;
  font-weight: 700;
}

@media (max-width: 480px) {
  .rp-media-choice {
    gap: 7px;
    padding: 12px 9px;
  }
  .rp-media-choice .icon {
    width: 20px;
    height: 20px;
  }
  .rp-audio-card {
    flex-wrap: wrap;
  }
}
@media (max-width: 359px) {
  .rp-media-types {
    grid-template-columns: 1fr;
  }
}
.legal-page {
  padding-block: 64px 80px;
}
.legal-page article {
  max-width: 820px;
  margin-inline: auto;
}
.legal-page h1 {
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.legal-page h2 {
  font-size: 1.5rem;
  margin-top: 32px;
}
.legal-page p {
  line-height: 1.8;
  margin-block: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.legal-page .legal-intro {
  font-size: 1.125rem;
  color: var(--ink);
}
.legal-page a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.legal-page .legal-note {
  padding: 20px;
  margin-block: 24px;
  background: var(--glass);
  border: 1px solid var(--line-solid);
  border-radius: 20px;
  line-height: 1.7;
}
.legal-page .legal-note strong {
  display: block;
}
.legal-page .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 36px;
}
.legal-page .legal-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 600px) {
  .legal-page {
    padding-block: 36px 48px;
  }
}
