/* Omi marketing site. Follows the app's design system (DESIGN.md in the app repo): black, quiet gray surfaces,
   ONE accent, Pikachu yellow (#FFDE00) = "tap me / selected / important", black text on yellow. Pills for actions,
   16-radius rounded rects for content. Green/red only for data (good/bad). The `--red*` names are kept so older
   rules keep working; they now hold the yellow accent. */
:root {
  --bg: #000000;
  --band: #0c0c0c;
  --surface: #1e1e1e;
  --surface-2: #2c2c2e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.78);
  --muted: rgba(255, 255, 255, 0.6);
  --red: #ffde00;
  --red-hover: #ffe74d;
  --red-tint: rgba(255, 222, 0, 0.08);
  --on-accent: #000000;
  --yellow: #ffde00;
  --blue: #ffffff;
  --good: #3ccf7a;
  --bad: #ff6b5a;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-btn: 999px;
  --max: 1200px;
  --max-text: 720px;
  --gutter: 20px;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
p { margin: 0 0 14px; text-wrap: pretty; }
.accent { color: var(--red); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-text { max-width: var(--max-text); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section.band { background: var(--band); }
@media (min-width: 640px) { .section { padding: 128px 0; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--red); }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 620px; margin-top: 20px; }
.intro { margin-bottom: 48px; }
.intro.center { text-align: center; }
.intro.center .lead { margin-left: auto; margin-right: auto; }
.meta { font-size: 13px; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 18, 18, 0.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -0.03em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav .btn { color: var(--on-accent); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--radius-btn); font: 600 15px/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--red); color: var(--on-accent); }
.btn-primary:hover { background: var(--red-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line-strong); }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.badge img { height: 52px; width: auto; }

/* Hero */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero::before { content: none; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } .hero { padding-top: 96px; } }
.hero-copy .lead { font-size: 19px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--text-2); font-size: 16px; }
.hero-points li { display: flex; gap: 10px; align-items: baseline; }
.hero-points li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); transform: translateY(-2px); }
.hero-visual { display: flex; justify-content: center; gap: 18px; margin-bottom: -40px; }
.hero-in > * { animation: rise .72s cubic-bezier(.22,1,.36,1) both; }
.hero-in > *:nth-child(2) { animation-delay: .06s; } .hero-in > *:nth-child(3) { animation-delay: .12s; } .hero-in > *:nth-child(4) { animation-delay: .18s; } .hero-in > *:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-in > * { animation: none; } html { scroll-behavior: auto; } }

/* Phone frame */
.phone { width: 100%; max-width: 280px; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.4); }
.phone img { aspect-ratio: 1284 / 2778; object-fit: cover; width: 100%; }
.phone.sm { max-width: 220px; }
.hero-visual .phone:nth-child(2) { transform: translateY(48px); }
@media (max-width: 899px) { .hero-visual .phone:nth-child(2) { display: none; } }

/* Trust strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--band); }
.strip ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
@media (min-width: 760px) { .strip ul { grid-template-columns: repeat(4, 1fr); } }
.strip strong { display: block; font: 650 22px/1.2 var(--display); letter-spacing: -0.02em; }
.strip span { font-size: 14px; color: var(--muted); }

/* Feature rows: copy paired with a real screenshot */
.feature { display: grid; gap: 40px; align-items: center; }
.feature + .feature { margin-top: 96px; }
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 1fr; gap: 72px; } .feature.flip .feature-media { order: -1; } }
.feature-media { display: flex; justify-content: center; }
.feature h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; }
.feature p { color: var(--text-2); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; color: var(--text-2); font-size: 16px; }
.checks li::before { content: "✓"; color: var(--red); font-weight: 700; }

/* Panels and grids */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 16px; margin: 0; }
.card a.more { display: inline-block; margin-top: 14px; font-weight: 600; text-decoration: none; }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 64px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 24px; left: 26px; width: 28px; height: 28px; border-radius: 8px; background: var(--red-tint); color: var(--red); font: 700 15px/28px var(--display); text-align: center; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 52px 20px 22px; font: 600 17px/1.4 var(--body); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--text-2); }
.faq-h3 h3 { margin: 28px 0 8px; font-size: 19px; }

/* CTA band (inverted on a dark site) */
.cta-band { background: var(--surface); color: #fff; border-radius: var(--radius-lg); padding: 56px 28px; text-align: center; }
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 16px auto 0; }
.cta-band .cta-row { justify-content: center; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* Long-form text pages */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 16px; }
.prose { padding: 48px 0 96px; font-size: 17px; line-height: 1.75; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); margin: 48px 0 14px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: #fff; }
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 14px; padding: 18px 22px; margin: 28px 0; color: var(--text-2); }
.answer strong { color: #fff; }
.toc { font-size: 15px; margin: 24px 0 0; }
.toc a { color: var(--text-2); }

/* Tables: scroll inside their own frame, never the page */
.table-frame { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
thead th { font-size: 14px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.compare-table { min-width: 640px; }
.compare-table td, .compare-table thead th { min-width: 170px; }
@media (max-width: 640px) { .compare-table th[scope="row"], .compare-table thead th:first-child { min-width: 112px; max-width: 112px; font-size: 14px; } }
.compare-table th[scope="row"] { position: sticky; left: 0; background: var(--surface); color: #fff; font-weight: 600; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.compare-table thead th:first-child { position: sticky; left: 0; z-index: 2; }
.compare-table .us { background: var(--red-tint); }
.compare-table thead .us { color: var(--red); background: #24200a; }
.compare-table td { color: var(--text-2); }
.compare-table sup a { color: var(--muted); text-decoration: none; font-size: 11px; margin-left: 2px; }
.na { color: var(--muted); font-style: italic; }
.sources { font-size: 14px; color: var(--muted); padding-left: 22px; }
.sources li { margin-bottom: 6px; word-break: break-word; }
.sources a { color: var(--muted); }
.pick { padding: 24px; }
.pick h3 { margin-bottom: 10px; }
.pick.us h3 { color: var(--red); }
.pick p { color: var(--text-2); font-size: 16px; }

/* Status: dot + word, never color alone */
.dot { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.dot.good::before { background: var(--good); } .dot.bad::before { background: var(--bad); } .dot.hi::before { background: var(--yellow); }

/* Free tool */
.field { display: flex; align-items: center; gap: 8px; background: #f5f5f5; border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 12px 32px rgba(0,0,0,.35); border: 2px solid transparent; transition: border-color .15s, box-shadow .15s; max-width: 640px; }
.field:hover { border-color: #d0d0d0; }
.field:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,222,0,.22), 0 12px 32px rgba(0,0,0,.35); }
.field svg { flex: none; color: #555; }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 17px/1 var(--body); color: #121212; height: 44px; }
.field input::placeholder { color: #777; }
.field .btn { height: 44px; }
.hint { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hint button { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.result { margin-top: 32px; padding: 24px; }
.result-head { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; }
.result-head img { border-radius: 6px; width: 96px; height: auto; aspect-ratio: 245 / 342; background: var(--surface-2); }
.result-head h3 { font-size: 22px; }
.result-head .meta { margin-top: 4px; }
.headline { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.headline strong { color: #fff; font-size: 22px; font-family: var(--display); letter-spacing: -0.02em; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 20px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: var(--surface); padding: 14px 16px; }
.stats b { display: block; font: 650 20px/1.2 var(--display); letter-spacing: -0.02em; }
.stats span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.matches { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.matches li { border-bottom: 1px solid var(--line); }
.matches button { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; background: none; border: 0; color: var(--text-2); font: 15px/1.4 var(--body); text-align: left; cursor: pointer; }
.matches button:hover { color: #fff; }
.grading { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.grading h4 { margin: 0 0 12px; font: 600 17px/1.3 var(--body); }
.grading-inputs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .grading-inputs { grid-template-columns: repeat(4, 1fr); } }
.grading label { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.grading input { height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: #fff; padding: 0 12px; font: 16px var(--body); width: 100%; }
.grading-out { margin-top: 16px; font-size: 16px; color: var(--text-2); }
.app-nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: var(--red-tint); border: 1px solid rgba(255,222,0,.3); }
.app-nudge p { margin: 0; color: #fff; font-size: 16px; max-width: 460px; }
.sample { opacity: .9; }
.sample-label { display: inline-block; font-size: 12px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }
.status { margin-top: 16px; font-size: 15px; color: var(--muted); min-height: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #0d0d0d; padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 280px; font-size: 14px; }
.site-footer h2 { font: 600 14px/1.3 var(--body); letter-spacing: 0; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }

/* Mobile sticky App Store CTA */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; }
  .mobile-cta .btn { width: 100%; height: 52px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
  body.has-mobile-cta { padding-bottom: 76px; }
}
.card-link { text-decoration: none; color: inherit; transition: border-color .15s; } .card-link:hover { border-color: var(--line-strong); color: inherit; } .card-link .more { color: var(--blue); }
.phone.framed { padding: 8px; background: #0a0a0a; border: 1px solid var(--line-strong); border-radius: 40px; }
.phone.framed img { border-radius: 32px; aspect-ratio: 599 / 1300; }
.result-head img { overflow: hidden; color: transparent; font-size: 0; }

/* Korean: break lines between words, not inside them */
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
.lang-nav ul { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-grid .lang-nav { grid-column: 1 / -1; }
.facts { list-style: none; padding: 0; } .facts li { margin: 6px 0; }
/* value checker v2 */
.result-head { grid-template-columns: 140px 1fr; gap: 24px; }
@media (min-width: 640px) { .result-head { grid-template-columns: 180px 1fr; } }
.result-head img, .card-img { width: 100%; }
.card-img { display: block; border-radius: 8px; overflow: hidden; transition: transform .15s; }
.card-img:hover { transform: scale(1.03); }
.headline strong { font-size: 32px; display: block; margin-top: 2px; }
@media (min-width: 640px) { .headline strong { font-size: 40px; } }
.matches-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.matches-head h4 { margin: 0; font: 600 17px/1.3 var(--body); }
.sort { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.sort button { background: none; border: 0; color: var(--text-2); font: 500 14px var(--body); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.sort button[aria-pressed="true"] { background: var(--surface-2); color: #fff; }
.tiles { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tiles button { width: 100%; display: grid; gap: 4px; padding: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; color: var(--text-2); text-align: left; cursor: pointer; font: 13px/1.35 var(--body); transition: border-color .15s, transform .15s; }
.tiles button:hover, .tiles button:focus-visible { border-color: var(--red); transform: translateY(-2px); }
.tiles img { width: 100%; height: auto; aspect-ratio: 245 / 342; border-radius: 6px; background: var(--surface-2); margin-bottom: 6px; }
.tiles .t-name { color: #fff; font-weight: 600; font-size: 14px; }
.tiles .t-price { color: #fff; font: 650 16px/1.2 var(--display); margin-top: 2px; }
.skeleton .sk { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line-strong) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
.sk-img { aspect-ratio: 245 / 342; width: 100%; }
.sk-line { height: 16px; margin: 6px 0 12px; } .sk-line.tall { height: 40px; margin-top: 20px; }
.w60 { width: 60%; } .w40 { width: 40%; } .w30 { width: 30%; }
.sk-stats { height: 72px; margin-top: 20px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton .sk { animation: none; } }
.field .btn:disabled { opacity: .6; cursor: progress; }
.matches-head.first { margin-top: 0; padding-top: 0; border-top: 0; }
.picker h3 { margin: 0; font-size: 22px; }
.back { background: none; border: 0; color: var(--text-2); font: 500 14px var(--body); padding: 0 0 16px; cursor: pointer; }
.back:hover { color: #fff; }
.noimg { aspect-ratio: 245 / 342; width: 100%; border-radius: 6px; margin-bottom: 6px; background: linear-gradient(160deg, var(--surface-2), var(--bg)); border: 1px solid var(--line-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center; color: var(--muted); font-size: 12px; }
.noimg b { color: var(--text-2); font: 650 18px/1 var(--display); }
/* Right-to-left (Arabic) */
[dir="rtl"] th, [dir="rtl"] td, [dir="rtl"] .tiles button, [dir="rtl"] .matches button { text-align: right; }
[dir="rtl"] .steps .card::before { left: auto; right: 26px; }
[dir="rtl"] .faq summary::after { right: auto; left: 22px; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol, [dir="rtl"] .sources { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .answer { border-left: 1px solid var(--line); border-right: 3px solid var(--red); }
[dir="rtl"] .compare-table th[scope="row"], [dir="rtl"] .compare-table thead th:first-child { left: auto; right: 0; box-shadow: -1px 0 0 var(--line); }
[dir="rtl"] .compare-table sup a { margin-left: 0; margin-right: 2px; }
[dir="rtl"] .skip { left: auto; right: -999px; } [dir="rtl"] .skip:focus { right: 8px; }
[dir="rtl"] .field input { direction: rtl; }
[dir="rtl"] .field input::placeholder { direction: ltr; text-align: right; }

/* Value checker: result bar, share, filter, show more, phone layout (Nov 16) */
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.result-bar .back { padding: 0; }
.share { background: none; border: 1px solid var(--line-strong); color: var(--text-2); font: 500 13px var(--body); padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: border-color .15s, color .15s; }
.share:hover, .share:focus-visible { border-color: var(--text-2); color: #fff; }
.share.done { border-color: var(--good); color: var(--good); }
.tile-filter { display: block; width: 100%; max-width: 420px; height: 42px; margin-top: 16px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: #fff; font: 15px var(--body); }
.tile-filter:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,222,0,.2); }
.more { display: block; margin: 16px auto 0; background: var(--surface-2); border: 1px solid var(--line-strong); color: #fff; font: 600 14px var(--body); padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.more:hover { border-color: var(--text-2); }
.recent { margin-top: 6px; }
.recent button { color: var(--text-2); }
.stats.n1 { grid-template-columns: 1fr; }
.stats.n2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .stats.n3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 559px) {
  .result { padding: 18px; }
  .result-head { grid-template-columns: 112px 1fr; gap: 16px; }
  .result-head h3 { font-size: 19px; line-height: 1.25; }
  .result-head .headline strong { font-size: 28px; }
  .tiles { gap: 10px; }
  .tiles button { padding: 8px; }
}
/* Header language menu */
.site-header .nav { margin-inline-start: auto; }
.lang-menu { position: relative; flex: none; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--text-2); font: 600 13px/1 var(--body); letter-spacing: .02em; cursor: pointer; user-select: none; transition: border-color .15s, background .15s, color .15s; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.lang-menu summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.lang-menu summary img, .lang-list img { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.18); flex: none; object-fit: cover; }
.lang-menu .chev { transition: transform .18s; opacity: .7; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-list { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 70; list-style: none; margin: 0; padding: 6px; width: 228px; max-height: min(70vh, 520px); overflow-y: auto; display: grid; gap: 2px; background: #1c1c1c; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 20px 48px rgba(0,0,0,.5); animation: lang-in .16s ease-out; }
@keyframes lang-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .lang-list { animation: none; } .lang-menu .chev { transition: none; } }
.lang-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 15px; }
.lang-list a:hover, .lang-list a:focus-visible { background: rgba(255,255,255,.07); color: #fff; outline: none; }
.lang-list a[aria-current] { color: #fff; background: var(--red-tint); }
.lang-list .tick { margin-inline-start: auto; color: var(--red); }
.lang-list { width: min(400px, calc(100vw - 32px)); grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .lang-list a { font-size: 14px; padding: 9px 8px; gap: 8px; } }
@media (max-width: 760px) { .lang-menu .lang-code { display: none; } .lang-menu summary { padding: 0 8px; } .site-header .wrap { gap: 10px; } }

/* ---------- Home: checker in the hero, accounts (js/account.js) ---------- */
.hero-check .field { margin-top: 28px; }
.hero-check .hint { margin-top: 12px; }
.acct-pill { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--text-2); }
.acct-pill b { color: var(--red); font-variant-numeric: tabular-nums; }
.acct-pill button, .acct-pill a { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--red); color: var(--on-accent); font: 600 14px/32px var(--body); text-decoration: none; cursor: pointer; }
.signed-in .acct-pill a { background: var(--surface-2); color: #fff; }
.app-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); }
.app-row p { margin: 0; max-width: 640px; color: var(--text-2); font-size: 16px; }
.app-row strong { color: #fff; }
.out-of-scans h3 { font-size: 22px; margin-bottom: 8px; }
.out-of-scans p { color: var(--text-2); }

.sheet { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 32px 24px 24px; border: 0; border-radius: 20px; background: var(--surface); color: #fff; text-align: center; }
.sheet::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.sheet h2 { font-size: 28px; line-height: 1.15; }
.sheet-icon img { width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 16px; }
.sheet-sub { color: var(--text-2); font-size: 15px; margin: 10px 0 20px; }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 999px; border: 0; background: var(--surface-2); color: #fff; font-size: 20px; line-height: 32px; cursor: pointer; }
.btn-social { width: 100%; height: 48px; margin-top: 10px; background: #fff; color: #000; border: 0; }
.btn-social:hover { background: #e8e8e8; color: #000; }
.btn-block { width: 100%; height: 48px; margin-top: 10px; }
.sheet-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; color: var(--muted); font-size: 13px; }
.sheet-or::before, .sheet-or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.sheet input[type=email], .sheet [data-code] { width: 100%; height: 48px; margin-top: 10px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: #fff; font: 16px var(--body); }
.sheet [data-code] { text-align: center; letter-spacing: 6px; font: 600 22px ui-monospace, Menlo, monospace; }
.sheet input:focus { outline: 0; border-color: var(--red); }
.news-box { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--red-tint); border: 1px solid rgba(255, 222, 0, 0.45); text-align: left; font-size: 13px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.news-box strong { color: #fff; font-size: 14px; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.news-box em { font-style: normal; color: var(--muted); }
.news-box input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); }
.sheet-msg { min-height: 0; margin: 12px 0 0; color: var(--bad); font-size: 14px; }
.sheet-msg:empty { display: none; }
.sheet-legal { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.sheet-legal a { color: var(--text-2); }
.sheet-none { color: var(--text-2); }
.linkish { margin-top: 14px; background: none; border: 0; color: var(--text-2); text-decoration: underline; cursor: pointer; font: 14px var(--body); }
@media (max-width: 760px) { .hero-check .hero-visual { display: none; } .acct-pill { flex-wrap: wrap; } }
.account h2 { font-size: 24px; margin: 40px 0 8px; }
.acct-card { padding: 24px; }
.acct-email { font-size: 20px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.acct-scans b { color: var(--red); }
.news-box.quiet { background: var(--surface); border-color: var(--line-strong); }
.news-box.quiet strong { text-decoration: none; }
.linkish.danger { color: var(--bad); }
[hidden] { display: none !important; }
.hero-check .hero-copy { min-width: 0; }
.hero-check .field { border-radius: 999px; }
@media (max-width: 420px) { .hero-check .field .btn { padding: 0 14px; } .hero-check .field svg { display: none; } }
.home-sample { margin-top: 8px; }
.home-sample .result-head img { width: 96px; border-radius: 6px; }
.sample-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.sample-cta p { margin: 0; color: var(--text-2); font-size: 15px; }
.home-sample .result-head { grid-template-columns: 120px 1fr; }
.home-sample .result-head img { width: 120px; }
.home-sample { opacity: 1; }
