/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --red:        #e8192c;
  --red-glow:   #ff2d42;
  --red-deep:   #b5101c;
  --red-muted:  rgba(232,25,44,0.13);
  --red-border: rgba(232,25,44,0.28);

  --bg:         #0c0507;
  --bg-card:    rgba(255,255,255,0.035);
  --bg-input:   rgba(255,255,255,0.055);
  --bg-soft:    rgba(255,255,255,0.025);

  --txt:        #f3e5e8;
  --txt-2:      rgba(243,229,232,0.55);
  --txt-3:      rgba(243,229,232,0.3);

  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);

  --radius:     16px;
  --radius-lg:  24px;
  --shadow:     0 20px 60px rgba(0,0,0,0.55);
  --shadow-sm:  0 6px 20px rgba(0,0,0,0.35);
  --t:          0.18s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--apple-font);
  font-size: 16px;
  color: var(--txt);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 15% -5%,  rgba(210,18,38,0.17) 0%, transparent 55%),
    radial-gradient(ellipse 65% 45% at 85% 105%, rgba(170,10,28,0.11) 0%, transparent 50%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(232,25,44,0.035) 1px, transparent 0);
  background-size: 28px 28px;
}

/* ============================================================
   SOS BANNER
   ============================================================ */
.sos-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: linear-gradient(90deg, #b5101c 0%, #e8192c 50%, #b5101c 100%);
  border-bottom: 1px solid rgba(0,0,0,0.25);
  box-shadow: 0 4px 18px rgba(232,25,44,0.45);
  color: #fff;
  font-family: var(--apple-font);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.55s cubic-bezier(.4,0,.2,1), opacity 0.45s ease 0.1s, transform 0.45s cubic-bezier(.4,0,.2,1) 0.1s;
}
.sos-banner.visible {
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
}
.sos-banner-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 18px;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sos-banner-track::-webkit-scrollbar { display: none; }
.sos-banner-text {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.sos-text-short { display: none; }
.sos-text-full { display: inline; }
.sos-banner-cta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.sos-banner-cta img {
  display: block;
  height: auto;
  width: auto;
  max-height: 38px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
@media (max-width: 700px) {
  .sos-banner-track {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px 12px;
    white-space: normal;
    overflow-x: hidden;
  }
  .sos-banner-text {
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    max-width: 100%;
  }
  .sos-text-full { display: none; }
  .sos-text-short { display: inline; }
  .sos-banner-cta img { max-height: 32px; }
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: relative; z-index: 10;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  padding: 18px 20px 0;
  max-width: 900px;
  margin: 0 auto;
  gap: 12px;
}

.nav-brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff3a50 0%, #b5101c 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--apple-font);
  font-weight: 800; font-size: 20px; color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 6px 20px rgba(232,25,44,0.4);
  flex-shrink: 0;
  position: relative; overflow: hidden;
}
.nav-logo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, transparent 55%);
}

.nav-wordmark {
  font-family: var(--apple-font);
  font-weight: 700; font-size: 18px;
  color: var(--txt);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap;
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  justify-self: end;
}

.nav-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--txt);
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 0 0 4px;
  cursor: pointer;
  position: relative;
  transition: all var(--t);
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  justify-self: end;
}
.nav-menu-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-menu-toggle:focus-visible { outline: 2px solid var(--red-glow); outline-offset: 2px; }
.nav-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 6px;
  background: currentColor;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform var(--t), opacity var(--t), width var(--t);
}
.nav-menu-toggle span:nth-child(1) { top: 12px; }
.nav-menu-toggle span:nth-child(2) { top: 19px; }
.nav-menu-toggle span:nth-child(3) { top: 26px; }

.nav-menu-toggle.open span:nth-child(1) {
  top: 19px;
  transform: translateX(-50%) rotate(45deg);
}
.nav-menu-toggle.open span:nth-child(2) { opacity: 0; }
.nav-menu-toggle.open span:nth-child(3) {
  top: 19px;
  transform: translateX(-50%) rotate(-45deg);
}

.nav-live-status {
  justify-self: center;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1;
  color: var(--txt-3);
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  white-space: nowrap;
}

.nav-live-prefix,
.nav-live-suffix {
  letter-spacing: 0.01em;
}

.nav-live-count {
  color: var(--red-glow);
  font-family: var(--apple-font);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.nav-link {
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  color: var(--txt-2);
  text-decoration: none;
  transition: all var(--t);
  white-space: nowrap;
}
.nav-link:hover { color: var(--txt); background: rgba(255,255,255,0.06); }
.nav-link.active {
  color: var(--red-glow);
  background: var(--red-muted);
  border: 1px solid var(--red-border);
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page {
  position: relative; z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 16px 60px;
  display: flex; flex-direction: column; gap: 16px;
}

/* ============================================================
   HERO BLOCK  (used on all pages)
   ============================================================ */
.hero {
  text-align: center;
  padding: 20px 8px 8px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--red-muted);
  border: 1px solid var(--red-border);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--red-glow);
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--apple-font);
  font-size: clamp(24px, 6vw, 38px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.04em;
  background: linear-gradient(145deg, #fff 0%, rgba(243,210,215,0.88) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.hero p {
  font-size: 15px;
  color: var(--txt-2);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   TOOL CARD  (the main action card)
   ============================================================ */
.tool-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.tool-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,25,44,0.55), transparent);
}

/* ============================================================
   URL INPUT AREA  (top of tool card)
   ============================================================ */
.url-area {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
}

.url-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--txt-3);
  margin-bottom: 10px;
}
.url-label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-glow);
  box-shadow: 0 0 8px rgba(232,25,44,0.7);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 8px rgba(232,25,44,0.7); }
  50%      { opacity: 0.6; box-shadow: 0 0 4px rgba(232,25,44,0.3); }
}

.url-input-shell {
  display: flex; align-items: center; gap: 0;
  border-radius: 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-2);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.url-input-shell:focus-within {
  border-color: rgba(232,25,44,0.65);
  box-shadow: 0 0 0 3px rgba(232,25,44,0.12);
}
.url-input-shell.error {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(232,25,44,0.18) !important;
}

.url-icon {
  padding: 0 14px;
  color: var(--txt-3);
  display: flex; align-items: center;
  flex-shrink: 0;
}
.url-icon svg { width: 18px; height: 18px; }

#videoUrl {
  flex: 1;
  background: transparent; border: none; outline: none;
  font-family: var(--apple-font);
  font-size: 15px; font-weight: 400;
  color: var(--txt);
  padding: 15px 0 15px;
}
#videoUrl::placeholder { color: var(--txt-3); }

.url-clear {
  padding: 0 14px;
  color: var(--txt-3);
  cursor: pointer;
  background: none; border: none;
  font-size: 18px; line-height: 1;
  display: none;
  transition: color var(--t);
}
.url-clear:hover { color: var(--txt); }
body.has-video-url .url-clear { display: flex; align-items: center; }

/* ============================================================
   MODE TABS  (Cut / Download selector inside the card)
   ============================================================ */
.mode-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.mode-tab {
  flex: 1;
  padding: 14px 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--txt-3);
  background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--t);
  position: relative;
  margin-bottom: -1px;
}
.mode-tab svg { width: 16px; height: 16px; }
.mode-tab:hover { color: var(--txt); background: rgba(255,255,255,0.03); }
.mode-tab.active {
  color: var(--red-glow);
  border-bottom-color: var(--red-glow);
  background: rgba(232,25,44,0.05);
}

/* ============================================================
   TOOL BODY  (area below tabs)
   ============================================================ */
.tool-body {
  padding: 18px 18px 20px;
  display: flex; flex-direction: column; gap: 16px;
}

/* ============================================================
   VIDEO PREVIEW  (thumbnail before player loads)
   ============================================================ */
.preview-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: #0a0305;
  aspect-ratio: 16/9;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  display: none;
}
body.has-video-url .preview-wrap { display: block; }

.player-box {
  width: 100%; height: 100%;
  position: relative;
}
.player-box iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.player-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 20px;
  background: linear-gradient(135deg, #140508, #230810);
}
.ph-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(232,25,44,0.1);
  border: 1px solid rgba(232,25,44,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--red-glow); font-size: 18px;
  box-shadow: 0 0 20px rgba(232,25,44,0.2);
}
.ph-title { font-family: var(--apple-font); font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.65); }
.ph-text  { font-size: 12px; color: rgba(255,255,255,0.28); line-height: 1.5; max-width: 240px; }

/* ============================================================
   CUT PANEL  (step 3 time range)
   ============================================================ */
.cut-panel { display: flex; flex-direction: column; gap: 14px; }

.transcribe-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.transcribe-metric {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.transcribe-metric-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--txt-3);
}
.transcribe-metric-value {
  font-family: var(--apple-font);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--txt);
}
.transcribe-metric-sub {
  font-size: 13px;
  color: var(--txt-2);
  line-height: 1.45;
}

.transcribe-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
}
body.has-video-url .transcribe-panel {
  display: flex;
}
.transcribe-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.transcribe-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.transcribe-field-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--txt-3);
}
.transcribe-input-shell {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--t), box-shadow var(--t);
}
.transcribe-input-shell:focus-within {
  border-color: rgba(232,25,44,0.45);
  box-shadow: 0 0 0 2px rgba(232,25,44,0.12);
}
.transcribe-input-shell input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--txt);
  font-family: var(--apple-font);
  font-size: 15px;
}
.transcribe-input-shell input::placeholder {
  color: var(--txt-3);
}
.transcribe-format-picker {
  position: relative;
  padding: 0;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
}
.transcribe-format-picker.open {
  border-color: rgba(232,25,44,0.45);
  box-shadow: 0 0 0 2px rgba(232,25,44,0.12);
}
.transcribe-select-native {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.transcribe-format-trigger {
  position: relative;
  width: 100%;
  min-height: 54px;
  border: none;
  background: transparent;
  color: var(--txt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  text-align: left;
  cursor: pointer;
  font-family: var(--apple-font);
}
.transcribe-format-trigger:focus {
  outline: none;
}
.transcribe-format-trigger-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--txt-3);
  white-space: nowrap;
}
.transcribe-format-trigger-value {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 26px;
}
.transcribe-format-trigger::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 38px;
  width: 1px;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.transcribe-format-trigger::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(243,229,232,0.72);
  border-bottom: 2px solid rgba(243,229,232,0.72);
  transform: translateY(-68%) rotate(45deg);
  transition: transform var(--t), border-color var(--t);
  pointer-events: none;
}
.transcribe-format-picker.open .transcribe-format-trigger::after {
  transform: translateY(-18%) rotate(225deg);
  border-color: var(--red-glow);
}
.transcribe-format-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(232,25,44,0.22);
  background: linear-gradient(180deg, rgba(27,9,13,0.98), rgba(16,7,10,0.98));
  box-shadow: 0 18px 38px rgba(0,0,0,0.45);
  z-index: 20;
  backdrop-filter: blur(14px);
}
.transcribe-format-picker.open .transcribe-format-menu {
  display: flex;
}
.transcribe-format-option {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  color: var(--txt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.transcribe-format-option:hover,
.transcribe-format-option:focus {
  outline: none;
  border-color: rgba(232,25,44,0.3);
  background: rgba(255,255,255,0.05);
}
.transcribe-format-option[aria-selected="true"] {
  border-color: rgba(232,25,44,0.55);
  background: rgba(232,25,44,0.1);
}
.transcribe-format-option-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.transcribe-format-option-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--txt);
}
.transcribe-format-option-sub {
  font-size: 12px;
  line-height: 1.45;
  color: var(--txt-2);
}
.transcribe-format-option-check {
  opacity: 0;
  color: var(--red-glow);
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.transcribe-format-option[aria-selected="true"] .transcribe-format-option-check {
  opacity: 1;
}
.precision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.precision-option {
  position: relative;
}
.precision-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.precision-tile {
  min-height: 118px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  transition: border-color var(--t), transform var(--t), background var(--t), box-shadow var(--t);
  cursor: pointer;
}
.precision-tile:hover {
  border-color: rgba(232,25,44,0.35);
  transform: translateY(-1px);
}
.precision-radio:checked + .precision-tile {
  border-color: rgba(232,25,44,0.65);
  background: rgba(232,25,44,0.08);
  box-shadow: 0 0 0 2px rgba(232,25,44,0.12);
}
.precision-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.precision-name {
  font-family: var(--apple-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -0.02em;
}
.precision-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red-glow);
  background: var(--red-muted);
  border: 1px solid var(--red-border);
  border-radius: 999px;
  padding: 3px 7px;
}
.precision-copy {
  font-size: 13px;
  color: var(--txt-2);
  line-height: 1.45;
}
.precision-scale {
  display: flex;
  gap: 5px;
}
.precision-scale span {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}
.precision-scale span.active {
  background: linear-gradient(90deg, #ff3a50, #e8192c);
}
.request-error {
  display: none;
  border-radius: 10px;
  border: 1px solid rgba(232,25,44,0.35);
  background: rgba(232,25,44,0.08);
  color: #ff9ca6;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
}
.request-error.visible {
  display: block;
}
.transcribe-success {
  display: none;
  flex-direction: column;
  gap: 14px;
}
.transcribe-success.visible {
  display: flex;
}
.success-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(76,175,80,0.25);
  background: rgba(76,175,80,0.12);
  color: #9fe1a2;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.success-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6ddf75;
  box-shadow: 0 0 10px rgba(109,223,117,0.45);
}
.success-summary {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.success-summary h3 {
  font-family: var(--apple-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--txt);
}
.success-summary p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--txt-2);
}
.success-summary strong {
  color: var(--txt);
  font-weight: 700;
}
.success-actions {
  display: flex;
  gap: 10px;
}

.time-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.time-field { display: flex; flex-direction: column; gap: 6px; }

.time-field-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--txt-3);
}

.time-inputs-row {
  display: flex; gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  transition: border-color var(--t);
}
.time-inputs-row:focus-within {
  border-color: rgba(232,25,44,0.45);
}

.time-input-unit {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--txt-3);
}
.time-input-unit input {
  width: 52px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--txt);
  font-family: var(--apple-font);
  font-size: 15px; font-weight: 600;
  text-align: center;
  padding: 4px 6px;
  outline: none;
  transition: border-color var(--t);
}
.time-input-unit input:focus {
  border-color: rgba(232,25,44,0.6);
  box-shadow: 0 0 0 2px rgba(232,25,44,0.12);
}

.set-time-btn {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 6px; align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232,25,44,0.55);
  background: rgba(232,25,44,0.14);
  color: #ffd6db;
  font-family: var(--apple-font);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(232,25,44,0.55);
  animation: setTimeBtnPulse 2.4s ease-in-out infinite;
}
.set-time-btn:hover {
  background: rgba(232,25,44,0.28);
  color: #fff;
  border-color: rgba(232,25,44,0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232,25,44,0.35);
  animation: none;
}
.set-time-btn:active { transform: translateY(0); }
.set-time-btn svg { width: 14px; height: 14px; flex: none; }
@keyframes setTimeBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,25,44,0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(232,25,44,0);   }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px;
  font-family: var(--apple-font);
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--t);
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-loading,
.btn-loading:disabled {
  opacity: 1 !important;
}
.download-status-text {
  margin-left: 8px;
}

.btn-lg  { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn-sm  { padding: 8px 14px; font-size: 13px; border-radius: 9px; }

.btn-primary {
  background: linear-gradient(135deg, #ff3a50 0%, #b5101c 100%);
  color: #fff;
  box-shadow: 0 8px 26px rgba(232,25,44,0.38), 0 0 0 1px rgba(255,100,115,0.15);
  width: 100%;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(232,25,44,0.52);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-2);
  color: var(--txt);
  width: 100%;
}
.btn-secondary:hover:not(:disabled) {
  background: rgba(255,255,255,0.08);
  border-color: rgba(232,25,44,0.35);
  color: var(--red-glow);
}

.btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--txt-2);
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 9px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--txt); }

/* ============================================================
   PROGRESS BLOCK
   ============================================================ */
.progress-block {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: none;
  flex-direction: column; gap: 10px;
}
.progress-block.visible { display: flex; }

.progress-header {
  display: flex; align-items: center; justify-content: space-between;
}
.progress-title { font-size: 13px; font-weight: 600; color: var(--txt); }
.progress-pct {
  font-family: var(--apple-font);
  font-size: 14px; font-weight: 700;
  color: var(--red-glow);
}

.progress-track {
  height: 5px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.progress-fill {
  display: block;
  height: 100%; width: 0%; border-radius: inherit;
  background: linear-gradient(90deg, #ff3a50, #e8192c);
  box-shadow: 0 0 8px rgba(232,25,44,0.55);
  transition: width 0.3s ease;
}

.progress-step-label {
  font-size: 12px; color: var(--txt-2);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
}
#progressMessage.is-blinking {
  animation: progressMessageBlink 1.1s ease-in-out infinite;
  color: #ff6b7a !important;
  font-weight: 600;
}
@keyframes progressMessageBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.progress-error {
  display: none;
  font-size: 13px; color: #ff7080;
  background: rgba(232,25,44,0.08);
  border: 1px dashed rgba(232,25,44,0.35);
  border-radius: 8px;
  padding: 9px 12px;
}

/* ============================================================
   SUPPORT STRIP
   ============================================================ */
.support-strip {
  background: rgba(232,25,44,0.05);
  border: 1px solid rgba(232,25,44,0.18);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.support-copy { flex: 1; }
.support-copy strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.support-copy p { font-size: 13px; color: var(--txt-2); line-height: 1.5; }

/* ============================================================
   AI TRANSCRIBE STRIP
   ============================================================ */
.ai-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  display: none;
  position: relative; overflow: hidden;
}
.ai-strip::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,25,44,0.4), transparent);
}
body.has-video-url .ai-strip { display: flex; }

.ai-badge {
  display: inline-block;
  padding: 2px 8px; border-radius: 999px;
  background: var(--red-muted); border: 1px solid var(--red-border);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--red-glow);
  margin-bottom: 5px;
}
.ai-copy h3 {
  font-family: var(--apple-font);
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--txt); margin-bottom: 3px;
}
.ai-copy p { font-size: 13px; color: var(--txt-2); }

/* ============================================================
   FEATURE GRID  (used on landing & SEO pages)
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 8px;
}

.feature-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--red-muted);
  border: 1px solid var(--red-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--red-glow);
}
.feature-icon svg { width: 18px; height: 18px; }

.feature-title { font-family: var(--apple-font); font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.feature-desc  { font-size: 13px; color: var(--txt-2); line-height: 1.5; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: 1px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item + .faq-item { margin-top: 8px; }

.faq-q {
  width: 100%; padding: 15px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: none; cursor: pointer;
  font-family: var(--apple-font);
  font-size: 14px; font-weight: 600; color: var(--txt);
  text-align: left;
  transition: background var(--t);
}
.faq-q:hover { background: rgba(255,255,255,0.03); }
.faq-q svg { width: 16px; height: 16px; color: var(--txt-3); flex-shrink: 0; transition: transform var(--t); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 16px 14px;
  font-size: 14px; color: var(--txt-2); line-height: 1.65;
}
.faq-item.open .faq-a { display: block; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-bottom: 2px;
}
.section-title {
  font-family: var(--apple-font);
  font-size: 18px; font-weight: 700; letter-spacing: -0.03em;
  color: var(--txt);
}
.section-sub {
  font-size: 13px; color: var(--txt-2);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ============================================================
   PAGE CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, rgba(232,25,44,0.12) 0%, rgba(180,10,28,0.06) 100%);
  border: 1px solid rgba(232,25,44,0.22);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,25,44,0.6), transparent);
}
.cta-banner h2 {
  font-family: var(--apple-font);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--txt);
  margin-bottom: 8px;
}
.cta-banner p {
  font-size: 14px; color: var(--txt-2);
  margin-bottom: 18px; line-height: 1.6;
}
.cta-banner .btn { display: inline-flex; width: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 16px;
  text-align: center;
  font-size: 12px; color: var(--txt-3);
  max-width: 900px; margin: 0 auto;
}
.site-footer a { color: var(--txt-3); text-decoration: none; }
.site-footer a:hover { color: var(--red-glow); }
.footer-nav { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }

/* ============================================================
   POPUP (donation)
   ============================================================ */
.popup-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.popup-overlay.active { opacity: 1; visibility: visible; }

#app-shell.blurred { filter: blur(4px); }

.popup-box {
  max-width: 380px; width: 100%;
  background: #1a060b;
  border: 1px solid rgba(232,25,44,0.25);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05);
  padding: 28px 22px 22px;
  text-align: center;
  position: relative; overflow: hidden;
}
.popup-box::before {
  content: ''; position: absolute; top:0;left:0;right:0;height:1px;
  background: linear-gradient(90deg, transparent, rgba(232,25,44,0.6), transparent);
}
.popup-box h2 {
  font-family: var(--apple-font);
  font-size: 19px; font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 10px; color: var(--txt);
}
.popup-box p { font-size: 14px; color: var(--txt-2); line-height: 1.6; margin-bottom: 18px; }
.popup-actions { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.popup-skip {
  font-size: 13px; color: var(--txt-3);
  background: none; border: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
  transition: color var(--t);
}
.popup-skip:hover { color: var(--txt-2); }

.popup-box-promo { padding: 24px 22px 18px; max-width: 640px; }
.popup-box-promo h2 { margin-bottom: 8px; }
.popup-box-promo p { margin-bottom: 18px; color: rgba(243,229,232,0.88); }
.popup-cta-img {
  display: block; line-height: 0; border-radius: 12px; overflow: hidden;
  margin: 0 auto 12px; transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.popup-cta-img:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,0.5); }
.popup-cta-img img { display: block; width: 100%; height: auto; }

.promo-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
}
.promo-col {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  gap: 10px;
}
.promo-col-label {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(243,229,232,0.7); font-weight: 700;
}
.promo-paypal {
  display: flex; align-items: center; justify-content: center;
  min-height: 60px;
}
.promo-paypal img { display: block; max-width: 100%; height: auto; }
.promo-divider {
  align-self: stretch;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.popup-box-promo .popup-cta-img { margin: 0; }
.popup-box-promo .popup-cta-img img { max-width: 100%; }

@media (min-width: 560px) {
  .promo-row { flex-direction: row; align-items: stretch; gap: 22px; }
  .promo-col { justify-content: center; }
  .promo-divider {
    width: 1px; height: auto; min-height: 220px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.18), transparent);
  }
}

/* ============================================================
   SIDE PROMO (desktop side banner)
   ============================================================ */
.side-promo {
  position: fixed;
  top: calc(50vh - 300px);
  z-index: 50;
  width: 300px;
  display: none;
}
@media (min-width: 1500px) { .side-promo { display: block; } }
.side-promo-left { left: 18px; }
.side-promo-cta {
  display: block; line-height: 0; border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.side-promo-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,0.55); }
.side-promo-img { display: block; width: 100%; height: auto; }

/* Personalized NordVPN banner — matches Nord brand (300x600 rail) */
.np-banner-link {
  display: block;
  width: 300px;
  height: 600px;
  text-decoration: none;
  color: inherit;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.4;
}
.np-banner {
  width: 100%;
  height: 100%;
  background: #3e5fff;
  color: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
.np-alert {
  background: #e63946;
  padding: 10px 16px;
  text-align: left;
  flex-shrink: 0;
}
.np-alert-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.np-alert-icon { font-size: 13px; line-height: 1; }
.np-alert-meta {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  line-height: 1.35;
}
.np-alert-meta .np-sep { opacity: 0.7; padding: 0 2px; }

.np-card {
  padding: 22px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.np-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-shrink: 0;
}
.np-mark { width: 28px; height: 28px; display: block; }
.np-wordmark {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
}
.np-wordmark sup {
  font-size: 9px;
  font-weight: 600;
  vertical-align: super;
  margin-left: 1px;
}

.np-headline {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: -0.02em;
}
.np-sub {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
  text-align: center;
}

.np-features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  font-size: 13px;
  color: #fff;
}
.np-features li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-weight: 500;
}
.np-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid #81e4a2;
  border-bottom: 2.5px solid #81e4a2;
  transform: rotate(-45deg);
}

.np-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #81e4a2;
  color: #0a2540;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 14px 18px;
  border-radius: 999px;
  margin-top: 18px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.np-banner-link:hover .np-cta-btn {
  background: #6dd991;
}
.np-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  font-weight: 700;
}
.np-banner-link:hover .np-arrow { transform: translateX(3px); }

.np-price {
  margin-top: 10px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
}
.np-price b {
  color: #fff;
  font-weight: 700;
}

/* Rail banner refresh: keeps the previous NordVPN 300x600 composition while
   allowing the IP/location warning to be populated dynamically. */
.np-banner-link {
  line-height: 1.35;
}
.np-banner {
  position: relative;
  isolation: isolate;
  background: #3e5fff;
  border-radius: 0;
  display: block;
  text-rendering: optimizeLegibility;
}
.np-banner-copy {
  position: relative;
  z-index: 2;
  height: 342px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.np-alert {
  width: 300px;
  min-height: 0;
  padding: 7px 10px 6px;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  box-shadow: 0 16px 30px rgba(7,24,68,0.3);
  color: #111827;
  text-align: left;
}
.np-alert-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 2px minmax(0, 0.92fr) 2px minmax(0, 1.25fr);
  align-items: stretch;
  gap: 9px;
}
.np-alert-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.np-alert-sep {
  width: 2px;
  min-height: 34px;
  align-self: center;
  background: #b7bfce;
}
.np-alert-label {
  color: #1f2937;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}
.np-alert-value {
  color: #000;
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.np-ip {
  font-size: 12.8px;
  letter-spacing: 0;
}
.np-alert-status {
  color: #d31335;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.12;
  animation: np-status-blink 1.15s ease-in-out infinite;
}
@keyframes np-status-blink {
  0%, 100% {
    color: #d31335;
    opacity: 1;
  }
  50% {
    color: #ff2f4f;
    opacity: 0.45;
  }
}
.np-brand {
  margin: 29px 0 12px;
  width: 170px;
  height: 46px;
  flex: 0 0 46px;
  gap: 0;
  background: url("assets/img/b.png") no-repeat -66px -48px / 300px 600px;
}
.np-brand .np-mark,
.np-brand .np-wordmark {
  display: none;
}
.np-mark {
  width: 42px;
  height: 42px;
}
.np-wordmark {
  font-size: 23px;
  letter-spacing: 0;
}
.np-wordmark sup {
  font-size: 8px;
  margin-left: 2px;
}
.np-headline {
  margin: 0;
  max-width: 258px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0;
}
.np-price-highlight {
  color: #90f0a9;
  text-shadow: 0 1px 0 rgba(0,0,0,0.16);
  white-space: nowrap;
  font-weight: 700;
}
.np-cta-btn {
  margin-top: 14px;
  min-width: 118px;
  min-height: 38px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #79e69a;
  color: #071822;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: none;
}
.np-banner-link:hover .np-cta-btn {
  background: #8df0aa;
}
.np-device {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 273px;
  background: url("assets/img/b.png") no-repeat center bottom / 300px 600px;
}

.progress-extra { display: none; margin-top: 14px; }
.progress-block.visible .progress-extra { display: block; }
.progress-extra-cta {
  display: block; line-height: 0; text-align: center;
  border-radius: 10px; overflow: hidden;
  transition: opacity 0.18s ease;
}
.progress-extra-cta:hover { opacity: 0.92; }
.progress-extra-cta picture, .progress-extra-cta img {
  display: inline-block; width: 100%; height: auto;
  max-width: 728px; border-radius: 10px;
}
@media (max-width: 600px) {
  .progress-extra-cta picture, .progress-extra-cta img { max-width: 320px; }
}

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.4px solid rgba(255,255,255,0.35);
  border-top-color: #ffffff;
  box-shadow: 0 0 10px rgba(255,255,255,0.15);
  animation: spin .7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
  align-self: center;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   UTILS
   ============================================================ */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px !important;
  }
  .site-nav { display: grid; padding: 14px 14px 0; grid-template-columns: auto 1fr auto; align-items: center; }
  .nav-wordmark { font-size: 15px; }
  .nav-menu-toggle { display: inline-flex; }
  .nav-menu-toggle,
  .nav-links {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    justify-self: end;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    right: 14px;
    left: auto;
    width: min(260px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    min-width: 140px;
    background: rgba(18, 8, 12, 0.98);
    border: 1px solid var(--red-border);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: 12px;
    box-shadow: 0 15px 32px rgba(0,0,0,0.65);
    padding: 10px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    z-index: 12;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 11px;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
  }
  .nav-link:hover {
    border-color: var(--border);
    background: rgba(255,255,255,0.06);
  }
  .nav-link.active {
    background: var(--red-muted);
    border-color: var(--red-border);
  }
  .nav-live-status {
    grid-column: 2 / 3;
    max-width: min(58vw, 190px);
    font-size: 11px;
    padding: 5px 8px;
  }
  .nav-live-count { font-size: 13px; }
  .nav-live-suffix { display: none; }
  .page { padding: 20px 12px 50px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 14px; }
  .features { grid-template-columns: 1fr; }
  .time-pair { grid-template-columns: 1fr; }
  .transcribe-metrics { grid-template-columns: 1fr; }
  .transcribe-form-grid { grid-template-columns: 1fr; }
  .precision-grid { grid-template-columns: 1fr; }
  .success-actions { flex-direction: column; }
  .tool-body { padding: 14px 14px 16px; }
  .url-area { padding: 16px 14px 14px; }
  .ai-strip { flex-direction: column; gap: 10px; }
  .ai-strip .btn { width: 100%; }
  .nav-wordmark { font-size: 16px; }
}

@media (min-width: 601px) {
  .time-pair { grid-template-columns: 1fr 1fr; }
}
