/* =========================================================
   TikTok Downloader — Production UI
   Created by Usman Bashir
   ========================================================= */


/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {
  --font-sans:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  --page-max: 1180px;

  --bg: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-elevated: #ffffff;

  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-hover: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --primary: #0f172a;
  --primary-hover: #1e293b;
  --primary-text: #ffffff;

  --accent-cyan: #0891b2;
  --accent-cyan-soft: #ecfeff;

  --accent-rose: #e11d48;
  --accent-rose-soft: #fff1f2;

  --success: #047857;
  --success-soft: #ecfdf5;
  --success-border: #a7f3d0;

  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --danger-border: #fecaca;

  --warning: #a16207;
  --warning-soft: #fffbeb;

  --info: #1d4ed8;
  --info-soft: #eff6ff;

  --shadow-xs:
    0 1px 2px rgba(15, 23, 42, 0.04);

  --shadow-sm:
    0 4px 14px rgba(15, 23, 42, 0.06);

  --shadow-md:
    0 14px 40px rgba(15, 23, 42, 0.08);

  --shadow-lg:
    0 24px 70px rgba(15, 23, 42, 0.12);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --transition-fast: 150ms ease;
  --transition: 220ms ease;

  color-scheme: light;
}


/* =========================================================
   DARK THEME
   ========================================================= */

html[data-theme="dark"] {
  --bg: #020617;
  --bg-secondary: #0f172a;
  --bg-elevated: #111827;

  --surface: #0f172a;
  --surface-soft: #111827;
  --surface-hover: #1e293b;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --border: #1e293b;
  --border-strong: #334155;

  --primary: #f8fafc;
  --primary-hover: #e2e8f0;
  --primary-text: #0f172a;

  --accent-cyan-soft: rgba(8, 145, 178, 0.12);
  --accent-rose-soft: rgba(225, 29, 72, 0.12);

  --success-soft: rgba(4, 120, 87, 0.12);
  --success-border: rgba(16, 185, 129, 0.3);

  --danger-soft: rgba(185, 28, 28, 0.14);
  --danger-border: rgba(248, 113, 113, 0.26);

  --info-soft: rgba(37, 99, 235, 0.12);

  --shadow-md:
    0 14px 40px rgba(0, 0, 0, 0.28);

  --shadow-lg:
    0 24px 70px rgba(0, 0, 0, 0.38);

  color-scheme: dark;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;

  width: 100%;
  min-width: 0;

  min-height: 100vh;
  min-height: 100dvh;

  overflow-x: hidden;

  font-family: var(--font-sans);

  background:
    radial-gradient(
      circle at 10% -10%,
      rgba(8, 145, 178, 0.08),
      transparent 30%
    ),
    radial-gradient(
      circle at 95% 5%,
      rgba(225, 29, 72, 0.06),
      transparent 28%
    ),
    var(--bg);

  color: var(--text-primary);

  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);

  transition:
    background-color var(--transition),
    color var(--transition);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
  outline: 3px solid rgba(8, 145, 178, 0.38);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0, 0, 0, 0) !important;

  white-space: nowrap !important;

  border: 0 !important;
}


/* =========================================================
   GLOBAL LAYOUT
   ========================================================= */

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.content-container,
.header-container {
  width:
    min(
      calc(100% - 32px),
      var(--page-max)
    );

  margin-inline: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  width: 100%;

  padding-top: env(safe-area-inset-top);

  border-bottom:
    1px solid
    color-mix(
      in srgb,
      var(--border) 85%,
      transparent
    );

  background:
    color-mix(
      in srgb,
      var(--bg) 86%,
      transparent
    );

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 70px;

  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;

  min-width: 0;

  gap: 11px;

  color: var(--text-primary);

  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 42px;
  height: 42px;

  border-radius: 13px;

  background:
    linear-gradient(
      145deg,
      var(--primary),
      #334155
    );

  color: #ffffff;

  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .brand-mark {
  background:
    linear-gradient(
      145deg,
      #f8fafc,
      #cbd5e1
    );

  color: #020617;
}

.brand-copy {
  display: flex;
  flex-direction: column;

  min-width: 0;

  line-height: 1.2;
}

.brand-name {
  color: var(--text-primary);

  font-size: 0.96rem;
  font-weight: 800;

  white-space: nowrap;
}

.brand-credit {
  margin-top: 3px;

  color: var(--text-muted);

  font-size: 0.68rem;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;

  gap: 9px;
}

.header-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;

  border:
    1px solid
    var(--border);

  border-radius: 12px;

  background: var(--surface);

  color: var(--text-primary);

  box-shadow: var(--shadow-xs);

  cursor: pointer;

  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.header-button:hover,
.icon-button:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.header-button:active,
.icon-button:active {
  transform: scale(0.97);
}

.header-button {
  gap: 7px;

  padding-inline: 15px;

  font-size: 0.8rem;
  font-weight: 800;
}

.icon-button {
  width: 44px;
  padding: 0;

  font-size: 1.05rem;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
  position: relative;

  padding:
    clamp(58px, 8vw, 96px)
    0
    clamp(38px, 5vw, 62px);
}

.hero-container {
  position: relative;
}

.hero-copy {
  max-width: 790px;

  margin-inline: auto;

  text-align: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  color: var(--accent-cyan);

  font-size:
    clamp(
      0.72rem,
      1.4vw,
      0.8rem
    );

  font-weight: 800;

  letter-spacing: 0.055em;

  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;

  border-radius: 999px;

  background: #10b981;

  box-shadow:
    0 0 0 5px
    rgba(16, 185, 129, 0.12);
}

.hero-copy h1 {
  max-width: 850px;

  margin:
    17px auto 0;

  color: var(--text-primary);

  font-size:
    clamp(
      2.35rem,
      7vw,
      5.2rem
    );

  line-height: 0.98;

  letter-spacing:
    clamp(
      -3.6px,
      -0.08em,
      -1.2px
    );

  text-wrap: balance;
}

.hero-highlight {
  position: relative;

  display: inline-block;

  background:
    linear-gradient(
      90deg,
      var(--accent-cyan),
      #6366f1 48%,
      var(--accent-rose)
    );

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
}

.hero-description {
  max-width: 690px;

  margin:
    22px auto 0;

  color: var(--text-secondary);

  font-size:
    clamp(
      0.98rem,
      2vw,
      1.15rem
    );

  line-height: 1.7;

  text-wrap: balance;
}


/* =========================================================
   DOWNLOAD CARD
   ========================================================= */

.download-card {
  position: relative;

  max-width: 920px;

  margin:
    clamp(34px, 5vw, 52px)
    auto 0;

  padding:
    clamp(
      16px,
      2.8vw,
      24px
    );

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-lg);

  background:
    color-mix(
      in srgb,
      var(--surface) 96%,
      transparent
    );

  box-shadow: var(--shadow-lg);
}

.download-card::before {
  content: "";

  position: absolute;
  inset: -1px;

  z-index: -1;

  border-radius:
    inherit;

  background:
    linear-gradient(
      110deg,
      rgba(8, 145, 178, 0.16),
      transparent 32%,
      transparent 70%,
      rgba(225, 29, 72, 0.13)
    );
}

.download-form {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap: 12px;
}

.url-control {
  display: flex;
  align-items: center;

  min-width: 0;
  min-height: 58px;

  padding:
    6px 7px 6px 15px;

  border:
    1px solid
    var(--border-strong);

  border-radius: 14px;

  background: var(--surface-soft);

  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.url-control:focus-within {
  border-color: var(--accent-cyan);

  background: var(--surface);

  box-shadow:
    0 0 0 4px
    rgba(8, 145, 178, 0.1);
}

.url-icon {
  flex: 0 0 auto;

  margin-right: 9px;

  font-size: 0.96rem;
}

.url-input {
  flex: 1;

  min-width: 0;

  border: 0;
  outline: 0;

  background: transparent;

  color: var(--text-primary);

  font-size:
    clamp(
      0.9rem,
      1.8vw,
      1rem
    );
}

.url-input::placeholder {
  color: var(--text-faint);
}

.field-action {
  flex: 0 0 auto;

  min-height: 42px;

  padding-inline: 13px;

  border-radius: 10px;

  background: transparent;

  color: var(--text-secondary);

  font-size: 0.78rem;
  font-weight: 800;

  cursor: pointer;

  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.field-action:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.clear-button {
  min-width: 42px;

  padding: 0;

  font-size: 1.25rem;
}

.paste-button {
  border:
    1px solid
    var(--border);

  background: var(--surface);
}

.primary-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  min-width: 155px;
  min-height: 58px;

  padding-inline: 24px;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      #334155
    );

  color: #ffffff;

  font-size: 0.94rem;
  font-weight: 850;

  box-shadow:
    0 12px 30px
    rgba(15, 23, 42, 0.18);

  cursor: pointer;

  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast);
}

html[data-theme="dark"] .primary-download-button {
  background:
    linear-gradient(
      135deg,
      #f8fafc,
      #cbd5e1
    );

  color: #020617;
}

.primary-download-button:hover {
  transform: translateY(-1px);

  box-shadow:
    0 16px 34px
    rgba(15, 23, 42, 0.22);
}

.primary-download-button:active {
  transform: scale(0.985);
}

.primary-download-button:disabled {
  opacity: 0.65;

  cursor: wait;

  transform: none;
}

.button-arrow {
  font-size: 1.12rem;
}

.form-message {
  margin-top: 12px;

  padding:
    11px 13px;

  border-radius: 10px;

  font-size: 0.8rem;
  line-height: 1.45;
}

.form-message.error {
  border:
    1px solid
    var(--danger-border);

  background:
    var(--danger-soft);

  color:
    var(--danger);
}

.form-message.success {
  border:
    1px solid
    var(--success-border);

  background:
    var(--success-soft);

  color:
    var(--success);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap:
    9px 20px;

  margin-top: 16px;

  color: var(--text-muted);

  font-size:
    clamp(
      0.72rem,
      1.5vw,
      0.8rem
    );
}


/* =========================================================
   PROCESSING
   ========================================================= */

.processing-section {
  padding:
    8px 0 24px;
}

.processing-card {
  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr);

  gap:
    15px;

  align-items: center;

  max-width: 920px;

  margin-inline: auto;

  padding:
    17px 19px;

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-md);

  background:
    var(--surface);

  box-shadow:
    var(--shadow-sm);
}

.processing-spinner {
  width: 32px;
  height: 32px;

  border:
    3px solid
    var(--border);

  border-top-color:
    var(--accent-cyan);

  border-radius:
    50%;

  animation:
    spin 0.8s linear infinite;
}

.processing-copy {
  display: flex;
  flex-direction: column;

  min-width: 0;

  gap: 3px;
}

.processing-copy strong {
  color: var(--text-primary);

  font-size: 0.9rem;
}

.processing-copy span {
  color: var(--text-muted);

  font-size: 0.77rem;
}

.processing-progress {
  grid-column:
    1 / -1;

  width: 100%;
  height: 4px;

  overflow: hidden;

  border-radius: 999px;

  background:
    var(--bg-secondary);
}

.processing-progress-bar {
  display: block;

  width: 12%;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--accent-cyan),
      #6366f1,
      var(--accent-rose)
    );

  transition:
    width 500ms ease;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* =========================================================
   RESULT SECTION
   ========================================================= */

.result-section {
  padding:
    14px 0
    clamp(60px, 8vw, 90px);
}

.result-card {
  overflow: hidden;

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-lg);

  background:
    var(--surface);

  box-shadow:
    var(--shadow-md);
}

.result-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding:
    clamp(18px, 3vw, 26px);

  border-bottom:
    1px solid
    var(--border);
}

.result-topbar h2 {
  margin:
    8px 0 0;

  color:
    var(--text-primary);

  font-size:
    clamp(
      1.15rem,
      2.8vw,
      1.55rem
    );
}

.result-success-badge {
  display: inline-flex;
  align-items: center;

  min-height: 25px;

  padding:
    4px 9px;

  border-radius: 999px;

  background:
    var(--success-soft);

  color:
    var(--success);

  font-size: 0.67rem;
  font-weight: 850;

  text-transform: uppercase;

  letter-spacing: 0.04em;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;

  padding-inline: 15px;

  border:
    1px solid
    var(--border);

  border-radius: 11px;

  background:
    var(--surface-soft);

  color:
    var(--text-primary);

  font-size: 0.78rem;
  font-weight: 800;

  cursor: pointer;

  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.secondary-button:hover {
  background:
    var(--surface-hover);

  border-color:
    var(--border-strong);
}

.secondary-button:active {
  transform:
    scale(0.98);
}


/* =========================================================
   MEDIA OVERVIEW
   ========================================================= */

.media-overview {
  display: grid;

  grid-template-columns:
    minmax(145px, 210px)
    minmax(0, 1fr);

  gap:
    clamp(
      18px,
      3vw,
      30px
    );

  align-items: start;

  padding:
    clamp(20px, 3.5vw, 30px);
}

.media-thumbnail-wrap {
  width: 100%;
  max-width: 210px;

  margin-inline: auto;
}

.media-thumbnail {
  width: 100%;

  aspect-ratio:
    9 / 16;

  object-fit: cover;

  border-radius: 15px;

  background:
    var(--bg-secondary);

  box-shadow:
    var(--shadow-sm);
}

.media-content {
  min-width: 0;
}

.media-heading {
  min-width: 0;
}

.platform-badge {
  display: inline-flex;
  align-items: center;

  min-height: 24px;

  padding:
    4px 9px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      var(--accent-cyan-soft),
      var(--accent-rose-soft)
    );

  color:
    var(--text-secondary);

  font-size: 0.66rem;
  font-weight: 850;

  text-transform: uppercase;

  letter-spacing: 0.055em;
}

.media-heading h3 {
  display:
    -webkit-box;

  margin:
    12px 0 20px;

  overflow: hidden;

  color:
    var(--text-primary);

  font-size:
    clamp(
      1.05rem,
      2.8vw,
      1.4rem
    );

  line-height: 1.45;

  overflow-wrap: anywhere;

  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.media-meta-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 10px;
}

.media-meta-item {
  min-width: 0;

  padding:
    12px 13px;

  border:
    1px solid
    var(--border);

  border-radius: 11px;

  background:
    var(--surface-soft);
}

.meta-label {
  display: block;

  margin-bottom: 4px;

  color:
    var(--text-faint);

  font-size: 0.66rem;
  font-weight: 800;

  letter-spacing: 0.045em;

  text-transform: uppercase;
}

.media-meta-item strong {
  display: block;

  overflow: hidden;

  color:
    var(--text-primary);

  font-size: 0.84rem;

  text-overflow: ellipsis;

  white-space: nowrap;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 18px;

  margin-bottom: 15px;
}

.section-heading h3,
.section-heading h2 {
  margin:
    5px 0 0;

  color:
    var(--text-primary);

  font-size:
    clamp(
      1rem,
      2.4vw,
      1.25rem
    );
}

.section-heading-spaced {
  align-items: center;

  margin-bottom: 20px;
}

.center-section-heading {
  max-width: 680px;

  margin:
    0 auto
    clamp(28px, 4vw, 42px);

  text-align: center;
}

.center-section-heading h2 {
  margin:
    8px 0 0;

  color:
    var(--text-primary);

  font-size:
    clamp(
      1.7rem,
      4vw,
      2.5rem
    );

  letter-spacing: -0.035em;
}

.center-section-heading p {
  margin:
    11px auto 0;

  color:
    var(--text-muted);

  font-size:
    clamp(
      0.88rem,
      1.8vw,
      1rem
    );

  line-height: 1.65;
}


/* =========================================================
   VIDEO PREVIEW
   ========================================================= */

.preview-section,
.download-options-section {
  padding:
    clamp(20px, 3.5vw, 30px);

  border-top:
    1px solid
    var(--border);
}

.video-player-shell {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  min-height:
    clamp(
      240px,
      48vw,
      500px
    );

  overflow: hidden;

  border-radius: 16px;

  background: #000000;
}

.video-player-shell video {
  width: 100%;
  height: auto;

  max-height:
    min(
      74vh,
      720px
    );

  object-fit: contain;

  background: #000000;
}


/* =========================================================
   DOWNLOAD QUALITY
   ========================================================= */

.quality-count {
  flex: 0 0 auto;

  padding:
    5px 9px;

  border:
    1px solid
    var(--border);

  border-radius: 999px;

  background:
    var(--surface-soft);

  color:
    var(--text-muted);

  font-size: 0.69rem;
  font-weight: 800;
}

.quality-list {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(
        min(100%, 300px),
        1fr
      )
    );

  gap: 11px;
}

.quality-option {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-width: 0;

  gap: 14px;

  padding:
    14px;

  border:
    1px solid
    var(--border);

  border-radius: 13px;

  background:
    var(--surface-soft);

  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.quality-option:hover {
  transform: translateY(-1px);

  border-color:
    var(--border-strong);

  background:
    var(--surface-hover);
}

.quality-option-main {
  min-width: 0;
}

.quality-option-title {
  display: flex;
  align-items: center;

  flex-wrap: wrap;

  gap: 6px;

  color:
    var(--text-primary);

  font-size: 0.86rem;
  font-weight: 850;
}

.recommended-badge {
  display: inline-flex;
  align-items: center;

  min-height: 20px;

  padding:
    3px 7px;

  border-radius: 999px;

  background:
    var(--success-soft);

  color:
    var(--success);

  font-size: 0.57rem;
  font-weight: 900;

  text-transform: uppercase;

  letter-spacing: 0.04em;
}

.quality-option-details {
  margin-top: 4px;

  color:
    var(--text-muted);

  font-size: 0.72rem;

  line-height: 1.45;

  overflow-wrap: anywhere;
}

.quality-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  min-width: 104px;
  min-height: 44px;

  padding-inline: 15px;

  border-radius: 10px;

  background:
    var(--primary);

  color:
    var(--primary-text);

  font-size: 0.76rem;
  font-weight: 850;

  text-decoration: none;

  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.quality-download-button:hover {
  transform:
    translateY(-1px);
}

.quality-download-button:active {
  transform:
    scale(0.98);
}

.download-notice {
  display: flex;
  align-items: center;

  gap: 8px;

  padding:
    12px
    clamp(20px, 3.5vw, 30px)
    20px;

  color:
    var(--text-faint);

  font-size: 0.71rem;

  line-height: 1.45;
}


/* =========================================================
   ERROR
   ========================================================= */

.error-section {
  padding:
    12px 0
    clamp(55px, 7vw, 80px);
}

.error-card {
  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto;

  gap: 16px;

  align-items: center;

  padding:
    20px;

  border:
    1px solid
    var(--danger-border);

  border-radius:
    16px;

  background:
    var(--danger-soft);
}

.error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border-radius: 999px;

  background:
    rgba(185, 28, 28, 0.1);

  color:
    var(--danger);

  font-size: 1.1rem;
  font-weight: 900;
}

.error-copy h2 {
  margin: 0;

  color:
    var(--danger);

  font-size:
    clamp(
      0.98rem,
      2vw,
      1.1rem
    );
}

.error-copy p {
  margin:
    5px 0 0;

  color:
    var(--text-secondary);

  font-size: 0.79rem;

  line-height: 1.5;
}


/* =========================================================
   RECENT
   ========================================================= */

.recent-section {
  padding:
    10px 0
    clamp(60px, 8vw, 90px);
}

.text-button {
  padding: 6px;

  background: transparent;

  color:
    var(--text-muted);

  font-size: 0.76rem;
  font-weight: 700;

  cursor: pointer;
}

.text-button:hover {
  color:
    var(--text-primary);
}

.recent-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(
        min(100%, 235px),
        1fr
      )
    );

  gap: 13px;
}

.recent-card {
  display: grid;

  grid-template-columns:
    72px
    minmax(0, 1fr);

  gap: 12px;

  align-items: center;

  padding: 11px;

  border:
    1px solid
    var(--border);

  border-radius:
    13px;

  background:
    var(--surface);

  box-shadow:
    var(--shadow-xs);
}

.recent-thumbnail {
  width: 72px;
  height: 88px;

  border-radius: 9px;

  object-fit: cover;

  background:
    var(--bg-secondary);
}

.recent-copy {
  min-width: 0;
}

.recent-title {
  display:
    -webkit-box;

  overflow: hidden;

  color:
    var(--text-primary);

  font-size: 0.78rem;
  font-weight: 750;

  line-height: 1.35;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recent-meta {
  margin-top: 6px;

  color:
    var(--text-faint);

  font-size: 0.67rem;
}


/* =========================================================
   HOW IT WORKS
   ========================================================= */

.info-section {
  padding:
    clamp(65px, 8vw, 100px)
    0;

  border-top:
    1px solid
    var(--border);

  background:
    color-mix(
      in srgb,
      var(--surface-soft) 52%,
      transparent
    );
}

.steps-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 15px;
}

.step-card {
  padding:
    clamp(20px, 3vw, 28px);

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-md);

  background:
    var(--surface);

  box-shadow:
    var(--shadow-xs);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      var(--accent-cyan-soft),
      var(--accent-rose-soft)
    );

  color:
    var(--text-primary);

  font-size: 0.85rem;
  font-weight: 900;
}

.step-card h3 {
  margin:
    18px 0 0;

  color:
    var(--text-primary);

  font-size: 1rem;
}

.step-card p {
  margin:
    9px 0 0;

  color:
    var(--text-muted);

  font-size: 0.82rem;

  line-height: 1.6;
}


/* =========================================================
   INSTALL SECTION
   ========================================================= */

.install-section {
  padding:
    clamp(60px, 8vw, 95px)
    0;
}

.install-card {
  display: grid;

  grid-template-columns:
    minmax(180px, 0.72fr)
    minmax(0, 1.28fr);

  gap:
    clamp(28px, 6vw, 70px);

  align-items: center;

  overflow: hidden;

  padding:
    clamp(28px, 5vw, 58px);

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-xl);

  background:
    linear-gradient(
      145deg,
      var(--surface),
      var(--surface-soft)
    );

  box-shadow:
    var(--shadow-md);
}

.install-visual {
  display: flex;
  justify-content: center;
}

.phone-preview {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width:
    min(
      100%,
      220px
    );

  aspect-ratio:
    0.58;

  border:
    7px solid
    var(--text-primary);

  border-radius: 34px;

  background:
    linear-gradient(
      160deg,
      var(--accent-cyan-soft),
      var(--surface),
      var(--accent-rose-soft)
    );

  box-shadow:
    var(--shadow-lg);
}

.phone-preview::before {
  content: "";

  position: absolute;
  top: 8px;
  left: 50%;

  width: 40%;
  height: 18px;

  transform:
    translateX(-50%);

  border-radius:
    0 0 13px 13px;

  background:
    var(--text-primary);
}

.phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 72px;
  height: 72px;

  border-radius: 22px;

  background:
    var(--primary);

  color:
    var(--primary-text);

  font-size: 2rem;

  box-shadow:
    var(--shadow-md);
}

.install-content h2 {
  max-width: 600px;

  margin:
    9px 0 0;

  color:
    var(--text-primary);

  font-size:
    clamp(
      1.65rem,
      4vw,
      2.6rem
    );

  line-height: 1.1;

  letter-spacing: -0.035em;
}

.install-content p {
  max-width: 610px;

  margin:
    16px 0 0;

  color:
    var(--text-muted);

  font-size:
    clamp(
      0.88rem,
      1.8vw,
      1rem
    );

  line-height: 1.7;
}

.install-main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;

  margin-top: 20px;

  padding-inline: 19px;

  border-radius: 11px;

  background:
    var(--primary);

  color:
    var(--primary-text);

  font-size: 0.82rem;
  font-weight: 850;

  cursor: pointer;
}

.ios-install-help {
  margin-top: 16px;

  padding:
    11px 13px;

  border-radius: 10px;

  background:
    var(--info-soft);

  color:
    var(--info);

  font-size: 0.76rem;

  line-height: 1.5;
}


/* =========================================================
   PRIVACY
   ========================================================= */

.privacy-section {
  padding:
    0 0
    clamp(70px, 8vw, 100px);
}

.privacy-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 14px;
}

.privacy-item {
  display: flex;

  gap: 13px;

  padding: 19px;

  border:
    1px solid
    var(--border);

  border-radius: 14px;

  background:
    var(--surface);
}

.privacy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 38px;
  height: 38px;

  border-radius: 11px;

  background:
    var(--surface-soft);

  color:
    var(--accent-cyan);

  font-weight: 900;
}

.privacy-item h3 {
  margin: 0;

  color:
    var(--text-primary);

  font-size: 0.9rem;
}

.privacy-item p {
  margin:
    6px 0 0;

  color:
    var(--text-muted);

  font-size: 0.76rem;

  line-height: 1.55;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq-section {
  padding:
    clamp(65px, 8vw, 100px)
    0;

  border-top:
    1px solid
    var(--border);

  background:
    var(--surface-soft);
}

.faq-container {
  max-width: 900px;
}

.faq-list {
  display: grid;

  gap: 10px;
}

.faq-item {
  overflow: hidden;

  border:
    1px solid
    var(--border);

  border-radius: 13px;

  background:
    var(--surface);
}

.faq-item summary {
  position: relative;

  padding:
    17px 48px 17px 18px;

  color:
    var(--text-primary);

  font-size: 0.88rem;
  font-weight: 800;

  list-style: none;

  cursor: pointer;
}

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

.faq-item summary::after {
  content: "+";

  position: absolute;
  top: 50%;
  right: 18px;

  transform:
    translateY(-50%);

  color:
    var(--text-muted);

  font-size: 1.1rem;

  transition:
    transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform:
    translateY(-50%)
    rotate(45deg);
}

.faq-item p {
  margin: 0;

  padding:
    0 18px 18px;

  color:
    var(--text-muted);

  font-size: 0.8rem;

  line-height: 1.65;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding:
    36px 0
    max(
      28px,
      env(safe-area-inset-bottom)
    );

  border-top:
    1px solid
    var(--border);

  background:
    var(--surface);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;

  gap: 4px;
}

.footer-brand strong {
  color:
    var(--text-primary);

  font-size: 0.88rem;
}

.footer-brand span {
  color:
    var(--text-muted);

  font-size: 0.7rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;

  justify-content: flex-end;

  gap: 8px 19px;
}

.footer-links a {
  color:
    var(--text-muted);

  font-size: 0.73rem;
  font-weight: 650;

  text-decoration: none;
}

.footer-links a:hover {
  color:
    var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-top: 27px;

  padding-top: 20px;

  border-top:
    1px solid
    var(--border);
}

.footer-bottom p {
  margin: 0;

  color:
    var(--text-faint);

  font-size: 0.67rem;

  line-height: 1.5;
}


/* =========================================================
   TOAST
   ========================================================= */

.toast {
  position: fixed;

  left: 50%;
  bottom:
    max(
      24px,
      calc(
        env(safe-area-inset-bottom)
        + 16px
      )
    );

  z-index: 999;

  display: flex;
  align-items: center;

  gap: 9px;

  max-width:
    min(
      calc(100% - 28px),
      420px
    );

  padding:
    12px 16px;

  transform:
    translateX(-50%);

  border:
    1px solid
    var(--border);

  border-radius: 999px;

  background:
    var(--text-primary);

  color:
    var(--bg-elevated);

  box-shadow:
    var(--shadow-lg);

  font-size: 0.77rem;
  font-weight: 750;
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 21px;
  height: 21px;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.14);

  font-size: 0.67rem;
}


/* =========================================================
   NOSCRIPT
   ========================================================= */

.noscript-message {
  position: fixed;

  inset:
    12px
    12px
    auto;

  z-index: 9999;

  padding: 13px;

  border-radius: 10px;

  background:
    var(--danger);

  color: #ffffff;

  text-align: center;

  font-size: 0.8rem;
  font-weight: 700;
}


/* =========================================================
   TABLETS
   ========================================================= */

@media
(max-width: 900px) {

  .steps-grid,
  .privacy-grid {
    grid-template-columns:
      1fr;
  }

  .install-card {
    grid-template-columns:
      0.72fr 1.28fr;

    gap: 30px;
  }

  .footer-main,
  .footer-bottom {
    align-items: flex-start;
  }
}


/* =========================================================
   LARGE PHONES / SMALL TABLETS
   ========================================================= */

@media
(max-width: 720px) {

  .content-container,
  .header-container {
    width:
      min(
        calc(100% - 24px),
        var(--page-max)
      );
  }

  .header-container {
    min-height: 64px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;

    border-radius: 11px;
  }

  .brand-name {
    font-size: 0.86rem;
  }

  .brand-credit {
    font-size: 0.62rem;
  }

  .install-header-button span:last-child {
    display: none;
  }

  .install-header-button {
    min-width: 44px;

    padding: 0;
  }

  .hero-section {
    padding:
      46px 0 34px;
  }

  .download-form {
    grid-template-columns:
      1fr;
  }

  .primary-download-button {
    width: 100%;
  }

  .media-overview {
    grid-template-columns:
      1fr;
  }

  .media-thumbnail-wrap {
    max-width: 245px;
  }

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

  .result-topbar {
    align-items: flex-start;
  }

  .install-card {
    grid-template-columns:
      1fr;

    text-align: center;
  }

  .install-content p {
    margin-inline: auto;
  }

  .install-main-button {
    width: 100%;
  }

  .phone-preview {
    max-width: 170px;
  }

  .footer-main,
  .footer-bottom {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media
(max-width: 480px) {

  .content-container,
  .header-container {
    width:
      min(
        calc(100% - 20px),
        var(--page-max)
      );
  }

  .site-header {
    position: sticky;
  }

  .header-container {
    min-height: 60px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-credit {
    display: none;
  }

  .hero-section {
    padding:
      38px 0 28px;
  }

  .hero-copy h1 {
    font-size:
      clamp(
        2.25rem,
        13vw,
        3.35rem
      );
  }

  .hero-description {
    font-size: 0.92rem;
  }

  .download-card {
    margin-top: 28px;

    padding: 13px;

    border-radius: 17px;
  }

  .url-control {
    min-height: 54px;

    padding-left: 12px;
  }

  .paste-button {
    padding-inline: 10px;
  }

  .primary-download-button {
    min-height: 54px;
  }

  .trust-strip {
    justify-content: flex-start;

    gap:
      8px 14px;
  }

  .processing-card {
    padding: 14px;
  }

  .result-topbar {
    flex-direction: column;
  }

  .secondary-button {
    width: 100%;
  }

  .media-overview,
  .preview-section,
  .download-options-section {
    padding: 15px;
  }

  .media-thumbnail-wrap {
    max-width:
      min(
        68vw,
        225px
      );
  }

  .media-meta-grid {
    grid-template-columns:
      1fr 1fr;

    gap: 8px;
  }

  .media-meta-item {
    padding: 10px;
  }

  .video-player-shell {
    min-height: 190px;
  }

  .section-heading {
    align-items: flex-start;

    flex-direction: column;

    gap: 8px;
  }

  .quality-count {
    align-self: flex-start;
  }

  .quality-list {
    grid-template-columns:
      1fr;
  }

  .quality-option {
    flex-direction: column;

    align-items: stretch;
  }

  .quality-download-button {
    width: 100%;
  }

  .download-notice {
    padding:
      10px 15px 16px;
  }

  .error-card {
    grid-template-columns:
      auto
      minmax(0, 1fr);
  }

  .error-card .secondary-button {
    grid-column:
      1 / -1;
  }

  .recent-grid {
    grid-template-columns:
      1fr;
  }

  .info-section,
  .install-section,
  .faq-section {
    padding:
      55px 0;
  }

  .install-card {
    padding:
      25px 18px;

    border-radius: 22px;
  }

  .privacy-section {
    padding-bottom: 55px;
  }
}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media
(max-width: 350px) {

  .brand-name {
    max-width: 140px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-button,
  .header-button {
    min-height: 40px;
  }

  .icon-button {
    width: 40px;
  }

  .hero-copy h1 {
    font-size: 2.15rem;
  }

  .media-meta-grid {
    grid-template-columns:
      1fr;
  }
}


/* =========================================================
   MOBILE LANDSCAPE
   ========================================================= */

@media
(max-height: 540px)
and
(orientation: landscape) {

  .hero-section {
    padding:
      28px 0 24px;
  }

  .hero-copy h1 {
    font-size:
      clamp(
        2rem,
        6vw,
        3.2rem
      );
  }

  .hero-description {
    margin-top: 12px;
  }

  .download-card {
    margin-top: 22px;
  }

  .media-overview {
    grid-template-columns:
      135px
      minmax(0, 1fr);
  }

  .media-thumbnail-wrap {
    max-width: 135px;
  }

  .video-player-shell {
    min-height: 180px;
  }

  .video-player-shell video {
    max-height: 78vh;
  }
}


/* =========================================================
   LARGE DESKTOPS
   ========================================================= */

@media
(min-width: 1440px) {

  :root {
    --page-max: 1240px;
  }

  .result-card {
    border-radius: 24px;
  }

  .download-card {
    max-width: 960px;
  }
}


/* =========================================================
   ULTRAWIDE / 2K / 4K
   ========================================================= */

@media
(min-width: 1900px) {

  :root {
    --page-max: 1300px;
  }

  .hero-section {
    padding-top: 110px;
  }
}


/* =========================================================
   INSTALLED PWA
   ========================================================= */

@media
(display-mode: standalone) {

  .site-header {
    padding-top:
      env(safe-area-inset-top);
  }

  .install-section,
  .install-header-button {
    display: none !important;
  }

  body {
    overscroll-behavior-y: contain;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media
(prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }

  .processing-spinner {
    animation: none;

    border-top-color:
      var(--border-strong);
  }
}


/* =========================================================
   HIGH CONTRAST
   ========================================================= */

@media
(prefers-contrast: more) {

  :root {
    --border:
      #94a3b8;

    --border-strong:
      #64748b;
  }

  .primary-download-button,
  .quality-download-button {
    outline:
      1px solid
      currentColor;
  }
}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

  .site-header,
  .download-card,
  .processing-section,
  .preview-section,
  .download-options-section,
  .recent-section,
  .install-section,
  .toast,
  .site-footer {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }
}

/* =========================================================
   LEGAL PAGES
   Privacy Policy / Terms / Disclaimer
   ========================================================= */

.legal-page {
  padding:
    clamp(52px, 7vw, 88px)
    0
    clamp(70px, 9vw, 110px);
}

.legal-wrapper {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}


/* =========================================================
   LEGAL HEADER
   ========================================================= */

.legal-header {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom:
    clamp(28px, 5vw, 44px);

  text-align: center;
}

.legal-header h1 {
  margin:
    10px 0 0;

  color: var(--text-primary);

  font-size:
    clamp(
      2.1rem,
      6vw,
      3.8rem
    );

  line-height: 1.04;

  letter-spacing: -0.05em;

  text-wrap: balance;
}

.legal-header > p {
  max-width: 690px;

  margin:
    18px auto 0;

  color: var(--text-secondary);

  font-size:
    clamp(
      0.92rem,
      2vw,
      1.05rem
    );

  line-height: 1.72;

  text-wrap: balance;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 20px;

  padding:
    7px 12px;

  border:
    1px solid
    var(--border);

  border-radius: 999px;

  background:
    var(--surface-soft);

  color:
    var(--text-muted);

  font-size: 0.7rem;
  font-weight: 700;
}


/* =========================================================
   LEGAL CONTENT CARD
   ========================================================= */

.legal-card {
  overflow: hidden;

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-lg);

  background:
    var(--surface);

  box-shadow:
    var(--shadow-md);
}

.legal-section {
  position: relative;

  padding:
    clamp(
      22px,
      4vw,
      34px
    );

  border-bottom:
    1px solid
    var(--border);
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0;

  color:
    var(--text-primary);

  font-size:
    clamp(
      1.02rem,
      2.4vw,
      1.28rem
    );

  line-height: 1.35;

  letter-spacing: -0.018em;
}

.legal-section p {
  margin:
    13px 0 0;

  color:
    var(--text-secondary);

  font-size:
    clamp(
      0.85rem,
      1.8vw,
      0.94rem
    );

  line-height: 1.78;
}

.legal-section p + p {
  margin-top: 12px;
}

.legal-section ul,
.legal-section ol {
  margin:
    14px 0 0;

  padding-left: 22px;

  color:
    var(--text-secondary);
}

.legal-section li {
  margin-top: 8px;

  font-size:
    clamp(
      0.84rem,
      1.8vw,
      0.93rem
    );

  line-height: 1.7;
}

.legal-section li:first-child {
  margin-top: 0;
}


/* =========================================================
   LEGAL LINKS
   ========================================================= */

.legal-section a,
.legal-inline-links a {
  color:
    var(--accent-cyan);

  font-weight: 750;

  text-decoration: none;

  text-underline-offset: 3px;

  transition:
    color var(--transition-fast);
}

.legal-section a:hover,
.legal-inline-links a:hover {
  color:
    var(--text-primary);

  text-decoration: underline;
}

.legal-inline-links {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-top: 16px;
}

.legal-inline-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;

  padding:
    8px 13px;

  border:
    1px solid
    var(--border);

  border-radius: 10px;

  background:
    var(--surface-soft);

  font-size: 0.76rem;
}


/* =========================================================
   LEGAL NAVIGATION
   ========================================================= */

.legal-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: 10px;

  margin-top:
    clamp(
      24px,
      4vw,
      34px
    );
}

.legal-navigation .secondary-button {
  text-decoration: none;
}


/* =========================================================
   LEGAL VISUAL POLISH
   ========================================================= */

.legal-section::before {
  content: "";

  position: absolute;

  top: 0;
  left:
    clamp(
      22px,
      4vw,
      34px
    );

  width: 38px;
  height: 2px;

  background:
    linear-gradient(
      90deg,
      var(--accent-cyan),
      var(--accent-rose)
    );

  opacity: 0;
}

.legal-section:first-child::before {
  opacity: 1;
}


/* =========================================================
   LEGAL DARK MODE
   ========================================================= */

html[data-theme="dark"] .legal-card {
  background:
    color-mix(
      in srgb,
      var(--surface) 96%,
      transparent
    );
}

html[data-theme="dark"] .legal-updated {
  background:
    rgba(255, 255, 255, 0.025);
}


/* =========================================================
   LEGAL TABLET
   ========================================================= */

@media
(max-width: 720px) {

  .legal-page {
    padding:
      42px 0 68px;
  }

  .legal-header {
    margin-bottom: 28px;
  }

  .legal-card {
    border-radius: 17px;
  }

  .legal-navigation {
    align-items: stretch;
  }

  .legal-navigation .secondary-button {
    flex:
      1 1
      calc(50% - 6px);
  }
}


/* =========================================================
   LEGAL MOBILE
   ========================================================= */

@media
(max-width: 480px) {

  .legal-page {
    padding:
      34px 0 54px;
  }

  .legal-header {
    text-align: left;
  }

  .legal-header h1 {
    font-size:
      clamp(
        2rem,
        11vw,
        2.8rem
      );
  }

  .legal-header > p {
    margin-left: 0;
    margin-right: 0;
  }

  .legal-updated {
    justify-content: flex-start;
  }

  .legal-section {
    padding:
      20px 17px;
  }

  .legal-section::before {
    left: 17px;
  }

  .legal-navigation {
    flex-direction: column;
  }

  .legal-navigation .secondary-button {
    width: 100%;
    flex: none;
  }

  .legal-inline-links {
    flex-direction: column;
  }

  .legal-inline-links a {
    width: 100%;
  }
}


/* =========================================================
   LEGAL PRINT
   ========================================================= */

@media print {

  .legal-page {
    padding: 0;
  }

  .legal-wrapper {
    max-width: none;
  }

  .legal-header {
    max-width: none;
    text-align: left;
  }

  .legal-card {
    border: 0;
    box-shadow: none;
  }

  .legal-section {
    padding:
      16px 0;

    page-break-inside: avoid;
  }

  .legal-navigation {
    display: none !important;
  }

  .legal-section a {
    color: inherit;
    text-decoration: underline;
  }
}
/* =========================================================
   ACCESSIBILITY — CONTRAST IMPROVEMENTS
   ========================================================= */

/* Improve small accent text contrast on light backgrounds */
.section-kicker,
.eyebrow {
  color: #0e7490;
}

/* Improve faint footer and secondary text contrast */
.footer-bottom p {
  color: var(--text-muted);
}

/* Improve dark-mode contrast */
html[data-theme="dark"] .section-kicker,
html[data-theme="dark"] .eyebrow {
  color: #22d3ee;
}

html[data-theme="dark"] .footer-bottom p {
  color: #94a3b8;
}
/* =========================================================
   ACCESSIBILITY — STRONG CONTRAST FIX
   ========================================================= */

.section-kicker,
.eyebrow {
  color: #075985 !important;
}

.footer-bottom p,
.footer-bottom span,
.footer-brand span,
.footer-links a {
  color: #475569 !important;
}

html[data-theme="dark"] .section-kicker,
html[data-theme="dark"] .eyebrow {
  color: #67e8f9 !important;
}

html[data-theme="dark"] .footer-bottom p,
html[data-theme="dark"] .footer-bottom span,
html[data-theme="dark"] .footer-brand span,
html[data-theme="dark"] .footer-links a {
  color: #cbd5e1 !important;
}
/* =========================================================
   BRAND LOGO INTEGRATION
   ========================================================= */

.brand-logo-mark {
  overflow: hidden;

  padding: 0;

  background: transparent !important;

  box-shadow: none;
}

.brand-logo-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

html[data-theme="dark"] .brand-logo-mark {
  background: transparent !important;
}

@media (max-width: 720px) {

  .brand-logo-image {
    width: 100%;
    height: 100%;
  }
}
