/* ==================================================================
   The Scrapper: Live Bento theme
   Graphite tiles, one red accent, moving parts that show the product.
   ================================================================== */
:root {
  --bg: #0C0D11;
  --cell: #14161C;
  --cell-2: #191B22;
  --sunk: #0C0D11;
  --media: #23121A;
  --line: #2A2D36;
  --line-2: #3A3E4A;
  --accent: #FF2D3F;
  --accent-hi: #FF5468;
  --accent-soft: #FF8A96;
  --accent-tint: rgba(255, 45, 63, 0.12);
  --ink: #0C0D11;
  --text: #EEF0F4;
  --text-2: #CDD1DA;
  --muted: #AEB3BF;
  --success: #4ADE9A;
  --danger: #FF8A96;
  --radius: 14px;
  --radius-sm: 8px;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

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

/* ------------------------------------------------------------------ tile surface */
.cell {
  position: relative;
  background: var(--cell);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s, background-color .3s;
}
/* red light that follows the cursor (position set in app.js) */
.cell::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(255, 45, 63, 0.13), transparent 70%);
  transition: opacity .3s;
}
@media (hover: hover) {
  .cell:hover { border-color: var(--accent); }
  .cell:hover::before { opacity: 1; }
  .demo:hover, .info:hover, .band:hover, .tile:hover, .step:hover, .feature:hover, .device:hover, .stat:hover, .other-tool:hover {
    transform: translateY(-6px); background-color: var(--cell-2);
  }
  .band:hover { background-color: var(--accent-hi); }
}

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 20; padding-top: 10px; background: linear-gradient(var(--bg) 40%, transparent); }
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 58px; padding: 0 10px 0 14px; border-radius: var(--radius);
  background: rgba(20, 22, 28, 0.88); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark { width: 32px; height: 32px; flex: none; display: block; transition: transform .35s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-the { font-family: var(--mono); font-size: 0.56rem; font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase; color: var(--accent); margin: 0 0 3px 1px; }
.logo-name { font-family: var(--display); font-weight: 400; font-size: 1.36rem; letter-spacing: 0.05em; text-transform: uppercase; line-height: 0.9; }
.nav { display: none; gap: 4px; }
.nav a { position: relative; color: var(--muted); text-decoration: none; font-size: 0.94rem; font-weight: 500; padding: 8px 12px; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: none; }
.header-cta {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: var(--radius-sm);
  text-decoration: none; font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
  border: 1px solid var(--line); transition: color .2s, border-color .2s; white-space: nowrap;
}
.header-cta:hover { color: var(--text); border-color: var(--line-2); }
.dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.6s ease-out infinite; }
@media (min-width: 960px) { .nav { display: flex; } }

/* ------------------------------------------------------------------ layout */
.layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 14px; padding-bottom: 40px; }
.main { min-width: 0; width: 100%; }
.sidebar { display: none; }
/* the sidebar column only appears once an ad is pasted into #ad-sidebar */
@media (min-width: 1180px) {
  .layout:has(.ad-sidebar:not(:empty)) { grid-template-columns: minmax(0, 1fr) 300px; }
  .layout:has(.ad-sidebar:not(:empty)) .sidebar { display: block; }
  .ad-sidebar { position: sticky; top: 84px; }
}

/* ------------------------------------------------------------------ hero bento */
.hero-bento { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.hero-bento > .cell { animation: rise .7s var(--ease) var(--d, 0s) backwards; }
.hero-main { --d: .05s; container-type: inline-size; padding: clamp(22px, 4vw, 44px); }
.demo { --d: .18s; }
.t-mp3 { --d: .3s; }
.t-clean { --d: .4s; }
.t-apps { --d: .5s; }
.band { --d: .6s; }
.hero-main:focus-within { border-color: var(--line-2); }

@media (min-width: 680px) {
  .hero-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-main, .demo, .t-apps, .band, .hero-bento .ad-slot { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .hero-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; }
  .hero-main { grid-column: 1 / 3; grid-row: 1; }
  .demo { grid-column: 3; grid-row: 1 / 3; }
  .t-mp3 { grid-column: 1; grid-row: 2; }
  .t-clean { grid-column: 2; grid-row: 2; }
  .t-apps { grid-column: 1; grid-row: 3; }
  .band { grid-column: 2 / 4; grid-row: 3; }
  .hero-bento .ad-slot { grid-row: 4; }
}

h1 { margin: 0; font-weight: 400; }
.h1-tag {
  display: flex; align-items: center; gap: 8px; margin: 0 0 16px;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 400; line-height: 1.3; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted);
}
.h1-tag svg { width: 15px; height: 15px; fill: var(--accent); flex: none; }
.h1-main { display: block; font-family: var(--display); font-size: 3.4rem; font-size: clamp(3.4rem, 21cqi, 6.5rem); line-height: 1.04; letter-spacing: 0.005em; text-transform: uppercase; }
/* platform pages have longer headlines */
body[data-platform] .h1-main { font-size: 2.7rem; font-size: clamp(2.7rem, 11.5cqi, 5rem); line-height: 1.08; }

.lede { margin: 18px 0 24px; max-width: 520px; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }

/* 404 page */
.hero { padding: 72px 0 0; text-align: center; }
.hero h1 { font-family: var(--display); font-size: clamp(3rem, 9vw, 5.5rem); line-height: 1.06; text-transform: uppercase; }
.hero .lede { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------------ the form */
.fetch-form {
  display: flex; flex-direction: column; gap: 8px; padding: 7px;
  border-radius: 10px; background: var(--sunk); border: 1px solid var(--line-2);
  transition: border-color .25s, box-shadow .25s;
}
.fetch-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.fetch-form:has(.is-invalid) { border-color: var(--danger); }
@container (min-width: 480px) { .fetch-form { flex-direction: row; align-items: center; } }

.input-shell { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; height: 52px; padding: 0 4px 0 8px; }
.input-icon { flex: none; width: 34px; height: 34px; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--muted); transition: background-color .2s, color .2s; }
.input-icon svg { width: 18px; height: 18px; }
.input-icon .i-link { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.input-icon svg:not(.i-link) { fill: currentColor; }
.input-icon[data-platform] { background: var(--accent-tint); }
.input-icon.detected { animation: pop .3s var(--ease); }
.input-shell input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 1rem; color: var(--text); }
.input-shell input::placeholder { color: var(--muted); opacity: 1; }
.paste-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px;
  border-radius: 6px; cursor: pointer; border: 1px solid var(--line-2); background: transparent;
  color: var(--text-2); font-size: 0.85rem; font-weight: 500; transition: background-color .2s, color .2s;
}
.paste-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.paste-btn:hover { background: var(--cell-2); color: var(--text); }

/* ------------------------------------------------------------------ buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: var(--radius-sm); border: 0; cursor: pointer;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .btn-icon { transform: translateX(4px); }
.btn-primary { color: var(--ink); background: var(--accent); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn-primary:hover { background: var(--accent-hi); }
.btn-primary:hover::after { left: 130%; }
.btn-primary:disabled { opacity: 0.75; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--cell-2); color: var(--text); }
.btn-fetch { min-width: 150px; }

.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(12, 13, 17, 0.3); border-top-color: var(--ink); animation: spin .7s linear infinite; }
.is-loading .spinner { display: block; }
.is-loading .btn-label, .is-loading .btn-icon { display: none; }

/* ------------------------------------------------------------------ platform chips */
.platform-row { margin-top: 18px; }
.platform-label { display: none; }
.platforms { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.platforms li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 6px;
  font-size: 0.84rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line);
  transition: color .25s, border-color .25s, background-color .25s, transform .25s var(--ease);
}
.platforms svg { width: 14px; height: 14px; fill: currentColor; }
.platforms li.active { color: var(--ink); border-color: var(--accent); background: var(--accent); transform: translateY(-3px); }

/* ------------------------------------------------------------------ status */
.status {
  margin: 14px 0 0; padding: 14px 16px; border-radius: 10px;
  display: flex; align-items: center; gap: 12px; color: var(--text-2);
  background: var(--sunk); border: 1px solid var(--line-2);
  animation: rise .3s var(--ease);
}
.status .spinner { display: block; flex: none; border-color: rgba(174, 179, 191, 0.25); border-top-color: var(--accent); }
.status.error { border-color: var(--danger); color: #FFD9DD; }
.status.error svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--danger); stroke-width: 2.2; stroke-linecap: round; }

/* ------------------------------------------------------------------ result */
.result {
  margin: 14px 0 0; padding: 10px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px;
  border-radius: 10px; background: var(--sunk); border: 1px solid var(--line-2);
  animation: rise .4s var(--ease);
  scroll-margin-top: 26px; /* app.js scrolls here mid-animation, while the card still sits 26px low */
}
@container (min-width: 520px) { .result { grid-template-columns: 190px minmax(0, 1fr); gap: 8px; } }
.thumb-wrap { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--media); aspect-ratio: 16 / 10; }
@container (min-width: 520px) { .thumb-wrap { aspect-ratio: auto; min-height: 240px; } }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.duration { position: absolute; z-index: 1; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.72); font-family: var(--mono); font-size: 0.74rem; }
.result-body { padding: 12px 10px 10px; min-width: 0; }
.result-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; font-size: 0.76rem; font-weight: 700; border: 1px solid var(--line-2); color: var(--text); }
.badge svg { width: 12px; height: 12px; fill: currentColor; }
.ready-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; color: var(--success); }
.ready-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.uploader { color: var(--muted); font-size: 0.84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-title {
  margin: 10px 0 16px; font-size: 1.1rem; line-height: 1.4; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.qualities { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.qualities legend { padding: 0; margin-bottom: 8px; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.quality-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.quality {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 9px 11px; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid var(--line-2);
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.quality input { position: absolute; opacity: 0; pointer-events: none; }
.quality .q-name { font-family: var(--mono); font-weight: 500; font-size: 0.92rem; }
.quality .q-sub { font-size: 0.74rem; color: var(--muted); }
.quality:hover { border-color: var(--muted); transform: translateY(-2px); }
.quality:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.quality:has(input:checked) .q-sub { color: var(--accent-soft); }
.quality:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.result-actions .btn-primary { flex: 1; min-width: 180px; }
.ready {
  display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--success); border: 1px solid rgba(74, 222, 154, 0.3); font-size: 0.88rem; font-weight: 500; animation: rise .3s var(--ease);
}
.ready svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ------------------------------------------------------------------ demo tile (looping example) */
.demo { display: flex; flex-direction: column; gap: 16px; padding: 24px; min-width: 0; }
.demo-label { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); text-transform: uppercase; }
.demo-url { padding: 13px; border-radius: var(--radius-sm); background: var(--sunk); font-family: var(--mono); font-size: 0.8125rem; overflow: hidden; }
.demo-url span { display: block; white-space: nowrap; animation: type 8s steps(28) infinite; }
.demo-media { position: relative; flex: 1; min-height: 190px; border-radius: var(--radius-sm); background: radial-gradient(circle at 50% 42%, rgba(255, 45, 63, 0.3), transparent 62%), var(--media); overflow: hidden; display: grid; place-items: center; }
.demo-media > svg { width: 96px; height: 96px; animation: breathe 4s ease-in-out infinite; }
/* mock short-video frame: side buttons and caption */
.demo-rail { position: absolute; right: 12px; bottom: 26px; display: grid; gap: 10px; }
.demo-rail i { display: block; width: 28px; height: 28px; border-radius: 50%; background: rgba(238, 240, 244, 0.16); }
.demo-caption { position: absolute; left: 14px; right: 56px; bottom: 24px; display: grid; gap: 7px; }
.demo-caption b { font-family: var(--mono); font-weight: 500; font-size: 0.8125rem; }
.demo-caption i { display: block; height: 7px; width: 100%; border-radius: 4px; background: rgba(238, 240, 244, 0.16); }
.demo-caption i + i { width: 62%; }
.demo-track { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: #3A1B26; }
.demo-track i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: bar 8s ease-in-out infinite; }
.demo-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-family: var(--mono); font-size: 0.8125rem; text-align: center; }
.demo-chips span { padding: 9px 0; border-radius: 7px; border: 1px solid var(--line-2); animation: chip 8s infinite; }
.demo-chips span:first-child { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 500; }
.demo-chips span:nth-child(2) { animation-delay: .12s; }
.demo-chips span:nth-child(3) { animation-delay: .24s; }
.demo-saved { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-soft); animation: saved 8s infinite; }
.demo-saved svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ small feature tiles */
.info { padding: 24px; min-width: 0; }
.info h2 { margin: 16px 0 6px; font-size: 1.32rem; font-weight: 700; line-height: 1.25; }
.info p { margin: 0; color: var(--muted); line-height: 1.5; }

.meter { height: 70px; display: flex; align-items: center; gap: 6px; }
.meter i { flex: 1; height: 100%; border-radius: 3px; background: var(--accent); animation: wave 1s ease-in-out infinite; }
.meter i:nth-child(2) { animation-duration: 1.3s; animation-delay: .1s; }
.meter i:nth-child(3) { animation-duration: .9s; animation-delay: .3s; }
.meter i:nth-child(4) { animation-duration: 1.2s; animation-delay: .2s; }
.meter i:nth-child(5) { animation-delay: .4s; }
.meter i:nth-child(6) { animation-duration: 1.4s; animation-delay: .15s; }
.meter i:nth-child(7) { animation-duration: .8s; animation-delay: .25s; }
.meter i:nth-child(8) { animation-duration: 1.1s; animation-delay: .35s; }

.scan { position: relative; height: 70px; border-radius: var(--radius-sm); background: var(--media); overflow: hidden; display: grid; place-items: center; }
.scan b { font-family: var(--mono); font-weight: 400; font-size: 0.94rem; animation: wipe 3.6s ease-in-out infinite; }
.scan i { position: absolute; inset: 0; animation: scan 3.6s ease-in-out infinite; }
.scan i::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }

.t-apps { display: flex; align-items: center; gap: 22px; }
.t-apps h2 { margin-top: 0; }
.orbit-wrap { position: relative; flex: none; width: 96px; height: 96px; margin: 14px; }
.orbit-wrap img { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; }
.orbit { position: absolute; inset: 0; border: 1px dashed var(--line-2); border-radius: 50%; animation: orbit 18s linear infinite; }
.orbit span { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; transform: rotate(var(--a)) translateY(-48px) rotate(calc(var(--a) * -1)); }
.orbit em { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--cell-2); border: 1px solid var(--line-2); animation: orbit 18s linear infinite reverse; }
.orbit svg { width: 14px; height: 14px; fill: var(--text); }

.band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 26px 30px; background: var(--accent); border-color: var(--accent); color: var(--ink);
}
.band h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.5rem, 5vw, 3.9rem); line-height: 1.05; text-transform: uppercase; }
.band p { margin: 0; max-width: 330px; font-size: 1.05rem; font-weight: 500; line-height: 1.45; }
.band::before { display: none; }

/* ------------------------------------------------------------------ feature ticker */
.ticker {
  position: relative; margin-top: 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: 8px; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 6px; white-space: nowrap; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); border: 1px solid var(--line); }
.ticker-item svg { width: 14px; height: 14px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ ads */
.ad-slot { margin: 0 auto; width: 100%; max-width: 728px; text-align: center; overflow: hidden; }
.ad-slot:empty { display: none; }

/* ------------------------------------------------------------------ sections */
.section { margin-top: 96px; }
.section-head { margin: 0 0 28px; }
.section-head.left { margin: 0; }
.kicker { display: block; margin: 0 0 10px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.section-head h2, .cta h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 6vw, 3.9rem); line-height: 1.08; letter-spacing: 0.005em; text-transform: uppercase; }
.section-head p.sub { margin: 12px 0 0; color: var(--muted); font-size: 1.04rem; }

/* features on the home page */
.bento { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento .span-2 { grid-column: span 2; }
}
.tile { padding: 26px; }
.tile h3 { margin: 18px 0 8px; font-size: 1.24rem; font-weight: 700; }
.tile p { margin: 0; color: var(--muted); line-height: 1.6; }
.tile-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--media); }
.tile-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--accent-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover .tile-icon svg { animation: pop .4s var(--ease); }
.tile-visual { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.chip { padding: 6px 12px; border-radius: 6px; font-family: var(--mono); font-size: 0.8rem; border: 1px solid var(--line-2); color: var(--text-2); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 500; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 28px; margin-left: 6px; }
.wave i { display: block; width: 3px; border-radius: 3px; background: var(--accent); animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(1) { height: 30%; animation-delay: -.9s; }
.wave i:nth-child(2) { height: 70%; animation-delay: -.7s; }
.wave i:nth-child(3) { height: 100%; animation-delay: -.5s; }
.wave i:nth-child(4) { height: 55%; animation-delay: -.3s; }
.wave i:nth-child(5) { height: 80%; animation-delay: -.1s; }
.wave i:nth-child(6) { height: 40%; animation-delay: -.6s; }
.wave i:nth-child(7) { height: 65%; animation-delay: -.2s; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 20px 22px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.7rem; line-height: 1.1; color: var(--accent); }
.stat span { display: block; margin-top: 4px; font-size: 0.92rem; color: var(--muted); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: 26px; overflow: hidden; }
/* a red line draws across the top of each step as it scrolls in */
.step::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent);
  transform-origin: left; transition: transform .9s var(--ease) calc(var(--d, 0ms) + .15s);
}
.step.reveal:not(.in)::after { transform: scaleX(0); }
.step-num { display: block; font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--accent); }
.step h3 { margin: 14px 0 6px; font-size: 1.24rem; font-weight: 700; }
.step p { margin: 0; color: var(--muted); }

code { background: var(--cell-2); padding: 1px 6px; border-radius: 6px; font-family: var(--mono); font-size: 0.82em; color: var(--text-2); }

/* feature grid on platform pages */
.features { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature { padding: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 1.16rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.feature h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }
.feature p { margin: 0; color: var(--muted); }
.guide { margin: 32px 0 0; max-width: 760px; }
.guide p { color: var(--text-2); margin: 0 0 16px; font-size: 1.04rem; line-height: 1.75; }

/* platform cards */
.other-tools { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .other-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .other-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.other-tool { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; font-weight: 500; }
.other-tool .ot-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--sunk); flex: none; transition: background-color .25s; }
.other-tool .ot-icon svg { width: 19px; height: 19px; fill: var(--text); transition: fill .25s; }
.other-tool .ot-name { flex: 1; min-width: 0; }
.other-tool .ot-arrow { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease), stroke .25s; }
.other-tool:hover .ot-icon { background: var(--accent); }
.other-tool:hover .ot-icon svg { fill: var(--ink); }
.other-tool:hover .ot-arrow { transform: translateX(4px); stroke: var(--accent); }

/* faq */
.faq-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) {
  .faq-layout { grid-template-columns: 340px minmax(0, 1fr); gap: 48px; }
  .faq-layout .section-head { position: sticky; top: 96px; align-self: start; }
}
.faq-layout .section-head p.sub a { color: var(--text); }
.faq { display: grid; gap: 10px; }
.faq details { padding: 0 22px; }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 1.04rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF2D3F' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); line-height: 1.7; }
.faq details[open] p { animation: rise .35s var(--ease); }

/* comparison */
.compare { overflow: hidden; }
.compare table { position: relative; width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare tr:last-child td { border-bottom: 0; }
.compare tbody tr { transition: background-color .2s; }
.compare tbody tr:hover { background: var(--cell-2); }
.compare thead th { font-family: var(--mono); font-size: 0.76rem; font-weight: 400; text-transform: uppercase; color: var(--muted); }
.compare thead th.us { color: var(--text); }
.compare td:first-child { font-weight: 500; }
.compare th.us, .compare td.us { background: var(--accent-tint); text-align: center; width: 22%; }
.compare th.them, .compare td.them { text-align: center; width: 26%; color: var(--muted); font-size: 0.9rem; }
.compare .yes, .compare .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.compare .yes { background: var(--accent); }
.compare .no { background: var(--cell-2); }
.compare .yes svg, .compare .no svg { width: 14px; height: 14px; fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.compare .yes svg { stroke: var(--ink); }
.compare .no svg { stroke: var(--muted); }
@media (max-width: 560px) {
  .compare th, .compare td { padding: 12px 10px; font-size: 0.86rem; }
  .compare th.them, .compare td.them { font-size: 0.78rem; }
}

/* device guides */
.devices { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .devices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.device { padding: 24px; }
.device-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.device-head svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.device h3 { margin: 0; font-size: 1.16rem; font-weight: 700; }
.device ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.device li { color: var(--muted); line-height: 1.55; }
.device li::marker { color: var(--accent); font-weight: 700; }

/* CTA band */
.cta {
  margin-top: 96px; padding: clamp(32px, 6vw, 56px); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  background: var(--accent); color: var(--ink);
}
.cta h2 { flex: 1 1 100%; }
.cta h2 .accent { color: var(--text); }
.cta p { margin: 0; font-size: 1.08rem; font-weight: 500; max-width: 460px; }
.cta .btn-primary { background: var(--ink); color: var(--text); }
.cta .btn-primary:hover { background: #23252E; }

/* ------------------------------------------------------------------ footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 52px; padding-bottom: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1.3fr 1fr 1fr; } }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-about { grid-column: auto; } }
.footer-about p { margin: 16px 0 0; color: var(--muted); max-width: 320px; }
.footer-col h3 { margin: 0 0 14px; font-family: var(--mono); font-size: 0.78rem; font-weight: 400; text-transform: uppercase; color: var(--text-2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.94rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent-soft); }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; }
.footer-bottom p { margin: 0; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ------------------------------------------------------------------ legal pages */
.prose { max-width: 760px; margin: 0 auto; padding: 64px 0 24px; }
.prose h1 { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1.08; text-transform: uppercase; margin: 0 0 10px; }
.prose .updated { color: var(--muted); font-size: 0.92rem; margin: 0 0 40px; }
.prose h2 { font-size: 1.32rem; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--text-2); line-height: 1.75; }
.prose a { color: var(--accent-soft); }
.prose ul { padding-left: 20px; }

/* ------------------------------------------------------------------ motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); } 70% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes scan { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(calc(100% - 3px)); } }
@keyframes wipe { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
/* the 8-second demo: link types in, bar fills, qualities appear, file saved */
@keyframes type { 0% { clip-path: inset(0 100% 0 0); } 26%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes bar { 0%, 30% { transform: scaleX(0); } 56%, 100% { transform: scaleX(1); } }
@keyframes chip { 0%, 56% { opacity: .18; transform: scale(.86); } 62%, 100% { opacity: 1; transform: none; } }
@keyframes saved { 0%, 74% { opacity: 0; transform: translateY(12px); } 80%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* scroll-in: added by app.js only to things that start below the fold */
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: rise .7s var(--ease) var(--d, 0ms) backwards; }

/* thin red bar showing how far down the page you are (no JS, skipped where unsupported) */
@keyframes progress { to { transform: scaleX(1); } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body::before {
      content: ""; position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 30; pointer-events: none;
      background: var(--accent); transform: scaleX(0); transform-origin: left;
      animation: progress linear both; animation-timeline: scroll(root);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker-track [aria-hidden="true"] { display: none; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 480px) {
  .btn-fetch { width: 100%; }
  .input-icon { display: none; } /* room for the whole placeholder; the chips still show the detected app */
  .section { margin-top: 72px; }
  .cta { margin-top: 72px; }
  .tile, .step, .feature, .device { padding: 22px; }
  .band { padding: 22px; }
  .demo-media { min-height: 150px; }
  .header-cta { padding: 0 10px; font-size: 0.72rem; }
}
