/* ============================================================
   ShortSafe — Safe Zone & Hook Previewer
   Dark, modern, responsive. No frameworks.
   ============================================================ */

:root {
  --bg: #07080c;
  --bg-soft: #0b0d13;
  --surface: #10131c;
  --surface-2: #151926;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f8;
  --muted: #98a1b6;
  --muted-2: #6d7689;
  --safe: #3ddc84;
  --safe-soft: rgba(61, 220, 132, 0.12);
  --danger: #ff3d6b;
  --danger-soft: rgba(255, 61, 107, 0.14);
  --accent: #7c6cff;
  --accent-2: #4fd8ff;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(124, 108, 255, 0.16), transparent 60%),
    radial-gradient(800px 600px at 95% 0%, rgba(79, 216, 255, 0.09), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(61, 220, 132, 0.06), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: rgba(124, 108, 255, 0.4); }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 16px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(7, 8, 12, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex: none;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, #1b2130, #0d1017);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.logo-mark svg { width: 17px; height: 17px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.nav a {
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.16s, border-color 0.16s, box-shadow 0.16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: #1b2030; border-color: rgba(255, 255, 255, 0.22); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(180deg, #8f80ff, #6f5df6);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(124, 108, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { background: linear-gradient(180deg, #9b8dff, #7a68ff); }

.btn-safe {
  background: linear-gradient(180deg, #59f09b, #2fc775);
  color: #04140c;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 34px -14px rgba(61, 220, 132, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-safe:hover { background: linear-gradient(180deg, #6bffab, #35d47f); }

.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 9px; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn .ico { width: 16px; height: 16px; }

.only-mobile { display: none; }
.cta-short { display: none; }

/* ---------- Hero ---------- */

.hero {
  padding: 44px 0 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px 6px 7px;
  border-radius: 999px;
  border: 1px solid rgba(61, 220, 132, 0.24);
  background: rgba(61, 220, 132, 0.07);
  color: #9df3c0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--safe);
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.16);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 14px;
  font-weight: 700;
  max-width: 16ch;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #fff 10%, #b9b0ff 45%, #64e7ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17.5px);
  max-width: 62ch;
  line-height: 1.62;
}
.hero p strong { color: var(--text); font-weight: 600; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 6px 11px;
  border-radius: 999px;
}
.badge svg { width: 13px; height: 13px; color: var(--safe); flex: none; }

.hero-stat {
  text-align: right;
  padding-bottom: 6px;
}
.hero-stat .num {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero-stat .lbl { font-size: 12px; color: var(--muted-2); margin-top: 6px; }

/* ---------- Workspace ---------- */

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  gap: 22px;
  align-items: start;
  padding: 8px 0 12px;
}

.tool {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 78px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.platform-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 5px;
  margin-bottom: 12px;
}

.pf-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.16s;
  min-width: 0;
}
.pf-tab .pf-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pf-color, #fff);
  flex: none;
  opacity: 0.7;
}
.pf-tab .pf-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.pf-tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.pf-tab[aria-selected="true"] .pf-dot { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--pf-color) 25%, transparent); }

.stage-wrap {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  padding: 4px 0 2px;
}

.stage {
  --u: 0.4px;
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0c11;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 30px 70px -30px #000;
  isolation: isolate;
  touch-action: manipulation;
}
.stage.is-drag::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 60;
  border: 2px dashed var(--safe);
  background: rgba(61, 220, 132, 0.12);
  border-radius: inherit;
  pointer-events: none;
}

#preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Native-UI overlay */
.ui-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  font-family: var(--font);
  transition: opacity 0.2s;
}
.stage.hide-ui .ui-layer { opacity: 0; }

.ui-scrim-top, .ui-scrim-bottom {
  position: absolute;
  left: 0; right: 0;
  pointer-events: none;
}
.ui-scrim-top {
  top: 0;
  height: calc(420 * var(--u));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}
.ui-scrim-bottom {
  bottom: 0;
  height: calc(760 * var(--u));
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.38) 55%, rgba(0, 0, 0, 0));
}

.ui-el { position: absolute; display: flex; align-items: center; color: #fff; }
.ui-abs { position: absolute; }

.ui-icon {
  width: calc(74 * var(--u));
  height: calc(74 * var(--u));
  color: #fff;
  filter: drop-shadow(0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.55));
  flex: none;
}
.ui-icon svg { width: 100%; height: 100%; display: block; }

.ui-label {
  font-size: calc(27 * var(--u));
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  margin-top: calc(8 * var(--u));
  line-height: 1;
  color: rgba(255, 255, 255, 0.95);
}

.ui-act {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
}

.ui-avatar {
  position: relative;
  border-radius: 50%;
  overflow: visible;
  background: linear-gradient(145deg, #7c6cff, #2b3348);
  border: calc(2 * var(--u)) solid rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: calc(40 * var(--u));
  flex: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.ui-name {
  font-size: calc(34 * var(--u));
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  line-height: 1.15;
}

.ui-caption {
  font-size: calc(30 * var(--u));
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ui-pill {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  padding: calc(9 * var(--u)) calc(22 * var(--u));
  border-radius: calc(10 * var(--u));
  background: rgba(255, 255, 255, 0.16);
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.22);
  font-size: calc(28 * var(--u));
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(4px);
}

.ui-tabs {
  display: flex;
  gap: calc(46 * var(--u));
  font-size: calc(32 * var(--u));
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  align-items: center;
}
.ui-tabs .active { color: #fff; position: relative; font-weight: 700; }
.ui-tabs .active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(-14 * var(--u));
  width: calc(40 * var(--u));
  height: calc(4 * var(--u));
  border-radius: 4px;
  background: #fff;
}

.ui-top-title {
  font-family: var(--display);
  font-size: calc(40 * var(--u));
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.ui-bottom-nav {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(18 * var(--u));
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 calc(34 * var(--u));
  color: rgba(255, 255, 255, 0.55);
}
.ui-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(4 * var(--u));
  font-size: calc(19 * var(--u));
  font-weight: 600;
}
.ui-bottom-nav .ui-icon { width: calc(46 * var(--u)); height: calc(46 * var(--u)); filter: none; }
.ui-bottom-nav .is-active { color: #fff; }

.ui-plus {
  display: block;
  width: calc(66 * var(--u));
  height: calc(38 * var(--u));
  border-radius: calc(9 * var(--u));
  background: #fff;
  position: relative;
  box-shadow: 0 calc(2 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, 0.35);
}
.ui-plus::before, .ui-plus::after {
  content: "";
  position: absolute;
  background: #111;
  border-radius: 2px;
  top: 50%; left: 50%;
}
.ui-plus::before { width: calc(20 * var(--u)); height: calc(3 * var(--u)); transform: translate(-50%, -50%); }
.ui-plus::after { width: calc(3 * var(--u)); height: calc(20 * var(--u)); transform: translate(-50%, -50%); }

.ui-badge {
  position: absolute;
  width: calc(28 * var(--u));
  height: calc(28 * var(--u));
  border-radius: 50%;
  background: #ff2d55;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: calc(22 * var(--u));
  font-weight: 700;
  border: calc(2 * var(--u)) solid #fff;
  line-height: 1;
}

.ui-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(5 * var(--u));
  background: rgba(255, 255, 255, 0.22);
}
.ui-progress span { display: block; height: 100%; width: 38%; background: #fff; }

.ui-follow {
  font-size: calc(26 * var(--u));
  font-weight: 700;
  color: #fff;
  border: calc(1.5 * var(--u)) solid rgba(255, 255, 255, 0.55);
  padding: calc(4 * var(--u)) calc(14 * var(--u));
  border-radius: calc(7 * var(--u));
}

.ui-disc {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #16171c 0 22%, #2b2f3a 23% 30%, #101217 31% 100%);
  border: calc(2 * var(--u)) solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: #d8dbe6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.ui-disc .ui-icon { width: 34%; height: 34%; filter: none; }

/* Safe zones */
.zone-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}
.stage.hide-zones .zone-svg:not(.grid-svg) { opacity: 0; }
.zone-svg .zone-danger { fill: rgba(255, 45, 85, 0.17); }
.zone-svg .zone-safe-fill { fill: rgba(61, 220, 132, 0.035); }
.zone-svg .zone-safe-line {
  fill: none;
  stroke: #3ddc84;
  stroke-width: 3;
  stroke-dasharray: 22 16;
  filter: drop-shadow(0 0 6px rgba(61, 220, 132, 0.55));
}
.zone-svg .zone-tick { stroke: rgba(255, 255, 255, 0.24); stroke-width: 1; }
.zone-svg .zone-corner { stroke: #3ddc84; stroke-width: 6; fill: none; }

.grid-svg { z-index: 21; }
.stage.hide-grid .grid-svg { display: none; }

.zone-chips {
  position: absolute;
  inset: 0;
  z-index: 22;
  pointer-events: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  transition: opacity 0.2s;
}
.stage.hide-zones .zone-chips { opacity: 0; }
.chip-px {
  position: absolute;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(8, 10, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffd7e1;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  line-height: 1;
}
.chip-px.safe { color: #b9ffd7; border-color: rgba(61, 220, 132, 0.4); }

/* Hook & caption text layer */
.text-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  font-family: var(--font);
}
.tx-box {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  outline: none;
}
.tx-box[hidden] { display: none; }
.tx-box.dragging { cursor: grabbing; }
.tx-box:focus-visible .tx { box-shadow: 0 0 0 2px rgba(124, 108, 255, 0.9); }
.tx {
  width: fit-content;
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  font-size: calc(68 * var(--u) * var(--tx-scale, 1));
}
.tx-hook {
  font-weight: 800;
  -webkit-line-clamp: 3;
  padding: calc(14 * var(--u)) calc(20 * var(--u));
  border-radius: calc(14 * var(--u));
}
.tx-caption {
  font-weight: 650;
  -webkit-line-clamp: 4;
  font-size: calc(40 * var(--u) * var(--tx-scale, 1));
  padding: calc(10 * var(--u)) calc(16 * var(--u));
  border-radius: calc(12 * var(--u));
  letter-spacing: -0.01em;
}
.tx-style-pill .tx {
  background: rgba(9, 11, 16, 0.62);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 calc(1.5 * var(--u)) rgba(255, 255, 255, 0.12);
}
.tx-style-plain .tx { padding-left: 0; padding-right: 0; background: none; }
.tx-style-outline .tx {
  background: transparent;
  -webkit-text-stroke: calc(2 * var(--u)) rgba(0, 0, 0, 0.55);
}
.tx-align-center .tx { text-align: center; }

.stage-empty[hidden] { display: none; }
.stage-empty {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background: repeating-linear-gradient(45deg, #0b0e14, #0b0e14 12px, #0d1119 12px, #0d1119 24px);
}
.stage-empty .hint { font-size: 13px; padding: 0 30px; }
.stage-empty svg { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--muted-2); }

.stage-badge {
  position: absolute;
  z-index: 50;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9df3c0;
  background: rgba(6, 12, 9, 0.62);
  border: 1px solid rgba(61, 220, 132, 0.3);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.stage-badge .rec { width: 5px; height: 5px; border-radius: 50%; background: var(--safe); }

/* Playback bar */
.stage-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
}
.stage-bar.is-hidden { display: none; }
.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex: none;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.is-on { color: var(--safe); }

.time {
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--muted);
  flex: none;
  min-width: 74px;
  text-align: center;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #6f5df6;
  box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.18);
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #6f5df6;
}
.range-wrap { flex: 1; min-width: 40px; display: flex; align-items: center; }

.select-mini {
  appearance: none;
  background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2398a1b6' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 24px 6px 9px;
  font-size: 12px;
  cursor: pointer;
}
.select-mini:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- Panel ---------- */

.panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.step-num {
  width: 20px; height: 20px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 10.5px;
  font-weight: 800;
  color: #c9c1ff;
  background: rgba(124, 108, 255, 0.16);
  border: 1px solid rgba(124, 108, 255, 0.28);
  flex: none;
}
.card-head h2 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}
.card-head .card-sub {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 500;
}

.dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.16s;
  background: rgba(255, 255, 255, 0.017);
}
.dropzone:hover, .dropzone.is-drag {
  border-color: rgba(124, 108, 255, 0.6);
  background: rgba(124, 108, 255, 0.07);
}
.dropzone .dz-icon {
  width: 26px; height: 26px;
  margin: 0 auto 6px;
  color: #a99fff;
}
.dropzone .dz-title { font-size: 13px; font-weight: 600; }
.dropzone .dz-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }

.samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 9px;
}
.sample {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0e14;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s, transform 0.15s;
}
.sample img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }
.sample:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.sample[aria-pressed="true"] { border-color: var(--safe); box-shadow: 0 0 0 2px rgba(61, 220, 132, 0.25); }
.sample .s-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  font-size: 9px;
  font-weight: 600;
  padding: 10px 4px 3px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  text-align: center;
  letter-spacing: 0.02em;
}
.sample .s-play {
  position: absolute;
  top: 4px; right: 4px;
  width: 14px; height: 14px;
  color: #fff;
  filter: drop-shadow(0 1px 2px #000);
}

.media-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.media-meta .nm {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 500;
}
.media-meta button {
  background: none;
  border: none;
  color: var(--muted-2);
  cursor: pointer;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 4px;
}
.media-meta button:hover { color: var(--danger); background: rgba(255, 61, 107, 0.1); }
.media-meta[hidden] { display: none; }

/* toggles */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}
.toggle-row + .toggle-row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.toggle-label { font-size: 13px; font-weight: 500; }
.toggle-label small { display: block; font-size: 11px; color: var(--muted-2); font-weight: 400; margin-top: 1px; }

.switch {
  position: relative;
  width: 38px; height: 22px;
  flex: none;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  padding: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #cfd5e4;
  transition: transform 0.18s, background 0.18s;
}
.switch[aria-checked="true"] { background: rgba(61, 220, 132, 0.28); border-color: rgba(61, 220, 132, 0.55); }
.switch[aria-checked="true"]::after { transform: translateX(16px); background: #fff; }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* field */
.field { margin-top: 10px; }
.field:first-child { margin-top: 0; }
.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
.field label .val { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.input, .textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}
.textarea { min-height: 62px; line-height: 1.45; }
.input:focus, .textarea:focus {
  outline: none;
  border-color: rgba(124, 108, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.14);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }

.status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.status.ok { color: #7ef0ab; }
.status.warn { color: #ffab6b; }
.status .s-ico { width: 12px; height: 12px; flex: none; }

.seg {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}
.seg button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 6px;
  border-radius: 6px;
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.1); color: #fff; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.inset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.inset {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
}
.inset span { font-size: 10.5px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.04em; }
.inset input {
  width: 100%;
  min-width: 0;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding: 0;
}
.inset input:focus { outline: none; }
.inset:focus-within { border-color: rgba(124, 108, 255, 0.6); }

.hintline { font-size: 11px; color: var(--muted-2); line-height: 1.45; margin: 8px 0 0; }
.hintline b { color: var(--muted); font-weight: 600; }

.export-card { background: linear-gradient(180deg, rgba(61, 220, 132, 0.06), rgba(61, 220, 132, 0.01)); border-color: rgba(61, 220, 132, 0.16); }
.export-card .btn-safe { width: 100%; padding: 12px; font-size: 14px; margin-top: 10px; }
.export-actions { display: flex; gap: 8px; margin-top: 8px; }
.export-actions .btn { flex: 1; font-size: 12px; padding: 9px 8px; }

.check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
  margin-top: 8px;
}
.check input { accent-color: #3ddc84; width: 13px; height: 13px; margin: 0; }

/* ---------- Sections ---------- */

section { scroll-margin-top: 80px; }

.section { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a99fff;
  margin-bottom: 10px;
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 700;
}
.section-head p { color: var(--muted); margin: 0; font-size: 15.5px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 108, 255, 0.5), transparent);
}
.feature .f-ico {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(124, 108, 255, 0.12);
  border: 1px solid rgba(124, 108, 255, 0.24);
  color: #bfb6ff;
  margin-bottom: 14px;
}
.feature .f-ico svg { width: 17px; height: 17px; }
.feature h3 { font-size: 15.5px; font-weight: 650; margin: 0 0 6px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* Affiliate */
.aff-section { padding: 10px 0 0; }
.aff-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.aff-head h2 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0;
  font-weight: 700;
}
.aff-head p { margin: 0; font-size: 11px; color: var(--muted-2); }
.aff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.aff {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}
.aff:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.045); transform: translateY(-1px); }
.aff .a-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  flex: none;
  color: #fff;
}
.aff .a-body { min-width: 0; flex: 1; }
.aff .a-name { font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 5px; }
.aff .a-desc { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aff .a-arrow { color: var(--muted-2); flex: none; }
.aff .a-arrow svg { width: 14px; height: 14px; }

/* Kit */
.kit {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: center;
  border: 1px solid rgba(124, 108, 255, 0.24);
  border-radius: 22px;
  padding: 28px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(124, 108, 255, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
}
.kit h2 {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 8px 0 10px;
}
.kit p { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.kit ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; }
.kit li { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); }
.kit li svg { width: 15px; height: 15px; color: var(--safe); flex: none; margin-top: 3px; }
.kit li b { color: var(--text); font-weight: 600; }
.kit-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.kit-price .p { font-family: var(--display); font-size: 38px; font-weight: 700; letter-spacing: -0.04em; }
.kit-price .was { color: var(--muted-2); text-decoration: line-through; font-size: 15px; }
.kit-price .tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9df3c0; background: rgba(61, 220, 132, 0.12); border: 1px solid rgba(61, 220, 132, 0.3); padding: 3px 7px; border-radius: 5px; }
.kit-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.kit-cta .note { font-size: 11px; color: var(--muted-2); align-self: center; }
.kit-visual {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #181d2b, #0b0e15);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 18px;
}
.kit-cover {
  width: 62%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: linear-gradient(150deg, #6f5df6 0%, #2a2f4a 45%, #0e1119 100%);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-3deg);
}
.kit-cover .kc-top { font-size: 8px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.7); font-weight: 700; }
.kit-cover .kc-title { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.04; letter-spacing: -0.04em; }
.kit-cover .kc-meta { font-size: 7.5px; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.08em; }

/* SEO content */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}
.prose h3 { font-size: 17px; font-weight: 650; margin: 26px 0 8px; letter-spacing: -0.01em; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0 0 12px; }
.prose ul { color: var(--muted); font-size: 14.5px; padding-left: 20px; margin: 0 0 12px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 4px;
  color: #cfc8ff;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.018);
  margin: 6px 0 8px;
}
table.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px;
}
table.specs th, table.specs td {
  text-align: right;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-variant-numeric: tabular-nums;
}
table.specs th:first-child, table.specs td:first-child { text-align: left; font-variant-numeric: normal; }
table.specs th {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  font-weight: 700;
  background: rgba(0, 0, 0, 0.2);
}
table.specs td:first-child { font-weight: 600; color: var(--text); }
table.specs td { color: var(--muted); }
table.specs tr:last-child td { border-bottom: 0; }
table.specs tr:hover td { background: rgba(255, 255, 255, 0.02); }
.table-note { font-size: 11px; color: var(--muted-2); margin: 0 0 18px; }

.side-card {
  position: sticky;
  top: 84px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
}
.side-card h3 { font-size: 13px; margin: 0 0 12px; font-weight: 700; letter-spacing: 0.02em; }
.side-card ol { margin: 0 0 14px; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.side-card li { margin-bottom: 7px; }
.side-card .btn { width: 100%; font-size: 12.5px; }

/* FAQ */
.faq { max-width: 860px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  padding: 0 16px;
  margin-bottom: 8px;
  transition: background 0.15s;
}
.faq details[open] { background: rgba(255, 255, 255, 0.035); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 26px 14px 0;
  position: relative;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 17px;
  color: var(--muted);
  font-weight: 400;
  transition: transform 0.18s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { color: var(--muted); font-size: 13.5px; line-height: 1.65; padding: 0 0 14px; }
.faq .faq-a p { margin: 0 0 8px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 34px 0 28px;
  background: rgba(0, 0, 0, 0.24);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer-brand p { color: var(--muted-2); font-size: 12.5px; max-width: 34ch; margin: 10px 0 0; line-height: 1.6; }
.footer-col h4 {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin: 0 0 10px;
  font-weight: 700;
}
.footer-col a { display: block; color: var(--muted); font-size: 12.5px; padding: 3px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  z-index: 200;
  background: #171b26;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 18px 50px -16px #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  max-width: min(90vw, 420px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Legal pages */
.legal { max-width: 780px; padding: 56px 0 70px; }
.legal h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.04em; margin: 0 0 8px; }
.legal .updated { color: var(--muted-2); font-size: 12px; margin-bottom: 26px; }
.legal h2 { font-size: 17px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 14px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal a { color: #b9b0ff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 350px; gap: 16px; }
  .panel .card { padding: 13px; }
}

@media (max-width: 960px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .tool { position: static; }
  .hero { grid-template-columns: 1fr; gap: 18px; padding-top: 30px; }
  .hero-stat { display: none; }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .side-card { position: static; }
  .kit { grid-template-columns: 1fr; }
  .kit-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .only-mobile { display: inline-flex; }
  .header-cta .btn { font-size: 12.5px; padding: 8px 12px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .hero { padding: 24px 0 16px; }
  .hero h1 { font-size: clamp(29px, 8.4vw, 38px); }
  .hero p { font-size: 14.5px; }
  .tool { padding: 10px; border-radius: 18px; }
  .platform-tabs { gap: 3px; padding: 4px; }
  .pf-tab { font-size: 11px; padding: 8px 3px; gap: 4px; }
  .pf-tab .pf-dot { display: none; }
  .stage-bar { gap: 6px; padding: 6px 8px; flex-wrap: wrap; }
  .time { min-width: 68px; font-size: 10.5px; }
  .select-mini { font-size: 11px; }
  .feature-grid, .aff-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .kit { padding: 20px; }
  .kit-price .p { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .faq summary { font-size: 13.5px; }
  .inset-grid { grid-template-columns: 1fr 1fr; }
  .card-head .card-sub { display: none; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 12px; }
  .header-inner { height: 58px; }
  .logo { font-size: 16px; }
  .hero h1 { font-size: 27px; }
  .badge { font-size: 11px; padding: 5px 9px; }
  .pf-tab { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Additions ---------- */
.s-thumb-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 20% 15%, #274a6b 0%, transparent 55%),
    radial-gradient(110% 80% at 85% 45%, #4b2a6b 0%, transparent 60%),
    radial-gradient(90% 60% at 40% 95%, #5c2440 0%, transparent 60%),
    linear-gradient(160deg, #111a30, #251637);
}
.sample .s-thumb-gradient { opacity: 0.9; }

.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  color: #b9b0ff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.linkbtn:hover { color: #fff; }

.mini-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}
.select-full {
  width: 100%;
  padding: 8px 26px 8px 9px;
  font-size: 12px;
}

.stage:fullscreen {
  border-radius: 0;
  aspect-ratio: auto;
  margin: auto;
  box-shadow: none;
}
.stage:fullscreen .stage-badge { top: 14px; left: 14px; }
.stage::backdrop { background: #000; }

/* Stage caption row (replaces the in-frame badge) */
.stage-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px 0;
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.stage-note #stageBadgeText { color: #9aa3b5; font-weight: 600; }
.drag-hint::before {
  content: "↕";
  margin-right: 4px;
  color: #b9b0ff;
}
@media (max-width: 720px) {
  .stage-note { font-size: 9.5px; }
  .drag-hint { max-width: 55%; text-align: right; line-height: 1.3; }
}
