/* =============================================================
   Openline · eSIM Compatibility Check
   Single-file stylesheet. Designed to work standalone and as a
   full-screen modal embedded in openline.com.
   ============================================================= */

/* -------- 1 · Tokens ---------- */
:root {
  --brand: #FF6A00;
  --brand-ink: #E85E00;
  --brand-2: #FF8A3D;
  --ink: #0F1114;
  --ink-2: #3A3F47;
  --ink-3: #6B7280;
  --ink-4: #9CA3AF;
  --line: #EAEBEE;
  --line-2: #F1F2F5;
  --bg: #FFFFFF;
  --bg-2: #FAFAFB;
  --bg-3: #F5F5F7;
  --accent-bg: #FFF3E9;
  --accent-bg-2: #FFEADC;

  --ok: #128A3D;
  --ok-bg: #E3F4E8;
  --ok-bg-2: #CDEBD5;
  --err: #B3261E;
  --err-bg: #FBE6E4;
  --err-bg-2: #F6D3CF;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --shadow-1: 0 1px 2px rgba(15, 17, 20, .04), 0 1px 3px rgba(15, 17, 20, .06);
  --shadow-2: 0 8px 24px rgba(15, 17, 20, .08);
  --shadow-3: 0 24px 60px rgba(15, 17, 20, .20);

  --content-w: 1180px;
  --hero-w: 780px;

  --cat: var(--brand);
  --cat-bg: var(--accent-bg);
}

/* -------- 2 · Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-size: 15.5px;
  font-feature-settings: "ss01", "cv11";
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255, 106, 0, .5);
  text-underline-offset: 3px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 12px;
  background: var(--ink); color: #fff; padding: 8px 14px;
  border-radius: 8px; text-decoration: none; z-index: 100;
  font-weight: 500; font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* -------- 3 · Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { display: block; }
.brand-word { font-weight: 800; letter-spacing: -0.01em; font-size: 17px; }
.brand-sub {
  font-weight: 500; color: var(--ink-2);
  border-left: 1px solid #D9DBE0;
  padding-left: 14px; margin-left: 8px;
  font-size: 14.5px;
  letter-spacing: -0.005em;
}
.topnav { display: flex; gap: 8px; align-items: center; }
.topnav a {
  color: var(--ink-2);
  font-weight: 500; font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .12s ease, color .12s ease;
}
.topnav a:hover {
  color: var(--ink); text-decoration: none;
  background: var(--bg-3);
}
.topnav a.cta {
  color: #fff;
  background: var(--ink);
  padding: 9px 16px;
}
.topnav a.cta:hover {
  background: var(--brand); color: #fff;
}

/* -------- 4 · Layout / Hero ---------- */
main { max-width: var(--content-w); margin: 0 auto; padding: 0 22px 80px; }

.hero {
  padding: 64px 0 28px;
  text-align: center;
  max-width: var(--hero-w);
  margin: 0 auto;
}
.hero-logo { display: block; margin: 0 auto 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--brand-ink);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 auto 20px;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .22);
}
.hero-title {
  font-size: clamp(32px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.028em;
  margin: 0 0 12px;
  line-height: 1.08;
}
.hero-title .accent { color: var(--brand); }
.hero-tag {
  color: var(--ink-3);
  font-size: 17px;
  margin: 0 auto 32px;
  max-width: 580px;
  line-height: 1.55;
}
.hero-tag strong { color: var(--ink); font-weight: 700; }

/* -------- 5 · Search ---------- */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 4px 4px 4px 22px;
  box-shadow: var(--shadow-2);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.search-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, .14), var(--shadow-2);
}
.search-wrap .search-icon { color: var(--ink-4); flex-shrink: 0; }
.search-wrap input {
  flex: 1;
  border: 0; outline: 0;
  background: transparent;
  padding: 22px 12px;
  font-size: 17px;
  font-family: inherit;
  color: var(--ink);
  min-width: 0;
  -webkit-appearance: none; appearance: none;
}
.search-wrap input::placeholder { color: var(--ink-4); }
.search-wrap .clear {
  background: var(--bg-3);
  color: var(--ink-2);
  border: 0; border-radius: 999px;
  width: 44px; height: 44px;
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .12s ease, color .12s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.search-wrap .clear:hover { background: var(--line); color: var(--ink); }
.search-wrap .clear[hidden] { display: none; }

/* Hero stats row — quick "at a glance" numbers under search */
.hero-stats {
  display: flex; align-items: stretch; justify-content: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.hero-stat {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.hero-stat b {
  font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-stat .dot-ok, .hero-stat .dot-err { width: 8px; height: 8px; }

/* -------- 6 · Filters bar (collapsible) ---------- */
.filters {
  margin: 20px auto 32px;
  max-width: 880px;
}
.filters-toggle {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.filters-toggle:hover { border-color: var(--ink-4); box-shadow: var(--shadow-1); }
.filters-toggle[aria-expanded="true"] {
  border-color: var(--brand);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.filters-toggle > svg:first-of-type { color: var(--brand); flex-shrink: 0; }
.filters-label { font-weight: 600; color: var(--ink); }
.filters-summary {
  flex: 1;
  color: var(--ink-3);
  font-size: 13.5px;
  text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.filters-count-badge {
  background: var(--brand); color: #fff;
  font-size: 11.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  min-width: 22px; text-align: center;
}
.filters-chevron { color: var(--ink-3); transition: transform .18s ease; margin-left: auto; }
.filters-toggle[aria-expanded="true"] .filters-chevron { transform: rotate(180deg); }

.filters-panel {
  border: 1px solid var(--brand);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 20px;
  background: var(--bg-2);
  animation: opl-slideDown .22s ease;
}
@keyframes opl-slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.filters-explain {
  margin: 0 0 16px;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.5;
}
.filters-group + .filters-group { margin-top: 18px; }
.filters-group-title {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.cat-btn {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 34px 12px 20px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all .12s ease;
  display: flex; flex-direction: column;
  gap: 3px;
  overflow: hidden;
}
.cat-btn::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--cat);
}
.cat-btn:hover {
  border-color: var(--cat);
  box-shadow: var(--shadow-1);
  transform: translateY(-1px);
}
.cat-btn.active {
  border-color: var(--cat);
  background: var(--cat-bg);
}
.cat-btn.active::after {
  content: "";
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--cat) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M5 12l5 5L20 7'/></svg>") no-repeat center / 12px 12px;
}
.cat-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.cat-count { color: var(--ink-3); font-size: 12.5px; }

/* Compat cat-btns tinted per state */
#compat-cats .cat-btn[data-value="yes"] { --cat: var(--ok);  --cat-bg: var(--ok-bg); }
#compat-cats .cat-btn[data-value="no"]  { --cat: var(--err); --cat-bg: var(--err-bg); }

/* Brand chips — tighter columns since there are ~30 of them */
#brand-cats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
#brand-cats .cat-btn { padding: 10px 30px 10px 18px; }

.filters-actions {
  margin-top: 16px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.filters-count { color: var(--ink-3); font-size: 13px; }
.filters-count strong { color: var(--ink); font-weight: 700; }
.filters-clear {
  background: transparent;
  border: 1px solid var(--line); color: var(--ink-2);
  font-family: inherit; font-size: 13px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all .12s ease;
}
.filters-clear:hover:not(:disabled) {
  color: var(--ink); border-color: var(--ink-4); background: var(--bg);
}
.filters-clear:disabled { opacity: .5; cursor: not-allowed; }

/* -------- 7 · Results ---------- */
.results-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.results-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.count { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.count strong { color: var(--ink); font-weight: 700; }
.legend { display: flex; gap: 16px; margin: 0; color: var(--ink-3); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot-ok, .dot-err {
  width: 8px; height: 8px; border-radius: 999px; display: inline-block;
}
.dot-ok  { background: var(--ok); }
.dot-err { background: var(--err); }

/* -------- 8 · Row list ---------- */
.row-list {
  list-style: none; margin: 0; padding: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--line-2);
  transition: background .1s ease;
}
.row:first-child { border-top: 0; }
.row:hover { background: var(--bg-2); }
.row .indicator {
  width: 10px; height: 10px; border-radius: 999px; justify-self: center;
}
.row.ok  .indicator { background: var(--ok);  box-shadow: 0 0 0 4px var(--ok-bg); }
.row.err .indicator { background: var(--err); box-shadow: 0 0 0 4px var(--err-bg); }
.row .meta { min-width: 0; }
.row .name {
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.005em;
  color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row .sub {
  display: flex; gap: 10px; align-items: center;
  color: var(--ink-3); font-size: 12.5px; margin-top: 3px;
  flex-wrap: wrap;
}
.row .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, "JetBrains Mono", monospace;
  font-size: 11.5px; color: var(--ink-2);
  padding: 2px 6px; background: var(--bg-3);
  border-radius: 4px;
  letter-spacing: 0.01em;
}
.row .note { color: var(--ink-3); font-style: italic; font-size: 12px; }

/* Regional-caveat warning button.
   Visible pill stays ~22px tall on desktop, but on touch devices the
   button grows its own vertical padding to hit the 44px tap-target guideline. */
.note-warn {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px 3px 7px;
  background: #FFF4E5;
  border: 1px solid #FFD9A8;
  border-radius: 999px;
  color: #A65A00;
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  cursor: pointer;
  transition: all .12s ease;
  line-height: 1.2;
  white-space: nowrap;
}
/* Touch devices: expand hit target via a transparent absolute pseudo‑element
   that reserves 44px of tappable height without changing the visual pill.
   Needs its own stacking context (z-index) so the tap area sits above the
   next row's <li>, otherwise the following row's block-level element would
   shadow the bottom half of the extension. */
.note-warn { z-index: 1; }
.note-warn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 44px;
  transform: translateY(-50%);
  z-index: 2;
  /* Extends beyond the visible pill by ~11px above and below — grabs the tap. */
}
/* Prevent this expanded hit area from covering neighboring row buttons.
   On desktop (fine pointer), suppress the ::after entirely — mouse users
   already hit the small pill fine. */
@media (pointer: fine) {
  .note-warn::after { display: none; }
}
.note-warn svg { flex-shrink: 0; color: #E58A00; }
.note-warn:hover {
  background: #FFE7C7;
  border-color: #FFB86B;
  color: #7A4300;
}
.note-warn:focus-visible {
  outline: 2px solid #FF6A00;
  outline-offset: 2px;
}

/* Regional-caveat popover */
.note-popover {
  position: fixed;
  z-index: 2000;
  min-width: 260px;
  max-width: min(360px, calc(100vw - 24px));
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  padding: 14px 16px 16px;
  animation: opl-popIn .15s cubic-bezier(.2,.7,.2,1);
}
@keyframes opl-popIn {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.note-popover-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
}
.note-popover-head svg { color: #E58A00; flex-shrink: 0; }
.note-popover-head strong {
  flex: 1; color: var(--ink); font-size: 13.5px; font-weight: 700;
  letter-spacing: -0.005em;
}
.note-popover-close {
  background: transparent; border: 0; padding: 4px;
  color: var(--ink-3); cursor: pointer;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .1s ease, color .1s ease;
}
.note-popover-close:hover { background: var(--bg-3); color: var(--ink); }
.note-popover p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}
.row .badge {
  font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.row .badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: currentColor;
}
.row.ok  .badge { background: var(--ok-bg);  color: var(--ok); }
.row.err .badge { background: var(--err-bg); color: var(--err); }
.row mark {
  background: rgba(255, 106, 0, .22);
  color: inherit; padding: 0 2px; border-radius: 2px;
}

/* -------- 9 · Empty state ---------- */
.empty {
  padding: 48px 20px; text-align: center; color: var(--ink-3);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.empty-title { font-weight: 700; font-size: 18px; margin: 0 0 6px; color: var(--ink); }
.empty p { margin: 0 auto; max-width: 520px; }
.empty em {
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, "JetBrains Mono", monospace;
  font-size: 13px;
  background: var(--bg-3);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.empty-actions {
  margin-top: 22px;
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .12s ease;
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}
.btn-ghost:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* -------- 10 · Rules / footnote ---------- */
.rules {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.rules-title {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.rule {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.rule p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-pill.ok  { background: var(--ok-bg);  color: var(--ok);  }
.badge-pill.err { background: var(--err-bg); color: var(--err); }
.footnote {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-3);
  max-width: 720px;
  line-height: 1.6;
}
.footnote code {
  font-family: ui-monospace, SFMono-Regular, Menlo, "JetBrains Mono", monospace;
  background: var(--bg-3);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink);
}
.footnote strong { color: var(--ink); }

/* -------- 11 · Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 22px 22px 40px;
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  color: var(--ink-3); font-size: 13.5px;
}
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--brand); }
.footer-count b { color: var(--ink); }
.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .15s ease, background .15s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.footer-socials a:hover {
  color: var(--brand);
  background: rgba(255, 106, 0, .08);
}
.footer-socials a:active { transform: scale(.94); }
/* Keyboard focus ring — use both outline and box-shadow so the ring renders
   even when a global reset or browser default clobbers the outline shorthand. */
.footer-socials a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, .18);
  color: var(--brand);
}
.footer-socials a:focus:not(:focus-visible) { outline: none; }
.footer-socials svg { display: block; }

/* =============================================================
   12 · Embedded / modal mode
   When the app is loaded inside an iframe (openline.com modal),
   apply :root[data-embed] via the parent, or via ?embed=1 query.
   ============================================================= */
:root[data-embed="1"] .topbar { position: static; background: transparent; }
/* Footer is preserved in embedded / modal mode so social links stay visible */
:root[data-embed="1"] .footer { padding: 20px 24px; }
:root[data-embed="1"] .skip-link { display: none; }
:root[data-embed="1"] .hero { padding-top: 32px; }
:root[data-embed="1"] main { padding-bottom: 40px; }

/* -------- 13 · Responsive ---------- */
@media (max-width: 640px) {
  .topbar { padding: 12px 14px; gap: 10px; }
  .brand-sub { padding-left: 10px; margin-left: 4px; font-size: 13px; }
  .topnav { gap: 6px; }
  .topnav a { font-size: 13px; padding: 7px 10px; }
  .topnav a.cta { padding: 7px 12px; }
  .hero { padding: 40px 0 20px; }
  .hero-tag { font-size: 15.5px; }
  main { padding: 0 14px 60px; }
  .search-wrap { padding: 3px 3px 3px 16px; }
  .search-wrap input { padding: 18px 8px; font-size: 16px; }
  .search-wrap .clear { width: 40px; height: 40px; }
  .row { grid-template-columns: 12px 1fr auto; gap: 12px; padding: 12px 14px; }
  .row .name { font-size: 14.5px; }
  .row .badge { font-size: 11.5px; padding: 4px 9px; }
  .rules { margin-top: 40px; padding-top: 28px; }
  .hero-stats { gap: 6px; }
  .hero-stat { padding: 8px 12px; font-size: 12.5px; }
}

/* -------- 14 · Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------- 14 · FAQ ---------- */
.faq { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.faq .rules-title { margin-bottom: 18px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item[open] { border-color: #FFD9A8; box-shadow: 0 6px 18px -10px rgba(255, 106, 0, .35); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 18px;
  min-height: 44px;
  font-weight: 650;
  font-size: 15.5px;
  color: var(--ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute; right: 20px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--brand); }
.faq-item summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 14px; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.faq-item p a { color: var(--brand); }
.faq-item code { background: #F3F4F6; border-radius: 5px; padding: 1px 6px; font-size: 13px; }
:root[data-embed="1"] .faq { display: none; }
@media (max-width: 640px) {
  .faq { margin-top: 40px; padding-top: 28px; }
  .faq-item summary { font-size: 15px; padding: 14px 44px 14px 16px; }
  .faq-item p { padding: 0 16px 14px; }
}
