*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #FFFFFF;
  --bg-alt: #F3F6FC;
  --surface: #FFFFFF;
  --surface-2: #F7FAFF;
  --text: #171B21;
  --muted: #596273;
  --line: #DDE3EE;
  --line-strong: #C4CDDE;
  --accent: #0052FF;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(0,82,255,.08);
  --glow: rgba(0,82,255,.32);
  --ok: #0A7D4F;
  --ex: #C11F2E;
  --c-prv: #0052FF;
  --c-sec: #B4530A;
  --c-ai: #6D28D9;
  --grid: rgba(0,82,255,.055);
  --hdr-bg: rgba(255,255,255,.82);
  --shadow: 0 18px 50px -22px rgba(20,30,60,.22);

  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #07080A;
  --surface: #0D0E11;
  --surface-2: #101216;
  --text: #C9CDD4;
  --muted: #8D939E;
  --line: #22252B;
  --line-strong: #31353D;
  --accent: #FF8C00;
  --accent-ink: #140B00;
  --accent-soft: rgba(255,140,0,.10);
  --glow: rgba(255,140,0,.34);
  --ok: #43D69A;
  --ex: #FF6161;
  --c-prv: #4D9FFF;
  --c-sec: #FF8C00;
  --c-ai: #B79CFF;
  --grid: rgba(255,140,0,.05);
  --hdr-bg: rgba(0,0,0,.72);
  --shadow: 0 18px 50px -22px rgba(0,0,0,.75);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

[data-theme="light"] {
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  transition: background .45s ease, color .45s ease;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(1300px 900px at 50% -10%, #000, transparent 78%);
  mask-image: radial-gradient(1300px 900px at 50% -10%, #000, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(640px 420px at 78% -4%, var(--accent-soft), transparent 72%);
  transition: background .45s ease;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .045;
  background-repeat: repeat;
  background-size: 140px 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

[data-theme="dark"] .noise {
  opacity: .07;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::placeholder {
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 3000;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 8px;
}

.skip:focus {
  left: 8px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .74rem;
  letter-spacing: .24em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.kicker .idx {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .1em;
}

.lm {
  overflow: hidden;
}

.lm .lm-in {
  display: block;
  transform: translateY(115%);
  transition: transform 1s cubic-bezier(.22,1,.36,1) .08s;
}

[data-reveal].in .lm-in {
  transform: translateY(0);
}

.shead {
  margin-bottom: 54px;
}

.shead h2,
.sec-side h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: clamp(1.7rem,3.6vw,2.6rem);
  line-height: 1.12;
}

.shead .lead {
  max-width: 660px;
  color: var(--muted);
  margin-top: 16px;
  font-size: 1.04rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    background .22s ease,
    border-color .22s ease,
    color .22s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 34px -10px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 44px -10px var(--glow);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 16px;
  font-size: .85rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.linkish {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: .75rem;
  letter-spacing: .14em;
  cursor: pointer;
  padding: 0;
}

.linkish:hover {
  color: var(--text);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0s);
}

[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hdr-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .45s ease;
}

.hdr.scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 34px -22px rgba(0,0,0,.35);
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .06em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.brand b {
  color: var(--accent);
  font-weight: 700;
}

.brand-mark {
  color: var(--accent);
  flex: none;
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  padding: 9px 13px;
  font-size: .88rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.hdr-act {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tbtn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    border-color .2s,
    color .2s,
    transform .2s;
}

.tbtn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(12deg);
}

[data-theme="light"] .ic-moon {
  display: none;
}

[data-theme="dark"] .ic-sun {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform .3s;
}

.burger.on span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.burger.on span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mnav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 24px 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.mnav a {
  padding: 13px 4px;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.mnav .btn {
  margin-top: 14px;
  justify-content: center;
}

.mnav.open {
  display: flex;
}

.hero {
  padding: 104px 0 92px;
}

.hero-inner {
  max-width: 920px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: clamp(2.8rem,7.5vw,5.6rem);
  line-height: 1.03;
  margin: 8px 0 24px;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  color: var(--accent);
  text-shadow: 0 0 34px var(--glow);
}

.hero-sub {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 0;
}

.hero-meta {
  margin-top: 38px;
  font-size: .66rem;
  letter-spacing: .2em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 8px;
}

.hero-meta i {
  font-style: normal;
  color: var(--accent);
  margin: 0 16px;
  font-size: .5rem;
}

.sec {
  padding: 100px 0;
  position: relative;
}

.sec-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wm {
  position: absolute;
  top: 36px;
  right: 16px;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem,9vw,7.5rem);
  color: var(--accent);
  opacity: .06;
  line-height: 1;
}

.auto-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: start;
}

.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-2);
  margin-bottom: 22px;
}

.seg-btn {
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  transition: all .25s ease;
}

.seg-btn.is-on {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 16px -8px var(--glow);
}

.mode-body {
  min-height: 330px;
}

.mode-card {
  display: none;
}

.mode-card.is-on {
  display: block;
  animation: fadeUp .45s ease;
}

.mrow {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 12.5px 0;
  border-bottom: 1px dashed var(--line);
}

.mrow dt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

.mrow dd {
  font-size: .94rem;
}

.auto-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.fact {
  font-size: .68rem;
  letter-spacing: .08em;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
}

.fact::before {
  content: "▸ ";
  color: var(--accent);
}

.auto-fig {
  margin: 0;
}

.img-frame {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  aspect-ratio: 5/4;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowzoom 18s ease-in-out infinite alternate;
}

.auto-fig figcaption {
  margin-top: 12px;
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--muted);
}

.table-wrap {
  margin-top: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: .92rem;
}

.cmp th {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: left;
  padding: 15px 20px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.cmp td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cmp tbody tr:last-child td {
  border-bottom: 0;
}

.cmp tbody tr {
  background: transparent;
  transition: background .2s;
}

.cmp tbody tr:hover {
  background: var(--accent-soft);
}

.cmp td:nth-child(3) {
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  font-weight: 600;
}

.cmp td.neg {
  color: var(--muted);
}

.priv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.mani {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.mani b {
  font-size: .95rem;
  color: var(--accent);
  letter-spacing: .1em;
  padding-top: 3px;
}

.mani h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin-bottom: 6px;
}

.mani p {
  color: var(--muted);
  font-size: .95rem;
}

.pull {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 22px;
  margin: 30px 0 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.4;
  font-weight: 500;
}

.sovereignty-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 640px;
}

.sovereignty-table th {
  text-align: left;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: .06em;
}

.sovereignty-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}

.sovereignty-table tbody tr:last-child td {
  border-bottom: none;
}

.sovereignty-table tbody tr:hover td {
  background: var(--accent-soft);
}

.arrow-cell {
  width: 3rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--line);
  padding-left: 0;
  padding-right: 0;
}

.sec-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.sec-side {
  position: sticky;
  top: 104px;
}

.sec-side .lead {
  margin: 16px 0 30px;
}

.rail {
  list-style: none;
  margin-bottom: 30px;
}

.rail li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 4px 13px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .84rem;
  letter-spacing: .04em;
  color: var(--muted);
  cursor: pointer;
  transition:
    color .25s,
    padding-left .25s,
    border-color .25s;
}

.rail li .n {
  color: var(--line-strong);
  transition: color .25s;
}

.rail li:hover {
  color: var(--text);
}

.rail li.active {
  color: var(--text);
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  margin-left: -2px;
}

.rail li.active .n {
  color: var(--accent);
}

.step {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.step:first-child {
  border-top: 0;
  padding-top: 0;
}

.step-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.step .num {
  color: var(--accent);
  margin-right: 12px;
  font-size: 1rem;
}

.meter-label {
  font-size: .66rem;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}

.meter {
  height: 5px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin: 16px 0 18px;
  max-width: 340px;
}

.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 99px;
  transition: width 1.3s cubic-bezier(.22,1,.36,1) .25s;
}

.step.in .meter i {
  width: var(--w, 60%);
}

.step p {
  color: var(--muted);
  max-width: 560px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--muted);
  transition:
    border-color .2s,
    color .2s;
}

.step:hover .chip {
  border-color: var(--accent);
  color: var(--text);
}

.score-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 34px 90px -44px var(--glow);
}

.score-side {
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sc-label {
  font-size: .64rem;
  letter-spacing: .2em;
  color: var(--muted);
}

.sc-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.pbar {
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.pbar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .5s cubic-bezier(.22,1,.36,1);
}

.dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-strong);
  transform: rotate(45deg);
  transition: all .3s;
}

.dot.done {
  background: var(--accent);
  border-color: var(--accent);
}

.dot.cur {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.sc-note {
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

.score-side .linkish {
  align-self: flex-start;
}

.score-main {
  padding: 40px 44px;
  min-height: 430px;
}

.q-prompt {
  font-family: var(--font-display);
  font-size: clamp(1.2rem,2.4vw,1.55rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 24px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: .97rem;
  font-family: var(--font-body);
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color .2s, background .2s, transform .2s;
}

.opt:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

.opt .k {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted);
  min-width: 14px;
}

.opt.picked {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateX(5px);
}

.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
}

.q-hint {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  color: var(--muted);
}

.stage-in {
  animation: fadeUp .4s ease;
}

.res-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  align-items: center;
}

.dial-wrap {
  position: relative;
  width: 190px;
  margin: 0 auto;
}

.dial {
  width: 100%;
  display: block;
}

.d-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 8;
}

.d-val {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(.22,1,.36,1);
}

.dial-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dial-num b {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.dial-num span {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--muted);
  letter-spacing: .1em;
}

.dial-cap {
  margin-top: 10px;
  text-align: center;
  font-size: .6rem;
  letter-spacing: .22em;
  color: var(--muted);
}

.tier-tag {
  display: inline-block;
  font-size: .64rem;
  letter-spacing: .22em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 11px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.tier-name {
  font-family: var(--font-display);
  font-size: clamp(1.7rem,3.4vw,2.3rem);
  font-weight: 700;
  letter-spacing: .02em;
}

.tier-copy {
  color: var(--muted);
  margin-top: 10px;
  max-width: 520px;
}

.res-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.res-facts span {
  display: block;
  font-size: .62rem;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 6px;
}

.res-facts p {
  font-size: .9rem;
  color: var(--text);
}

.res-reco {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.res-reco-h {
  font-size: .64rem;
  letter-spacing: .22em;
  color: var(--muted);
  margin-bottom: 12px;
}

ol.res-reco {
  list-style: none;
  counter-reset: rec;
  display: grid;
  gap: 10px;
}

ol.res-reco li {
  counter-increment: rec;
  font-size: .95rem;
  padding-left: 34px;
  position: relative;
}

ol.res-reco li::before {
  content: "0" counter(rec);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent);
}

.res-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.filt {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.fbtn {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  padding: 9px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .25s ease;
}

.fbtn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.fbtn.on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 8px 20px -10px var(--glow);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.hcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
  cursor: pointer;
}

.hcard:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 24px 54px -26px var(--glow);
}

.hcard figure {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.hcard figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.22,1,.36,1);
}

.hcard:hover figure img {
  transform: scale(1.08);
}

.hcard .tag {
  margin: 16px 18px 0;
  align-self: flex-start;
}

.hbody {
  padding: 0 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.hbody h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
}

.hbody p {
  font-size: .87rem;
  color: var(--muted);
  flex: 1;
}

.hbody .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.hbody .meta .rd {
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s, transform .25s;
  white-space: nowrap;
}

.hcard:hover .meta .rd,
.hcard:focus-visible .meta .rd {
  opacity: 1;
  transform: none;
}

.hcard.hide {
  display: none;
}

.hcard.pop {
  animation: cardIn .45s ease both;
  animation-delay: var(--d, 0s);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.svc-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2.5rem;
  transition:
    transform .3s ease,
    box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.svc-prv {
  border-left: 4px solid var(--c-prv);
}

.svc-sec {
  border-left: 4px solid var(--c-sec);
}

.svc-ai {
  border-left: 4px solid var(--c-ai);
}

.svc-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: .75rem;
}

.svc-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--muted);
  padding: 4px 10px;
  background: var(--surface-2);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.svc-card > p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.scope-list {
  list-style: none;
  flex-grow: 1;
  padding-left: .75rem;
}

.scope-list li {
  font-size: .93rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: .85rem;
  position: relative;
}

.scope-list li::before {
  content: "▸";
  position: absolute;
  left: -1em;
  color: var(--accent);
}

.scope-list li strong {
  color: var(--text);
  font-weight: 600;
}

.outcome {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px dashed var(--line);
  font-weight: 500;
  line-height: 1.5;
}

.outcome p {
  margin-bottom: 14px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color .3s,
    color .3s,
    background .3s;
}

.cta i {
  font-style: normal;
  transition: transform .3s;
}

.cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.cta:hover i {
  transform: translateX(4px);
}

.proc {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.proc li {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  transition: background .25s;
}

.proc li:last-child {
  border-right: 0;
}

.proc li:hover {
  background: var(--accent-soft);
}

.proc .n {
  display: block;
  font-size: .68rem;
  color: var(--accent);
  letter-spacing: .14em;
  margin-bottom: 6px;
}

.proc b {
  font-family: var(--font-display);
  letter-spacing: .06em;
  font-size: .95rem;
}

.proc p {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 4px;
}

.book-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 60px;
  align-items: start;
}

.next {
  list-style: none;
  margin: 30px 0;
}

.next li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.next .mono {
  color: var(--accent);
  padding-top: 2px;
}

.next b {
  font-family: var(--font-display);
  font-size: 1rem;
}

.next p {
  font-size: .9rem;
  color: var(--muted);
}

.contact {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.contact .mono {
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--muted);
}

.contact a {
  color: var(--accent);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.book-tier {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 20px;
}

.book-tier[hidden] {
  display: none !important;
}

.form-card .fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-card .fgrid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

label span {
  text-transform: none;
  letter-spacing: .04em;
  opacity: .7;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition:
    border-color .2s,
    box-shadow .2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

#bookForm .btn-block {
  margin-top: 22px;
}

.f-note {
  margin-top: 14px;
  font-size: .66rem;
  letter-spacing: .08em;
  color: var(--muted);
}

.fok {
  display: none;
}

.fok.show {
  display: block;
  animation: fadeUp .5s ease;
}

.okicon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
}

.okicon circle,
.okicon path {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: draw 1.1s ease forwards .15s;
}

.okicon path {
  animation-delay: .5s;
}

.fok h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.fok p {
  color: var(--muted);
  font-size: .95rem;
}

footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-top: 64px;
}

footer .fgrid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
}

.f-brand p {
  color: var(--muted);
  font-size: .92rem;
  margin-top: 14px;
}

.f-badge {
  margin-top: 18px;
  font-size: .64rem;
  letter-spacing: .14em;
  color: var(--accent);
  border: 1px solid var(--accent);
  display: inline-block;
  padding: 7px 11px;
  border-radius: 5px;
}

.f-pgp {
  margin-top: 14px;
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--muted);
}

.f-h {
  font-size: .66rem;
  letter-spacing: .22em;
  color: var(--muted);
  margin-bottom: 14px;
}

.f-nav {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.f-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: .92rem;
  padding: 4px 0;
  transition: color .2s;
}

.f-nav a:hover {
  color: var(--accent);
}

.f-contact a {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 8px;
}

.f-contact a:hover {
  color: var(--accent);
}

.f-contact p {
  color: var(--muted);
  font-size: .9rem;
}

.f-top {
  color: var(--accent);
  font-size: .7rem;
  letter-spacing: .14em;
  margin-top: 18px;
}

.fbot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  font-size: .64rem;
  letter-spacing: .12em;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  padding: 4vh 1rem;
  overflow-y: auto;
}

.modal.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(5,8,12,.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

[data-theme="light"] .modal-bg {
  background: rgba(30,40,55,.45);
}

.modal-card {
  position: relative;
  width: min(760px, 100%);
  margin: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: clamp(1.6rem,4vw,2.8rem);
  box-shadow:
    0 40px 120px -30px rgba(0,0,0,.6),
    0 0 60px -30px var(--glow);
  animation: fadeUp .4s ease both;
}

.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: .66rem;
  letter-spacing: .14em;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
  transition:
    border-color .25s,
    color .25s;
}

.modal-x:hover {
  border-color: var(--ex);
  color: var(--ex);
}

.rd-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-right: 70px;
}

.rd-meta .m {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--muted);
}

.rd-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem,3vw,1.9rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}

.rd-body {
  display: grid;
  gap: 14px;
  align-content: start;
}

.rd-body p {
  color: var(--muted);
  line-height: 1.75;
  font-size: .97rem;
}

.rd-body p strong {
  color: var(--text);
}

.rd-h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .02em;
  margin-top: 6px;
}

.lbl {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

.rd-steps {
  list-style: none;
  counter-reset: st;
  display: grid;
  gap: 10px;
}

.rd-steps li {
  counter-increment: st;
  padding: 12px 14px 12px 48px;
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: .93rem;
  color: var(--text);
  line-height: 1.6;
}

.rd-steps li::before {
  content: "0" counter(st);
  position: absolute;
  left: 14px;
  top: 13px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent);
}

.rd-verdict {
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.rd-verdict .big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.5;
}

.rd-pc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.rd-pc h4 {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: 10px;
}

.rd-pc ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.rd-pc li {
  font-size: .9rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}

.rd-pc .good li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-family: var(--font-mono);
}

.rd-pc .bad li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--ex);
  font-family: var(--font-mono);
}

.rd-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slowzoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.09) translate(-1.4%, -1%);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 1060px) {
  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .auto-grid,
  .priv-grid,
  .book-grid {
    grid-template-columns: 1fr;
  }

  .sec-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sec-side {
    position: static;
  }

  .proc {
    grid-template-columns: 1fr 1fr;
  }

  .proc li:nth-child(2) {
    border-right: 0;
  }

  .proc li:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  footer .fgrid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .sec {
    padding: 72px 0;
  }

  .hero {
    padding: 76px 0 72px;
  }

  .score-shell {
    grid-template-columns: 1fr;
  }

  .score-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .score-main {
    padding: 30px 22px;
  }

  .res-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .res-facts,
  .rd-pc {
    grid-template-columns: 1fr;
  }

  .form-card .fgrid {
    grid-template-columns: 1fr;
  }

  .mrow {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hdr-cta {
    display: none;
  }

  .rd-meta {
    padding-right: 0;
    margin-top: 34px;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .proc {
    grid-template-columns: 1fr;
  }

  .proc li {
    border-right: 0;
  }

  .proc li:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .lm .lm-in {
    transform: none !important;
  }

  .img-frame img {
    animation: none;
  }

  .step.in .meter i {
    transition: none;
  }
}
/* ============================================================
   Mobile-friendly overrides
   Append to styles.css
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-wrap: break-word;
}

a,
button,
[role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Header ---------- */
@media (max-width: 640px) {
  .hdr {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hdr-in {
    height: 60px;
    gap: 10px;
  }

  .brand {
    font-size: .9rem;
    gap: 7px;
  }

  .tbtn {
    width: 44px;
    height: 44px;
  }

  .burger {
    width: 44px;
    height: 44px;
    justify-content: center;
  }

  .mnav {
    padding: 8px 16px 18px;
  }

  .mnav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 2px;
    font-size: .95rem;
  }
}

/* ---------- Hero + primary buttons ---------- */
@media (max-width: 640px) {
  .hero {
    padding: 64px 0 56px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 9.5vw, 3.2rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    margin-top: 24px;
  }

  .hero-cta .btn {
    justify-content: center;
  }

  .hero-meta {
    font-size: .6rem;
  }

  .hero-meta i {
    margin: 0 10px;
  }

  .btn {
    min-height: 48px;
  }

  .btn-sm {
    min-height: 40px;
  }
}

/* ---------- General spacing + tap targets ---------- */
@media (max-width: 760px) {
  .sec {
    padding: 70px 0;
  }

  .shead {
    margin-bottom: 36px;
  }

  .kicker {
    margin-bottom: 14px;
    gap: 10px;
  }

  .wm {
    top: 24px;
    right: 12px;
    font-size: clamp(3rem, 11vw, 5rem);
    opacity: .05;
  }

  .auto-grid,
  .priv-grid,
  .book-grid,
  .sec-grid {
    gap: 28px;
  }

  .mani {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .pull {
    font-size: 1.12rem;
    padding-left: 18px;
  }

  .rail li {
    min-height: 44px;
    align-items: center;
    padding: 12px 0;
  }

  .fbtn,
  .seg-btn,
  .linkish,
  .opt {
    min-height: 44px;
  }

  .fbtn,
  .seg-btn {
    padding: 10px 16px;
  }

  .table-wrap {
    margin-top: 34px;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .noise {
    opacity: .03;
  }
}

/* ---------- Services grid: missing responsive behavior ---------- */
@media (max-width: 1060px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .svc-card {
    padding: 1.5rem 1.25rem;
    border-radius: 10px;
  }

  .svc-card h3 {
    font-size: 1.28rem;
  }

  .svc-card > p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .scope-list li {
    margin-bottom: .75rem;
  }

  .outcome {
    padding-top: 1.25rem;
  }

  .cta {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}

/* ---------- Tables: first pass, remove forced width ---------- */
@media (max-width: 760px) {
  .cmp,
  .sovereignty-table {
    min-width: 0;
    font-size: .9rem;
  }

  .cmp th,
  .cmp td,
  .sovereignty-table th,
  .sovereignty-table td {
    padding: 12px 14px;
    overflow-wrap: break-word;
  }

  .cmp th:nth-child(2),
  .cmp td.arrow-cell,
  .sovereignty-table th:nth-child(2),
  .sovereignty-table td.arrow-cell {
    display: none;
  }

  .cmp th:nth-child(3),
  .cmp td:nth-child(3),
  .sovereignty-table th:nth-child(3),
  .sovereignty-table td:nth-child(3) {
    border-left: 2px solid var(--accent);
  }
}

/* ---------- Tables: stack into readable blocks on small screens ---------- */
@media (max-width: 600px) {
  .table-wrap {
    overflow: hidden;
  }

  .cmp thead,
  .sovereignty-table thead {
    display: none;
  }

  .cmp,
  .cmp tbody,
  .cmp tr,
  .cmp td,
  .sovereignty-table,
  .sovereignty-table tbody,
  .sovereignty-table tr,
  .sovereignty-table td {
    display: block;
    width: 100%;
  }

  .cmp tbody tr,
  .sovereignty-table tbody tr {
    background: transparent;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    margin: 0;
  }

  .cmp tbody tr:last-child,
  .sovereignty-table tbody tr:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .cmp td,
  .sovereignty-table td {
    background: var(--surface);
    border: 0;
    padding: 12px 14px;
  }

  /* Labels appear only when you add data-label attributes to the HTML */
  .cmp td[data-label]::before,
  .sovereignty-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .cmp td:nth-child(3),
  .sovereignty-table td:nth-child(3) {
    background: var(--accent-soft);
    border: 0;
    border-top: 2px solid var(--accent);
    margin-top: 8px;
    padding-top: 14px;
  }

  .cmp td.arrow-cell,
  .sovereignty-table td.arrow-cell {
    display: none;
  }

  .cmp tbody tr:hover,
  .sovereignty-table tbody tr:hover {
    background: transparent;
  }

  .cmp tbody tr:hover td:not(:nth-child(3)),
  .sovereignty-table tbody tr:hover td:not(:nth-child(3)) {
    background: var(--surface);
  }

  .cmp tbody tr:hover td:nth-child(3),
  .sovereignty-table tbody tr:hover td:nth-child(3) {
    background: var(--accent-soft);
  }
}

/* ---------- Automation figure ---------- */
@media (max-width: 640px) {
  .img-frame img {
    animation: none;
  }

  .auto-fig figcaption {
    font-size: .62rem;
  }
}

/* ---------- Scorecard ---------- */
@media (max-width: 640px) {
  .score-shell {
    border-radius: 14px;
  }

  .score-side {
    padding: 22px 18px;
    gap: 16px;
  }

  .score-main {
    padding: 26px 18px 28px;
    min-height: 0;
  }

  .q-prompt {
    font-size: 1.12rem;
    margin-bottom: 18px;
  }

  .opt {
    padding: 13px 14px;
    margin-bottom: 8px;
  }

  .opt .k {
    min-width: 18px;
  }

  .q-nav {
    margin-top: 16px;
  }

  .res-grid {
    gap: 24px;
  }

  .dial-wrap {
    width: 150px;
  }

  .dial-num b {
    font-size: 1.8rem;
  }

  .tier-name {
    font-size: 1.45rem;
  }

  .res-facts {
    margin-top: 18px;
    gap: 14px;
  }

  .res-reco {
    margin-top: 22px;
    padding-top: 16px;
  }

  .res-cta {
    margin-top: 22px;
  }

  .res-cta .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .res-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .res-cta .btn {
    width: 100%;
  }
}

/* ---------- Booking form ---------- */
@media (max-width: 640px) {
  .form-card {
    padding: 22px 16px;
    border-radius: 14px;
  }

  .book-tier {
    margin-bottom: 16px;
  }

  .form-card .fgrid {
    gap: 14px;
  }

  /* 16px prevents iOS Safari from auto-zooming into inputs */
  input,
  select,
  textarea {
    font-size: 16px;
    padding: 12px;
  }

  label {
    margin-bottom: 6px;
  }

  #bookForm .btn-block {
    margin-top: 18px;
  }

  .f-note {
    font-size: .62rem;
  }

  .fok h3 {
    font-size: 1.25rem;
  }
}

/* ---------- Modal / knowledge reader ---------- */
@media (max-width: 640px) {
  .modal {
    padding: 0;
  }

  .modal.open {
    align-items: stretch;
  }

  .modal-card {
    width: 100%;
    margin: 0;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 16px 24px;
  }

  .modal-x {
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 10px;
  }

  .rd-meta {
    margin-top: 40px;
    padding-right: 0;
  }

  .rd-title {
    margin-bottom: 14px;
  }

  .rd-body {
    gap: 12px;
  }

  .rd-steps li {
    padding: 12px 12px 12px 42px;
    font-size: .9rem;
  }

  .rd-verdict {
    padding: 14px;
  }

  .rd-pc {
    gap: 14px;
  }

  .rd-cta {
    margin-top: 22px;
    padding-top: 18px;
  }

  .rd-cta .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .rd-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .rd-cta .btn {
    width: 100%;
  }
}

/* ---------- Reduce sticky hover effects on touch devices ---------- */
@media (hover: none) {
  .btn:hover,
  .tbtn:hover,
  .hcard:hover,
  .svc-card:hover,
  .opt:hover {
    transform: none;
  }

  .cta:hover i {
    transform: none;
  }

  .cmp tbody tr:hover,
  .sovereignty-table tbody tr:hover {
    background: transparent;
  }

  .cmp tbody tr:hover td:not(:nth-child(3)),
  .sovereignty-table tbody tr:hover td:not(:nth-child(3)) {
    background: var(--surface);
  }

  .cmp tbody tr:hover td:nth-child(3),
  .sovereignty-table tbody tr:hover td:nth-child(3) {
    background: var(--accent-soft);
  }
}

/* ---------- Footer ---------- */
@media (max-width: 640px) {
  .fbot {
    justify-content: flex-start;
  }

  .f-top {
    margin-top: 14px;
  }

  .f-nav a,
  .f-contact a,
  .f-top {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

