/* FileSeek landing page. Midnight Searchlight: navy atmosphere, glass surfaces,
   app-derived accents, pill buttons, large radii. */

:root {
  /* 深海寻光 / Midnight Searchlight. Colors derive from the app's own tokens
     (desktop/src/styles/tokens.css): document blue, image mint, video violet,
     warning amber. */
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --on-brand: #ffffff;
  --brand-tonal: #e8eefe;
  --on-brand-tonal: #173a8c;
  --brand-2: #0f9f80;
  --cta-gradient: linear-gradient(100deg, #2563eb 0%, #0b7a63 100%);
  --cta-gradient-hover: linear-gradient(100deg, #1d4ed8 0%, #0a6b57 100%);

  --bg: #f5f8fd;
  --bg-elev: #ffffff;
  --surface: rgb(255 255 255 / 0.78);
  --surface-2: rgb(241 245 252 / 0.9);
  --surface-3: #e8eef8;
  --line: #dbe4f2;
  --text: #162033;
  --text-2: #41506a;
  --text-3: #5f6d82;

  /* App category accents: small marks only. */
  --g-blue: #2563eb;
  --g-red: #0d8a6f;
  --g-yellow: #7c3aed;
  --g-green: #96630f;
  --tint-blue: rgb(37 99 235 / 0.1);
  --tint-red: rgb(15 159 128 / 0.12);
  --tint-yellow: rgb(124 58 237 / 0.1);
  --tint-green: rgb(180 121 31 / 0.12);
  --mark: #fde68a;

  /* Atmosphere layer */
  --glow-blue: rgb(37 99 235 / 0.14);
  --glow-mint: rgb(52 211 176 / 0.12);
  --glow-violet: rgb(139 92 246 / 0.1);
  --dot-grid: rgb(37 99 235 / 0.06);
  --glass-border: rgb(37 99 235 / 0.16);

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --shadow-window: 0 1px 2px rgb(16 24 40 / 0.08), 0 18px 50px rgb(16 24 40 / 0.12);
  --font: "Figtree Variable", "Noto Sans SC Variable", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --page: min(1200px, 100% - 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4f8cff;
    --brand-hover: #6da3ff;
    --on-brand: #04101f;
    --brand-tonal: rgb(79 140 255 / 0.16);
    --on-brand-tonal: #9cc0ff;
    --brand-2: #34d3b0;
    --cta-gradient: linear-gradient(100deg, #4f8cff 0%, #2bb3a3 100%);
    --cta-gradient-hover: linear-gradient(100deg, #6da3ff 0%, #35c4b2 100%);

    --bg: #070c16;
    --bg-elev: #0b1424;
    --surface: rgb(13 21 38 / 0.72);
    --surface-2: rgb(19 30 52 / 0.8);
    --surface-3: #1a2740;
    --line: rgb(120 160 220 / 0.18);
    --text: #e9eef6;
    --text-2: #b9c6d8;
    --text-3: #8b9cb5;

    --g-blue: #4f8cff;
    --g-red: #34d3b0;
    --g-yellow: #a78bfa;
    --g-green: #f5c26b;
    --tint-blue: rgb(79 140 255 / 0.14);
    --tint-red: rgb(52 211 176 / 0.12);
    --tint-yellow: rgb(167 139 250 / 0.12);
    --tint-green: rgb(245 194 107 / 0.12);
    --mark: #5c4813;

    --glow-blue: rgb(37 99 235 / 0.28);
    --glow-mint: rgb(52 211 176 / 0.16);
    --glow-violet: rgb(139 92 246 / 0.12);
    --dot-grid: rgb(255 255 255 / 0.05);
    --glass-border: rgb(120 170 255 / 0.22);

    --shadow-window: 0 1px 2px rgb(0 0 0 / 0.4), 0 24px 70px rgb(0 0 0 / 0.5);
  }
}

/* Opaque surfaces where backdrop-filter is unavailable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --surface: #ffffff;
    --surface-2: #f1f5fc;
  }
}

@media (prefers-color-scheme: dark) {
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root {
      --surface: #0d1526;
      --surface-2: #131e34;
    }
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Atmosphere: a fixed layer of soft blue / mint / violet light behind the page,
   plus a dot grid that fades out below the hero. Static, so reduced motion has
   nothing to disable. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(58% 46% at 16% 0%, var(--glow-blue) 0%, transparent 64%),
    radial-gradient(44% 38% at 88% 6%, var(--glow-mint) 0%, transparent 62%),
    radial-gradient(52% 46% at 64% 68%, var(--glow-violet) 0%, transparent 68%);
}

body::after {
  bottom: auto;
  height: min(920px, 110vh);
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

mark {
  background: var(--mark);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.muted {
  color: var(--text-3);
}

.small {
  font-size: 14px;
}

.center {
  text-align: center;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-filled {
  background-color: var(--brand);
  background-image: var(--cta-gradient);
  color: var(--on-brand);
  box-shadow: 0 10px 26px -14px var(--glow-blue);
}

.btn-filled:hover {
  background-color: var(--brand-hover);
  background-image: var(--cta-gradient-hover);
  box-shadow: 0 12px 30px -12px var(--glow-blue);
}

.btn-tonal {
  background: var(--brand-tonal);
  color: var(--on-brand-tonal);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}

.btn-tonal:hover {
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.16);
  background: color-mix(in srgb, var(--brand-tonal) 82%, var(--surface));
}

.btn-outline {
  background: var(--surface);
  color: var(--brand);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--tint-blue);
}

.btn-text {
  background: transparent;
  color: var(--brand);
  padding: 0 14px;
}

.btn-text:hover {
  background: var(--tint-blue);
}

.btn-large {
  min-height: 52px;
  padding: 0 28px;
  font-size: 16px;
}

.btn-small {
  min-height: 36px;
  padding: 0 18px;
  font-size: 14px;
}

.btn[aria-disabled="true"] {
  background: var(--surface-3);
  color: var(--text-3);
  box-shadow: none;
  cursor: not-allowed;
}

.icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface-2);
}

.link-arrow {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}

.link-arrow::after {
  content: " \2192";
}

.link-arrow:hover {
  text-decoration: underline;
}
/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-elev) 72%, transparent);
  backdrop-filter: saturate(1.3) blur(16px);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: var(--page);
  height: 64px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}

.topnav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.topnav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
}

.topnav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

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

/* Hero */
.hero {
  width: var(--page);
  margin: 0 auto;
  padding: 96px 0 72px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tint-blue);
  color: var(--on-brand-tonal);
  font-size: 14px;
  font-weight: 500;
}

.hero-title {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--text-2);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.hero-trial {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin-top: 20px;
  font-size: 15px;
}

/* Value metrics. The 0.5s figure is a lab measurement; the note under the
   cards carries that qualifier. */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 44px auto 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-m);
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.stat-value {
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-value-accent {
  background: var(--cta-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--text-3);
  font-size: 14px;
}

.hero-stats-note {
  max-width: 760px;
  margin: 12px auto 0;
  line-height: 1.5;
  text-align: center;
}

/* Sections */
.section {
  width: var(--page);
  margin: 0 auto;
  padding: 96px 0;
}

.section-tinted {
  width: 100%;
  padding-left: max(24px, (100% - 1200px) / 2);
  padding-right: max(24px, (100% - 1200px) / 2);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), transparent 72%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-head h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 18px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 32px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-l);
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 14%, transparent);
}

.feature-card h3,
.point h3,
.privacy-item h3 {
  margin: 20px 0 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.feature-card p,
.point p,
.privacy-item p {
  color: var(--text-2);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tone-blue {
  background: var(--tint-blue);
  color: var(--g-blue);
}

.tone-red {
  background: var(--tint-red);
  color: var(--g-red);
}

.tone-yellow {
  background: var(--tint-yellow);
  color: var(--g-yellow);
}

.tone-green {
  background: var(--tint-green);
  color: var(--g-green);
}

/* Use cases. Four before/after scenario cards that translate the feature list
   into "who · what pain · how it's solved". Reuses the feature-card surface. */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.use-case-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-l);
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 14%, transparent);
}

.use-case-role {
  display: flex;
  align-items: center;
  gap: 10px;
}

.use-case-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.use-case-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.use-case-role-text {
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
}

.use-case-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}

.use-case-row.is-after {
  margin-bottom: 20px;
}

.use-case-row p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.use-case-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.use-case-row.is-before .use-case-label {
  color: var(--text-3);
}

.use-case-row.is-before p {
  color: var(--text-2);
}

.use-case-row.is-after .use-case-label {
  color: var(--text);
}

.use-case-row.is-after p {
  color: var(--text);
  font-weight: 500;
}

.use-case-tag {
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

/* Mobile access. The phone mockup keeps the app's fixed dark theme, like the
   demo window, so it reads as the same product on a different screen. */
.mobile-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-l);
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 12%, transparent);
}

.mobile-copy .eyebrow {
  margin-bottom: 16px;
}

.mobile-copy h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.mobile-lede {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 17px;
}

.mobile-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.mobile-points li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
}

.mobile-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tint-green);
}

.mobile-points li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--g-green);
  border-bottom: 2px solid var(--g-green);
  transform: rotate(-45deg);
}

.mobile-note {
  margin-top: 22px;
  line-height: 1.5;
}

.phone {
  position: relative;
  width: 300px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a3a55, #0b1424 45%, #1a2740);
  box-shadow:
    0 30px 80px -30px var(--glow-blue),
    0 0 0 1px var(--glass-border);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 38px;
  pointer-events: none;
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 2;
  width: 96px;
  height: 22px;
  margin-left: -48px;
  border-radius: 999px;
  background: #05080f;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  aspect-ratio: 9 / 19;
  padding: 44px 16px 18px;
  overflow: hidden;
  border-radius: 36px;
  background: #0f1115;
  color: #e8eaed;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
}

.phone-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d3b0;
  box-shadow: 0 0 12px #34d3b0;
}

.phone-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #2e3540;
  border-radius: 10px;
  background: #171a20;
  color: #8ab4f8;
  font-size: 13px;
}

.phone-search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.phone-search span {
  color: #e8eaed;
}

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.phone-grid img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.phone-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  margin-top: auto;
  border-radius: 10px;
  background: #1a2740;
  color: #8ab4f8;
  font-size: 12px;
  font-weight: 500;
}

.phone-upload svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* AI flow */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 28px;
  padding: 0;
  list-style: none;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.flow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
}

.flow-chip-brand {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.flow-note {
  color: var(--text-3);
  font-size: 13px;
}

.flow-arrow {
  position: relative;
  width: 56px;
  height: 46px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.flow-arrow::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 8px;
  top: 23px;
  border-top: 2px dashed var(--line);
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 18px;
  border: 6px solid transparent;
  border-left-color: var(--text-3);
}

.flow-arrow span {
  position: relative;
  top: -2px;
}

.point-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.point {
  padding: 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-m);
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.point h3 {
  margin-top: 0;
}

.privacy-grid {
  margin-top: 0;
}

.privacy-item {
  padding: 8px 12px;
  text-align: center;
}
/* Pricing */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-bottom: 32px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-l);
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 12%, transparent);
}

.plan.is-recommended {
  border: 2px solid var(--brand);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent 45%),
    var(--surface);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 16%, transparent),
    0 24px 70px -34px var(--glow-blue);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
}

.plan-name {
  font-size: 18px;
  font-weight: 500;
}

.plan-badge {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 12px;
  font-weight: 500;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 16px;
}

.plan-amount {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.plan-currency {
  font-size: 22px;
  font-weight: 500;
}

.plan-period {
  color: var(--text-3);
  font-size: 15px;
}

.plan-save {
  min-height: 22px;
  color: var(--g-green);
  font-size: 14px;
  font-weight: 500;
}

.plan-features {
  flex: 1;
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 15px;
}

.plan-features li {
  position: relative;
  padding: 6px 0 6px 26px;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--g-green);
  border-bottom: 2px solid var(--g-green);
  transform: rotate(-45deg);
}

.plan .btn {
  width: 100%;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

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

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

.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item p {
  padding: 0 4px 24px;
  color: var(--text-2);
}

/* Footer */
.footer {
  margin-top: 32px;
  border-top: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--bg-elev) 76%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  width: var(--page);
  margin: 0 auto;
  padding: 40px 0;
}

.footer-brand p {
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer-meta {
  grid-column: 1 / -1;
}

.footer-meta span + span::before {
  content: "\00b7";
  margin: 0 10px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible,
.no-js .reveal {
  opacity: 1;
  transform: none;
}
/* ============================================================================
   FileSeek App Demo Shell
   ============================================================================
   Scoped tokens and components matching desktop/src/styles/tokens.css (dark).
   The .fs-app scope isolates the demo from the landing page's theme.
   ========================================================================= */

.fs-app {
  /* Typography */
  --font-sans: "Figtree Variable", "Noto Sans SC Variable", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale (from app tokens.css) */
  --fs-text-caption: 11px;
  --fs-text-caption-leading: 14px;
  --fs-text-meta: 12px;
  --fs-text-meta-leading: 16px;
  --fs-text-body: 13px;
  --fs-text-body-leading: 18px;
  --fs-text-body-lg: 14px;
  --fs-text-body-lg-leading: 20px;
  --fs-text-title: 18px;
  --fs-text-title-leading: 24px;

  /* Shape */
  --fs-radius-xs: 4px;
  --fs-radius-sm: 6px;
  --fs-radius-control: 8px;
  --fs-radius-card: 12px;
  --fs-radius-dialog: 16px;

  /* Density */
  --density-row: 52px;
  --density-toolbar: 44px;
  --density-header: 72px;

  /* Motion */
  --fs-motion-fast: 120ms;
  --fs-motion-base: 180ms;
  --fs-ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Dark theme colors (from tokens.css :root[data-theme="dark"]) */
  color-scheme: dark;

  --background: #0f1115;
  --foreground: #e8eaed;
  --surface: #171a20;
  --surface-muted: #1e222a;
  --surface-hover: #232830;
  --muted-foreground: #a8b0bd;
  --subtle-foreground: #838c9b;
  --border-subtle: #232830;
  --border: #2e3540;
  --border-control: #5e6a7a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-text: #8ab4f8;
  --accent-tint: #1a2740;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --destructive: #f28b82;
  --success: #81c995;
  --ring: #8ab4f8;

  /* Base styles */
  font-family: var(--font-sans);
  font-size: var(--fs-text-body);
  line-height: var(--fs-text-body-leading);
  color: var(--foreground);
  background: var(--background);
}

/* Demo window shell: wraps .fs-app and applies scaling */
.demo-window-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1200px;
  margin: 24px auto 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 20%, transparent),
    0 30px 90px -28px var(--glow-blue),
    0 0 90px -36px var(--glow-mint);
}

/* Gradient hairline around the fixed-dark demo, so it floats above the page
   instead of merging into it. Drawn inside the shell, so setupDemoScale()'s
   width measurement is unaffected. */
.demo-window-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--brand) 58%, transparent),
    color-mix(in srgb, var(--brand-2) 30%, transparent) 44%,
    transparent 74%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* The app is laid out at its own logical size (1470x923, the reference screenshots at
   2x) and scaled as a whole to the shell's width by main.js, so it never reflows. */
#demo-app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  width: 1470px;
  height: 923px;
  transform-origin: top left;
}

/* macOS window chrome: non-scaling title bar above the scaled app window.
   Uses the app's dark surface so it reads as the same window, and macOS
   traffic-light colors. */
.demo-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: #171a20; /* app --surface */
  border-bottom: 1px solid #232830; /* app --border-subtle */
}

.demo-traffic {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}

.demo-traffic-red {
  background: #ff5f57;
}

.demo-traffic-yellow {
  background: #febc2e;
}

.demo-traffic-green {
  background: #28c840;
}

.demo-titlebar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 500;
  color: #a8b0bd; /* app --muted-foreground */
  pointer-events: none;
  white-space: nowrap;
}

/* Sidebar */
.fs-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border-subtle);
}

.fs-sidebar-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 16px 12px;
  gap: 16px;
}

.fs-search-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fs-search-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-control);
  border-radius: var(--fs-radius-control);
  background: var(--surface);
  transition: border-color var(--fs-motion-base) var(--fs-ease-standard);
}

.fs-search-input:focus-within {
  border-color: var(--accent);
}

.fs-search-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: var(--fs-text-body);
  outline: none;
}

.fs-search-input input::placeholder {
  color: var(--subtle-foreground);
}

/* Drag-to-search transition (demo only). */
.fs-search-input.is-drop-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

.fs-search-input.is-has-chip input {
  flex: 0 1 0;
  width: 0;
  padding: 0;
  opacity: 0;
}

.fs-search-input.is-has-chip .fs-kbd {
  opacity: 0;
}

.fs-query-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px 0 3px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-text);
  font-size: var(--fs-text-caption);
  white-space: nowrap;
}

.fs-query-chip img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.fs-image-btn.is-pressed {
  background: var(--accent-tint);
  color: var(--accent-text);
}

.fs-drag-ghost {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 30;
  width: 132px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--sx, 0px), var(--sy, 0px)) rotate(-8deg);
  transition: opacity var(--fs-motion-base) var(--fs-ease-standard);
}

.fs-drag-ghost.is-in {
  opacity: 1;
}

.fs-drag-ghost.is-flying {
  animation: fs-drag-fly 1000ms cubic-bezier(0.3, 0.7, 0.2, 1) forwards;
}

.fs-drag-ghost img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
}

.fs-drag-hint {
  position: absolute;
  left: 50%;
  top: -30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-text);
  font-size: var(--fs-text-caption);
  white-space: nowrap;
  transform: translateX(-50%);
}

.fs-drag-cursor {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--foreground);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@keyframes fs-drag-fly {
  0% {
    transform: translate(var(--sx), var(--sy)) rotate(-8deg) scale(1);
    opacity: 1;
  }
  55% {
    transform: translate(
        calc(var(--sx) * 0.5 + var(--tx) * 0.5),
        calc(var(--sy) * 0.5 + var(--ty) * 0.5 - 90px)
      )
      rotate(-2deg)
      scale(0.62);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) rotate(0deg) scale(0.28);
    opacity: 1;
  }
}

/* The result page waits until the image lands in the search field. */
#demo-header,
.fs-content {
  transition: opacity 300ms var(--fs-ease-standard);
}

#demo-header.is-pending,
.fs-content.is-pending {
  opacity: 0;
}

.fs-kbd {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--muted-foreground);
  font-size: var(--fs-text-caption);
  font-family: var(--font-mono);
  line-height: 1;
}

.fs-image-search-buttons {
  display: flex;
  gap: 4px;
}

.fs-image-btn {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 28px;
  padding: 0 4px;
  border: 0;
  border-radius: var(--fs-radius-control);
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-size: var(--fs-text-caption);
  white-space: nowrap;
  transition: background-color var(--fs-motion-base), color var(--fs-motion-base);
  cursor: pointer;
}

.fs-image-btn:hover {
  background: var(--surface-hover);
  color: var(--foreground);
}

.fs-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fs-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--fs-radius-control);
  color: var(--muted-foreground);
  font-size: var(--fs-text-body);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--fs-motion-base), color var(--fs-motion-base);
}

.fs-nav-item:hover {
  background: var(--surface-hover);
  color: var(--foreground);
}

.fs-nav-item.is-active {
  background: var(--accent-tint);
  color: var(--accent-text);
}

.fs-sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.fs-bottom-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--fs-radius-control);
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-size: var(--fs-text-body);
  text-align: left;
  transition: background-color var(--fs-motion-base), color var(--fs-motion-base);
  cursor: pointer;
}

.fs-bottom-btn:hover {
  background: var(--surface-hover);
  color: var(--foreground);
}

/* Main area */
.fs-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--background);
}

.fs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--density-toolbar);
  padding: 0 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.fs-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-text-meta);
  color: var(--subtle-foreground);
}

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

.fs-content {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.fs-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-text-meta);
  color: var(--muted-foreground);
}

/* Icon helper */
.fs-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
}

.fs-icon-sm {
  width: 14px;
  height: 14px;
}

.fs-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Toolbar */
.fs-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.fs-result-title {
  margin: 0;
  font-size: var(--fs-text-title);
  font-weight: 600;
  line-height: var(--fs-text-title-leading);
  color: var(--foreground);
}

.fs-result-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fs-result-desc {
  margin: 0;
  font-size: var(--fs-text-meta);
  color: var(--muted-foreground);
}

.fs-result-count {
  color: var(--muted-foreground);
  font-weight: 400;
}

/* Type tabs */
.fs-type-tabs {
  display: flex;
  gap: 8px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.fs-type-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--density-toolbar);
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-size: var(--fs-text-body);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--fs-motion-base), border-color var(--fs-motion-base);
}

.fs-type-tab:hover {
  color: var(--foreground);
}

.fs-type-tab.is-active {
  color: var(--accent-text);
  border-bottom-color: var(--accent);
}

.fs-tab-count {
  color: var(--subtle-foreground);
  font-size: var(--fs-text-meta);
  font-weight: 400;
}

/* Filter bar */
.fs-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.fs-filter-left,
.fs-filter-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-filter-btn,
.fs-enhanced-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--fs-radius-control);
  background: var(--surface-muted);
  color: var(--foreground);
  font: inherit;
  font-size: var(--fs-text-body);
  cursor: pointer;
  transition: background-color var(--fs-motion-base);
}

.fs-filter-btn:hover,
.fs-enhanced-btn:hover {
  background: var(--surface-hover);
}

.fs-enhanced-btn {
  background: var(--accent-tint);
  color: var(--accent-text);
}

.fs-scope-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  color: var(--muted-foreground);
  font-size: var(--fs-text-meta);
}

/* Search input in page */
.fs-search-in-page {
  padding: 16px 24px;
}

.fs-search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 600px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-control);
  border-radius: var(--fs-radius-control);
  background: var(--surface);
}

.fs-search-input-wrapper input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  outline: none;
}

.fs-search-input-wrapper input::placeholder {
  color: var(--subtle-foreground);
}

.fs-search-submit {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--fs-radius-sm);
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-size: var(--fs-text-body);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--fs-motion-base);
}

.fs-search-submit:hover {
  background: var(--accent-hover);
}

/* Threshold notice */
.fs-threshold-notice {
  margin: 0 24px 12px;
  padding: 10px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--fs-radius-card);
  background: var(--surface-muted);
  color: var(--muted-foreground);
  font-size: var(--fs-text-meta);
}

/* File list */
.fs-file-list {
  display: flex;
  flex-direction: column;
}

.fs-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--density-row);
  padding: 0 24px;
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--fs-motion-base) var(--fs-ease-standard),
              transform var(--fs-motion-base) var(--fs-ease-standard),
              background-color var(--fs-motion-fast);
}

.fs-file-row.is-in {
  opacity: 1;
  transform: none;
}

.fs-file-row:hover {
  background: var(--surface-hover);
}

/* FileRow's 36px preview slot (h-9 w-9 rounded-sm border bg-surface-muted) holding the
   app's FilePreviewCell: cover image, a round play mark for videos, a format tile for
   documents. */
.fs-file-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--fs-radius-sm);
  background: var(--surface-muted);
  color: var(--muted-foreground);
}

.fs-file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fs-thumb-play {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
}

.fs-thumb-play svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.fs-doc-format {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: var(--fs-text-caption);
  font-weight: 700;
  line-height: 1;
}

.fs-file-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.fs-file-name {
  font-size: var(--fs-text-body);
  font-weight: 500;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-file-path {
  font-size: var(--fs-text-meta);
  color: var(--subtle-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-file-snippet {
  font-size: var(--fs-text-meta);
  color: var(--muted-foreground);
  line-height: 1.4;
}

.fs-file-snippet mark {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent-text);
  font-weight: 500;
}

.fs-file-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.fs-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--muted-foreground);
  font-size: var(--fs-text-caption);
  font-weight: 500;
  white-space: nowrap;
}

.fs-tags {
  display: flex;
  gap: 4px;
}

.fs-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--accent-tint);
  color: var(--accent-text);
  font-size: var(--fs-text-caption);
  white-space: nowrap;
}

.fs-file-size,
.fs-file-date {
  font-size: var(--fs-text-meta);
  color: var(--muted-foreground);
  white-space: nowrap;
}

.fs-file-size {
  width: 64px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fs-file-date {
  width: 96px;
  text-align: right;
}

/* Pagination content */
.fs-pagination-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fs-page-info {
  font-size: var(--fs-text-meta);
  color: var(--muted-foreground);
}

.fs-page-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fs-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--fs-radius-sm);
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: var(--fs-text-meta);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color var(--fs-motion-base);
}

.fs-page-btn:hover:not(:disabled) {
  background: var(--surface-hover);
}

.fs-page-btn.is-active {
  background: var(--surface-muted);
  font-weight: 600;
}

.fs-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Image search specific */
.fs-clear-query-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--fs-radius-control);
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-size: var(--fs-text-body);
  cursor: pointer;
  transition: background-color var(--fs-motion-base), color var(--fs-motion-base);
}

.fs-clear-query-btn:hover {
  background: var(--surface-hover);
  color: var(--foreground);
}

.fs-query-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 24px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--fs-radius-card);
  background: var(--accent-tint);
}

.fs-query-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-text);
  font-size: var(--fs-text-body);
  font-weight: 500;
}

.fs-query-clear {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--fs-radius-sm);
  background: transparent;
  color: var(--accent-text);
  font: inherit;
  font-size: var(--fs-text-body);
  cursor: pointer;
  transition: background-color var(--fs-motion-base);
}

.fs-query-clear:hover {
  background: color-mix(in srgb, var(--accent-text) 15%, transparent);
}

.fs-similarity-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--accent-tint);
  color: var(--accent-text);
  font-size: var(--fs-text-caption);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Video search specific */
/* FileRow's hit badge: h-5 rounded-full border bg-surface-muted px-2 text-caption. */
.fs-hit-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted-foreground);
  font: inherit;
  font-size: var(--fs-text-caption);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: default;
}

.fs-icon-xs {
  width: 12px;
  height: 12px;
}

.fs-hit-badge:hover {
  color: var(--accent-text);
}

.fs-video-hint {
  margin: 16px 24px;
  padding: 12px 16px;
  border-radius: var(--fs-radius-card);
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
}

.fs-video-hint p {
  margin: 0;
  font-size: var(--fs-text-body);
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Video hit preview. The demo has no real video: a poster, a simulated
   timeline and the hit strip communicate the interaction. */
.fs-video-preview {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: color-mix(in srgb, #020617 66%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 350ms var(--fs-ease-standard);
}

.fs-video-preview.is-in {
  opacity: 1;
}

.fs-video-panel {
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--fs-radius-dialog);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.fs-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-muted);
}

.fs-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fs-video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.5));
}

.fs-video-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
}

.fs-video-close svg,
.fs-video-nav svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fs-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
}

.fs-video-play svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
}

.fs-video-progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.fs-video-progress-fill {
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.fs-video-hit {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 11px;
  border-radius: 2px;
  background: var(--accent-text);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.fs-video-dock {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border-subtle);
}

.fs-video-dock-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-video-count {
  margin-right: auto;
  font-size: var(--fs-text-body);
  color: var(--foreground);
}

.fs-video-order {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--fs-radius-sm);
}

.fs-video-order span {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 8px;
  color: var(--subtle-foreground);
  font-size: var(--fs-text-caption);
}

.fs-video-order span.is-active {
  background: var(--surface-muted);
  color: var(--foreground);
}

.fs-video-nav {
  display: flex;
  gap: 2px;
}

.fs-video-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--fs-radius-sm);
  background: var(--surface-muted);
  color: var(--muted-foreground);
}

.fs-video-strip {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.fs-video-strip img {
  width: 64px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 4px;
  object-fit: cover;
  opacity: 0.7;
}

.fs-video-strip img.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.fs-video-caption {
  margin: 10px 0 0;
  color: var(--muted-foreground);
  font-size: var(--fs-text-meta);
  line-height: 1.5;
}

/* Curation workspace */
.fs-curation-page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fs-curation-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.fs-curation-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 12px;
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
}

.fs-curation-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  min-height: var(--density-toolbar);
  padding: 0 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.fs-curation-filter {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fs-curation-filter-label {
  font-size: var(--fs-text-meta);
  color: var(--muted-foreground);
  white-space: nowrap;
}

.fs-curation-select,
.fs-curation-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border-control);
  border-radius: var(--fs-radius-control);
  background: var(--surface);
  color: var(--foreground);
  font-size: var(--fs-text-body);
  white-space: nowrap;
}

.fs-curation-date {
  font-variant-numeric: tabular-nums;
}

.fs-curation-overview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px 0;
}

.fs-curation-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.fs-curation-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted-foreground);
  font: inherit;
  font-size: var(--fs-text-meta);
  cursor: pointer;
}

.fs-curation-chip.is-active {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--accent-tint);
  color: var(--accent-text);
}

.fs-chip-count {
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.fs-curation-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--fs-radius-card);
  background: var(--surface);
}

.fs-summary-meta {
  font-size: var(--fs-text-meta);
  color: var(--muted-foreground);
}

.fs-summary-selected {
  font-size: var(--fs-text-meta);
  font-weight: 500;
  color: var(--foreground);
}

.fs-summary-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.fs-ghost-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--fs-radius-control);
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-size: var(--fs-text-meta);
  cursor: pointer;
  transition: background-color var(--fs-motion-base), color var(--fs-motion-base);
}

.fs-ghost-btn:hover {
  background: var(--surface-hover);
  color: var(--foreground);
}

.fs-event-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fs-event-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--fs-radius-control);
  cursor: pointer;
  transition: background-color var(--fs-motion-base);
}

.fs-event-item:hover {
  background: var(--surface-hover);
}

.fs-event-item.is-active {
  background: var(--accent-tint);
}

.fs-event-cover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  width: 48px;
  height: 48px;
  flex: none;
  overflow: hidden;
  border-radius: var(--fs-radius-sm);
  background: var(--surface-muted);
}

.fs-event-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fs-event-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.fs-event-title {
  font-size: var(--fs-text-body);
  font-weight: 500;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-event-item.is-active .fs-event-title {
  color: var(--accent-text);
}

.fs-event-date {
  font-size: var(--fs-text-meta);
  color: var(--subtle-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--fs-text-meta);
  color: var(--subtle-foreground);
}

.fs-curation-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  overflow-y: auto;
}

.fs-detail-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.fs-detail-title {
  margin: 0;
  font-size: var(--fs-text-title);
  font-weight: 600;
  color: var(--foreground);
}

.fs-detail-meta {
  margin: 0;
  font-size: var(--fs-text-meta);
  color: var(--muted-foreground);
}

.fs-trash-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--fs-radius-control);
  background: var(--destructive);
  color: #ffffff;
  font: inherit;
  font-size: var(--fs-text-body);
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--fs-motion-base);
}

.fs-trash-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.fs-trash-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fs-analyze-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--fs-radius-control);
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-size: var(--fs-text-body);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--fs-motion-base);
}

.fs-analyze-btn:hover {
  background: var(--accent-hover);
}

.fs-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fs-groups-label {
  margin: 0;
  font-size: var(--fs-text-meta);
  font-weight: 500;
  color: var(--muted-foreground);
}

.fs-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fs-group-label {
  margin: 0;
  font-size: var(--fs-text-body);
  font-weight: 600;
  color: var(--foreground);
}

.fs-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.fs-image-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--fs-motion-base) var(--fs-ease-standard),
              transform var(--fs-motion-base) var(--fs-ease-standard);
}

.fs-image-card.is-in {
  opacity: 1;
  transform: none;
}

.fs-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--fs-radius-sm);
  background: var(--surface-muted);
  overflow: hidden;
}

.fs-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fs-image-card.is-best .fs-card-thumb {
  box-shadow:
    0 0 0 2px var(--accent),
    0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.fs-card-name {
  overflow: hidden;
  color: var(--foreground);
  font-size: var(--fs-text-meta);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-card-trash {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--muted-foreground);
  font-size: var(--fs-text-meta);
  cursor: pointer;
}

.fs-card-trash input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
}

.fs-best-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  background: color-mix(in srgb, #fbbf24 100%, transparent);
  color: #78350f;
  font-size: var(--fs-text-caption);
  font-weight: 600;
}

.fs-card-scores {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fs-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-score-label {
  min-width: 32px;
  width: auto;
  font-size: var(--fs-text-caption);
  color: var(--subtle-foreground);
  white-space: nowrap;
  flex: none;
}

.fs-score-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-muted);
  overflow: hidden;
}

.fs-score-fill {
  height: 100%;
  border-radius: 2px;
  transition: width var(--fs-motion-base) var(--fs-ease-standard);
}

.fs-score-primary {
  background: var(--accent);
}

.fs-score-aesthetic {
  background: #8b5cf6;
}

.fs-score-value {
  width: 24px;
  font-size: var(--fs-text-caption);
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
  text-align: right;
  flex: none;
}

.fs-set-best-btn {
  width: 100%;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--fs-radius-sm);
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-size: var(--fs-text-meta);
  cursor: pointer;
  transition: background-color var(--fs-motion-base), color var(--fs-motion-base);
}

.fs-set-best-btn:hover {
  background: var(--surface-hover);
  color: var(--foreground);
}

/* Demo */
.demo {
  max-width: 1040px;
  margin: 0 auto;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.demo-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-2);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.demo-tab[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--brand) 34%, transparent);
  background: var(--brand-tonal);
  color: var(--on-brand-tonal);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 12%, transparent);
}

/* Progress of the scene that is playing. */
.demo-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--brand);
}

.demo.is-playing .demo-tab[aria-selected="true"]::after {
  animation: tab-progress var(--scene-ms, 9000ms) linear forwards;
}

@keyframes tab-progress {
  to {
    width: 100%;
  }
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-blue {
  background: var(--g-blue);
}

.dot-red {
  background: var(--g-red);
}

.dot-green {
  background: var(--g-green);
}

.dot-yellow {
  background: var(--g-yellow);
}

.window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg);
  box-shadow: var(--shadow-window);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.light-red {
  background: #ff5f57;
}

.light-yellow {
  background: #febc2e;
}

.light-green {
  background: #28c840;
}

.window-title {
  flex: 1;
  margin-right: 52px;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

.window-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  height: 500px;
}

.win-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 10px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
}

.win-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 14px;
  font-weight: 500;
}

.win-nav {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
}

.win-nav.is-active {
  background: var(--brand-tonal);
  color: var(--on-brand-tonal);
  font-weight: 500;
}

.win-main {
  position: relative;
  overflow: hidden;
  padding: 20px 24px;
}

.win-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-3);
  font-size: 15px;
}

.win-search.is-focused {
  border-color: var(--brand);
  background: var(--bg);
  color: var(--text);
}

.win-search svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: var(--brand);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.query-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 3px;
  border-radius: 999px;
  background: var(--tint-blue);
  color: var(--on-brand-tonal);
  font-size: 13px;
}

.query-chip img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.win-count {
  min-height: 22px;
  margin: 14px 4px 10px;
  color: var(--text-3);
  font-size: 13px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.result {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--bg);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

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

.result-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}

.result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-doc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 14px;
  background: var(--tint-blue);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
}

.result-doc b {
  color: var(--g-blue);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.result-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.62);
  color: #ffffff;
  font-size: 11px;
}

.result-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.55);
}

.result-play::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 11px;
  border: 7px solid transparent;
  border-left: 11px solid #ffffff;
}

.result-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 10px;
  font-size: 12px;
}

.result-name {
  overflow: hidden;
  color: var(--text);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-score {
  color: var(--g-green);
  font-weight: 500;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 150px;
  margin-top: 16px;
  border: 2px dashed var(--line);
  border-radius: var(--radius-m);
  color: var(--text-3);
  font-size: 14px;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.dropzone.is-hover {
  border-color: var(--brand);
  background: var(--tint-blue);
}

.flying-photo {
  position: absolute;
  z-index: 2;
  width: 132px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.28);
  transition: transform 1.1s var(--ease), opacity 0.3s var(--ease);
}

/* Scene 3: chat */
.chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 620px;
  height: 100%;
  margin: 0 auto;
  font-size: 14px;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97757, #f0a37f);
}

.bubble {
  max-width: 82%;
  padding: 10px 16px;
  border-radius: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

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

.bubble-user {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: var(--brand);
  color: var(--on-brand);
}

.bubble-ai {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: var(--surface-2);
}

.bubble-source {
  display: block;
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12px;
}

.consent {
  align-self: center;
  width: min(360px, 100%);
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg);
  box-shadow: var(--shadow-window);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

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

.consent.is-done {
  opacity: 0;
  transform: scale(0.96);
}

.consent-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.consent-file {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  background: var(--surface);
  font-size: 13px;
}

.consent-file small {
  display: block;
  color: var(--text-3);
}

.pdf-icon {
  flex: none;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--tint-red);
  color: var(--g-red);
  font-size: 10px;
  font-weight: 700;
}

.consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.fake-btn {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
}

.fake-btn.is-primary {
  background: var(--brand);
  color: var(--on-brand);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.fake-btn.is-pressed {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent);
  transform: scale(0.96);
}

/* A static scene (reduced motion, or out of view) shows everything at once. */
.win-main.is-static .result,
.win-main.is-static .bubble,
.win-main.is-static .consent,
.win-main.is-static .fs-image-card {
  transition: none;
}

@media (max-width: 900px) {
  .window-body {
    grid-template-columns: minmax(0, 1fr);
    height: 520px;
  }

  .win-side {
    display: none;
  }

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

@media (max-width: 600px) {
  .win-main {
    padding: 14px;
  }

  .window-body {
    height: 560px;
  }

  .demo-tab {
    padding: 0 14px;
    font-size: 14px;
  }
}

/* Responsive */
@media (max-width: 1080px) {
  .plan-grid,
  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .feature-grid,
  .point-grid,
  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 32px;
  }

  .phone {
    width: 260px;
  }

  .menu-btn {
    display: inline-flex;
  }

  .topnav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 8px 16px 16px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
  }

  .topnav.is-open {
    display: flex;
  }

  .topnav a {
    padding: 12px 16px;
  }

  .flow {
    flex-direction: column;
    align-items: center;
  }

  .flow-arrow {
    width: 46px;
    height: 40px;
  }

  .flow-arrow::before {
    left: 22px;
    right: auto;
    top: 4px;
    bottom: 10px;
    border-top: 0;
    border-left: 2px dashed var(--line);
  }

  .flow-arrow::after {
    right: auto;
    left: 17px;
    top: auto;
    bottom: -2px;
    border-left-color: transparent;
    border-top-color: var(--text-3);
  }

  .flow-arrow span {
    position: absolute;
    top: 10px;
    left: 32px;
  }
}

@media (max-width: 600px) {
  :root {
    --page: calc(100% - 32px);
  }

  .hero-stats {
    grid-template-columns: minmax(0, 1fr);
    max-width: 360px;
  }

  .mobile-showcase {
    padding: 24px;
    border-radius: var(--radius-m);
  }

  .phone {
    width: min(260px, 100%);
  }

  .topbar-download {
    display: none;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 64px 0;
  }

  .section-tinted {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .plan-grid,
  .use-case-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-card {
    padding: 24px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
