/* ==========================================================================
   Homepage redesign (v2) — loaded on "/" only.
   Scoped under .hp-page / body.home-v2 so other pages keep the old styling.
   JS contracts kept: #downloader-form, #video-url, #paste-button,
   #check-button, #downloader-feedback, #video-result and the result-card
   classes rendered by downloader-ui.js.
   ========================================================================== */

body.home-v2 {
  background: #06070b;
}

.hp-page {
  --ink: #06070b;
  --ink-2: #0a0c12;
  --card: #0f1118;
  --card-2: #141722;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --fg: #f3f5f9;
  --fg-2: #c4c9d6;
  --dim: #8b92a5;
  --a1: #ff2e4d;
  --a2: #ff7a18;
  --a3: #8b5cff;
  --grad: linear-gradient(104deg, #ff2e4d 0%, #ff5a2b 52%, #ff9f1c 100%);
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  position: relative;
  isolation: isolate;
  font-family: "Inter Variable", Inter, system-ui, sans-serif;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: clip;
}

.hp-page h1,
.hp-page h2,
.hp-page h3 {
  font-family: "Plus Jakarta Sans Variable", "Inter Variable", sans-serif;
  color: var(--fg);
  letter-spacing: -.035em;
  line-height: 1.12;
}

.hp-shell {
  width: min(1200px, 100% - 56px);
  margin-inline: auto;
}

.hp-sec {
  padding-block: clamp(56px, 7vw, 108px);
  position: relative;
}

/* ---------- background ---------- */
.hp-backdrop {
  position: absolute;
  inset: 0 0 auto;
  height: 1200px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hp-backdrop-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 620px at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 620px at 50% 0%, #000 0%, transparent 78%);
}

.hp-backdrop-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.hp-backdrop-orb-a {
  top: -220px;
  left: -140px;
  width: 620px;
  height: 620px;
  background: rgba(255, 46, 77, .20);
}

.hp-backdrop-orb-b {
  top: -180px;
  right: -180px;
  width: 560px;
  height: 560px;
  background: rgba(139, 92, 255, .16);
}

/* ---------- shared bits ---------- */
.hp-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #ff8f7a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hp-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff6a3d);
}

.hp-link {
  color: var(--fg);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 122, 24, .5);
}

.hp-link:hover {
  color: #ffb199;
}

.hp-tick {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 46, 77, .13);
  border: 1px solid rgba(255, 90, 43, .32);
  color: #ff9b7a;
}

.hp-hero-points .hp-tick {
  margin-top: 0;
}

.hp-tick .icon {
  width: 13px;
  height: 13px;
}

/* ---------- hero ---------- */
.hp-hero {
  padding-block: clamp(40px, 5vw, 76px) clamp(20px, 3vw, 34px);
}

.hp-hero-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 40px);
}

.hp-hero-copy {
  width: 100%;
  max-width: none;
}

.hp-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
  color: #dfe3ec;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
}

.hp-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #37e07f;
  box-shadow: 0 0 0 4px rgba(55, 224, 127, .16);
}

.hp-hero-copy h1 {
  width: 100%;
  margin: 22px 0 18px;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.hp-hero-copy h1 .hp-grad {
  display: inline;
}

.hp-lead {
  max-width: 62ch;
  color: var(--fg-2);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.72;
}

.hp-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hp-hero-points li {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #d6dae4;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.hp-hero-tip {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
}

.hp-hero-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.65;
}

.hp-hero-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #ff8f7a;
  flex-shrink: 0;
}

/* ---------- tool card ---------- */
.hp-tool {
  position: relative;
  width: 100%;
  padding: 1px;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(255, 46, 77, .55), rgba(255, 122, 24, .22) 32%, rgba(255, 255, 255, .07) 62%, rgba(139, 92, 255, .28));
  box-shadow: 0 40px 90px -36px rgba(0, 0, 0, .9);
  scroll-margin-top: 96px;
}

.hp-tool-inner {
  border-radius: calc(var(--r-xl) - 1px);
  background: linear-gradient(180deg, #13161f 0%, #0b0d13 62%);
  padding: 18px 18px 18px;
}

.hp-tool-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.hp-tool-dots {
  display: inline-flex;
  gap: 6px;
}

.hp-tool-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}

.hp-tool-dots i:first-child {
  background: #ff3b52;
}

.hp-tool-name {
  color: var(--fg);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.hp-tool-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(55, 224, 127, .1);
  border: 1px solid rgba(55, 224, 127, .26);
  color: #74e6a6;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hp-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #37e07f;
  animation: hp-pulse 2.2s ease-out infinite;
}

@keyframes hp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(55, 224, 127, .55); }
  70% { box-shadow: 0 0 0 8px rgba(55, 224, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 224, 127, 0); }
}

.hp-page .field-heading {
  margin-bottom: 10px;
}

.hp-page .field-heading label {
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hp-page .download-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.hp-page .download-input-row .button-primary {
  white-space: nowrap;
  min-height: 56px;
  padding-inline: 22px;
}

.hp-page .url-field {
  border-radius: var(--r-md);
  background: #05060a;
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.hp-page .url-field input {
  height: 56px;
  padding: 0 104px 0 16px;
  color: var(--fg);
  font-size: 14px;
}

.hp-page .url-field:focus-within {
  border-color: rgba(255, 90, 43, .7);
  box-shadow: 0 0 0 4px rgba(255, 60, 60, .12);
}

.hp-page .url-field:has([aria-invalid="true"]) {
  border-color: #ff5c5c;
}

.hp-page .paste-button {
  right: 7px;
  height: 42px;
  min-width: 78px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: #d4d9e4;
  font-size: 11px;
  font-weight: 600;
}

.hp-page .paste-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.hp-page .button {
  border-radius: var(--r-md);
  min-height: 54px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.hp-page .button-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 16px 38px -16px rgba(255, 70, 50, .85);
}

.hp-page .button-primary:hover:not(:disabled) {
  background: var(--grad);
  filter: brightness(1.08);
}

.hp-page #check-button {
  width: 100%;
}

.hp-page .service-terms {
  margin-top: 14px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.7;
}

.hp-page .service-terms a {
  color: #d9dde7;
  border-bottom: 1px solid rgba(255, 122, 24, .45);
}

.hp-page .service-terms a:hover {
  color: #ffb199;
}

.hp-tool-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hp-tool-foot-label {
  margin-right: 2px;
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hp-code {
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: #aeb5c4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.hp-page noscript {
  display: block;
  margin-top: 14px;
  color: var(--dim);
  font-size: 12px;
}

/* ---------- result panel (JS rendered) ---------- */
.hp-page .feedback {
  margin-top: 16px;
  border-radius: var(--r-md);
  background: rgba(255, 46, 77, .09);
  border: 1px solid rgba(255, 92, 92, .3);
  color: #ffb3b3;
  font-size: 12.5px;
}

.hp-page .feedback[data-tone="info"] {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-2);
  color: var(--fg-2);
}

.hp-page .feedback[data-tone="success"] {
  background: rgba(55, 224, 127, .09);
  border-color: rgba(55, 224, 127, .3);
  color: #7ae8ab;
}

.hp-page .video-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hp-page .result-card {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.hp-page .result-media {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.hp-page .thumbnail-wrap {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #05060a;
  overflow: hidden;
}

.hp-page .thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-page .result-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hp-page .result-title {
  margin: 0;
  color: var(--fg);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-page .result-desc {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-page .result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--dim);
  font-size: 12px;
}

.hp-page .result-channel,
.hp-page .result-duration {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hp-page .result-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 2px;
  color: #ffb199;
  font-size: 12.5px;
  font-weight: 650;
  border-bottom: 1px solid rgba(255, 122, 24, .45);
}

.hp-page .result-more:hover {
  color: #ffd0bf;
}

.hp-page .result-options {
  margin-top: 16px;
  padding: 16px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.hp-page .result-options-head {
  margin-bottom: 12px;
}

.hp-page .quality-list {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.hp-page .quality-option-body {
  height: 100%;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
}

.hp-page .quality-label {
  font-size: 12.5px;
}

.hp-page .quality-option:hover .quality-option-body {
  background: #1b1f2c;
  border-color: rgba(255, 255, 255, .22);
}

.hp-page .quality-option input:checked + .quality-option-body {
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 12px 26px -12px rgba(255, 70, 50, .9);
}

.hp-page .result-actions {
  margin-top: 14px;
}

.hp-page .download-ready {
  gap: 10px;
  margin-top: 12px;
}

.hp-page .download-ready-card,
.hp-page .download-ready-status {
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 12px 0 0;
}

.hp-page .download-ready-status {
  border-top-color: rgba(34, 197, 94, .28);
}

.hp-page .download-ready-note {
  border-top-color: var(--line);
}

.hp-page .download-ready-file {
  color: #ffb199;
}

.hp-page .download-disclaimer {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.65;
}

/* ---------- stat bar ---------- */
.hp-statbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(26px, 4vw, 44px) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  overflow: hidden;
}

.hp-stat {
  padding: 20px 22px;
  border-left: 1px solid var(--line);
}

.hp-stat:first-child {
  border-left: 0;
}

.hp-stat dt {
  font-family: "Plus Jakarta Sans Variable", sans-serif;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 750;
  letter-spacing: -.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hp-stat dd {
  margin: 5px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- formats strip ---------- */
.hp-formats {
  margin-top: 60px;
  padding-block: 26px;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
}

.hp-formats-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.hp-formats-label {
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-chips li {
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
  color: #ccd2de;
  font-size: 12px;
  font-weight: 600;
}

.hp-chips li.is-accent {
  background: rgba(255, 46, 77, .12);
  border-color: rgba(255, 90, 43, .4);
  color: #ffac92;
}

.hp-formats-note {
  margin-left: auto;
  color: var(--dim);
  font-size: 12px;
}

/* ---------- section heads ---------- */
.hp-sec-head {
  max-width: 620px;
  margin-bottom: clamp(32px, 4vw, 54px);
}

.hp-sec-head-wide {
  max-width: 760px;
}

.hp-sec-head h2,
.hp-page .hp-split-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 780;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.hp-sec-sub {
  margin-top: 14px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.72;
}

/* ---------- steps timeline ---------- */
.hp-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-track::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 46, 77, .5), rgba(255, 122, 24, .45), rgba(139, 92, 255, .4));
  opacity: .5;
}

.hp-step {
  position: relative;
}

.hp-step-node {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: #0d1016;
  border: 1px solid var(--line-2);
  color: #ff9b7a;
  box-shadow: 0 0 0 8px var(--ink);
}

.hp-step-node .icon {
  width: 22px;
  height: 22px;
}

.hp-step-num {
  position: absolute;
  top: -9px;
  right: -14px;
  padding: 2px 7px;
  border-radius: 7px;
  background: var(--grad);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.hp-step h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
}

.hp-step p {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- bento features ---------- */
.hp-feature-sec {
  background:
    radial-gradient(800px 420px at 85% 0%, rgba(139, 92, 255, .08), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, .015), transparent);
  border-block: 1px solid var(--line);
}

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

.hp-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.hp-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 43, .34);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9);
}

.hp-tile-xl {
  grid-column: span 2;
}

.hp-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.hp-tile-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(255, 46, 77, .11);
  border: 1px solid rgba(255, 90, 43, .3);
  color: #ff9b7a;
}

.hp-tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-2);
  color: #b9c0cf;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hp-tile h3 {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 700;
}

.hp-tile p {
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.7;
}

.hp-meter {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.hp-meter-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.hp-meter-row span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.hp-meter-row i {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  position: relative;
  overflow: hidden;
}

.hp-meter-row i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  border-radius: 999px;
  background: var(--grad);
}

/* ---------- specs ---------- */
.hp-specs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.hp-specs-copy h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 780;
}

.hp-check-list {
  display: grid;
  gap: 13px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hp-check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #d6dae4;
  font-size: 14px;
  line-height: 1.6;
}

.hp-spec-table {
  margin: 0;
  padding: 8px 4px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
}

.hp-spec-table > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.hp-spec-table > div:last-child {
  border-bottom: 0;
}

.hp-spec-table dt {
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

.hp-spec-table dd {
  margin: 0;
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 650;
  text-align: right;
}

/* ---------- faq ---------- */
.hp-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  max-width: 1060px;
  margin-inline: auto;
}

.hp-faq details {
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .2s ease;
}

.hp-faq details[open] {
  border-color: rgba(255, 90, 43, .32);
  background: linear-gradient(180deg, rgba(255, 46, 77, .06), transparent 60%), var(--card);
}

.hp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  color: var(--fg);
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.5;
  list-style: none;
}

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

.hp-faq summary:hover {
  color: #ffc1ad;
}

.hp-faq-mark {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-2);
  color: #ff9b7a;
  transition: transform .22s ease, background-color .2s ease;
}

.hp-faq-mark .icon {
  width: 15px;
  height: 15px;
}

.hp-faq details[open] .hp-faq-mark {
  transform: rotate(180deg);
  background: rgba(255, 46, 77, .14);
}

.hp-faq-answer {
  padding: 0 18px 18px;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.75;
}

/* ---------- cta ---------- */
.hp-cta-sec {
  padding-block: 0 clamp(56px, 7vw, 100px);
}

.hp-cta {
  padding: 1px;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, rgba(255, 46, 77, .6), rgba(255, 159, 28, .3) 45%, rgba(139, 92, 255, .45));
}

.hp-cta-inner {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--r-xl) - 1px);
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px);
  background:
    radial-gradient(600px 240px at 18% 0%, rgba(255, 46, 77, .16), transparent 62%),
    linear-gradient(180deg, #121520, #090b10);
  text-align: center;
}

.hp-cta-inner .hp-kicker {
  justify-content: center;
}

.hp-cta-inner h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
}

.hp-cta-sub {
  max-width: 48ch;
  margin: 14px auto 28px;
  color: var(--fg-2);
  font-size: 15px;
}

.hp-cta-button {
  padding-inline: 34px;
}

.hp-cta-note {
  margin-top: 20px;
  color: var(--dim);
  font-size: 12px;
}

.hp-cta-badges {
  margin: 0 auto 24px;
  max-width: 52ch;
  color: #d6dae4;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

/* ---------- shared content blocks ---------- */
.hp-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.hp-split-copy p + p {
  margin-top: 14px;
}

.hp-split-copy h2 + p {
  color: var(--fg-2);
}

.hp-offer-list,
.hp-mini-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-offer-list {
  display: grid;
  gap: 14px;
}

.hp-offer-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
}

.hp-offer-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--fg);
  font-size: 14.5px;
  font-weight: 700;
}

.hp-offer-list p {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.65;
}

.hp-sec-cta {
  margin-top: clamp(28px, 4vw, 40px);
  color: var(--fg-2);
  font-size: 14.5px;
}

.hp-callout {
  margin-top: clamp(24px, 3vw, 36px);
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 46, 77, .08);
  border: 1px solid rgba(255, 90, 43, .28);
  color: #e8d0c8;
  font-size: 14px;
  line-height: 1.7;
}

.hp-quality-grid,
.hp-device-grid,
.hp-use-grid,
.hp-legal-grid {
  display: grid;
  gap: 14px;
}

.hp-quality-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-quality-card,
.hp-device-card,
.hp-use-card,
.hp-legal-card,
.hp-bitrate-panel,
.hp-link-panel {
  padding: 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
}

.hp-quality-card.is-featured {
  border-color: rgba(255, 90, 43, .34);
  background:
    linear-gradient(180deg, rgba(255, 46, 77, .08), transparent 48%),
    linear-gradient(180deg, var(--card-2), var(--card));
}

.hp-quality-card h3,
.hp-device-card h3,
.hp-use-card h3,
.hp-legal-card h3,
.hp-bitrate-panel h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
}

.hp-quality-label {
  margin-bottom: 10px;
  color: #ff9b7a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hp-quality-card p:last-child,
.hp-device-card p,
.hp-use-card p,
.hp-legal-card p {
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.7;
}

.hp-mini-steps {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  counter-reset: mini-step;
}

.hp-mini-steps li {
  position: relative;
  padding: 12px 14px 12px 44px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  color: #d6dae4;
  font-size: 13.5px;
  counter-increment: mini-step;
}

.hp-mini-steps li::before {
  content: counter(mini-step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.hp-bitrate-list {
  margin: 18px 0 0;
  padding: 0;
}

.hp-bitrate-list > div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.hp-bitrate-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hp-bitrate-list dt {
  color: var(--fg);
  font-size: 14px;
  font-weight: 700;
}

.hp-bitrate-list dd {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
}

.hp-panel-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.65;
}

.hp-format-table {
  display: grid;
  gap: 10px;
}

.hp-format-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
}

.hp-format-row h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.hp-format-row p {
  margin: 0;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.7;
}

.hp-device-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-link-panel {
  display: grid;
  gap: 0;
  padding: 8px 4px;
}

.hp-link-panel > div {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.hp-link-panel > div:last-child {
  border-bottom: 0;
}

.hp-link-panel dt {
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hp-link-panel dd {
  margin: 0;
}

.hp-link-panel code {
  color: #ffb199;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  word-break: break-all;
}

.hp-use-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hp-use-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.hp-sec-head-center {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.hp-sec-head-center .hp-kicker {
  justify-content: center;
}

.hp-trouble {
  background:
    radial-gradient(720px 360px at 50% 0%, rgba(255, 46, 77, .07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .012), transparent);
  border-block: 1px solid var(--line);
}

.hp-trouble-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.hp-trouble details {
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.hp-trouble details[open] {
  border-color: rgba(255, 90, 43, .34);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .85);
  background:
    linear-gradient(180deg, rgba(255, 46, 77, .08), transparent 55%),
    linear-gradient(180deg, var(--card-2), var(--card));
}

.hp-trouble summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

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

.hp-trouble summary::marker {
  content: "";
}

.hp-trouble summary:hover {
  color: #ffc1ad;
}

.hp-trouble-num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding-inline: 8px;
  border-radius: 8px;
  background: rgba(255, 46, 77, .12);
  border: 1px solid rgba(255, 90, 43, .3);
  color: #ff9b7a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.hp-trouble-q {
  min-width: 0;
}

.hp-trouble .hp-faq-mark {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-2);
  color: #ff9b7a;
  transition: transform .22s ease, background-color .2s ease;
}

.hp-trouble .hp-faq-mark .icon {
  width: 15px;
  height: 15px;
}

.hp-trouble details[open] .hp-faq-mark {
  transform: rotate(180deg);
  background: rgba(255, 46, 77, .14);
}

.hp-trouble .hp-faq-answer {
  padding: 0 16px 16px 62px;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.75;
}

.hp-legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hp-legal-card h3 {
  font-size: 15px;
}

.hp-legal-foot {
  margin-top: clamp(24px, 3vw, 34px);
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.7;
}

.hp-mp3,
.hp-links,
.hp-formats-guide {
  background: rgba(255, 255, 255, .012);
  border-block: 1px solid var(--line);
}

.hp-why {
  background:
    radial-gradient(800px 420px at 15% 0%, rgba(255, 46, 77, .07), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, .015), transparent);
  border-block: 1px solid var(--line);
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .hp-lead {
    max-width: none;
  }

  .hp-page .download-input-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-bento,
  .hp-track,
  .hp-quality-grid,
  .hp-device-grid,
  .hp-legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-tile-xl {
    grid-column: span 2;
  }

  .hp-track::before {
    display: none;
  }

  .hp-split,
  .hp-specs-grid,
  .hp-faq-grid,
  .hp-format-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-statbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-stat:nth-child(odd) {
    border-left: 0;
  }

  .hp-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 767px) {
  .hp-shell {
    width: calc(100% - 32px);
  }

  .hp-page {
    font-size: 14.5px;
  }

  .hp-hero {
    padding-block: 28px 8px;
  }

  .hp-hero-copy h1 {
    margin-top: 18px;
    font-size: clamp(28px, 8vw, 36px);
  }

  .hp-hero-points {
    gap: 8px 14px;
  }

  .hp-tool-inner {
    padding: 12px 10px;
  }

  .hp-tool-chrome {
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  .hp-page .video-result {
    margin-top: 12px;
    padding-top: 12px;
  }

  .hp-page .result-options {
    margin-top: 12px;
    padding-top: 12px;
  }

  .hp-page .result-actions {
    margin-top: 10px;
  }

  .hp-page .download-ready-card,
  .hp-page .download-ready-status {
    padding-top: 10px;
  }

  .hp-page .quality-list {
    grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
    gap: 8px;
  }

  .hp-bento,
  .hp-track,
  .hp-quality-grid,
  .hp-device-grid,
  .hp-use-grid,
  .hp-legal-grid,
  .hp-trouble-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-trouble .hp-faq-answer {
    padding-left: 16px;
  }

  .hp-tile-xl,
  .hp-use-card:last-child:nth-child(odd) {
    grid-column: span 1;
  }

  .hp-tile {
    padding: 20px;
  }

  .hp-step-node {
    box-shadow: none;
  }

  .hp-formats-note {
    margin-left: 0;
  }

  .hp-tile:hover {
    transform: none;
  }

  .hp-page .result-media {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }

  .hp-page .result-title {
    font-size: 14.5px;
  }

  .hp-page .result-desc {
    font-size: 12.5px;
    -webkit-line-clamp: 2;
  }

  .hp-page .url-field input {
    height: 54px;
    padding-right: 60px;
  }

  .hp-page .paste-button {
    right: 6px;
    min-width: 44px;
    height: 40px;
    padding-inline: 10px;
  }
}

@media (max-width: 479px) {
  .hp-statbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-stat {
    border-left: 0;
  }

  .hp-stat + .hp-stat {
    border-top: 1px solid var(--line);
  }

  .hp-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-pulse {
    animation: none;
  }

  .hp-tile,
  .hp-faq details,
  .hp-faq-mark {
    transition: none;
  }
}
