/* ============================================================
   LetsSend - visual system
   iOS-inspired frosted glass, cool neutral canvas, a single
   restrained magenta accent. Tailwind handles utility layout
   in markup; this file owns material, motion and components.
   ============================================================ */

/* Font-metric overrides: unique fallback family names with size-adjust so the
   Arial placeholder occupies the same box as each web font, preventing CLS on
   swap. Inserted into the font stack between the web font and generic fallbacks
   so they only activate before the real font downloads. */
@font-face {
  font-family: 'Montserrat Alternates Fallback';
  font-style: normal;
  font-weight: 400 900;
  src: local('Arial');
  size-adjust: 112.83%;
  ascent-override: 85.79%;
  descent-override: 21.15%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Montserrat Alternates Fallback';
  font-style: italic;
  font-weight: 400 900;
  src: local('Arial Italic'), local('Arial-ItalicMT'), local('Arial');
  size-adjust: 112.83%;
  ascent-override: 85.79%;
  descent-override: 21.15%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Satoshi Fallback';
  font-style: normal;
  font-weight: 400 900;
  src: local('Arial');
  size-adjust: 106%;
  ascent-override: 88.3%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  /* Type families (formerly supplied by the Tailwind @theme block). Fonts
     themselves load via Google Fonts + Fontshare in layout.php. */
  --font-display: "Montserrat Alternates", "Montserrat Alternates Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Satoshi", "Satoshi Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --ink: #333639;
  --ink-soft: #5B5E69;
  --ink-muted: #8E909B;
  --canvas: #EDEFF3;
  --canvas-2: #E6E9F0;
  --line: #E2E4EB;
  --line-soft: rgba(51, 54, 57, 0.07);

  /* brand blue family (#008CCF fills are AA-safe for white text; #015E8F for small text) */
  --accent: #008CCF;
  --accent-strong: #015E8F;
  --accent-soft: #31A0D9;
  --accent-bright: #008CCF;

  /* ambient aurora hues (decorative, low opacity) - brand blues */
  --au-indigo: #008CCF;
  --au-violet: #008CCF;
  --au-sky: #31A0D9;
  --au-pink: #5BB4E3;

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 13px;

  --shadow-glass: 0 12px 44px -16px rgba(20, 21, 26, 0.22), 0 4px 14px -8px rgba(20, 21, 26, 0.12);
  --shadow-pop: 0 26px 60px -28px rgba(20, 21, 26, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}

.text-accent {
  color: var(--accent);
}

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

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

/* Headings: Montserrat. Everything else inherits Satoshi from <body>. */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  text-transform: lowercase;
}

/* tags / labels: lowercase Montserrat Alternates */
.eyebrow,
.footer-head,
.opt-label,
.pill,
.pro-tag,
.post-cat,
.file-thumb,
.dl-file-thumb,
.dl-from {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  text-transform: lowercase;
}

/* Full-screen, no-scroll home (desktop). Mobile is allowed to scroll. */
@media (min-width: 1024px) {

  html.is-home,
  html.is-home body {
    height: 100%;
    overflow: hidden;
  }
}

/* ---------- focus + skip ---------- */
:where(a, button, input, select, textarea, [tabindex], [role="button"], summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.focus-ring:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 14px;
}

/* ---------- typography helpers ---------- */
.text-gradient {
  background: linear-gradient(108deg, var(--accent-strong), var(--au-violet) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--accent-strong);
}

/* ---------- brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent);
  box-shadow: 0 6px 16px -7px rgba(0, 140, 207, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand-name {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============================================================
   Glass
   ============================================================ */
.glass {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(30px) saturate(185%);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--shadow-glass);
}

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

  .glass,
  .glass-nav,
  .toast {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ============================================================
   Floating glass nav
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  padding: 12px 16px 0;
}

.glass-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  height: 60px;
  padding: 0 12px 0 14px;
  border-radius: 18px;
  background: transparent;
  border: 0px solid rgba(255, 255, 255, 0.0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 34px -18px rgba(0, 0, 0, 0.55), 0 12px 32px rgba(0, 0, 0, 0.01);
  transition: box-shadow 0.3s var(--ease);
}

/* Frost lives on a pseudo-element so it does NOT create a backdrop-filter
   context for the dropdown nested inside (which would kill the dropdown's blur). */
.glass-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
}

header.is-scrolled .glass-nav::before {
  background: rgba(255, 255, 255, 0.5);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(20, 21, 26, 0.05);
}

.nav-link.is-active {
  color: var(--ink);
  background: rgba(20, 21, 26, 0.06);
}

.dropdown-chevron {
  transition: transform 0.25s var(--ease);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(0.98);
  min-width: 230px;
  padding: 7px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(30px) saturate(185%);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 18px 44px -18px rgba(20, 21, 26, 0.32);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

[data-dropdown].is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

[data-dropdown].is-open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-item {
  display: block;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.18s, color 0.18s;
}

.dropdown-item:hover {
  background: rgba(0, 140, 207, 0.08);
  color: var(--accent-strong);
}

.dropdown-divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--line);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-login {
  display: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
}

.nav-login:hover {
  color: var(--ink);
  background: rgba(20, 21, 26, 0.05);
}

.nav-actions .btn-primary {
  display: none;
}

@media (min-width: 640px) {
  .nav-login {
    display: inline-flex;
  }

  .nav-actions .btn-primary {
    display: inline-flex;
  }
}

.nav-burger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.nav-burger-box {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.nav-burger-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.18s;
}

.nav-burger-bar:nth-child(1) {
  top: 0;
}

.nav-burger-bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.nav-burger-bar:nth-child(3) {
  bottom: 0;
}

/* Active: morph the three bars into a cross. */
.nav-burger[aria-expanded="true"] .nav-burger-bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-burger[aria-expanded="true"] .nav-burger-bar:nth-child(2) {
  opacity: 0;
}

.nav-burger[aria-expanded="true"] .nav-burger-bar:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

@media (min-width: 1024px) {
  .nav-burger {
    display: none;
  }
}

/* Mobile panel */
.mobile-panel {
  padding: 8px 16px 0;
  max-width: 1180px;
  margin: 0 auto;
}

.mobile-sheet {
  padding: 10px;
  border-radius: var(--r-md);
}

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.mobile-link::-webkit-details-marker {
  display: none;
}

.mobile-link:hover {
  background: rgba(20, 21, 26, 0.05);
}

.mobile-group[open] .dropdown-chevron {
  transform: rotate(180deg);
}

.mobile-sub {
  display: flex;
  flex-direction: column;
  margin: 2px 0 6px 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.mobile-sublink {
  padding: 9px 4px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.mobile-actions {
  display: flex;
  gap: 8px;
  padding: 4px;
}

.mobile-cta-ghost {
  flex: 1;
  text-align: center;
  padding: 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
}

.mobile-cta-solid {
  flex: 1;
  justify-content: center;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px -10px rgba(1, 94, 143, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(1, 94, 143, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s var(--ease), border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 140, 207, 0.4);
  color: var(--accent-strong);
}

/* ============================================================
   Aurora (frosted ambient gradient - cool, low pink)
   ============================================================ */
.aurora,
.page-aura {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
}

.aurora-1 {
  width: 44vw;
  height: 44vw;
  max-width: 600px;
  max-height: 600px;
  top: -8%;
  right: -4%;
  background: radial-gradient(circle at 35% 35%, var(--au-indigo), transparent 66%);
}

.aurora-2 {
  width: 40vw;
  height: 40vw;
  max-width: 540px;
  max-height: 540px;
  top: 24%;
  left: -10%;
  background: radial-gradient(circle at 50% 50%, var(--au-violet), transparent 64%);
  opacity: 0.42;
}

.aurora-3 {
  width: 30vw;
  height: 30vw;
  max-width: 420px;
  max-height: 420px;
  bottom: -6%;
  right: 24%;
  background: radial-gradient(circle at 50% 50%, var(--au-pink), transparent 66%);
  opacity: 0.3;
}

.home-screen .aurora-1 {
  animation: drift-a 26s ease-in-out infinite alternate;
}

.home-screen .aurora-2 {
  animation: drift-b 30s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate3d(calc(var(--px, 0px) - 28px), calc(var(--py, 0px) + 30px), 0);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(calc(var(--px, 0px) + 32px), calc(var(--py, 0px) - 24px), 0);
  }
}

/* ============================================================
   HOME - full-screen, no scroll
   ============================================================ */
.home-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
}

.home-grid {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 104px 20px 16px;
}

@media (min-width: 1024px) {
  .home-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    padding: 96px 24px 16px;
  }

  /* uploader on the left, copy on the right (DOM keeps copy first for mobile) */
  .home-uploader {
    order: 1;
  }

  .home-copy {
    order: 2;
  }
}

.home-copy {
  max-width: 540px;
}

.home-title {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  text-transform: none;
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0;
}

.home-lead {
  margin: 22px 0 0;
  max-width: 30ch;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.home-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.home-uploader {
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .home-uploader {
    justify-content: flex-start;
  }
}

.home-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 24px 18px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.home-strip-links {
  display: flex;
  gap: 18px;
}

.home-strip-links a {
  transition: color 0.18s;
}

.home-strip-links a:hover {
  color: var(--accent-strong);
}

@media (max-width: 1023px) {
  .home-strip {
    display: none;
  }
}

.home-ad {
  position: relative;
  /* 0, not 1: .home-grid is a sibling stacking context at z-index 1, and the
     mobile options bottom-sheet lives inside it. At z-index 1 this later
     sibling would paint over that sheet; at 0 it still sits above the aurora
     (same z, later in document order) but below the grid. */
  z-index: 0;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 16px;
}

.home-ad .dl-ad-card {
  max-width: 540px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .home-ad {
    padding: 0 24px 16px;
  }
}

/* Mobile: drop the trust pills and tighten the hero stack. */
@media (max-width: 640px) {
  .home-pills {
    display: none;
  }

  .home-grid {
    gap: 16px;
  }
}

/* ============================================================
   Upload card
   ============================================================ */
.upload-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  padding: 16px;
  border-radius: var(--r-lg);
  max-height: calc(100dvh - 132px);
  overflow-x: hidden;
}

@media (max-width: 1023px) {
  .upload-card {
    max-height: none;
  }
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 18px;
  border-radius: var(--r-md);
  flex: none;
  border: 1.5px dashed rgba(142, 144, 155, 0.45);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.dropzone:hover {
  border-color: rgba(0, 140, 207, 0.45);
  background: rgba(255, 255, 255, 0.62);
}

.dropzone.is-drag {
  border-color: var(--accent);
  border-style: solid;
  background: rgba(0, 140, 207, 0.06);
  transform: scale(1.01);
}

.dz-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dz-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.dz-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.dz-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  transition: transform 0.16s var(--ease), border-color 0.2s, color 0.2s;
}

.chip-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 140, 207, 0.4);
  color: var(--accent-strong);
}

.chip-btn svg {
  color: var(--accent);
}

.upload-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
}

.file-list {
  margin-top: 14px;
}

.file-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 8px;
}

.file-list-meta {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.link-btn {
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.link-btn:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.file-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  max-height: 196px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.file-items::-webkit-scrollbar {
  width: 7px;
}

.file-items::-webkit-scrollbar-thumb {
  background: rgba(142, 144, 155, 0.4);
  border-radius: 99px;
}

.file-items::-webkit-scrollbar-track {
  background: transparent;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 7px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  animation: file-in 0.3s var(--ease) both;
}

@keyframes file-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.file-thumb {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--ink-soft);
  background: rgba(20, 21, 26, 0.05);
}

.file-meta {
  min-width: 0;
  flex: 1;
}

.file-name {
  display: block;
  max-width: 100%;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.file-remove {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  border: 0;
  background: none;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}

.file-remove:hover {
  color: var(--accent);
  background: rgba(0, 140, 207, 0.08);
}

.upload-fields {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 14px;
}

.segmented {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: var(--r-sm);
  background: rgba(20, 21, 26, 0.05);
}

.seg-btn {
  position: relative;
  z-index: 1;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

.seg-btn.is-active {
  color: var(--ink);
}

.seg-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px -2px rgba(20, 21, 26, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.28s var(--ease);
}

.segmented.mode-link .seg-thumb {
  transform: translateX(100%);
}

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

.field-group {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.field label {
  padding-left: 2px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.field label .opt {
  color: var(--ink-muted);
  font-weight: 400;
}

.field input,
.field textarea,
.select-wrap select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-muted);
}

.field input:focus,
.field textarea:focus,
.select-wrap select:focus {
  outline: none;
  border-color: rgba(0, 140, 207, 0.5);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 140, 207, 0.12);
}

.field textarea {
  resize: none;
}

/* Visible (managed) Turnstile widget, below the submit button on every form.
   Scaled down a touch and centred. */
.cf-turnstile {
  margin: 12px 0 -15px;
  transform: scale(0.8);
  transform-origin: center top;
  display: flex;
  justify-content: center;
}

.link-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.16);
}

.link-note svg {
  color: var(--au-indigo);
  flex: none;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 36px;
}

.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.btn-send {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  flex: none;
  margin-top: 14px;
  padding: 14px 20px;
  border-radius: 14px;
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: var(--accent);
  box-shadow: 0 12px 26px -12px rgba(1, 94, 143, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -14px rgba(1, 94, 143, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-send:active {
  transform: translateY(0) scale(0.99);
}

.btn-send[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-send.is-sending {
  pointer-events: none;
}

.send-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: var(--p, 0%);
  background: rgba(255, 255, 255, 0.18);
  transition: width 0.3s var(--ease);
}

/* success state */
.send-success {
  text-align: center;
  padding: 6px 0 2px;
  width: 100%;
  overflow: hidden;
}

.send-success-mark {
  display: inline-grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto;
  color: #fff;
  background: linear-gradient(150deg, #34d399, #16a34a);
  box-shadow: 0 16px 32px -12px rgba(22, 163, 74, 0.6);
  animation: ss-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}

.send-success-mark svg {
  width: 44px;
  height: 44px;
}

.send-success-mark svg path {
  stroke-width: 2.4;
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: ss-draw 0.45s 0.25s ease-out forwards;
}

@keyframes ss-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  60% {
    transform: scale(1.12);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

@keyframes ss-draw {
  to {
    stroke-dashoffset: 0;
  }
}

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

  .send-success-mark,
  .send-success-mark svg path {
    animation: none;
  }

  .send-success-mark svg path {
    stroke-dashoffset: 0;
  }
}

.send-success-title {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 21px;
  font-weight: 600;
  margin: 16px 0 0;
  letter-spacing: -0.01em;
}

.send-success-body {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

.send-ext-note {
  margin: 14px 0 0;
  font-size: 12.5px;
}

.send-ext-note a {
  color: var(--accent);
  text-decoration: none;
}

.send-ext-note a:hover {
  text-decoration: underline;
}

.send-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 6px 6px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.send-link-row span {
  min-width: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

/* ============================================================
   Page scaffold (non-home pages)
   ============================================================ */
.page {
  position: relative;
  padding-top: 92px;
}

.page-aura {
  height: 720px;
  bottom: auto;
  -webkit-mask: linear-gradient(to bottom, #000 50%, transparent);
  mask: linear-gradient(to bottom, #000 50%, transparent);
}

.page-aura .aurora-blob {
  opacity: 0.34;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  .section {
    padding-top: 88px;
    padding-bottom: 88px;
  }
}

.section-narrow {
  max-width: 780px;
}

.section-tint {
  background: rgba(255, 255, 255, 0.45);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  position: relative;
  z-index: 1;
  padding-top: 48px;
  max-width: 820px;
}

@media (min-width: 768px) {
  .page-hero {
    padding-top: 72px;
  }
}

.page-title {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
}

.page-lead {
  margin: 18px 0 0;
  max-width: 60ch;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.page-lead a,
.prose a,
.legal-prose a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section-head-center {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-title {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-lead {
  margin: 14px 0 0;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ============================================================
   Bento
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.col-4 {
  grid-column: span 1;
}

.col-5 {
  grid-column: span 1;
}

.col-7 {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .col-4 {
    grid-column: span 4;
  }

  .col-5 {
    grid-column: span 5;
  }

  .col-7 {
    grid-column: span 7;
  }
}

.bento {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.bento:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), var(--shadow-pop);
}

.bento-feature {
  min-height: 240px;
}

.bento-glow {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 140, 207, 0.2), transparent 68%);
  filter: blur(8px);
}

.bento-dark {
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bento-dark .bento-title,
.bento-dark .bento-title-sm {
  color: #fff;
}

.bento-dark .bento-body {
  color: rgba(255, 255, 255, 0.66);
}

.bento-pro {
  display: block;
}

.bento-title {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 20px 0 0;
  position: relative;
}

.bento-title-sm {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 20px 0 0;
  position: relative;
}

.bento-body {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  position: relative;
}

.feat-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  position: relative;
}

.feat-icon-accent {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 18px -9px rgba(1, 94, 143, 0.6);
}

.feat-icon-soft {
  color: var(--accent);
  background: rgba(0, 140, 207, 0.08);
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.feat-icon-soft svg {
  width: 24px;
  height: 24px;
}

.feat-icon-ondark {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.speed-bar {
  margin-top: 22px;
  height: 7px;
  border-radius: 99px;
  background: rgba(20, 21, 26, 0.07);
  overflow: hidden;
}

.speed-bar span {
  display: block;
  height: 100%;
  width: var(--w, 80%);
  border-radius: 99px;
  position: relative;
  background: var(--accent);
}

.speed-bar span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-100%);
  animation: speed-shimmer 2.6s var(--ease) infinite;
}

@keyframes speed-shimmer {
  to {
    transform: translateX(120%);
  }
}

.pro-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-strong);
  background: rgba(0, 140, 207, 0.1);
  border: 1px solid rgba(0, 140, 207, 0.22);
}

.pro-tag-inline {
  position: static;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}

/* ============================================================
   Steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
}

.step {
  position: relative;
  padding: 26px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

@media (min-width: 768px) {
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 46px;
    right: -26px;
    width: 26px;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(0, 140, 207, 0.5), transparent);
  }
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-strong);
  background: rgba(0, 140, 207, 0.08);
}

.step-title {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 18px 0 0;
}

.step-body {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============================================================
   Pricing
   ============================================================ */
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 940px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

.price-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
}

.price-card-pro {
  border-color: rgba(0, 140, 207, 0.28);
}

.price-pro-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 140, 207, 0.16), transparent 68%);
  pointer-events: none;
  /* decorative - must not intercept taps on the CTA (mobile) */
}

.price-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  position: relative;
}

.price-name {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.price {
  margin: 0;
  text-align: right;
}

.price-num {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.price-per {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-left: 3px;
}

.price-desc {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
}

.price-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 22px 0;
  padding: 13px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.18s var(--ease), box-shadow 0.25s, border-color 0.2s, color 0.2s;
}

.price-cta-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.price-cta-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 140, 207, 0.4);
  color: var(--accent-strong);
}

.price-cta-solid {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 26px -12px rgba(1, 94, 143, 0.55);
}

.price-cta-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -14px rgba(1, 94, 143, 0.6);
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.price-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m2.5 6 2.4 2.4L9.5 3.8' stroke='%23008CCF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat, rgba(0, 140, 207, 0.1);
}

.price-foot {
  text-align: center;
  margin: 32px auto 0;
  max-width: 52ch;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-group-title {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 36px 0 14px;
}

.faq-group-title:first-child {
  margin-top: 0;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq-icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink-soft);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

.faq-icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.faq-icon::after {
  left: 7px;
  top: 0;
  width: 2px;
  height: 16px;
}

.faq-item[open] .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ============================================================
   Prose / legal
   ============================================================ */
.prose {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 18px;
}

.legal-prose h2 {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 36px 0 12px;
  scroll-margin-top: 100px;
}

.legal-prose ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.legal-prose li {
  margin-bottom: 8px;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.legal-toc a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}

.legal-toc a:hover {
  color: var(--accent-strong);
  border-color: rgba(0, 140, 207, 0.4);
}

/* ============================================================
   Values / Help / Stats / Advertise
   ============================================================ */
.value-grid,
.help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 700px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-card,
.help-card {
  padding: 26px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.help-card {
  display: block;
}

.value-card:hover,
.help-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}

.value-title,
.help-title {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 18px 0 0;
}

.value-body,
.help-body {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ── Meet the team (About) ───────────────────────────────── */
.team-photo {
  margin: 0 auto 44px;
  max-width: 760px;
}

.team-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glass);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 940px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  padding: 24px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}

.team-name {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.team-role {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.team-bio {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.help-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.help-contact-title {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.help-contact-body {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  padding: 30px 26px;
  border-radius: var(--r-lg);
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.stat-num {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--accent-strong);
}

.stat-label {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.advertise-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.advertise-contact p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ── Chrome extension showcase (Features page) ───────────── */
.ext-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 40px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.ext-title {
  font-family: "Montserrat Alternates", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 10px 0 14px;
}

.ext-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.ext-points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ext-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 1rem;
  color: var(--ink);
}

.ext-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 140, 207, 0.1);
  color: var(--acc);
  margin-top: 1px;
}

.ext-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.ext-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.ext-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Browser mock */
.ext-visual {
  display: flex;
  justify-content: center;
}

.ext-browser {
  position: relative;
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -24px rgba(15, 40, 70, 0.32);
  padding-bottom: 96px;
  overflow: hidden;
}

.ext-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 14px;
  background: rgba(0, 0, 0, 0.025);
  border-bottom: 1px solid var(--line);
}

.ext-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d7dde4;
}

.ext-omnibox {
  flex: 1;
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-muted);
}

.ext-pin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(0, 140, 207, 0.12);
}

.ext-popover {
  position: absolute;
  top: 56px;
  right: 14px;
  width: 188px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px -16px rgba(15, 40, 70, 0.34);
  display: grid;
  gap: 11px;
}

.ext-popover-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.ext-drop {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 10px;
  border: 1.5px dashed rgba(0, 140, 207, 0.4);
  border-radius: 10px;
  color: var(--acc);
  font-size: 12.5px;
  background: rgba(0, 140, 207, 0.04);
}

.ext-popover-btn {
  text-align: center;
  padding: 8px;
  border-radius: 9px;
  background: var(--acc);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .ext-showcase {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 28px;
  }
  .ext-visual {
    order: -1;
  }
}

/* ── Media kit ───────────────────────────────────────────── */
.kit-spec {
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}

.kit-spec>div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 18px;
  padding: 16px 22px;
}

.kit-spec>div+div {
  border-top: 1px solid var(--line);
}

.kit-spec dt {
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}

.kit-spec dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.kit-spec code {
  font-size: 12.5px;
  background: var(--canvas);
  padding: 1px 6px;
  border-radius: 6px;
}

@media (min-width: 620px) {
  .kit-spec>div {
    grid-template-columns: 180px 1fr;
    align-items: baseline;
  }
}

.kit-asset-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 620px) {
  .kit-asset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kit-asset-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.kit-asset-preview {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 30px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.kit-asset-preview img {
  max-width: 72%;
  max-height: 56px;
  width: auto;
  height: auto;
}

.kit-asset-preview.is-icon {
  background: rgba(0, 140, 207, 0.07);
}

.kit-asset-preview.is-icon img {
  max-width: 64px;
  max-height: 64px;
}

.kit-asset-meta {
  padding: 18px 22px 20px;
}

.kit-asset-name {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.kit-asset-detail {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.kit-asset-dl {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.kit-asset-dl a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.kit-asset-dl a:hover {
  border-color: var(--accent);
  background: rgba(0, 140, 207, 0.06);
}

.kit-section-label {
  margin: 36px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.kit-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 16px;
}

.kit-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.kit-chip {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
}

/* ============================================================
   Blog
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}

.post-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--canvas-2);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

/* Podcast play badge over the featured image (posts tagged 'podcast') */
.post-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 22px rgba(0, 140, 207, 0.45), 0 0 0 7px rgba(255, 255, 255, 0.28);
  transition: transform 0.25s var(--ease), background 0.2s;
}



.post-card:hover .post-play {
  background: var(--accent-strong);
  transform: scale(1.08);
}

.post-card:hover .post-thumb img {
  transform: scale(1.04);
}

.post-body {
  display: flex;
  flex-direction: column;
  padding: 20px 22px 24px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}

.post-cat {
  color: var(--accent-strong);
  font-weight: 600;
}

.post-read {
  color: var(--ink-muted);
}

.post-title {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 10px;
  color: var(--ink);
}

.post-excerpt {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 68px 28px;
  border-radius: 30px;
  background: var(--ink);
  box-shadow: var(--shadow-pop);
}

.cta-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.95;
  background: radial-gradient(circle at 16% 20%, rgba(0, 140, 207, 0.42), transparent 44%), radial-gradient(circle at 84% 82%, rgba(0, 140, 207, 0.4), transparent 46%), radial-gradient(circle at 60% 6%, rgba(56, 189, 248, 0.18), transparent 42%);
}

.cta-inner {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.cta-lead {
  margin: 14px auto 0;
  max-width: 42ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s var(--ease), box-shadow 0.25s;
}

.cta-btn svg {
  color: var(--accent);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -14px rgba(0, 0, 0, 0.55);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-tagline {
  margin: 16px 0 0;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.footer-head {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin: 0;
}

.footer-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-list a {
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color 0.18s;
}

.footer-list a:hover {
  color: var(--accent-strong);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-social {
  display: flex;
  gap: 4px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--ink-soft);
  transition: color 0.18s, background 0.18s;
}

.social-link:hover {
  color: var(--accent);
  background: rgba(0, 140, 207, 0.07);
}

/* ============================================================
   404
   ============================================================ */
.notfound {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  overflow: hidden;
  padding: 100px 20px 40px;
}

.notfound-card {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 100%;
  text-align: center;
  padding: 44px 36px;
  border-radius: var(--r-lg);
}

.notfound-anim {
  width: min(320px, 86%);
  margin: 0 auto 4px;
  aspect-ratio: 7 / 4;
}

.notfound-anim svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.notfound-code {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 3.4rem;
  font-weight: 700;
  margin: 0;
  color: var(--accent-strong);
}

/* ── Pro welcome modal (?utm_plan=pro campaign) ───────────────────── */
html.plan-modal-open {
  overflow: hidden;
}

.plan-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.plan-modal[hidden] {
  display: none;
}

.plan-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 21, 26, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s var(--ease, ease);
}

.plan-modal.is-open .plan-modal-backdrop {
  opacity: 1;
}

.plan-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 32px 30px 26px;
  border-radius: var(--r-lg, 26px);
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow-pop, 0 26px 60px -28px rgba(20, 21, 26, 0.28));
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.3s var(--ease, ease), opacity 0.3s var(--ease, ease);
}

.plan-modal.is-open .plan-modal-card {
  transform: none;
  opacity: 1;
}

.plan-modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted, #8e909b);
  cursor: pointer;
}

.plan-modal-x:hover {
  background: var(--canvas, #edeff3);
  color: var(--ink, #333639);
}

.plan-modal-bolt {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(0, 140, 207, 0.09);
}

.plan-modal-bolt img {
  display: block;
  width: 38px;
  height: auto;
}

.plan-modal-title {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink, #333639);
}

.plan-modal-sub {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-soft, #5b5e69);
}

.plan-modal-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 10px;
}

.plan-modal-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--ink, #333639);
}

.plan-modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent, #008ccf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m5 12.5 4 4 10-10' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.plan-modal-cta {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  font-size: 15px;
}

.plan-modal-skip {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-muted, #8e909b);
}

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

  .plan-modal-backdrop,
  .plan-modal-card {
    transition: none;
  }
}

/* One-shot confetti burst on a successful transfer.
   lottie-web writes inline width/height on the <svg>, so the burst size is
   driven by the (square) container rather than an svg rule. */
.confetti-pop {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  /* Default (no anchor): centred just above the middle of the viewport. */
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(760px, 96vw);
  aspect-ratio: 1 / 1;
}

/* Anchored variant: left/top are set inline to the origin's centre
   (the uploader card), so the confetti sprays out of it. */
.confetti-pop--anchored {
  width: clamp(440px, 58vw, 720px);
}

/* ── Cookie notice (small, bottom-right) ──────────────────── */
.cookie-note {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  max-width: 330px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.cookie-note.is-in {
  opacity: 1;
  transform: none;
}

.cookie-note.is-out {
  opacity: 0;
  transform: translateY(12px);
}

.cookie-note-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.cookie-note-text a {
  color: var(--accent);
  text-decoration: none;
}

.cookie-note-text a:hover {
  text-decoration: underline;
}

.cookie-note-btn {
  flex: none;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 15px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.cookie-note-btn:hover {
  background: var(--accent-strong);
}

@media (max-width: 520px) {
  .cookie-note {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
  }
}

/* ── Admin area ───────────────────────────────────────────── */
.admin-h {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 38px 0 14px;
}

.admin-h:first-of-type {
  margin-top: 8px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 700px) {
  .admin-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.admin-stats .stat-card {
  padding: 18px;
}

.stat-sub {
  font-size: 0.5em;
  color: var(--ink-muted);
  font-weight: 600;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table th {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table a {
  color: var(--accent);
  text-decoration: none;
}

.admin-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink-muted);
}

.admin-empty {
  text-align: center;
  color: var(--ink-muted);
  padding: 22px;
}

.admin-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink-soft);
  text-transform: capitalize;
}

.admin-badge-active {
  background: #e7f6ee;
  color: #126c3e;
}

.admin-badge-pending {
  background: #fef6e7;
  color: #93600b;
}

.admin-badge-expired,
.admin-badge-deleted {
  background: #f0f1f4;
  color: var(--ink-muted);
}

.admin-soon {
  margin-top: 30px;
  color: var(--ink-muted);
  font-size: 13px;
}

/* Blog manager */
.admin-flash {
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 18px;
}

.admin-flash-ok {
  background: #e7f6ee;
  color: #126c3e;
  border: 1px solid #bfe6cf;
}

.admin-flash-err {
  background: #fdecec;
  color: #b42318;
  border: 1px solid #f6c9c6;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-gen-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-gen-form input[type="text"] {
  flex: 1;
  min-width: 260px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
}

.admin-gen-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-gen-form button {
  flex: none;
}

.admin-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.admin-hint code {
  background: var(--canvas);
  padding: 1px 6px;
  border-radius: 5px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-actions form {
  margin: 0;
}

.admin-link-danger {
  border: 0;
  background: none;
  color: #b42318;
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  padding: 0;
}

.admin-link-danger:hover {
  text-decoration: underline;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .admin-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

.admin-field>span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.admin-field>span em {
  font-weight: 400;
  font-style: normal;
  color: var(--ink-muted);
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-field textarea {
  resize: vertical;
}

.admin-mono-area {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.admin-field-inline {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.admin-field-inline>span {
  white-space: nowrap;
}

.admin-field-inline select {
  width: auto;
  min-width: 160px;
}

.admin-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.admin-view-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

/* Quill WYSIWYG */
.admin-quill {
  background: #fff;
  border-radius: 11px;
}

.admin-quill .ql-toolbar.ql-snow,
.admin-quill .ql-container.ql-snow {
  border-color: var(--line);
}

.admin-quill .ql-toolbar.ql-snow {
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
}

.admin-quill .ql-container.ql-snow {
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
}

.admin-quill .ql-container {
  min-height: 320px;
  font-family: inherit;
  font-size: 15px;
}

.admin-quill .ql-editor {
  min-height: 320px;
}

/* AI image generator */
.admin-imggen {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-imggen input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
}

.admin-imggen input:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-imggen button {
  flex: none;
}

.admin-img-preview {
  margin-top: 12px;
}

.admin-img-preview img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.admin-hint-ok {
  color: #126c3e;
}

.admin-hint-err {
  color: #b42318;
}

/* Resume-an-upload notice inside the uploader */
.resume-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 11px 14px;
  background: rgba(0, 140, 207, 0.08);
  border: 1px solid rgba(0, 140, 207, 0.25);
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink);
}

.resume-note-text {
  flex: 1;
  line-height: 1.45;
}

.resume-note-x {
  flex: none;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.resume-note-x:hover {
  color: var(--ink);
}

.notfound-title {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 8px 0 0;
}

.notfound-body {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}

/* ============================================================
   Toasts
   ============================================================ */
.toast-region {
  position: fixed;
  inset: auto 0 24px 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-glass);
  animation: toast-in 0.4s var(--ease) both;
}

.toast.is-out {
  animation: toast-out 0.3s var(--ease) forwards;
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--accent);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

/* ============================================================
   Motion-ready + reduced motion + scrollbars
   ============================================================ */
html.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

.upload-scroll::-webkit-scrollbar {
  width: 7px;
}

.upload-scroll::-webkit-scrollbar-thumb {
  background: rgba(142, 144, 155, 0.4);
  border-radius: 99px;
}

.upload-scroll::-webkit-scrollbar-track {
  background: transparent;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .aurora-blob {
    animation: none !important;
  }

  html.motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   v2.1 - condensed uploader, blue accent, options drawer
   ============================================================ */
.text-accent {
  color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-send:hover {
  background: var(--accent-strong);
}

.price-cta-solid:hover {
  background: var(--accent-strong);
}

/* ---- Condensed dropzone (two tiles) ---- */
.dropzone {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  flex: none;
}

.dropzone:hover {
  background: none;
  border: 0;
  transform: none;
}

.dropzone.is-drag {
  outline: 2px dashed var(--accent);
  outline-offset: 6px;
  border: 0;
  background: none;
  transform: none;
  border-radius: var(--r-md);
}

.dz-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.dz-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 18px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(0, 140, 207, 0.06);
  border: 1px solid rgba(0, 140, 207, 0.14);
  transition: background 0.18s, transform 0.16s var(--ease), border-color 0.18s;
}

.dz-action:hover {
  background: rgba(0, 140, 207, 0.1);
  border-color: rgba(0, 140, 207, 0.28);
  transform: translateY(-1px);
}

.dz-plus {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(0, 140, 207, 0.6);
}

.dz-hint {
  margin: 2px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ---- Upgrade line ---- */
.upgrade-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 4px;
  font-size: 13px;
  color: var(--ink-muted);
}

.quota-note {
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-muted);
  background: rgba(142, 144, 155, 0.1);
  border: 1px solid rgba(142, 144, 155, 0.18);
}

/* Limit reached -> prominent branded upsell card */
.quota-note.is-over {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(0, 140, 207, 0.12), rgba(0, 140, 207, 0.05));
  border-color: rgba(0, 140, 207, 0.34);
  box-shadow: 0 12px 28px -18px rgba(0, 140, 207, 0.55);
}

.quota-cap-bolt {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 5px 13px -4px rgba(0, 140, 207, 0.6);
}

.quota-cap-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 150px;
  min-width: 0;
}

.quota-cap-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.quota-cap-sub {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.quota-cap-cta {
  flex: none;
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(0, 140, 207, 0.6);
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}

.quota-cap-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 22px -8px rgba(0, 140, 207, 0.72);
}

.upgrade-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--accent-strong);
}

.upgrade-link:hover {
  color: var(--accent-strong);
}

.upgrade-link svg {
  color: var(--accent);
}

/* ---- Floating-label fields ---- */
.ffields {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.ffield {
  position: relative;
  padding: 13px 0 3px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.18s;
}

.ffield:focus-within {
  border-bottom-color: var(--accent);
}

.ffield.is-invalid {
  border-bottom-color: #d4351c;
}

.ffield.is-invalid>label {
  color: #d4351c;
}

.ffield input,
.ffield textarea {
  width: 100%;
  border: 0;
  background: none;
  padding: 2px 0;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  /* >=16px stops iOS Safari zooming on focus */
  color: var(--ink);
  line-height: 1.4;
}

.ffield input:focus,
.ffield textarea:focus {
  outline: none;
}

.ffield textarea {
  min-height: 24px;
}

/* Auto-growing textareas: JS sets the height; cap it then scroll inside. */
.ffield textarea[data-autogrow] {
  resize: none;
  overflow-y: auto;
  max-height: 132px;
  /* ~5 lines */
}

.ffield label {
  position: absolute;
  left: 0;
  top: 13px;
  transform-origin: left center;
  pointer-events: none;
  font-size: 13px;
  color: var(--ink-muted);
  transition: transform 0.18s var(--ease), color 0.18s;
}

.ffield input:focus~label,
.ffield input:not(:placeholder-shown)~label,
.ffield textarea:focus~label,
.ffield textarea:not(:placeholder-shown)~label {
  transform: translateY(-13px) scale(0.78);
  color: var(--accent-strong);
}

.ffield-aux {
  position: absolute;
  right: 0;
  top: 13px;
  font-size: 13px;
  color: var(--ink-muted);
  pointer-events: none;
}

/* ---- Recipient pill input ---- */
.ffield.is-active>label {
  transform: translateY(-13px) scale(0.78);
  color: var(--accent-strong);
}

/* ---- Select field (e.g. contact reason) ---- */
.ffield select {
  width: 100%;
  border: 0;
  background: none;
  padding: 2px 22px 2px 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.ffield select:focus {
  outline: none;
}

.ffield-chev {
  position: absolute;
  right: 0;
  bottom: 9px;
  color: var(--ink-muted);
  pointer-events: none;
}

/* ---- Contact form: slightly larger inputs ---- */
.contact-card .ffield {
  padding-top: 18px;
  padding-bottom: 6px;
}

.contact-card .ffield input,
.contact-card .ffield textarea,
.contact-card .ffield select {
  font-size: 15px;
  padding-top: 3px;
  padding-bottom: 3px;
}

.contact-card .ffield label {
  top: 18px;
  font-size: 14px;
}

.contact-card .ffield input:focus~label,
.contact-card .ffield input:not(:placeholder-shown)~label,
.contact-card .ffield textarea:focus~label,
.contact-card .ffield textarea:not(:placeholder-shown)~label,
.contact-card .ffield.is-active>label {
  transform: translateY(-18px) scale(0.8);
}

.contact-card .ffield-chev {
  bottom: 11px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  min-height: 24px;
}

.pill-row input {
  flex: 1 1 90px;
  min-width: 90px;
  width: auto;
  padding: 2px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 4px 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--accent-strong);
  background: rgba(0, 140, 207, 0.1);
  border: 1px solid rgba(0, 140, 207, 0.22);
}

.pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill-x {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--accent-strong);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s, background 0.15s;
}

.pill-x:hover {
  opacity: 1;
  background: rgba(0, 140, 207, 0.18);
}

@keyframes ffield-shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

.ffield.shake {
  animation: ffield-shake 0.25s var(--ease);
}

.link-mode-note {
  border-bottom: 0;
}

.link-note-text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.link-note-text svg {
  color: var(--accent);
  flex: none;
}

/* ---- Actions row (expiry + dots) ---- */
.upload-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex: none;
}

.expiry-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 0 12px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 0.18s;
}

.expiry-pill:focus-within {
  border-color: var(--accent);
}

.expiry-cal {
  flex: none;
}

.expiry-pill select {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  /* >=16px stops iOS Safari zooming on focus */
  font-weight: 600;
  padding-right: 18px;
}

.expiry-pill select:focus {
  outline: none;
}

.expiry-chev {
  position: absolute;
  right: 12px;
  color: var(--accent-strong);
  pointer-events: none;
}

.dots-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.dots-btn:hover,
.dots-btn[aria-expanded="true"] {
  border-color: rgba(0, 140, 207, 0.45);
  color: var(--accent);
  background: rgba(0, 140, 207, 0.06);
}

.dots-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--canvas);
}

/* ---- Uploader wrap + options pop-out ---- */
.uploader-wrap {
  position: relative;
  width: min(440px, 100%);
}

.options-pop {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% + 12px);
  width: 360px;
  display: flex;
  flex-direction: column;
  z-index: 30;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-16px) scale(0.985);
  transform-origin: left center;
  transition: opacity 0.26s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.options-pop.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.options-backdrop {
  display: none;
}

/* Mobile: no room beside the card, so it becomes a bottom sheet */
@media (max-width: 1023px) {
  .uploader-wrap {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }

  .options-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(20, 21, 26, 0.36);
    opacity: 0;
    /* Closed, this full-screen layer is invisible but its class display:block
       overrides the [hidden] attribute - so it must NOT swallow touches, or the
       whole uploader becomes unclickable on mobile. */
    pointer-events: none;
    transition: opacity 0.28s var(--ease);
  }

  .options-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .options-pop {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    z-index: 91;
    max-height: 86vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transform-origin: center bottom;
  }

  .options-pop.is-open {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .options-pop {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.options-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.options-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(20, 21, 26, 0.05);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.options-close:hover {
  background: rgba(20, 21, 26, 0.09);
  color: var(--ink);
}

.options-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 22px 22px;
}

.options-foot {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}

.options-done {
  width: 100%;
}

.opt-delivery {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
}

.opt-radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}

.opt-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: border-color 0.18s;
}

.radio-mark::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.18s var(--ease);
}

.opt-radio input:checked~.radio-mark {
  border-color: var(--accent);
}

.opt-radio input:checked~.radio-mark::after {
  transform: scale(1);
}

.opt-radio input:focus-visible~.radio-mark {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.opt-group {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.opt-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* "?" help tooltip in the options panel */
.opt-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ink-muted);
  cursor: help;
  outline: none;
}

.opt-tip>svg {
  display: block;
}

.opt-tip:hover,
.opt-tip:focus-visible {
  color: var(--accent);
}

.opt-tip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 210px;
  padding: 8px 11px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  border-radius: 9px;
  box-shadow: var(--shadow-glass);
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
  z-index: 5;
  pointer-events: none;
}

.opt-tip-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}

.opt-tip:hover .opt-tip-bubble,
.opt-tip:focus .opt-tip-bubble,
.opt-tip:focus-visible .opt-tip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* View-once checkbox */
.opt-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.opt-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  flex: none;
}

.opt-check input[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.opt-check-sub {
  color: var(--ink-muted);
}

.opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color 0.18s;
}

.opt-row>svg {
  color: var(--ink-muted);
  flex: none;
}

.opt-row:hover {
  color: var(--accent-strong);
}

.opt-pro {
  color: var(--ink-muted);
}

.opt-pro:hover {
  color: var(--ink);
}

.opt-pro-bolt {
  display: inline-grid;
  place-items: center;
  color: var(--accent);
}

.opt-select {
  position: relative;
  margin-bottom: 4px;
}

.opt-select select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 7px 22px 7px 0;
}

.opt-select select:focus {
  outline: none;
}

.opt-select svg {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.opt-password {
  position: relative;
  display: flex;
  align-items: center;
}

.opt-password input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 8px 38px 8px 0;
  transition: border-color 0.18s;
}

.opt-password input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.opt-pw-toggle {
  position: absolute;
  right: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.18s;
}

.opt-pw-toggle:hover,
.opt-pw-toggle.is-on {
  color: var(--accent);
}

.opt-hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ============================================================
   Download / expired / password pages
   ============================================================ */
.dl-page {
  position: relative;
  min-height: 100dvh;
  padding: 104px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dl-center {
  justify-content: center;
}

.dl-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  padding: 28px;
  border-radius: var(--r-lg);
}

/* Pro sender branding - its own card above the transfer card. */
.dl-brand-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  gap: 13px;
}

.dl-brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--accent-soft), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
}

.dl-brand-logo {
  flex: none;
  width: auto;
  max-width: 120px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.dl-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dl-brand-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.dl-brand-name a {
  color: var(--accent-strong);
  text-decoration: none;
}

.dl-brand-name a:hover {
  text-decoration: underline;
}

.dl-brand-blurb {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.dl-head {
  padding-bottom: 6px;
}

.dl-from {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
}

.dl-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 8px 0 0;
}

.dl-message {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre-line;
}

.dl-files {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-file {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.dl-file-thumb {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-strong);
  background: rgba(0, 140, 207, 0.1);
}

.dl-file-meta {
  min-width: 0;
  flex: 1;
}

.dl-file-name {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-file-size {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.dl-file-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
  transition: background 0.18s, transform 0.16s var(--ease);
}

.dl-file-btn:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

/* Per-file download state */
.dl-file.is-downloaded {
  border-color: rgba(0, 140, 207, 0.32);
  background: rgba(0, 140, 207, 0.05);
}

.dl-file-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}

.dl-file-status.is-active {
  color: var(--accent-strong);
}

.dl-file-status.is-done {
  color: #15824c;
}

.dl-file-status svg {
  flex: none;
}

.dl-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0, 140, 207, 0.28);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ls-spin 0.7s linear infinite;
}

/* Shared button spinner (also used by auth forms in account.css) */
.btn-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ls-spin 0.7s linear infinite;
}

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

.dl-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.dl-meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.dl-copy {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.dl-copy:hover {
  border-color: rgba(0, 140, 207, 0.4);
  color: var(--accent-strong);
}

.dl-state {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--r-lg);
}

.dl-state-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 16px;
  color: var(--accent);
  background: rgba(0, 140, 207, 0.1);
}

.dl-state-lottie {
  width: 200px;
  height: 200px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.dl-state-lottie svg {
  width: 320px !important;
  height: 320px !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.dl-state-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 16px 0 0;
}

.dl-state-body {
  margin: 10px 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.dl-pw-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.dl-pw-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 15px;
}

.dl-pw-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 140, 207, 0.12);
}

.dl-pw-form .btn-primary {
  justify-content: center;
  padding: 12px;
}

.dl-pw-error {
  margin: 0;
  font-size: 13px;
  color: #c0392b;
}

/* ============================================================
   v2.3 - circular transfer progress, copy highlight, upgrade row, download promo
   ============================================================ */
.opt-row.opt-upgrade {
  font-weight: 600;
}

.opt-row.opt-upgrade:hover {
  color: var(--accent);
}

.opt-upgrade .opt-pro-bolt {
  color: var(--accent);
}

/* circular progress (replaces the form mid-transfer) */
.transfer-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 8px 6px;
}

.progress-ring {
  position: relative;
  width: 170px;
  height: 170px;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(20, 21, 26, 0.08);
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s var(--ease);
}

.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.ring-num {
  display: flex;
  align-items: flex-start;
  line-height: 1;
}

.ring-pct {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.ring-sign {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 5px;
  margin-left: 2px;
}

.transfer-title {
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 18px 0 0;
}

.transfer-sub {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-strong);
}

.transfer-bytes {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.transfer-eta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.transfer-cancel {
  margin-top: 20px;
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-strong);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.transfer-cancel:hover {
  border-color: rgba(0, 140, 207, 0.45);
  background: rgba(0, 140, 207, 0.06);
}

/* copy highlight on the success link row */
.send-link-row span {
  user-select: all;
  transition: color 0.2s;
}

.send-link-row span::selection {
  background: rgba(0, 140, 207, 0.25);
}

.send-link-row.is-copied {
  border-color: var(--accent);
  background: rgba(0, 140, 207, 0.08);
}

/* error state mark */
.send-error-mark {
  background: #fdecea;
  color: #c0392b;
}

/* download-page promo / CTA */
.dl-promo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 540px;
  margin: 14px auto 0;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.dl-promo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}

.dl-promo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
}

.dl-promo-text {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.dl-promo-text strong {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  margin-bottom: 1px;
}

.dl-promo-cta {
  flex: none;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}

.dl-promo:hover .dl-promo-cta {
  background: var(--accent-strong);
}

@media (max-width: 520px) {
  .dl-promo {
    flex-wrap: wrap;
  }

  .dl-promo-cta {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   v2.4 - brand logo image
   ============================================================ */
.brand-logo {
  height: 26px;
  width: auto;
  display: block;
}

.site-footer .brand-logo {
  height: 24px;
}

/* ============================================================
   v2.5 - view-transfer button, header usage dropdown
   ============================================================ */
.send-view-btn {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}

.nav-usage {
  position: relative;
}

.usage-btn {
  display: grid;
  place-items: center;
  gap: 5px;
  grid-auto-flow: column;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.usage-btn:hover,
.nav-usage.is-open .usage-btn {
  color: var(--accent-strong);
  background: rgba(0, 140, 207, 0.06);
}

.usage-btn-label {
  display: none;
}

@media (min-width: 1024px) {
  .usage-btn-label {
    display: inline;
  }
}

.usage-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 268px;
  padding: 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(30px) saturate(185%);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 18px 44px -18px rgba(51, 54, 57, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 75;
}

.nav-usage.is-open .usage-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (prefers-reduced-transparency: reduce) {
  .usage-panel {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.usage-title {
  margin: 0 0 12px;
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  text-transform: lowercase;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.usage-row {
  margin-bottom: 14px;
}

.usage-row:last-of-type {
  margin-bottom: 10px;
}

.usage-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13.5px;
}

.usage-row-head b {
  font-weight: 600;
}

.usage-row-head span:last-child {
  color: var(--ink-soft);
}

.usage-bar {
  height: 6px;
  margin-top: 7px;
  border-radius: 99px;
  background: rgba(51, 54, 57, 0.09);
  overflow: hidden;
}

.usage-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.usage-bar.is-high span {
  background: #d9534f;
}

.usage-left {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
}

.usage-reset {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}

.usage-reset:empty {
  display: none;
}

.usage-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-strong);
}

.usage-upgrade:hover {
  color: var(--accent);
}

/* ============================================================
   Mobile performance
   Phones don't set prefers-reduced-* but still struggle with
   continuously animated aurora blobs and full-strength
   backdrop-filter (the fixed nav re-blurs the page every scroll
   frame). Calm both on small screens to keep scrolling smooth.
   The desktop experience is untouched.
   ============================================================ */
@media (max-width: 1023px) {

  /* Decorative drift loops -> static. Blobs still render. */
  .home-screen .aurora-1,
  .home-screen .aurora-2,
  .aurora-blob {
    animation: none !important;
  }

  /* Lighter blur kernels = far less GPU work per frame, frost preserved. */
  .glass {
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
  }

  .glass-nav::before {
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
  }

  /* Big decorative blur halos are the single most expensive paints. */
  .aurora-blob {
    filter: blur(48px);
  }
}

/* ============================================================
   iOS focus-zoom guard: Safari zooms the whole page when a
   focused input/textarea/select has a font-size under 16px.
   Bump every text-entry control to 16px on touch-size screens.
   ============================================================ */
@media (max-width: 1023px) {

  .ffield input,
  .ffield textarea,
  .pill-row input,
  .field input,
  .field textarea,
  .select-wrap select,
  .expiry-pill select,
  .dl-pw-form input,
  .opt-password input,
  .opt-number {
    font-size: 16px;
  }
}

/* ============================================================
   Sponsored ad card (download page)
   ============================================================ */
.dl-ad-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  margin: 14px auto 0;
  padding: 14px 16px 18px;
  border-radius: var(--r-lg);
}

.dl-ad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dl-ad-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.65;
}

.dl-ad-dismiss {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.dl-ad-dismiss:hover {
  background: rgba(0, 0, 0, 0.07);
  color: var(--ink);
}

.dl-ad-body {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.dl-ad-logo {
  flex: none;
  width: auto;
  max-width: 130px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
  background-color: #fff;
  padding: 5px;
}

.dl-ad-logo-placeholder {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--accent-soft), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
}

.dl-ad-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dl-ad-company {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.dl-ad-tagline {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 520px) {
  .dl-ad-tagline {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .dl-ad-logo {
    max-width: 90px;
    height: 50px;
  }
}

.dl-ad-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.dl-ad-body:hover .dl-ad-arrow {
  background: var(--accent);
  color: #fff;
  transform: translateX(3px);
}

/* ============================================================
   Download all as ZIP + flagged files (malware scan)
   ============================================================ */
.dl-zip-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 18px;
  text-decoration: none;
}

.dl-zip-btn.is-busy {
  pointer-events: none;
  opacity: 0.8;
  cursor: progress;
}

.dl-file.is-flagged .dl-file-name {
  color: var(--ink-muted);
  text-decoration: line-through;
}

.dl-file.is-flagged .dl-file-size {
  color: #c0392b;
}

.dl-file-flag {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
}

/* ============================================================
   Download limit input (options panel, Pro)
   ============================================================ */
.opt-number {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 8px 0;
}

.opt-number:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.opt-number[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ============================================================
   File requests (/request and /r/{token})
   ============================================================ */
/* Folder-style tab peeking from behind the top of a card (e.g. the
   "Send files" link above the request form). Extra bottom padding is
   tucked under the card; the card sits above it via z-index. */
.card-tab {
  display: block;
  width: calc(100% - 60px);
  margin: 0 auto -30px;
  padding: 10px 20px 38px;
  position: relative;
  z-index: 0;
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: color 0.18s, background 0.2s,
    padding 0.22s var(--ease, ease), margin-top 0.22s var(--ease, ease);
}

/* Grow the vertical padding on hover; the negative margin-top absorbs the
   extra height so the tab swells upward without nudging the card below. */
.card-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  padding-top: 17px;
  padding-bottom: 45px;
  margin-top: -14px;
}

.card-tab~.upload-card {
  position: relative;
  z-index: 1;
}

.req-form-title {
  margin: 0 0 14px;
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  padding: 24px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.8);
}

.contact-aside {
  padding: 8px 4px;
}

.contact-aside-title {
  margin: 0 0 14px;
  font-family: var(--font-display, "Montserrat Alternates"), sans-serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.contact-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.contact-links a {
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
}

.contact-links a:hover {
  text-decoration: underline;
}

.contact-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Inline "Create a request" arrow link (features page bento card) */
.req-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
}

.req-cta-link:hover {
  text-decoration: underline;
}

.req-cta-link svg {
  transition: transform 0.18s var(--ease, ease);
}

.req-cta-link:hover svg {
  transform: translateX(2px);
}

/* CTA button inside a features bento card */
.bento-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 10px 20px;
  text-decoration: none;
}

.req-kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
}

.req-title-sm {
  font-size: clamp(2rem, 4.5vw, 3rem);
  overflow-wrap: break-word;
}

.dl-ad-card.is-hiding {
  animation: adFadeOut 0.25s ease forwards;
}

@keyframes adFadeOut {
  to {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* ============================================================
   Dark mode toggle button
   ============================================================ */
.nav-theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.nav-theme-toggle:hover {
  color: var(--ink);
  background: rgba(20, 21, 26, 0.06);
}

.theme-icon {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  transition: opacity 0.22s ease, transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light mode: moon visible (click → go dark), sun hidden */
.theme-sun {
  opacity: 0;
  transform: scale(0.55) rotate(-50deg);
}

.theme-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Dark mode: sun visible (click → go light), moon hidden */
[data-theme="dark"] .theme-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

[data-theme="dark"] .theme-moon {
  opacity: 0;
  transform: scale(0.55) rotate(50deg);
}

/* Logo swap */
.brand-logo--dark {
  display: none;
}

[data-theme="dark"] .brand-logo--light {
  display: none;
}

[data-theme="dark"] .brand-logo--dark {
  display: block;
}

/* ============================================================
   Dark mode – colour tokens
   Charcoal canvas, high-contrast text, subtle surfaces.
   ============================================================ */
[data-theme="dark"] {
  --ink: #F4F4F6;
  --ink-soft: #B8BBC8;
  --ink-muted: #848592;
  --canvas: #18181B;
  --canvas-2: #1F1F24;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.04);
  --shadow-glass: 0 12px 44px -16px rgba(0, 0, 0, 0.6), 0 4px 14px -8px rgba(0, 0, 0, 0.4);
  --shadow-pop: 0 26px 60px -28px rgba(0, 0, 0, 0.65);
  /* dark-mode-specific surface colour used below */
  --dm-surface: #27272A;
  --dm-surface-hi: #2E2E33;
}

/* ============================================================
   Dark mode – nav
   ============================================================ */
[data-theme="dark"] .glass-nav {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 34px -18px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .glass-nav::before {
  background: rgba(24, 24, 27, 0.5);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
}

[data-theme="dark"] header.is-scrolled .glass-nav::before {
  background: rgba(21, 21, 24, 0.5);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

[data-theme="dark"] .nav-theme-toggle:hover,
[data-theme="dark"] .nav-login:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

/* ============================================================
   Dark mode – glass panels (mobile sheet, dropdown)
   ============================================================ */
[data-theme="dark"] .glass {
  background: rgba(39, 39, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-glass);
}

[data-theme="dark"] .dropdown-panel {
  background: rgba(30, 30, 34, 0.98);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .dropdown-item:hover {
  background: rgba(0, 140, 207, 0.14);
  color: #5BB8E4;
}

[data-theme="dark"] .mobile-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

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

/* Reduced transparency fall-back */
@media (prefers-reduced-transparency: reduce) {

  [data-theme="dark"] .glass,
  [data-theme="dark"] .glass-nav::before,
  [data-theme="dark"] .dropdown-panel,
  [data-theme="dark"] .toast {
    background: var(--dm-surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ============================================================
   Dark mode – universal card / surface override
   All these components use rgba-white backgrounds that render
   as flat grey on a dark canvas. Replace with a solid surface.
   ============================================================ */
[data-theme="dark"] :is(.bento,
  .price-card,
  .stat-card,
  .faq-item,
  .step,
  .value-card,
  .help-card,
  .team-card,
  .post-card,
  .file-row,
  .btn-ghost,
  .advertise-contact,
  .ext-showcase,
  .kit-spec > div,
  .kit-asset-card,
  .contact-card,
  .dl-file,
  .dl-copy,
  .expiry-pill,
  .dots-btn,
  .usage-panel,
  .options-pop,
  .legal-toc a,
  .help-contact,
  .dl-promo) {
  background: var(--dm-surface);
  border-color: rgba(255, 255, 255, 0.09);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Hover elevations */
[data-theme="dark"] :is(.bento, .price-card, .stat-card):hover {
  background: var(--dm-surface-hi);
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.55);
}

/* plan modal */
[data-theme="dark"] .plan-modal-card {
  background: var(--dm-surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.7);
}

/* ============================================================
   Dark mode – form controls
   ============================================================ */
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .select-wrap select {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder {
  color: var(--ink-muted);
}

[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field textarea:focus,
[data-theme="dark"] .select-wrap select:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(0, 140, 207, 0.6);
}

[data-theme="dark"] .dl-pw-form input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

/* Segmented control */
[data-theme="dark"] .segmented {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .seg-thumb {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.4);
}

/* Dropzone */
[data-theme="dark"] .dropzone {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .dropzone:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 140, 207, 0.45);
}

[data-theme="dark"] .dz-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* Chip buttons */
[data-theme="dark"] .chip-btn {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Pills */
[data-theme="dark"] .pill {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   Dark mode – misc components
   ============================================================ */
[data-theme="dark"] .send-link-row {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .section-tint {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .price-card-pro {
  border-color: rgba(0, 140, 207, 0.35);
}

[data-theme="dark"] .price-cta-ghost {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--ink);
}

[data-theme="dark"] .toast {
  background: rgba(30, 30, 34, 0.97);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

[data-theme="dark"] .cookie-note {
  background: var(--dm-surface);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

[data-theme="dark"] .site-footer {
  background: rgba(18, 18, 20, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .usage-panel {
  border-color: rgba(255, 255, 255, 0.09);
}

/* Dots-badge (options pop-out) uses same surface */
[data-theme="dark"] .dots-badge {
  background: rgba(30, 30, 34, 0.98);
  border-color: rgba(255, 255, 255, 0.09);
}

/* Stat nums stay brand blue (readable on dark surfaces) */
[data-theme="dark"] .stat-num {
  color: var(--accent-soft);
}

/* bento-dark: invert to a lighter surface on dark bg */
[data-theme="dark"] .bento-dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--ink);
}

/* Scrolled header – stronger drop shadow on dark bg */
[data-theme="dark"] .glass-nav {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 34px -18px rgba(0, 0, 0, 0.55), 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* Card tab (folder-style tab above the uploader card) */
[data-theme="dark"] .card-tab {
  background: var(--dm-surface);
  border-color: rgba(255, 255, 255, 0.09);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--ink-soft);
}

[data-theme="dark"] .card-tab:hover {
  background: var(--dm-surface-hi);
  color: var(--ink);
}

/* #uploader – inline style override required */
[data-theme="dark"] #uploader {
  background: rgba(39, 39, 42, 0.92) !important;
}

/* CTA band – keep it dark; --ink becomes near-white in dark mode */
[data-theme="dark"] .cta-band {
  background: #1A1A1E;
}

/* Download-page promo – solid surface, no backdrop blur */
[data-theme="dark"] .dl-promo {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* CTA button on dark band – white bg needs dark text */
[data-theme="dark"] .cta-btn {
  color: #18181B;
}

/* Expiry select – browser native colour can stay dark; force light */
[data-theme="dark"] .expiry-pill select {
  color: var(--ink);
  color-scheme: dark;
}

/* Request form – same inline-style override as #uploader */
[data-theme="dark"] #request-form {
  background: rgba(39, 39, 42, 0.92) !important;
}

/* ============================================================
   Dark mode – admin tables, badges, forms
   ============================================================ */
[data-theme="dark"] .admin-table-wrap {
  background: var(--dm-surface);
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .admin-table th,
[data-theme="dark"] .admin-table td {
  border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .admin-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-soft);
}

[data-theme="dark"] .admin-badge-active {
  background: rgba(26, 158, 92, 0.18);
  color: #5BC991;
}

[data-theme="dark"] .admin-badge-pending {
  background: rgba(147, 96, 11, 0.2);
  color: #D4A24E;
}

[data-theme="dark"] .admin-badge-expired,
[data-theme="dark"] .admin-badge-deleted {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-muted);
}

[data-theme="dark"] .admin-flash-ok {
  background: rgba(26, 158, 92, 0.15);
  border-color: rgba(26, 158, 92, 0.3);
  color: #5BC991;
}

[data-theme="dark"] .admin-flash-err {
  background: rgba(180, 35, 24, 0.15);
  border-color: rgba(180, 35, 24, 0.3);
  color: #F4827A;
}

[data-theme="dark"] .admin-field input,
[data-theme="dark"] .admin-field textarea,
[data-theme="dark"] .admin-field select,
[data-theme="dark"] .admin-gen-form input[type="text"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

[data-theme="dark"] .admin-field input:focus,
[data-theme="dark"] .admin-field textarea:focus,
[data-theme="dark"] .admin-field select:focus,
[data-theme="dark"] .admin-gen-form input:focus {
  border-color: rgba(0, 140, 207, 0.6);
  background: rgba(255, 255, 255, 0.09);
}

/* ============================================================
   v2.11 - social share, file preview, expiry countdown, send-again
   ============================================================ */

/* Success screen — social share row */
.send-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.send-share-label {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-right: 2px;
}

.send-share-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: #25D366;
  text-decoration: none;
  flex: none;
  transition: transform 0.16s var(--ease), filter 0.16s;
}

.send-share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.send-share-x {
  background: #000;
}

/* Success screen — send again text button */
.send-again-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.16s;
}

.send-again-btn svg {
  color: var(--accent);
  flex-shrink: 0;
}

.send-again-btn:hover {
  color: var(--accent-strong);
}

/* Download page — file preview button */
.dl-preview-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.dl-preview-btn:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.dl-preview-btn[aria-expanded="true"] {
  background: rgba(0, 140, 207, 0.08);
  border-color: var(--accent);
  color: var(--accent-strong);
}

/* Download page — inline preview area */
.dl-file-preview {
  flex: 0 0 100%;
  margin-top: 4px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
}

.dl-preview-img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.04);
}

.dl-preview-pdf {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

.dl-preview-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Download page — expiry countdown colour cues */
.dl-expiry-soon {
  color: #d97706;
  font-weight: 500;
}

.dl-expiry-urgent {
  color: #dc2626;
  font-weight: 600;
}

/* Dark mode adjustments */
[data-theme="dark"] .send-share-x {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .send-again-btn {
  color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .dl-preview-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .dl-preview-btn:hover,
[data-theme="dark"] .dl-preview-btn[aria-expanded="true"] {
  background: rgba(0, 140, 207, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="dark"] .dl-file-preview {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .dl-preview-img {
  background: rgba(255, 255, 255, 0.06);
}