/* TikTokDownload.io — light default; dark via [data-theme="dark"]. */
:root {
 --bg: #ffffff;
 --bg-raise: #ffffff;
 --bg-soft: #f7f8fa;
 --ink: #000000;
 --muted: #333333;
 --line: #d0d0d0;
 --line-soft: #e6e8ec;
 --link: #FE2C55;
 --link-hover: #d91e45;
 --accent: #0b3d91;
 --accent-ink: #ffffff;
 --danger: #b00020;
 --shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
 --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
 --sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
 --max: 1080px;
 --header-bg: #ffffff;
 --header-ink: #111111;
 --header-muted: #555555;
 --header-border: #eeeeee;
 --pill-bg: #ffffff;
 --pill-border: #e5e5e5;
 --pill-ink: #111111;
 --card-bg: #ffffff;
 --radius: 2px;
 --foot-bg: #000000;
}
html[data-theme="dark"] {
 --bg: #0f0f10;
 --bg-raise: #1a1a1d;
 --bg-soft: #161618;
 --ink: #eaeaea;
 --muted: #b5b5b8;
 --line: #2a2a2e;
 --line-soft: #2a2a2e;
 --link: #FE2C55;
 --link-hover: #ff6b8a;
 --accent: #2152E8;
 --accent-ink: #ffffff;
 --danger: #ff6b6b;
 --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
 --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
 --header-bg: #0f0f10;
 --header-ink: #eaeaea;
 --header-muted: #b5b5b8;
 --header-border: #2a2a2e;
 --pill-bg: #1a1a1d;
 --pill-border: #2a2a2e;
 --pill-ink: #eaeaea;
 --card-bg: #1a1a1d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
 margin: 0;
 min-height: 100vh;
 color: var(--ink);
 background: var(--bg);
 font-family: var(--sans);
 font-size: 1.05rem;
 line-height: 1.6;
 -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: var(--link); }
a:visited { color: var(--link-hover); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; color: inherit; }
.skip {
 position: absolute;
 left: 0.75rem;
 top: -4rem;
 background: var(--accent);
 color: var(--accent-ink);
 padding: 0.4rem 0.7rem;
 z-index: 5;
 text-decoration: none;
}
.skip:focus { top: 0.75rem; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }

/* —— SnapTik-style light header —— */
.site-header {
 width: 100%;
 background: var(--header-bg);
 color: var(--header-ink);
 border-bottom: 1px solid var(--header-border);
 position: sticky;
 top: 0;
 z-index: 100;
}
.header-inner {
 width: min(1280px, calc(100% - 2rem));
 margin: 0 auto;
 min-height: 64px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 1rem;
}
.brand {
 direction: ltr;
 unicode-bidi: isolate;
 display: inline-flex;
 align-items: baseline;
 gap: 0;
 text-decoration: none;
 font-weight: 600;
 font-size: 1.02rem;
 letter-spacing: 0.04em;
 text-transform: uppercase;
 color: #111;
 line-height: 1;
}
.brand:visited, .brand:hover { color: #111; text-decoration: none; }
.brand-tiktok { color: #FE2C55; }
html[data-theme="dark"] .brand,
html[data-theme="dark"] .brand:visited,
html[data-theme="dark"] .brand:hover { color: #eaeaea; }
html[data-theme="dark"] .brand-tiktok { color: #FE2C55; }

.header-nav {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 8px;
 justify-content: flex-end;
}
.header-mobile-actions {
 display: none;
 align-items: center;
 gap: 8px;
}

.nav-pill {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 8px 14px;
 border-radius: 999px;
 border: 1px solid var(--pill-border);
 background: var(--pill-bg);
 color: var(--pill-ink) !important;
 font-size: 14px;
 font-weight: 600;
 line-height: 1.2;
 text-decoration: none !important;
 cursor: pointer;
 white-space: nowrap;
 transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-pill:visited { color: var(--pill-ink) !important; }
.nav-pill:hover,
.nav-pill:focus {
 background: var(--bg-soft);
 outline: none;
}
.nav-pill[aria-current="page"] {
 border-color: #FE2C55;
 color: #FE2C55 !important;
}
.nav-pill .nav-chevron {
 width: 10px;
 height: 6px;
 flex-shrink: 0;
}
.nav-pill svg.nav-ico {
 width: 16px;
 height: 16px;
 flex-shrink: 0;
}

.nav-icon-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 40px;
 height: 40px;
 padding: 0;
 border-radius: 999px;
 border: 1px solid var(--pill-border);
 background: var(--pill-bg);
 color: var(--pill-ink);
 cursor: pointer;
}
.nav-icon-btn:hover,
.nav-icon-btn:focus {
 background: var(--bg-soft);
 outline: none;
}
.nav-icon-btn svg { width: 18px; height: 18px; }

.nav-drop { position: relative; }
.nav-drop-menu {
 display: none;
 position: absolute;
 top: calc(100% + 6px);
 inset-inline-end: 0;
 min-width: 220px;
 padding: 8px 0;
 border-radius: 12px;
 background: #fff;
 box-shadow: 0 8px 28px rgba(0,0,0,0.18);
 z-index: 120;
}
html[data-theme="dark"] .nav-drop-menu {
 background: #1a1a1d;
 box-shadow: 0 8px 28px rgba(0,0,0,0.5);
 border: 1px solid #2a2a2e;
}
.nav-drop.is-open .nav-drop-menu { display: block; }
.nav-drop-menu a {
 display: block;
 padding: 10px 16px;
 color: #555 !important;
 font-size: 15px;
 font-weight: 500;
 text-decoration: none !important;
}
html[data-theme="dark"] .nav-drop-menu a { color: #c8c8c8 !important; }
.nav-drop-menu a:hover,
.nav-drop-menu a:focus {
 background: #f0f0f0;
 color: #111 !important;
}
html[data-theme="dark"] .nav-drop-menu a:hover,
html[data-theme="dark"] .nav-drop-menu a:focus {
 background: #242428;
 color: #fff !important;
}

/* Header language menu shares lang-menu styles but opens downward */
.site-header .lang-switch { position: relative; }
.site-header .lang-menu {
 bottom: auto;
 top: calc(100% + 6px);
 inset-inline-start: auto;
 inset-inline-end: 0;
}
.site-header .lang-btn {
 /* reuse pill look */
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 8px 14px;
 border-radius: 999px;
 border: 1px solid var(--pill-border);
 background: var(--pill-bg);
 color: var(--pill-ink);
 font-size: 14px;
 font-weight: 600;
 cursor: pointer;
}
.site-header .lang-chevron path { stroke: #FE2C55; }

/* Mobile panel */
.mobile-nav {
 display: none;
 border-top: 1px solid var(--header-border);
 background: var(--header-bg);
 padding: 12px 0 20px;
}
.mobile-nav-inner {
 width: min(1280px, calc(100% - 2rem));
 margin: 0 auto;
 display: flex;
 flex-direction: column;
 gap: 4px;
}
.mobile-nav a,
.mobile-acc-btn {
 display: flex;
 align-items: center;
 justify-content: space-between;
 width: 100%;
 padding: 12px 4px;
 border: 0;
 border-bottom: 1px solid var(--line-soft);
 background: transparent;
 color: var(--header-ink);
 font-size: 16px;
 font-weight: 600;
 text-decoration: none !important;
 text-align: start;
 cursor: pointer;
}
.mobile-nav .mobile-sub {
 padding: 0 0 8px 12px;
}
.mobile-nav .mobile-sub a {
 font-weight: 500;
 font-size: 15px;
 color: var(--muted) !important;
 border-bottom: none;
 padding: 8px 4px;
}
.burger {
 display: inline-flex;
 flex-direction: column;
 justify-content: center;
 gap: 5px;
 width: 40px;
 height: 40px;
 padding: 10px;
 border-radius: 999px;
 border: 1px solid var(--pill-border);
 background: var(--pill-bg);
 cursor: pointer;
}
.burger span {
 display: block;
 height: 2px;
 width: 100%;
 background: var(--pill-ink);
 border-radius: 1px;
}

@media (max-width: 899px) {
 .header-nav { display: none; }
 .header-mobile-actions { display: flex; }
 .mobile-nav:not([hidden]) { display: block; }
}
@media (min-width: 900px) {
 .mobile-nav { display: none !important; }
}

/* Legacy .top/.foot full-bleed — footer stays black */
.foot {
 width: 100%;
 max-width: none;
 margin: 0;
 background: var(--foot-bg);
 color: rgba(255, 255, 255, 0.8);
 padding-left: max(1rem, calc(50% - (var(--max) / 2)));
 padding-right: max(1rem, calc(50% - (var(--max) / 2)));
}

.hero {
  position: relative;
  padding: 2.1rem 0 2.35rem;
  /* full-bleed colorful clay gradient behind .wrap content */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1rem, calc(50vw - (var(--max) / 2)));
  padding-right: max(1rem, calc(50vw - (var(--max) / 2)));
  background: linear-gradient(135deg, #C403FD 0%, #2152E8 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}
.hero-stack > .panel { margin-top: 1.15rem; width: 100%; }
.hero-stack > .lede,
.hero-stack > .hero-title { margin-top: 1.1rem; }
.hero .page-title { color: #ffffff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); max-width: none; width: 100%; text-align: center; }
.hero .panel {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  box-shadow:
    0 10px 28px rgba(99, 52, 160, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(0, 0, 0, 0.04) inset;
  backdrop-filter: blur(8px);
}
.kicker {
 margin: 0 0 0.65rem;
 color: var(--link);
 font-size: 0.78rem;
 letter-spacing: 0.16em;
 text-transform: uppercase;
 font-weight: 700;
}
h1 {
 margin: 0;
 font-size: clamp(2.15rem, 7vw, 4.5rem);
 line-height: 0.96;
 letter-spacing: -0.045em;
 font-weight: 700;
 max-width: 14ch;
 color: var(--ink);
}
/* Homepage article title is a full sentence, not the short hero line used elsewhere. */
h1.page-title {
 max-width: 16em;
 font-size: clamp(1.8rem, 4.2vw, 2.75rem);
 line-height: 1.12;
 letter-spacing: -0.032em;
}
.hero-title {
 margin: 0.75rem 0 0;
 max-width: 28rem;
 font-size: 1.08rem;
 font-weight: 700;
 letter-spacing: -0.02em;
 line-height: 1.3;
 color: var(--ink);
}
.lede { color: var(--muted); max-width: 42rem; margin: 1rem 0 0; }

/* Global heading polish — clean, premium, dark-blue accents */
h2 {
 margin: 0 0 1rem;
 font-size: clamp(1.55rem, 3.6vw, 2.15rem);
 font-weight: 700;
 letter-spacing: -0.028em;
 line-height: 1.18;
 color: var(--ink);
 padding-left: 0.85rem;
 border-left: 3px solid var(--accent);
}
h3 {
 margin: 1.6rem 0 0.55rem;
 font-size: clamp(1.08rem, 2.2vw, 1.28rem);
 font-weight: 600;
 letter-spacing: -0.018em;
 line-height: 1.28;
 color: var(--ink);
 padding-bottom: 0.35rem;
 border-bottom: 1px solid var(--line-soft);
 box-shadow: inset 0 -2px 0 var(--accent);
}

/* Download / paste panel — light theme, clear border, strong primary */
.panel {
 background: #ffffff;
 border: 2px solid #000000;
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 padding: 1.25rem 1.15rem;
 width: 100%;
}
label {
 display: block;
 font-size: 0.85rem;
 margin-bottom: 0.45rem;
 color: var(--ink);
 font-weight: 600;
 letter-spacing: 0.01em;
}
input[type="text"], input[type="url"] {
 width: 100%;
 background: #ffffff;
 color: var(--ink);
 border: 1px solid var(--line);
 border-radius: var(--radius);
 padding: 0.95rem 0.9rem;
 outline: none;
 transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus {
 border-color: var(--accent);
 box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.18);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.85rem; }

/* Claymorphism full-width buttons — fetch form only */
#fetch-form .actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1rem;
}
#fetch-form .actions button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 2px solid transparent;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.12),
    0 10px 18px rgba(0, 0, 0, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
#fetch-form .actions button:hover {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.12),
    0 6px 12px rgba(0, 0, 0, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.06);
  filter: brightness(1.03);
}
#fetch-form .actions button:active {
  transform: translateY(5px);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.14),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
#fetch-form .actions button.primary {
  background: linear-gradient(180deg, #ff7ab8 0%, #ff4d9a 48%, #e83682 100%);
  color: #ffffff;
  border-color: #d42a72;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
#fetch-form .actions button.primary:hover {
  background: linear-gradient(180deg, #ff8ac2 0%, #ff5aa4 48%, #ef3f8c 100%);
  color: #ffffff;
  border-color: #d42a72;
}
#fetch-form .actions button#paste {
  background: linear-gradient(180deg, #9ef0d8 0%, #5eead4 45%, #2dd4bf 100%);
  color: #0f3d36;
  border-color: #14b8a6;
}
#fetch-form .actions button#clear {
  background: linear-gradient(180deg, #ddd6fe 0%, #c4b5fd 45%, #a78bfa 100%);
  color: #2e1065;
  border-color: #8b5cf6;
}
#fetch-form .actions button:disabled {
  opacity: 0.65;
  transform: none;
  cursor: wait;
}
button,.btn {
 border: 1px solid var(--line);
 background: #ffffff;
 color: var(--ink);
 padding: 0.75rem 1rem;
 cursor: pointer;
 text-decoration: none;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 border-radius: var(--radius);
 transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
button:hover,.btn:hover { border-color: #000000; }
button.primary, a.primary {
 background: var(--accent);
 color: var(--accent-ink);
 border-color: var(--accent);
 font-weight: 700;
}
button.primary:hover, a.primary:hover {
 background: var(--link-hover);
 border-color: var(--link-hover);
 color: #ffffff;
}
a.primary:visited { color: var(--accent-ink); }
button:disabled { opacity: 0.55; cursor: wait; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 0.85rem 0 0; }
.status { min-height: 1.2rem; color: var(--accent); font-size: 0.9rem; margin: 0.35rem 0 0; }
.result { margin: 1.15rem 0 2rem; }
.result:empty { margin: 0; }
.result-card,.story-list.result-card {
 display: grid;
 gap: 1.1rem;
 background: #ffffff;
 border: 1px solid var(--line);
 border-radius: var(--radius);
 box-shadow: var(--shadow-sm);
 padding: 1rem;
}
.cover {
 position: relative;
 background: var(--bg-soft);
 min-height: 180px;
 border-radius: var(--radius);
 overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; max-height: 420px; }
.cover-empty {
 min-height: 180px;
 display: grid;
 place-items: center;
 color: var(--muted);
}
.dur {
 position: absolute;
 left: 0.5rem;
 bottom: 0.5rem;
 background: #000000;
 color: #ffffff;
 padding: 0.15rem 0.45rem;
 font-size: 0.8rem;
 border-radius: var(--radius);
}
.who { margin: 0 0 0.4rem; font-weight: 700; color: var(--ink); }
.who span { color: var(--muted); font-weight: 500; }
.caption { margin: 0 0 0.9rem; color: var(--ink); }
.file-row { display: flex; flex-direction: column; gap: 0.5rem; }
.file-btn {
 text-align: left;
 width: 100%;
 display: flex;
 flex-direction: column;
 gap: 0.1rem;
 background: #ffffff;
 color: var(--ink);
}
.file-btn.is-primary {
 background: var(--accent);
 color: var(--accent-ink);
 border-color: var(--accent);
}
.file-btn-m { font-size: 0.78rem; opacity: 0.8; }
.fine { color: var(--muted); font-size: 0.85rem; margin: 0.85rem 0 0; }
.alert {
 border: 1px solid var(--danger);
 color: var(--ink);
 background: #fff8f8;
 padding: 0.9rem 1rem;
 margin: 0;
 border-radius: var(--radius);
}
.story-count { margin: 0 0 0.85rem; color: var(--muted); }
.story-list { display: grid; gap: 0.85rem; }
.skeleton {
 height: 180px;
 background: linear-gradient(90deg, #eeeeee, #f7f7f7, #eeeeee);
 background-size: 200% 100%;
 animation: shine 1.1s linear infinite;
 border-radius: var(--radius);
}
@keyframes shine { to { background-position: -200% 0; } }

.section { padding: 1.35rem 0 2.35rem; }
.section > h2 {
 font-size: clamp(1.6rem, 4vw, 2.3rem);
 letter-spacing: -0.03em;
 margin: 0 0 1.15rem;
}
.steps,.faq { display: grid; gap: 0.9rem; }
.step, details {
 border: 1px solid var(--line-soft);
 background: var(--bg-soft);
 padding: 1rem 1.05rem;
 border-radius: var(--radius);
}
.step {
 border-top: 3px solid var(--accent);
}
.step b {
 display: block;
 color: var(--link);
 font-size: 0.78rem;
 letter-spacing: 0.14em;
 margin-bottom: 0.35rem;
}
/* Step titles are h2 after heading remap; keep compact card styling */
.step h2,
.step h3,
summary {
 margin: 0.15rem 0 0.35rem;
 font-size: 1.05rem;
 font-weight: 700;
 letter-spacing: -0.015em;
 line-height: 1.3;
 color: var(--ink);
 padding: 0;
 border: none;
 box-shadow: none;
}
.step p { color: var(--muted); margin: 0.35rem 0 0; }
summary {
 cursor: pointer;
 list-style: none;
 display: flex;
 align-items: flex-start;
 gap: 0.5rem;
}
summary::-webkit-details-marker { display: none; }
summary::before {
 content: "";
 flex: 0 0 0.45rem;
 width: 0.45rem;
 height: 0.45rem;
 margin-top: 0.45rem;
 border-right: 2px solid var(--accent);
 border-bottom: 2px solid var(--accent);
 transform: rotate(-45deg);
 transition: transform 0.15s ease;
}
details[open] summary::before { transform: rotate(45deg); }
details p {
 color: var(--muted);
 margin: 0.55rem 0 0.15rem;
 padding-left: 0.95rem;
 border-left: 2px solid var(--line-soft);
}

.prose { max-width: none; width: 100%; }
.prose h1 { max-width: none; font-size: clamp(2rem, 6vw, 3.4rem); color: var(--ink); }
.prose p,.prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose > h2 {
 margin: 2.35rem 0 0.9rem;
 font-size: clamp(1.45rem, 3.2vw, 1.95rem);
 line-height: 1.18;
}
.prose > h2:first-child { margin-top: 0; }
.prose > h3 {
 margin: 1.65rem 0 0.55rem;
 font-size: clamp(1.05rem, 2.1vw, 1.22rem);
 font-weight: 600;
 letter-spacing: -0.016em;
}
.prose a {
 color: var(--link);
 text-underline-offset: 0.16em;
}
.prose a:visited { color: var(--link-hover); }
.prose a:hover { color: var(--link-hover); }
.prose ul,.prose ol { margin: 0.4rem 0 1.1rem; }
.prose li { margin: 0.4rem 0; }
.prose li p { margin: 0.35rem 0 0.55rem; }
.prose ol.guide li strong { display: block; color: var(--ink); }

.table-scroll {
 overflow-x: auto;
 margin: 1rem 0 1.35rem;
 border: 1px solid var(--line-soft);
 border-radius: var(--radius);
 background: #ffffff;
 box-shadow: var(--shadow-sm);
}
.prose table {
 width: 100%;
 min-width: 36rem;
 border-collapse: collapse;
}
.prose th,.prose td {
 text-align: left;
 vertical-align: top;
 padding: 0.85rem 1rem;
 border-top: 1px solid var(--line-soft);
}
.prose thead th {
 border-top: none;
 border-bottom: 2px solid var(--accent);
 color: var(--ink);
 font-size: 0.9rem;
 letter-spacing: 0.02em;
 background: var(--bg-soft);
}
.prose tbody tr:nth-child(even) { background: #fafbfc; }
.prose td { color: var(--muted); font-size: 0.95rem; }
ol.guide { padding-left: 1.25rem; }

.foot {
 border-top: none;
 padding-top: 56px;
 padding-bottom: 32px;
 color: rgba(255, 255, 255, 0.8);
 background: #000;
}
.foot-inner {
 width: 100%;
}
.foot-grid {
 display: grid;
 grid-template-columns: 1.3fr 1fr 1fr;
 gap: 48px;
 align-items: start;
}
.foot-col { min-width: 0; }
.foot-disclaimer p {
 margin: 0;
 max-width: none;
 font-size: 0.95rem;
 line-height: 1.65;
 color: rgba(255, 255, 255, 0.8);
}
.footer-title {
 margin: 0 0 1rem;
 font-size: 1.1rem;
 font-weight: 700;
 letter-spacing: 0.02em;
 text-transform: uppercase;
 color: #fff;
 line-height: 1.3;
}
.foot nav ul {
 list-style: none;
 margin: 0;
 padding: 0;
 display: flex;
 flex-direction: column;
 gap: 14px;
}
.foot nav a,
.foot nav a:visited {
 color: rgba(255, 255, 255, 0.8);
 text-decoration: none;
 font-size: 16px;
 line-height: 1.6;
 transition: color 0.15s ease, transform 0.15s ease;
 display: inline-block;
}
.foot nav a:hover,
.foot nav a:focus {
 color: #fff;
 text-decoration: none;
 transform: translateX(2px);
}
.foot-bottom {
 margin-top: 40px;
 padding-top: 20px;
 border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.foot-bottom p {
 margin: 0;
 font-size: 0.875rem;
 color: rgba(255, 255, 255, 0.65);
 line-height: 1.5;
}
@media (max-width: 900px) {
 .foot-grid {
  grid-template-columns: 1fr 1fr;
  gap: 36px 40px;
 }
 .foot-disclaimer {
  grid-column: 1 / -1;
 }
}
@media (max-width: 600px) {
 .foot {
  padding-top: 44px;
  padding-bottom: 28px;
 }
 .foot-grid {
  grid-template-columns: 1fr;
  gap: 32px;
 }
 .foot-disclaimer {
  grid-column: auto;
 }
 .foot-bottom {
  margin-top: 28px;
 }
}


@media (min-width: 800px) {
 /* No side-column form; stack stays full width */
 .result-card { grid-template-columns: 220px 1fr; }
 .cover img { max-height: none; height: 320px; }
 .steps { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
 .faq { grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
 .guides { grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
 .panel { padding: 1.4rem 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
 .skeleton { animation: none; }
 html { scroll-behavior: auto; }
 summary::before { transition: none; }
 button,.btn, input, .guide-link, .top nav a { transition: none; }
}


/* Hero v3: paste icon inside input, single Download button */
.hero h1.page-title { max-width: none; width: 100%; }
.input-wrap { position: relative; width: 100%; }
.input-wrap input[type="text"] { padding-right: 6.6rem; border-radius: 14px; }
#fetch-form .paste-icon {
  position: absolute; top: 50%; right: 0.45rem; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 0.35rem;
  width: auto; padding: 0.45rem 0.7rem; border-radius: 10px;
  background: #f1f4ff; color: #2152E8; border: 1px solid #d6defb;
  font-size: 0.88rem; font-weight: 600; box-shadow: none;
}
#fetch-form .paste-icon:hover { background: #e3e9ff; border-color: #2152E8; }
#fetch-form .actions button.primary {
  background: #2152E8; border-color: #1a42bd; color: #ffffff;
  box-shadow: 0 6px 0 #1636a0, 0 10px 18px rgba(33, 82, 232, 0.3), inset 0 2px 0 rgba(255,255,255,0.3);
}
#fetch-form .actions button.primary:hover { background: #2b5cf0; border-color: #1a42bd; color: #ffffff; }
@media (max-width: 420px) { .paste-icon span { display: none; } .input-wrap input[type="text"] { padding-right: 3.4rem; } }

html, body { overflow-x: clip; }

/* User heading styles */
h2.h2-highlight {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(20px, 4.5vw, 30px);
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  margin: 40px 0 16px;
  overflow-wrap: break-word;
  padding-left: 0;
  border-left: 0;
  letter-spacing: normal;
}
.h2-highlight .pink { color: #fe2c55; }
.h2-highlight .blue { color: #2152e8; }
@media (max-width: 600px) { h2.h2-highlight { margin: 28px 0 12px; } }
h3.h3-badge {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  background: #fe2c55;
  padding: 3px 14px;
  border-radius: 8px;
  margin: 40px 0 16px;
  border-bottom: 0;
  box-shadow: none;
  letter-spacing: normal;
}

#fetch-form .actions button.primary { padding-top: 0.45rem !important; padding-bottom: 0.45rem !important; min-height: 0; line-height: 1.3; }

/* Links: pink, no underline */
a, a:visited { color: #FE2C55; text-decoration: none; }
a:hover, a:focus { color: #d91e45; text-decoration: none; }
/* legacy top-nav overrides removed — SnapTik header */
a.primary, a.primary:visited, a.primary:hover, a.file-btn.is-primary { color: #ffffff; }
a.file-btn:not(.is-primary), a.file-btn:not(.is-primary):visited { color: var(--ink); }
.prose a, .prose a:visited, .guide-link, .guide-link:visited { color: #FE2C55; text-decoration: none; }
.prose a:hover, .guide-link:hover { color: #ff5c7c; text-decoration: none; }
/* Footer links stay white (override global pink) */
.foot a, .foot a:visited { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.foot a:hover, .foot a:focus { color: #fff; text-decoration: none; }


/* Non-tool hero readability on gradient */
.hero .kicker {
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}
.hero .lede,
.hero .hero-title {
  color: #ffffff;
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-stack > p:not(.hint):not(.status) {
  color: rgba(255, 255, 255, 0.95);
}
.hero .hero-stack > p a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero .hero-stack > p a:hover {
  color: #ffe3ea;
}

.wrap.prose { width: min(var(--max), calc(100% - 2rem)); margin-left: auto; margin-right: auto; }

/* ===== Download guide (user design) ===== */
.download-guide,
.download-guide *,
.download-guide *::before,
.download-guide *::after { box-sizing: border-box; }
.download-guide {
  width: 100%; max-width: 1120px; min-width: 0; margin: 2.5rem auto; padding: 40px;
  border: 2px solid transparent; border-radius: 26px;
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg, #e85583, #6978ed 52%, #58b8bc) border-box;
  box-shadow: 0 14px 45px rgba(88, 103, 197, 0.1);
  color: #172036; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px; line-height: 1.7; text-align: left; overflow-wrap: break-word; word-wrap: break-word;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
.download-guide .guide-header { margin: 0 0 30px; padding: 0 0 26px; border-bottom: 1px solid #dce2ee; }
.download-guide .guide-title {
  margin: 0 0 18px; padding: 0; border: 0; color: #172036; font-size: 42px; font-weight: 800;
  line-height: 1.2; letter-spacing: -0.04em; font-family: inherit;
}
.download-guide .brand-word { color: #d52f59; }
.download-guide .online-word { color: #304bd6; }
.download-guide .guide-subtitle { margin: 0; padding: 0; color: #535e72; font-size: 16px; font-weight: 400; line-height: 1.7; }
.download-guide .guide-steps { display: block; margin: 0; padding: 0; list-style: none; }
.download-guide .guide-step { display: flex; align-items: flex-start; min-width: 0; margin: 0 0 26px; padding: 0; list-style: none; }
.download-guide .guide-step::before, .download-guide .guide-step::marker { content: none; display: none; }
.download-guide .guide-step:last-child { margin-bottom: 0; }
.download-guide .step-number {
  display: flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px;
  margin: 0 20px 0 0; padding: 0; border: 1px solid #dce2ee; border-radius: 14px; background: #f5f7fc;
  color: #304bd6; font-size: 15px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.download-guide .step-body { flex: 1 1 0%; min-width: 0; }
.download-guide .step-title {
  display: block; margin: 0 0 14px; padding: 7px 0 0; border: 0; box-shadow: none; background: none;
  color: #172036; font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; font-family: inherit;
}
.download-guide .step-copy { min-width: 0; padding-left: 18px; border-left: 2px solid #dce2ee; color: #535e72; }
.download-guide .step-copy p { margin: 0 0 16px; padding: 0; color: inherit; font-size: inherit; font-weight: 400; line-height: 1.7; }
.download-guide .step-copy p:last-child { margin-bottom: 0; }
.download-guide a, .download-guide a:visited {
  color: #304bd6; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere;
}
.download-guide a:hover { color: #2439ab; }
.download-guide a:focus { outline: 2px solid #304bd6; outline-offset: 4px; border-radius: 2px; }
@media screen and (max-width: 768px) {
  .download-guide { padding: 30px; border-radius: 22px; }
  .download-guide .guide-title { font-size: 34px; }
  .download-guide .step-title { font-size: 18px; }
  .download-guide .step-number { margin-right: 16px; }
}
@media screen and (max-width: 480px) {
  .download-guide { padding: 22px 18px; border-radius: 20px; font-size: 15px; }
  .download-guide .guide-header { margin-bottom: 24px; padding-bottom: 22px; }
  .download-guide .guide-title { margin-bottom: 14px; font-size: 28px; line-height: 1.2; letter-spacing: -0.03em; }
  .download-guide .guide-subtitle { font-size: 15px; }
  .download-guide .guide-step { margin-bottom: 24px; }
  .download-guide .step-number { flex-basis: 32px; width: 32px; height: 32px; margin-right: 12px; border-radius: 10px; font-size: 12px; }
  .download-guide .step-title { margin-bottom: 12px; padding-top: 3px; font-size: 17px; }
  .download-guide .step-copy { padding-left: 12px; }
  .download-guide .step-copy p { margin-bottom: 14px; }
  .download-guide .step-copy p:last-child { margin-bottom: 0; }
}
@media screen and (max-width: 359px) {
  .download-guide { padding: 20px 14px; }
  .download-guide .guide-title { font-size: 25px; }
  .download-guide .step-number { flex-basis: 28px; width: 28px; height: 28px; margin-right: 10px; }
  .download-guide .step-title { font-size: 16px; }
}

/* ===== Feature card grid (user design) ===== */
.feat-grid.grid {
  --red: #fe2c55;
  --blue: #2152E8;
  --red-tint: rgba(254, 44, 85, 0.12);
  --blue-tint: rgba(33, 82, 232, 0.12);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 1.25rem 0 2rem;
}
@supports (background: color-mix(in srgb, red 12%, transparent)) {
  .feat-grid.grid {
    --red-tint: color-mix(in srgb, #fe2c55 12%, transparent);
    --blue-tint: color-mix(in srgb, #2152E8 12%, transparent);
  }
}
.feat-grid .card { border-radius: 12px; padding: 14px; min-height: 140px; position: relative; }
.feat-grid .card.wide { grid-column: 1 / -1; }
.feat-grid .card h3.card-title {
  display: block; margin: 0 0 8px; padding: 0; border: 0; box-shadow: none; background: none;
  font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: normal; color: #0f172a;
}
.feat-grid .card p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: #333; }
.feat-grid .card p:last-child { margin-bottom: 0; }

/* A: dashed blue tint */
.feat-grid .a { border: 1.5px dashed var(--blue); background: var(--blue-tint); }
/* B: red corner circle */
.feat-grid .b { background: #fff; border: 1px solid #eee; overflow: hidden; }
.feat-grid .b::before {
  content: ""; position: absolute; top: -24px; right: -24px;
  width: 72px; height: 72px; border-radius: 50%; background: var(--red);
}
.feat-grid .b h3.card-title { padding-right: 48px; }
/* C: big stat */
.feat-grid .c { background: #fff; border: 1px solid #eee; }
.feat-grid .c .stat { font-size: 28px; font-weight: 500; color: var(--red); line-height: 1.1; margin-bottom: 6px; }
/* D: solid red with pill */
.feat-grid .d { background: var(--red); color: #fff; }
.feat-grid .d h3.card-title, .feat-grid .d p { color: #fff; }
.feat-grid .d .pill { display: inline-block; background: #fff; color: var(--red); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
/* E: blue bottom border + icon tile */
.feat-grid .e { background: #fff; border: 1px solid #eee; border-bottom: 4px solid var(--blue); }
.feat-grid .e .ic { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--blue); color: #fff; margin-bottom: 8px; }
/* F: rounded corners + link */
.feat-grid .f { border-radius: 20px 4px 20px 4px; }
.feat-grid .link, .feat-grid .link:visited { color: var(--red); font-weight: 500; font-size: 12px; text-decoration: none; }
@media (max-width: 640px) {
  .feat-grid.grid { grid-template-columns: 1fr; }
}

/* ===== FAQ pills (user design), one per row ===== */
.faq {
  --red: #fe2c55;
  --text: #111;
  --muted: #555;
  display: block;
  max-width: none;
  font-size: 14px;
}
@media (min-width: 800px) { .faq { grid-template-columns: none; display: block; } }
.faq details {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.4;
  color: var(--text);
  padding: 10px 18px;
  border: 1.5px solid var(--red);
  border-radius: 99px;
  background: #fff;
  box-shadow: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: none; display: none; }
.faq summary span { flex: 1; }
.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--red);
}
.faq details[open] summary::after { content: "\2212"; color: #fff; }
.faq details[open] summary { background: var(--red); color: #fff; }
.faq .answer,
.faq details > p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  padding: 10px 18px 4px;
  margin: 0;
  border: 0;
}

/* Text-only wordmark */
.brand .mark { display: none; }
.faq, .faq summary { font-size: 16px; }
.faq .answer, .faq details > p { font-size: 15px; }

/* ===== Red-header tables (user design) ===== */
.table-scroll:has(.table-red) { border: 0; box-shadow: none; background: transparent; border-radius: 8px 8px 0 0; }
.table-red, .prose .table-red {
  --red: #fe2c55;
  --text: #111;
  --line: #e5e5e5;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table-red th, .prose .table-red th, .prose .table-red thead th {
  background: var(--red);
  color: #fff;
  text-align: left;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: normal;
  padding: 10px 14px;
  border: 0;
}
.table-red th:first-child, .prose .table-red th:first-child { border-radius: 8px 0 0 0; }
.table-red th:last-child, .prose .table-red th:last-child { border-radius: 0 8px 0 0; }
.table-red td, .prose .table-red td {
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.prose .table-red tbody tr:nth-child(even) { background: transparent; }

/* ===== Guides cards (user design) ===== */
.section.guides {
  --red: #fe2c55;
  --blue: #2152E8;
  --ink: #111;
  --bg: #fff;
  --muted: #555;
  display: block;
}
.guides .guides-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--blue);
  margin: 0 0 24px;
}
.guides .guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.guides .guide-card {
  display: block;
  box-sizing: border-box;
  padding: 20px 22px;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-right: 6px solid var(--red);
  border-bottom: 6px solid var(--red);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.guides .guide-card:hover {
  border-right-color: var(--blue);
  border-bottom-color: var(--blue);
  transform: translate(-2px, -2px);
  text-decoration: none;
}
.guides .guide-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
}
.guides .guide-desc {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 560px) {
  .guides .guides-grid { grid-template-columns: 1fr; }
  .guides .guides-title { font-size: 32px; }
}
.section.guides > h2.guides-title { border-left: 0; padding-left: 0; }
.section.guides > h2.guides-title::before, .section.guides > h2.guides-title::after { content: none; display: none; }

/* APK / extension download links: same clay button as homepage Download */
.prose a.btn.primary, a.btn.primary {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  line-height: 1.3;
  border-radius: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  background: #2152E8;
  color: #ffffff;
  border: 2px solid #1a42bd;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 6px 0 #1636a0, 0 10px 18px rgba(33, 82, 232, 0.3), inset 0 2px 0 rgba(255,255,255,0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.prose a.btn.primary:hover, a.btn.primary:hover {
  background: #2b5cf0; border-color: #1a42bd; color: #ffffff; text-decoration: none;
  transform: translateY(2px);
  box-shadow: 0 4px 0 #1636a0, 0 6px 12px rgba(33, 82, 232, 0.3), inset 0 2px 0 rgba(255,255,255,0.3);
}
.prose a.btn.primary:active, a.btn.primary:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 #1636a0, 0 2px 6px rgba(33, 82, 232, 0.25), inset 0 2px 4px rgba(0,0,0,0.1);
}
.prose p:has(> a.btn.primary) { margin: 1rem 0 1.4rem; }

/* Feature cards text +2px */
.feat-grid .card h3.card-title { font-size: 20px; }
.feat-grid .card p { font-size: 17px; }
.feat-grid .c .stat { font-size: 30px; }
.feat-grid .d .pill { font-size: 13px; }
.feat-grid .link, .feat-grid .link:visited { font-size: 14px; }

/* Homepage: Android app + browser extension */
.get-apps { padding-top: 2rem; padding-bottom: 0.5rem; }
.get-apps .apps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.get-apps .app-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 22px 22px 26px; box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}
.get-apps .app-card h2.h2-highlight { font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.25; margin: 0 0 10px; }
.get-apps .app-card p { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: #444; flex: 1; }
.get-apps .app-card a.btn.primary { margin-top: auto; }
@media (max-width: 720px) { .get-apps .apps-grid { grid-template-columns: 1fr; } }

/* —— Language switcher (footer) —— */
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.lang-switch {
  position: relative;
  z-index: 40;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lang-btn:hover,
.lang-btn:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}
.lang-btn:focus-visible {
  outline: 2px solid #C403FD;
  outline-offset: 2px;
}
.lang-chevron {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.lang-switch.is-open .lang-chevron {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: 220px;
  max-width: min(280px, 90vw);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 0;
  margin: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  -webkit-overflow-scrolling: touch;
}
.lang-option {
  display: block;
  padding: 10px 16px;
  color: #555 !important;
  font-size: 17px;
  line-height: 1.35;
  text-decoration: none !important;
  white-space: nowrap;
  transform: none !important;
}
.lang-option:hover,
.lang-option:focus {
  background: #f0f0f0;
  color: #222 !important;
  text-decoration: none !important;
  outline: none;
}
.lang-option[aria-current="true"] {
  color: #111 !important;
  font-weight: 600;
  background: #f7f0ff;
}

/* RTL: flip paddings / chevron / menu placement where needed */
[dir="rtl"] .lang-chevron {
  transform: scaleX(-1);
}
[dir="rtl"] .lang-switch.is-open .lang-chevron {
  transform: scaleX(-1) rotate(180deg);
}
[dir="rtl"] .foot nav a:hover,
[dir="rtl"] .foot nav a:focus {
  transform: translateX(-2px);
}
[dir="rtl"] .guide-steps,
[dir="rtl"] ol.guide {
  padding-inline-start: 1.25rem;
  padding-inline-end: 0;
}



/* —— Light mode: force white mobile header/panel (never inherit dark) —— */
html[data-theme="light"] .site-header,
html:not([data-theme="dark"]) .site-header {
  background: #ffffff;
  color: #111111;
  border-bottom-color: #eeeeee;
}
html[data-theme="light"] .mobile-nav,
html:not([data-theme="dark"]) .mobile-nav {
  background: #ffffff;
  border-top-color: #eeeeee;
  color: #111111;
}
html[data-theme="light"] .mobile-nav a,
html[data-theme="light"] .mobile-acc-btn,
html:not([data-theme="dark"]) .mobile-nav a,
html:not([data-theme="dark"]) .mobile-acc-btn {
  color: #111111;
  border-bottom-color: #e6e8ec;
}
html[data-theme="light"] .mobile-nav .mobile-sub a,
html:not([data-theme="dark"]) .mobile-nav .mobile-sub a {
  color: #555555 !important;
}
html[data-theme="light"] .burger,
html:not([data-theme="dark"]) .burger {
  background: #ffffff;
  border-color: #e5e5e5;
}
html[data-theme="light"] .burger span,
html:not([data-theme="dark"]) .burger span {
  background: #111111;
}
html[data-theme="light"] .nav-icon-btn,
html:not([data-theme="dark"]) .nav-icon-btn {
  background: #ffffff;
  border-color: #e5e5e5;
  color: #111111;
}
html[data-theme="light"] .nav-pill,
html:not([data-theme="dark"]) .nav-pill {
  background: #ffffff;
  border-color: #e5e5e5;
  color: #111111 !important;
}

/* —— Dark mode: WCAG-minded contrast overrides —— */
html[data-theme="dark"] {
  color-scheme: dark;
}

/* Headings that were hardcoded #0f172a / #172036 */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h2.h2-highlight,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .feat-grid .card h3.card-title,
html[data-theme="dark"] .guides-title,
html[data-theme="dark"] .blog-card-title,
html[data-theme="dark"] .step-title,
html[data-theme="dark"] .download-guide .guide-title,
html[data-theme="dark"] .download-guide .step-title {
  color: #f2f2f4;
}
html[data-theme="dark"] .h2-highlight .pink { color: #ff4d6d; }
html[data-theme="dark"] .h2-highlight .blue { color: #6b8cff; }
html[data-theme="dark"] .download-guide .brand-word { color: #ff4d6d; }
html[data-theme="dark"] .download-guide .online-word { color: #6b8cff; }

/* App cards + feature cards */
html[data-theme="dark"] .get-apps .app-card {
  background: #1a1a1d;
  border-color: #2a2a2e;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
html[data-theme="dark"] .get-apps .app-card h2.h2-highlight {
  color: #f2f2f4;
}
html[data-theme="dark"] .get-apps .app-card p {
  color: #c8c8cc;
}
html[data-theme="dark"] .feat-grid .card {
  background: #1a1a1d;
  border-color: #2a2a2e;
  color: #eaeaea;
}
html[data-theme="dark"] .feat-grid .card p {
  color: #c8c8cc;
}
html[data-theme="dark"] .feat-grid .card h3.card-title {
  color: #f2f2f4;
}
/* card.d was white-on-colored in light; keep readable */
html[data-theme="dark"] .feat-grid .d h3.card-title,
html[data-theme="dark"] .feat-grid .d p {
  color: #f2f2f4;
}
html[data-theme="dark"] .feat-grid .link,
html[data-theme="dark"] .feat-grid .link:visited {
  color: #8eb0ff;
}

/* Prose / body */
html[data-theme="dark"] .prose,
html[data-theme="dark"] .prose p,
html[data-theme="dark"] .prose li,
html[data-theme="dark"] .section,
html[data-theme="dark"] .section p {
  color: #e0e0e4;
}
html[data-theme="dark"] .prose a,
html[data-theme="dark"] .guide-link {
  color: #ff6b8a;
}
html[data-theme="dark"] .prose a:hover,
html[data-theme="dark"] .guide-link:hover {
  color: #ff8aa3;
}
html[data-theme="dark"] .prose tbody tr:nth-child(even) {
  background: #161618;
}
html[data-theme="dark"] blockquote {
  color: #c8c8cc;
  border-color: #2a2a2e;
  background: #161618;
}
html[data-theme="dark"] code,
html[data-theme="dark"] pre {
  background: #121214;
  color: #eaeaea;
  border-color: #2a2a2e;
}

/* Download guide */
html[data-theme="dark"] .download-guide {
  background: #1a1a1d;
  border-color: #2a2a2e;
  color: #eaeaea;
}
html[data-theme="dark"] .download-guide .guide-subtitle,
html[data-theme="dark"] .download-guide .step-copy,
html[data-theme="dark"] .download-guide .step-copy p {
  color: #b8b8be;
}
html[data-theme="dark"] .download-guide .step-number {
  background: #121214;
  border-color: #2a2a2e;
  color: #8eb0ff;
}
html[data-theme="dark"] .download-guide .step-copy {
  border-left-color: #2a2a2e;
}
html[data-theme="dark"] .download-guide a {
  color: #8eb0ff;
}
html[data-theme="dark"] .download-guide a:hover {
  color: #a8c0ff;
}
html[data-theme="dark"] .download-guide .guide-header {
  border-bottom-color: #2a2a2e;
}

/* Panel / fetch form */
html[data-theme="dark"] .panel,
html[data-theme="dark"] #fetch-form.panel {
  background: #1a1a1d;
  border-color: #2a2a2e;
  color: #eaeaea;
}
html[data-theme="dark"] #fetch-form label,
html[data-theme="dark"] .panel label {
  color: #e0e0e4;
}
html[data-theme="dark"] #fetch-form .hint,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .status,
html[data-theme="dark"] .kicker {
  color: #b0b0b6;
}
html[data-theme="dark"] .input-wrap,
html[data-theme="dark"] input#clip,
html[data-theme="dark"] #fetch-form input[type="text"] {
  background: #121214 !important;
  border-color: #2a2a2e !important;
  color: #eaeaea !important;
}
html[data-theme="dark"] #fetch-form input::placeholder {
  color: #8a8a90;
  opacity: 1;
}
html[data-theme="dark"] #fetch-form .paste-icon {
  background: #242428;
  border-color: #3a3a40;
  color: #eaeaea;
}
html[data-theme="dark"] #fetch-form .paste-icon:hover {
  background: #2e2e34;
  border-color: #2152E8;
}

/* Results */
html[data-theme="dark"] .result-card,
html[data-theme="dark"] .result-copy,
html[data-theme="dark"] .who,
html[data-theme="dark"] .caption,
html[data-theme="dark"] .fine,
html[data-theme="dark"] .story-count,
html[data-theme="dark"] .cover-empty,
html[data-theme="dark"] .alert {
  color: #e0e0e4;
}
html[data-theme="dark"] .file-btn {
  background: #242428;
  border-color: #3a3a40;
  color: #eaeaea;
}
html[data-theme="dark"] .file-btn .file-btn-m {
  color: #b0b0b6;
}
html[data-theme="dark"] .file-btn.is-primary {
  background: #2152E8;
  border-color: #1a42bd;
  color: #fff;
}
html[data-theme="dark"] .file-btn.is-primary .file-btn-m {
  color: rgba(255,255,255,0.85);
}

/* Tables */
html[data-theme="dark"] .table-red,
html[data-theme="dark"] .table-scroll {
  background: #1a1a1d;
}
html[data-theme="dark"] .table-red th {
  color: #fff;
}
html[data-theme="dark"] .table-red td {
  color: #e0e0e4;
  border-color: #2a2a2e;
  background: #1a1a1d;
}

/* FAQ */
html[data-theme="dark"] .faq details,
html[data-theme="dark"] .faq summary {
  background: #1a1a1d;
  color: #eaeaea;
  border-color: #2a2a2e;
}
html[data-theme="dark"] .faq .answer {
  color: #c8c8cc;
}

/* Guides / blog */
html[data-theme="dark"] .guide-card,
html[data-theme="dark"] .blog-card {
  background: #1a1a1d;
  border-color: #2a2a2e;
  color: #eaeaea;
}
html[data-theme="dark"] .guide-title,
html[data-theme="dark"] .blog-card-title {
  color: #f2f2f4;
}
html[data-theme="dark"] .guide-desc,
html[data-theme="dark"] .blog-card-desc {
  color: #b0b0b6;
}

/* Dark header + mobile panel */
html[data-theme="dark"] .site-header {
  background: #0f0f10;
  border-bottom-color: #2a2a2e;
  color: #eaeaea;
}
html[data-theme="dark"] .mobile-nav {
  background: #0f0f10;
  border-top-color: #2a2a2e;
}
html[data-theme="dark"] .mobile-nav a,
html[data-theme="dark"] .mobile-acc-btn {
  color: #eaeaea;
  border-bottom-color: #2a2a2e;
}
html[data-theme="dark"] .mobile-nav .mobile-sub a {
  color: #b0b0b6 !important;
}
html[data-theme="dark"] .burger {
  background: #1a1a1d;
  border-color: #2a2a2e;
}
html[data-theme="dark"] .burger span {
  background: #eaeaea;
}
html[data-theme="dark"] .nav-pill,
html[data-theme="dark"] .nav-icon-btn,
html[data-theme="dark"] .site-header .lang-btn {
  background: #1a1a1d;
  border-color: #2a2a2e;
  color: #eaeaea !important;
}

/* Skip link / misc */
html[data-theme="dark"] .muted,
html[data-theme="dark"] .fine {
  color: #b0b0b6;
}
html[data-theme="dark"] .pill {
  color: #fff;
}



/* Theme toggle: one icon only — moon in light (go dark), sun in dark (go light).
   Do not use the HTML hidden attribute on these SVGs: SVGElement does not clear it via .hidden = false. */
.theme-toggle {
  position: relative;
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none !important;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
html[data-theme="light"] .theme-toggle .icon-moon,
html:not([data-theme="dark"]) .theme-toggle .icon-moon {
  display: block !important;
}
html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block !important;
}

/* Desktop: main menu items are plain text; Blog / theme / Languages stay pills */
.header-nav > a.nav-pill.nav-plain,
.header-nav > .nav-drop > button.nav-pill.nav-plain {
  border: none !important;
  background: transparent !important;
  border-radius: 0;
  padding: 8px 10px;
  box-shadow: none;
  color: var(--pill-ink) !important;
  font-weight: 600;
}
.header-nav > a.nav-pill.nav-plain:hover,
.header-nav > a.nav-pill.nav-plain:focus,
.header-nav > .nav-drop > button.nav-pill.nav-plain:hover,
.header-nav > .nav-drop > button.nav-pill.nav-plain:focus {
  background: transparent !important;
  color: #FE2C55 !important;
}
.header-nav > a.nav-pill.nav-plain[aria-current="page"] {
  border: none !important;
  background: transparent !important;
  color: #FE2C55 !important;
  box-shadow: none;
}
html[data-theme="dark"] .header-nav > a.nav-pill.nav-plain,
html[data-theme="dark"] .header-nav > .nav-drop > button.nav-pill.nav-plain {
  background: transparent !important;
  border: none !important;
  color: #eaeaea !important;
}
html[data-theme="dark"] .header-nav > a.nav-pill.nav-plain:hover,
html[data-theme="dark"] .header-nav > .nav-drop > button.nav-pill.nav-plain:hover,
html[data-theme="dark"] .header-nav > a.nav-pill.nav-plain[aria-current="page"] {
  color: #FE2C55 !important;
  background: transparent !important;
}
