/* TrulyRedacted — landing + legal page styles (tokens and base components come from styles.css). */

/* ---------- text-contrast tokens (WCAG AA for small text), scoped to landing + legal pages ----------
   Same values as the app's .app-body scope in app.css; styles.css stays untouched. Icons, borders and fills keep
   the brighter --ok / --warn / --danger / --accent (non-text contrast only needs 3:1). */
body.landing { --ink-3: #626984; --ok-ink: #096b4e; --warn-ink: #8a5200; --danger-ink: #b01b36; --accent-text: #2f4be6; --violet-ink: #6d28d9; }
[data-theme="dark"] body.landing { --ink-3: #9096ad; --ok-ink: #34d99a; --warn-ink: #ffbb3d; --danger-ink: #ff7387; --accent-text: #8ea2ff; --violet-ink: #b794ff; }
.landing .badge-id { color: var(--danger-ink); } .landing .badge-finance { color: var(--warn-ink); }
.landing .badge-contact { color: var(--accent-text); } .landing .badge-person { color: var(--violet-ink); }

/* ---------- layout helpers ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body.landing { overflow-x: hidden; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--ink-inv); padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.section { padding: clamp(56px, 8vw, 104px) 0 0; }
.section h2, .cta-final h2 { font-size: clamp(27px, 3.8vw, 42px); font-weight: 800; letter-spacing: -0.03em; max-width: 26ch; }
.section .sub { color: var(--ink-2); font-size: clamp(15.5px, 1.4vw, 17.5px); max-width: 64ch; margin: 12px 0 0; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 10px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 0 0 22px; backdrop-filter: blur(8px); }

/* ---------- header tweaks ---------- */
.top .nav a { white-space: nowrap; }
.top .top-cta { padding: 8px 14px; font-size: 13.5px; }
.top .lang a[aria-current] { pointer-events: none; }
.top .brand, .top .brand .logo { flex: none; }   /* never squeeze the logo or the name (TrulyRedacted is 13 chars) */
.top .brand-name { white-space: nowrap; }
@media (max-width: 1100px) { .top .nav { display: none; } }
@media (max-width: 560px) { .top { gap: 10px; } .top .brand-name { display: none; } .top .top-cta { padding: 7px 11px; font-size: 13px; } .top .lang a { padding: 4px 7px; } }

/* ---------- ambient blobs ---------- */
.hero-wrap, .cta-final { position: relative; overflow: hidden; }
.bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.42; will-change: transform; }
.bg .b1 { width: 54vw; height: 54vw; left: -16vw; top: -24vw; background: radial-gradient(circle, var(--accent) 0%, rgba(59, 91, 255, 0) 70%); }
.bg .b2 { width: 46vw; height: 46vw; right: -14vw; top: -4vw; background: radial-gradient(circle, var(--violet) 0%, rgba(124, 58, 237, 0) 70%); opacity: 0.32; }
.bg .b3 { width: 36vw; height: 36vw; left: 38vw; bottom: -22vw; background: radial-gradient(circle, var(--accent-2) 0%, rgba(0, 184, 148, 0) 70%); opacity: 0.22; }
.bg-bottom .b1 { top: auto; bottom: -30vw; left: -10vw; }
.bg-bottom .b2 { top: -10vw; right: -20vw; }
/* phones: the blobs are radial gradients already soft on their own — drop the 80px blur filter and the endless drift
   animation (both are expensive GPU work while scrolling); same for the glass cards */
@media (hover: none), (max-width: 760px) {
  .bg .blob { filter: none; will-change: auto; animation: none !important; }
}
[data-theme="dark"] .bg .blob { opacity: 0.34; }
[data-theme="dark"] .bg .b2 { opacity: 0.26; }
@media (prefers-reduced-motion: no-preference) {
  .bg .b1 { animation: drift 28s ease-in-out infinite alternate; }
  .bg .b2 { animation: drift 34s ease-in-out infinite alternate-reverse; }
  @keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(5vw, 4vw, 0) scale(1.08); } }
}

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(40px, 7vw, 92px) 0 clamp(36px, 5vw, 56px); }
.hero h1 { font-size: clamp(33px, 4.6vw, 58px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 18px; max-width: 16ch; }
.hero .lead { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-2); max-width: 54ch; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { margin: 18px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; }
.hero-note { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); max-width: 52ch; }
.btn svg { width: 18px; height: 18px; }

/* ---------- animated demo (CSS timeline, 8 s loop) ---------- */
.demo { position: relative; min-width: 0; }
.demo-frame { border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: var(--shadow), 0 0 0 1px var(--accent-soft); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--bg-3); font-size: 12px; color: var(--ink-3); }
.demo-dots { display: inline-flex; gap: 5px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; display: inline-block; } .demo-dots i:nth-child(2) { background: #febc2e; } .demo-dots i:nth-child(3) { background: #28c840; }
.demo-file { color: var(--ink-2); }
.demo-status { margin-left: auto; position: relative; min-width: 12ch; text-align: right; }
.demo-status .st { position: absolute; right: 0; top: 0; white-space: nowrap; opacity: 0; }
.demo-status .st-scan { color: var(--accent-text); animation: stScan 8s linear infinite; }
.demo-status .st-review { color: var(--warn-ink); animation: stReview 8s linear infinite; }
.demo-status .st-done { color: var(--ok-ink); animation: stDone 8s linear infinite; }
.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) 176px; }
.demo-set { display: contents; }
.demo-page { position: relative; margin: 14px; background: #fff; color: #1b1e2e; border-radius: 6px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 8px 24px rgba(20, 25, 60, 0.12); padding: 16px 16px 12px; font-size: 11.5px; line-height: 1.55; overflow: hidden; font-family: var(--font); min-height: 230px; display: flex; flex-direction: column; }
[data-theme="dark"] .demo-page { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.dp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 11px; }
.dp-head b { font-family: var(--font-display); letter-spacing: 0.06em; font-size: 12px; }
.dp-head span { color: #5f6680; font-size: 10px; white-space: nowrap; }
.dp-line { margin: 0 0 3px; }
.dp-line .mono { font-size: 10.5px; }
.dp-skel { margin-top: 8px; display: grid; gap: 5px; }
.dp-skel i { display: block; height: 6px; border-radius: 3px; background: #e6e8f0; }
.dp-skel i:nth-child(2) { width: 92%; } .dp-skel i:nth-child(3) { width: 96%; } .dp-skel i:nth-child(4) { width: 58%; }
.dp-foot { margin-top: auto; padding-top: 10px; text-align: right; font-size: 9.5px; color: #6b7190; }
.hit { border-radius: 3px; padding: 0 2px; margin: 0 -2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; background: transparent; transition: none; }
.hit-id { --hl: rgba(226, 55, 79, 0.28); } .hit-finance { --hl: rgba(224, 150, 27, 0.32); } .hit-contact { --hl: rgba(59, 91, 255, 0.24); } .hit-person { --hl: rgba(124, 58, 237, 0.24); }
.hit.hA { animation: hitA 8s linear infinite; } .hit.hB { animation: hitB 8s linear infinite; } .hit.hC { animation: hitC 8s linear infinite; } .hit.hD { animation: hitD 8s linear infinite; }
.demo-beam { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, rgba(59, 91, 255, 0), var(--accent) 30%, var(--accent-2) 70%, rgba(0, 184, 148, 0)); box-shadow: 0 0 18px 4px rgba(59, 91, 255, 0.35); opacity: 0; animation: beam 8s linear infinite; z-index: 2; }
.demo-beam::after { content: ''; position: absolute; left: 0; right: 0; top: -34px; height: 34px; background: linear-gradient(180deg, rgba(59, 91, 255, 0), rgba(59, 91, 255, 0.1)); }
.demo-side { border-left: 1px solid var(--line); padding: 12px; font-size: 11.5px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); }
.ds-title { font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); display: flex; justify-content: space-between; }
.ds-count { background: var(--accent-soft); color: var(--accent-text); border-radius: 6px; padding: 0 6px; font-size: 11px; }
.ds-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ds-list li { display: grid; gap: 2px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); opacity: 0; }
.ds-list .fA { animation: liA 8s linear infinite; } .ds-list .fB { animation: liB 8s linear infinite; } .ds-list .fC { animation: liC 8s linear infinite; } .ds-list .fD { animation: liD 8s linear infinite; }
.ds-list .badge { font-size: 9.5px; padding: 1px 6px; width: fit-content; }
.ds-val { font-size: 10.5px; color: var(--ink-2); }
.ds-state { position: relative; height: 13px; font-size: 10px; }
.ds-state i { position: absolute; left: 0; top: 0; font-style: normal; display: inline-flex; align-items: center; gap: 4px; }
.ds-state i::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ds-state .ok { color: var(--ok-ink); animation: stAccepted 8s linear infinite; }
.ds-state .done { color: var(--ink-3); opacity: 0; animation: stRemoved 8s linear infinite; }
.ds-verified { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; background: var(--ok-soft); color: var(--ok-ink); font-weight: 700; font-size: 11px; opacity: 0; animation: verified 8s linear infinite; }
.ds-verified svg { width: 14px; height: 14px; }
.demo-caption { text-align: center; font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; }
.demo.paused * { animation-play-state: paused !important; }

@keyframes beam { 0% { top: 0; opacity: 1; } 27% { top: 100%; opacity: 1; } 28%, 100% { top: 100%; opacity: 0; } }
@keyframes hitA { 0%, 6.5% { background: transparent; box-shadow: none; color: #1b1e2e; } 7.5% { background: var(--hl); box-shadow: 0 0 0 1.5px var(--hl); color: #1b1e2e; } 55% { background: var(--hl); box-shadow: 0 0 0 1.5px var(--hl); color: #1b1e2e; } 58%, 95% { background: #0b0d14; box-shadow: 0 0 0 1.5px #0b0d14; color: transparent; } 100% { background: transparent; box-shadow: none; color: #1b1e2e; } }
@keyframes hitB { 0%, 10.5% { background: transparent; box-shadow: none; color: #1b1e2e; } 11.5% { background: var(--hl); box-shadow: 0 0 0 1.5px var(--hl); color: #1b1e2e; } 55% { background: var(--hl); box-shadow: 0 0 0 1.5px var(--hl); color: #1b1e2e; } 58%, 95% { background: #0b0d14; box-shadow: 0 0 0 1.5px #0b0d14; color: transparent; } 100% { background: transparent; box-shadow: none; color: #1b1e2e; } }
@keyframes hitC { 0%, 13.5% { background: transparent; box-shadow: none; color: #1b1e2e; } 14.5% { background: var(--hl); box-shadow: 0 0 0 1.5px var(--hl); color: #1b1e2e; } 55% { background: var(--hl); box-shadow: 0 0 0 1.5px var(--hl); color: #1b1e2e; } 58%, 95% { background: #0b0d14; box-shadow: 0 0 0 1.5px #0b0d14; color: transparent; } 100% { background: transparent; box-shadow: none; color: #1b1e2e; } }
@keyframes hitD { 0%, 16.5% { background: transparent; box-shadow: none; color: #1b1e2e; } 17.5% { background: var(--hl); box-shadow: 0 0 0 1.5px var(--hl); color: #1b1e2e; } 55% { background: var(--hl); box-shadow: 0 0 0 1.5px var(--hl); color: #1b1e2e; } 58%, 95% { background: #0b0d14; box-shadow: 0 0 0 1.5px #0b0d14; color: transparent; } 100% { background: transparent; box-shadow: none; color: #1b1e2e; } }
@keyframes liA { 0%, 7% { opacity: 0; transform: translateX(8px); } 9%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes liB { 0%, 11% { opacity: 0; transform: translateX(8px); } 13%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes liC { 0%, 14% { opacity: 0; transform: translateX(8px); } 16%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes liD { 0%, 17% { opacity: 0; transform: translateX(8px); } 19%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes stAccepted { 0%, 57% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes stRemoved { 0%, 57% { opacity: 0; } 58%, 100% { opacity: 1; } }
@keyframes verified { 0%, 62% { opacity: 0; transform: translateY(6px); } 66%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes stScan { 0%, 27% { opacity: 1; } 29%, 100% { opacity: 0; } }
@keyframes stReview { 0%, 28% { opacity: 0; } 30%, 57% { opacity: 1; } 59%, 100% { opacity: 0; } }
@keyframes stDone { 0%, 58% { opacity: 0; } 60%, 97% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- accuracy badge (hero) + section ---------- */
.acc-badge { display: inline-flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 9px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); text-decoration: none; color: var(--ink); max-width: 100%; transition: border-color 0.2s; }
.acc-badge:hover { border-color: var(--accent); }
.acc-badge > svg { width: 18px; height: 18px; flex: none; color: var(--ok-ink); margin-top: 2px; }
.acc-badge span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-badge b { font-size: 13px; font-weight: 600; line-height: 1.45; }
.acc-badge small { font-size: 12px; color: var(--ink-3); }
.acc-block { margin-top: 30px; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-xs); }
.acc-scope { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.acc-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--bg-3); border: 1px solid var(--line); }
.acc-stat b { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.acc-stat span { font-size: 14px; color: var(--ink-2); }
.acc-stat small { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.acc-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.acc-card { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-xs); }
.acc-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.acc-card p { margin: 0; font-size: 14px; color: var(--ink-2); }
#accuracy .disclaimer { margin-top: 16px; }
@media (max-width: 980px) { .acc-more { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .acc-stats { grid-template-columns: 1fr; } .acc-badge b { font-size: 12.5px; } }

/* ---------- trust bar ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); }
.trust-item > svg { width: 24px; height: 24px; flex: none; color: var(--accent); margin-top: 2px; }
.trust-item b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.trust-item p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }

/* ---------- how it works ---------- */
.steps { list-style: none; counter-reset: step; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 22px; box-shadow: var(--shadow-xs); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 16px; left: 20px; font-family: var(--mono); color: var(--accent-text); font-size: 12.5px; font-weight: 700; }
.step-art { height: 120px; margin: 8px 0 14px; }
.step-art svg { width: 100%; height: 100%; }
.step h3 { font-size: 18px; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- what it detects ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 8px; transition: transform 0.2s var(--ease), border-color 0.2s; }
.cat:hover { transform: translateY(-2px); border-color: var(--line-2); }
.cat-wide { grid-column: span 3; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.cat-wide h3 { flex: 0 0 auto; }
.cat-wide p { flex: 1 1 260px; }
.cat-wide .cat-ex { margin-left: auto; }
.cat h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat p { margin: 0; color: var(--ink-2); font-size: 14px; flex: 1; }
.cat-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.cat-ico svg { width: 22px; height: 22px; }
.c-id { background: var(--danger-soft); color: var(--danger); } .c-fin { background: var(--warn-soft); color: var(--warn); } .c-con { background: var(--accent-soft); color: var(--accent); } .c-per { background: var(--violet-soft); color: var(--violet); } .c-vis { background: var(--accent-2-soft); color: var(--accent-2); } .c-oth { background: var(--bg-3); color: var(--ink-2); }
.cat-ex { font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: var(--bg-3); border: 1px solid var(--line); padding: 5px 9px; border-radius: 8px; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.cat-local { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft), var(--shadow-xs); }
.countries { margin-top: 14px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-xs); display: grid; grid-template-columns: minmax(220px, 0.9fr) 2fr; gap: 14px 24px; align-items: center; }
.countries-head { display: flex; gap: 12px; align-items: flex-start; }
.countries-head .cat-ico { flex: none; }
.countries h3 { font-size: 17px; margin-bottom: 4px; }
.countries p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.cc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cc-list li { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--ink-2); line-height: 1.3; }
.cc-list abbr { text-decoration: none; cursor: help; }
.cc-list li:nth-child(-n+4) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }

/* ---------- two panels ---------- */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.panel-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.panel-video::before { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.panel-head { display: flex; align-items: center; gap: 12px; }
.panel-head h3 { font-size: 22px; }
.panel-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.panel-video .panel-ico { background: var(--accent-2-soft); color: var(--accent-2); }
.panel-ico svg { width: 22px; height: 22px; }
.panel-sub { margin: 0; color: var(--ink-2); font-size: 15px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 1; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.ticks svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 2px; }
.panel-card .btn { align-self: flex-start; }
.panel-note { margin: 0; font-size: 12.5px; color: var(--ink-3); }

/* ---------- true redaction ---------- */
.true-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: 34px; align-items: start; }
.true-demos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tr-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-xs); }
.tr-doc { background: #fff; border-radius: 6px; padding: 14px 12px; display: grid; gap: 8px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 6px 18px rgba(20, 25, 60, 0.1); margin-bottom: 14px; }
.tr-doc > i { display: block; height: 7px; border-radius: 3px; background: #e2e5ef; }
.tr-doc > i.short { width: 55%; }
.tr-doc .tr-line-hit { position: relative; height: 16px; background: transparent; }
.tr-doc em { position: absolute; inset: 0; font-style: normal; font-family: var(--mono); font-size: 10.5px; line-height: 16px; color: #1b1e2e; white-space: nowrap; overflow: hidden; }
.tr-cover { position: absolute; left: 0; top: 0; height: 16px; width: 100%; background: #0b0d14; border-radius: 2px; }
.tr-bad .tr-cover { background: rgba(11, 13, 20, 0.86); }
.tr-bad .tr-line-hit::after { content: ''; position: absolute; inset: -2px; background: rgba(59, 91, 255, 0.28); border-radius: 3px; mix-blend-mode: multiply; }
.tr-bar { position: absolute; left: 0; top: 0; height: 16px; width: 86%; background: #0b0d14; border-radius: 2px; }
.tr-card figcaption b { display: block; font-family: var(--font-display); font-size: 16px; margin-bottom: 8px; }
.tr-bad figcaption b { color: var(--danger-ink); } .tr-good figcaption b { color: var(--ok-ink); }
.tr-clip { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; padding: 7px 10px; border-radius: 8px; border: 1px dashed var(--line-2); background: var(--bg-3); margin-bottom: 10px; overflow-wrap: anywhere; }
.tr-clip small { font-size: 10px; color: var(--ink-3); font-family: var(--font); }
.tr-bad .tr-clip { color: var(--danger-ink); border-color: var(--danger); background: var(--danger-soft); }
.tr-good .tr-clip { color: var(--ok-ink); border-color: var(--ok); background: var(--ok-soft); }
.tr-clip small { color: var(--ink-2); }
.tr-card figcaption p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.true-text p { font-size: 15.5px; color: var(--ink-2); }
.verified-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink); font-weight: 700; font-size: 14px; }
.verified-badge svg { width: 18px; height: 18px; }

/* ---------- comparison ---------- */
.cmp-wrap { margin-top: 30px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 760px; }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 700; background: var(--bg-3); }
.cmp tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.cmp .us { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.cmp thead .us { color: var(--accent-text); }
.cmp td.good { color: var(--ok-ink); } .cmp td.bad { color: var(--ink-3); }
.cmp td.us.good { color: var(--ink); }
.cmp td.us.good::before { content: '\2713\00a0'; color: var(--ok-ink); font-weight: 800; }
.cmp-note { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 0; }
@media (max-width: 760px) {
  .cmp { min-width: 0; display: block; border: 0; background: transparent; }
  .cmp thead { display: none; }
  .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 10px; overflow: hidden; }
  .cmp tbody th { width: auto; background: var(--bg-3); padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .cmp td { display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 9px 14px; }
  .cmp td::before { content: attr(data-l); font-size: 12px; font-weight: 600; color: var(--ink-3); }
  .cmp td.us.good::before { content: attr(data-l); color: var(--accent-text); }
  .cmp tbody tr:last-child td { border-bottom: 1px solid var(--line); }
  .cmp tr td:last-child { border-bottom: 0; }
}

/* ---------- GDPR ---------- */
.gdpr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.gdpr-card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--surface); box-shadow: var(--shadow-xs); }
.gdpr-card > svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 12px; }
.gdpr-card h3 { font-size: 17px; margin-bottom: 8px; }
.gdpr-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.gdpr-link { margin: 18px 0 0; }
.gdpr-link a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 600; text-decoration: none; }
.gdpr-link a:hover { text-decoration: underline; }
.gdpr-link svg { width: 16px; height: 16px; }
.disclaimer { margin: 18px 0 0; padding: 14px 16px; border-left: 3px solid var(--warn); background: var(--warn-soft); border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 13.5px; color: var(--ink-2); }

/* ---------- personas ---------- */
.personas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 30px; }
.persona { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; box-shadow: var(--shadow-xs); transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s; }
.persona:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-s); }
.persona-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.persona-ico svg { width: 20px; height: 20px; }
.persona b { font-family: var(--font-display); font-size: 15.5px; }
.persona p { margin: 0; font-size: 13px; color: var(--ink-2); flex: 1; }
.persona-cta { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.persona-cta svg { width: 14px; height: 14px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 28px; display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 18px; box-shadow: var(--shadow-xs); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink-3); font-weight: 400; font-size: 20px; line-height: 1; flex: none; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); font-size: 14.5px; padding-bottom: 16px; margin: 0; }

/* ---------- support ---------- */
.coffee { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: clamp(20px, 3vw, 30px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(135deg, var(--warn-soft), transparent 55%), var(--surface); box-shadow: var(--shadow-xs); }
.coffee-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.coffee-ico svg { width: 28px; height: 28px; }
.coffee h2 { font-size: 24px; margin-bottom: 8px; }
.coffee .eyebrow { color: var(--warn-ink); }
.coffee-text p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.coffee-text .hint { margin-top: 6px; }

/* ---------- final CTA ---------- */
.cta-final { text-align: center; padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); margin-top: clamp(48px, 7vw, 90px); }
.cta-final h2 { margin: 0 auto 14px; }
.cta-final .sub { color: var(--ink-2); font-size: 16.5px; max-width: 58ch; margin: 0 auto 26px; }
.cta-final .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 28px; color: var(--ink-3); font-size: 13.5px; background: var(--bg-2); }
.foot .brand-name { color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.7fr; gap: 28px; }
.foot-brand p { margin: 10px 0 0; color: var(--ink-2); }
.foot-brand .muted a { color: var(--ink-2); }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col b { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.foot-col a { color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-col a span { display: block; font-size: 12px; color: var(--ink-3); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-bottom a { color: var(--ink-2); text-decoration: none; }
.foot-bottom a:hover { text-decoration: underline; }

/* ---------- legal pages ---------- */
.legal-main { width: min(860px, 100% - 2 * clamp(16px, 4vw, 40px)); margin: 0 auto; padding: 32px 0 40px; }
.legal-card { padding: clamp(22px, 4vw, 44px); }
.legal-card h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 6px; }
.legal-card h2 { font-size: 19px; margin: 28px 0 8px; }
.legal-card p, .legal-card li { color: var(--ink-2); font-size: 15px; }
.legal-card ul { padding-left: 20px; }
.legal-card li { margin-bottom: 6px; }
.legal-card a, .legal-card .eyebrow { color: var(--accent-text); }
.legal-card code { font-family: var(--mono); font-size: 13px; background: var(--bg-3); padding: 1px 5px; border-radius: 4px; }
.legal-card table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.legal-card th, .legal-card td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.legal-card th { color: var(--ink); font-weight: 600; }
.legal-card td { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .legal-card table, .legal-card tbody, .legal-card tr, .legal-card td { display: block; width: 100%; }
  .legal-card tr:first-child { display: none; }
  .legal-card tr { border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 8px 10px; margin-bottom: 8px; }
  .legal-card td { border: 0; padding: 2px 0; }
  .legal-card td:first-child { color: var(--ink); font-weight: 600; }
}
.legal-card .callout { padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.note { color: var(--ink-3); font-size: 13.5px; }
.legal-back { text-align: center; margin-top: 22px; }
.legal-back a { color: var(--ink-2); }
.top .lang-legal { display: inline-flex; gap: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .personas { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: clamp(32px, 6vw, 56px); }
  .hero-copy { max-width: 640px; }
  .hero h1 { max-width: 20ch; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); } .cat-wide { grid-column: span 2; }
  .countries { grid-template-columns: 1fr; }
  .panels { grid-template-columns: 1fr; }
  .true-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .trust { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; } .cat-wide { grid-column: span 1; flex-direction: column; align-items: flex-start; } .cat-wide .cat-ex { margin-left: 0; }
  .true-demos { grid-template-columns: 1fr; }
  .gdpr-grid { grid-template-columns: 1fr; }
  .personas { grid-template-columns: 1fr; }
  .coffee { grid-template-columns: 1fr; text-align: left; }
  .coffee .btn { justify-self: start; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-side { border-left: 0; border-top: 1px solid var(--line); }
  .ds-list { grid-template-columns: 1fr 1fr; }
  .ds-list .badge { white-space: normal; }
  .demo-page { margin: 10px; padding: 12px 12px 10px; font-size: 11px; }
  .demo-file { display: none; }
  .demo-status { font-size: 11px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-cta .btn.big { width: 100%; }
  .section .sub { font-size: 15px; }
}

/* ---------- reduced motion: static final state of the demo ---------- */
@media (prefers-reduced-motion: reduce) {
  .demo *, .bg .blob { animation: none !important; }
  .demo-beam { display: none; }
  .hit { background: #0b0d14 !important; color: transparent !important; box-shadow: 0 0 0 1.5px #0b0d14; }
  .ds-list li, .ds-verified, .demo-status .st-done, .ds-state .done { opacity: 1 !important; transform: none !important; }
  .demo-status .st-scan, .demo-status .st-review, .ds-state .ok { opacity: 0 !important; }
}

/* phones: glass cards without backdrop blur (must stay at the END of this file to win over the base rules) */
@media (hover: none), (max-width: 760px) {
  .trust-item, .eyebrow-pill { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-2); }
}
