@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jakarta-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jakarta-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/jakarta-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/jakarta-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/jakarta-800.woff2") format("woff2"); }
@font-face { font-family: "Noto Kufi Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/kufi-arabic-500.woff2") format("woff2"); }

:root {
  --navy: #011326;
  --navy-2: #0a2c42;
  --deep: #063553;
  --teal: #008e91;
  --teal-2: #00a4a7;
  --gold: #c28801;
  --gold-2: #dca62e;
  --ink: #011326;
  --body: #33475a;
  --muted: #5b6b73;
  --line: #dbe6e8;
  --tint: #eef5f6;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(1, 19, 38, 0.08);
  --max: 1200px;
  --font: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

.eyebrow { color: var(--gold); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .75rem; }
.lead { font-size: 1.15rem; color: var(--body); max-width: 40ch; }
.section-intro { max-width: 62ch; font-size: 1.05rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--deep); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a67400; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-text { font-weight: 800; letter-spacing: .14em; color: var(--navy); font-size: 1.1rem; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--teal); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { padding: 64px 0 80px; background: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: stretch; }
.hero-copy { align-self: center; }
.hero-logo { width: min(340px, 80%); margin-bottom: .75rem; }
.arabic-name { font-family: "Noto Kufi Arabic", Arial, sans-serif; color: var(--muted); font-size: 1rem; text-align: left; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 480px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #ffffff 0, #f4f9fa 38%, var(--tint) 70%); border: 1px solid var(--line); }
.hero-visual::before, .hero-visual::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(0, 142, 145, .18); transform: translate(-50%, -50%); }
.hero-visual::before { width: 78%; aspect-ratio: 1; }
.hero-visual::after { width: 104%; aspect-ratio: 1; border-color: rgba(194, 136, 1, .14); }
.emblem-wrap { position: relative; z-index: 1; width: min(300px, 62%); filter: drop-shadow(0 18px 30px rgba(1, 19, 38, .12)); }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: #c9d6db; }
.section--dark h2, .section--dark h3 { color: #fff; }
.lead-light { color: #c9d6db; font-size: 1.05rem; max-width: 60ch; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 2.5rem; }
.stat-card { background: var(--tint); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.stat-card p { font-size: .95rem; }
.stat-card .stat-num { font-size: 2.6rem; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: .6rem; }
.stat-card .source { margin-top: auto; margin-bottom: 0; padding-top: 1rem; font-size: .78rem; font-style: italic; color: var(--muted); }
.stat-card--dark { background: var(--navy); color: #c9d6db; }
.stat-card--dark h3 { color: #fff; }
.stat-card--dark .stat-num { color: var(--teal-2); }
.stat-card--dark .source { color: #9fb3bb; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 2.5rem 0 0; }
.about-stats dt { font-size: 2.6rem; font-weight: 800; color: var(--teal-2); line-height: 1; }
.about-stats dd { margin: .5rem 0 0; font-size: .92rem; }
.values-panel { background: var(--navy-2); border-radius: var(--radius); padding: 32px; }
.values { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 22px; }
.values li { display: flex; gap: 16px; align-items: center; }
.values strong { display: block; color: #fff; font-size: 1.02rem; }
.values span:not(.ico) { font-size: .92rem; }
.ico { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.ico svg, .service-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--teal-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2.5rem; }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; background: #fff; transition: box-shadow .2s, transform .2s; }
.service:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.service-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
.service-ico svg { stroke: #fff; width: 26px; height: 26px; }
.service-num { font-weight: 800; font-size: 1.4rem; color: #a9c1c4; }
.service > p { font-size: .95rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 26px; font-size: .93rem; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.service .service-meta { margin-top: auto; margin-bottom: 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 700; color: var(--deep); }
.service--cta { background: var(--navy); border-color: var(--navy); color: #c9d6db; justify-content: center; }
.service--cta h3 { color: #fff; font-size: 1.4rem; }
.service--cta .btn { align-self: flex-start; margin-top: .5rem; }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2.5rem; }
.sectors { grid-template-columns: repeat(12, 1fr); }
.sectors .sector { grid-column: span 3; }
.sectors .sector:nth-child(n+5) { grid-column: span 4; }
.sector { background: #fff; border-radius: var(--radius); padding: 26px; }
.sector p { margin: 0 0 .5rem; font-size: .95rem; }
.sector .k { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: .75rem 0 .2rem; }
.sector .k--teal { color: var(--teal); }
.sector .f { font-weight: 700; color: var(--ink); }

/* Models */
.models { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 2.5rem; }
.model { background: var(--tint); border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; }
.model .tag { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
.model h3 { font-size: 1.12rem; }
.model .for { font-size: .86rem; font-style: italic; color: var(--muted); min-height: 3.6em; }
.model .ticks li { font-size: .88rem; }
.model .price { margin: auto 0 0; text-align: center; background: #fff; border-radius: 999px; padding: .55rem .75rem; font-weight: 700; font-size: .85rem; color: var(--deep); }
.model--featured { background: var(--navy); }
.model--featured .tag { color: var(--gold-2); }
.model--featured h3 { color: #fff; }
.model--featured .for { color: #a9c1c4; }
.model--featured .ticks li { color: #fff; }
.model--featured .ticks li::before { background-color: var(--gold); }
.model--featured .price { background: var(--teal); color: #fff; }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2.5rem; }
.why article { background: var(--navy-2); border-radius: var(--radius); padding: 26px; }
.why h3 { position: relative; padding-left: 22px; }
.why h3::before { content: ""; position: absolute; left: 0; top: .4em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-2); }
.why p { margin: 0; font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps strong { display: block; color: var(--ink); }
.steps span { font-size: .93rem; }
.contact-card { background: var(--tint); border-radius: var(--radius); padding: 24px; }
.contact-card p { margin: 0 0 .35rem; }
.contact-card a { font-weight: 700; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-name { font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.muted { color: var(--muted); font-size: .92rem; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 6px; padding: 0; }
.field label span, .consent span span { color: var(--gold); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: .75rem .9rem; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,142,145,.15); }
.is-invalid { border-color: #c0392b !important; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .92rem; margin: 0; cursor: pointer; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; margin: 4px 0 20px; cursor: pointer; }
.consent input { margin-top: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-size: .92rem; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #c0392b; }

/* Footer */
.site-footer { background: var(--navy); color: #9fb3bb; padding: 56px 0 40px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; align-items: center; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-nav a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--gold-2); }
.footer-legal p { margin: 0 0 .25rem; }

/* Responsive */
@media (max-width: 1080px) {
  .models { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { background: #fff; padding: 48px 0 64px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; min-height: 260px; }
  .emblem-wrap { width: 160px; }
  .services, .sectors, .why { grid-template-columns: repeat(2, 1fr); }
  .models { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .stats-grid, .services, .sectors, .why, .models, .field-row, .checks, .about-stats { grid-template-columns: 1fr; }
  .about-stats { gap: 24px; }
  .contact-form { padding: 22px; }
  .model .for { min-height: 0; }
  .hero-actions .btn { width: 100%; }
}

/* Threat canvas */
.threat-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { transform: none; transition: opacity .6s ease; } }

/* Terminal */
.terminal-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.term-legend { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 10px; font-size: .95rem; }
.term-legend li { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--info { background: #4fb6d8; } .dot--warn { background: var(--gold-2); } .dot--ok { background: #2ecc8f; }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.terminal { background: #050d18; border: 1px solid #1c3448; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #0b1a2a; border-bottom: 1px solid #1c3448; }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a4458; }
.terminal-bar span:nth-child(1) { background: #e0655b; } .terminal-bar span:nth-child(2) { background: #e3b341; } .terminal-bar span:nth-child(3) { background: #3fbf7f; }
.terminal-bar p { margin: 0 0 0 10px; font-size: .78rem; color: #7f97a8; font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.terminal-body { list-style: none; margin: 0; padding: 20px 22px 24px; min-height: 420px; font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .84rem; line-height: 1.75; color: #cfe3ea; }
.terminal-body li { white-space: pre-wrap; word-break: break-word; }
.terminal-body .t-cmd { color: #e8f3f6; margin-top: 8px; }
.terminal-body .t-cmd::before { content: "$ "; color: var(--teal-2); }
.terminal-body .t-info { color: #4fb6d8; }
.terminal-body .t-info::before { content: "[i] "; }
.terminal-body .t-warn { color: var(--gold-2); }
.terminal-body .t-warn::before { content: "[!] "; }
.terminal-body .t-ok { color: #2ecc8f; }
.terminal-body .t-ok::before { content: "[\2713] "; }
.js .terminal-body li.pending { display: none; }
.terminal-body li.typing::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--teal-2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Journey */
.journey { margin-top: 2.5rem; }
.journey-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.journey-tabs button { font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--ink); background: var(--tint); border: 2px solid transparent; border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; text-align: left; }
.journey-tabs button span { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-weight: 800; flex: none; transition: background .2s, color .2s; }
.journey-tabs button:hover { border-color: var(--teal); }
.journey-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.journey-tabs button[aria-selected="true"] span { background: var(--teal); color: #fff; }
.journey-progress { height: 4px; background: var(--line); border-radius: 4px; margin: 18px 0 0; overflow: hidden; }
.journey-progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--teal), var(--gold-2)); transition: width .45s ease; }
.journey-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 32px; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); animation: fadeUp .4s ease; }
.journey-panel[hidden] { display: none; }
.journey-panel h3 { font-size: 1.5rem; }
.journey-panel p { font-size: 1.02rem; }
.journey-out { background: var(--tint); border-radius: 12px; padding: 22px; }
.journey-out .k { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; }
.journey-time { margin: 0; font-weight: 700; color: var(--deep); font-size: .9rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Footer extras */
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { color: var(--gold-2); }
.footer-note { color: var(--gold-2); font-weight: 600; }

@media (max-width: 1180px) { .site-nav { gap: 1.1rem; } .site-nav a:not(.btn) { font-size: .9rem; } }
@media (max-width: 900px) {
  .terminal-grid, .secure-grid, .journey-panel { grid-template-columns: 1fr; gap: 28px; }
  .journey-tabs { grid-template-columns: repeat(2, 1fr); }
  .terminal-body { min-height: 0; font-size: .78rem; }
}
@media (max-width: 600px) {
  .secure-list { grid-template-columns: 1fr; }
  .journey-panel { padding: 22px; }
  .journey-tabs button { padding: 12px; font-size: .95rem; }
}

/* Policy pages */
.policy { padding-top: 64px; }
.policy-body { max-width: 780px; }
.policy-body h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.policy-body h2 { font-size: 1.3rem; margin-top: 2rem; }
.policy-body ul { padding-left: 1.2rem; }
.policy-body li { margin-bottom: .4rem; }
.policy-meta { color: var(--muted); font-size: .9rem; }

/* ===== Nav: free tools link ===== */
.site-nav a.nav-tools { color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.site-nav a.nav-tools::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 3px rgba(220,166,46,.2); }
.site-nav a.nav-tools[aria-current="page"] { color: var(--navy); }

/* ===== Tools page ===== */
.tools-hero { padding: 64px 0 24px; background: linear-gradient(180deg, var(--tint), #fff); }
.tools-hero h1 { max-width: 18ch; }
.tools-hero .lead { max-width: 60ch; }
.trust-row { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-row li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--deep); }
.trust-row li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.tools-section { padding-top: 40px; }
.tool-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-tab { font: inherit; text-align: left; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); border: 2px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s, background .2s; }
.tool-tab:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); }
.tool-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; transition: background .2s; }
.tool-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-tab[aria-selected="true"] .tool-ico { background: var(--teal); }
.tool-tab[aria-selected="true"] .tool-ico svg { stroke: #fff; }
.tool-name { font-weight: 800; color: var(--ink); font-size: 1.02rem; line-height: 1.25; }
.tool-sub { font-size: .82rem; color: var(--muted); }
.tool-tab[aria-selected="true"] .tool-name { color: #fff; }
.tool-tab[aria-selected="true"] .tool-sub { color: #a9c1c4; }
.tool-panel { margin-top: 28px; border: 1px solid var(--line); border-radius: 20px; padding: 36px; background: #fff; animation: fadeUp .35s ease; }
.tool-panel[hidden] { display: none; }
.tool-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.tool-head p { max-width: 72ch; }
.tool-disclaimer, .tool-note { margin-top: 24px; font-size: .86rem; color: var(--muted); }
.field-label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 8px; }

/* Quiz */
.quiz { margin-top: 24px; }
.quiz-progress { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold-2)); transition: width .4s ease; }
.quiz-card { margin-top: 22px; background: var(--tint); border-radius: 16px; padding: 32px; }
.quiz-card.swap { animation: fadeUp .3s ease; }
.quiz-count { font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: .25rem; }
.quiz-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; }
.quiz-q { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 60ch; outline: none; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.25rem; }
.quiz-opt { font: inherit; font-weight: 700; font-size: .95rem; padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .15s; }
.quiz-opt:hover { border-color: var(--teal); transform: translateY(-1px); }
.quiz-opt.is-chosen { background: var(--teal); border-color: var(--teal); color: #fff; }
.quiz-nav { margin-top: 1.5rem; }
.quiz-nav .btn[disabled] { opacity: .35; cursor: default; }

/* Results */
.results { margin-top: 24px; animation: fadeUp .45s ease; }
.res-top { display: grid; grid-template-columns: auto 1.1fr 1.2fr; gap: 32px; align-items: center; }
.score-ring { position: relative; width: 170px; height: 170px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--teal); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num { font-size: 2.3rem; font-weight: 800; color: var(--ink); line-height: 1; }
.ring-label { font-size: .78rem; color: var(--muted); margin-top: 6px; font-weight: 600; }
.res-band { display: inline-block; font-weight: 800; padding: .35rem .9rem; border-radius: 999px; font-size: .92rem; margin-bottom: .75rem; }
.band-good { background: #e3f6ef; color: #12795a; }
.band-mid { background: #fdf3dc; color: #8a6200; }
.band-low { background: #fbe6e4; color: #a8322a; }
.res-small { font-size: .82rem; color: var(--muted); }
.res-domains { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 6px; }
.res-domains li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.res-domains strong { color: var(--deep); }
.res-chart { min-width: 0; }
.radar { width: 100%; max-width: 420px; margin: 0 auto; display: block; overflow: visible; }
.radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-label { font-size: 13px; font-weight: 700; fill: var(--deep); font-family: var(--font); }
.radar-shape { transform-origin: 210px 210px; transform-box: view-box; animation: radarIn .9s cubic-bezier(.2,.8,.2,1) both; }
.radar-area { fill: rgba(0,142,145,.22); stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; }
.radar-dot { fill: var(--gold-2); stroke: #fff; stroke-width: 2; }
@keyframes radarIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.res-gaps { margin-top: 32px; }
.res-gaps ol { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 12px; }
.res-gaps li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: var(--tint); }
.res-gaps li p { margin: .2rem 0 0; font-size: .93rem; }
.gap-tag { flex: none; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 6px; min-width: 64px; text-align: center; }
.gap-high .gap-tag { background: #fbe6e4; color: #a8322a; }
.gap-mid .gap-tag { background: #fdf3dc; color: #8a6200; }
.res-cta { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--navy); color: #c9d6db; border-radius: 16px; padding: 26px 28px; }
.res-cta strong { color: #fff; font-size: 1.1rem; }
.res-cta p { margin: .3rem 0 0; font-size: .93rem; max-width: 60ch; }
.res-cta input { margin-top: 12px; max-width: 340px; background: #fff; }
.res-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.res-cta .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.res-cta .btn-ghost:hover { background: #fff; color: var(--navy); }
.res-note { margin-top: 14px; font-size: .82rem; color: var(--muted); }
.fbars { display: grid; gap: 14px; }
.fbar { display: grid; grid-template-columns: 82px 1fr 48px; gap: 12px; align-items: center; }
.fbar-name { font-weight: 700; font-size: .92rem; color: var(--ink); }
.fbar-track { height: 12px; background: var(--line); border-radius: 12px; overflow: hidden; }
.fbar-fill { display: block; height: 100%; width: 0; border-radius: 12px; background: linear-gradient(90deg, var(--teal), var(--teal-2)); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.fbar-val { font-size: .9rem; color: var(--deep); text-align: right; }

/* Password */
.pass-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; margin-top: 24px; align-items: start; }
.pass-box { background: var(--tint); border-radius: 16px; padding: 28px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 84px; font-size: 1.1rem; letter-spacing: .02em; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: inherit; font-size: .85rem; font-weight: 700; color: var(--teal); background: transparent; border: 0; padding: 6px 10px; cursor: pointer; border-radius: 8px; }
.pw-toggle:hover { background: var(--tint); }
.meter { height: 10px; background: #dbe6e8; border-radius: 10px; margin-top: 14px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: 10px; transition: width .35s ease, background .35s ease; }
.meter .lv0 { background: #d6453f; } .meter .lv1 { background: #e2823a; } .meter .lv2 { background: #e3b341; } .meter .lv3 { background: #3aa57a; } .meter .lv4 { background: var(--teal); }
.pw-summary { margin-top: 14px; }
.pw-rating { font-weight: 800; font-size: 1.15rem; color: var(--ink); margin-bottom: .2rem; }
.pw-rating.lv0 { color: #b8352f; } .pw-rating.lv1 { color: #b9621d; } .pw-rating.lv2 { color: #8a6200; } .pw-rating.lv3 { color: #1f7f58; } .pw-rating.lv4 { color: var(--teal); }
.pw-time { font-size: .9rem; color: var(--body); min-height: 1.4em; }
.pw-checks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.pw-checks li { position: relative; padding-left: 26px; font-size: .9rem; color: var(--muted); transition: color .2s; }
.pw-checks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #b8c9cc; box-sizing: border-box; transition: background .2s, border-color .2s; }
.pw-checks li.ok { color: var(--ink); }
.pw-checks li.ok::before { border-color: var(--teal); background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.pw-feedback { margin: 14px 0 0; padding-left: 1.1rem; font-size: .9rem; color: #8a4b12; }
.pw-feedback:empty { display: none; }
.breach { margin-top: 20px; padding-top: 20px; border-top: 1px solid #d3e0e2; }
.breach-result { margin: 12px 0 0; font-weight: 600; font-size: .93rem; }
.breach-result.good { color: #1f7f58; } .breach-result.bad { color: #b8352f; } .breach-result.warn { color: #8a6200; }
.how-box h3 { font-size: 1.05rem; }
.how-steps { padding-left: 1.2rem; margin: 0 0 1rem; display: grid; gap: 8px; font-size: .93rem; }
.how-note { font-size: .88rem; background: var(--tint); border-radius: 10px; padding: 12px 14px; }

/* Email */
.mail-form { margin-top: 24px; max-width: 640px; }
.mail-row { display: flex; gap: 10px; }
.mail-row input { flex: 1; font-size: 1.05rem; }
.mail-hint { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.mail-results { margin-top: 24px; }
.mail-error { color: #b8352f; font-weight: 600; }
.mail-loading { display: flex; align-items: center; gap: 12px; color: var(--deep); font-weight: 600; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mail-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; animation: fadeUp .4s ease; }
.grade { width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; color: #fff; flex: none; animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.grade-A { background: #1f9d6b; } .grade-B { background: var(--teal); } .grade-C { background: #d39b1a; } .grade-D { background: #e2823a; } .grade-F { background: #d6453f; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mail-domain { font-weight: 800; font-size: 1.3rem; color: var(--ink); margin: 0; }
.mail-verdict { margin: .2rem 0 0; }
.chk-list { display: grid; gap: 12px; }
.chk { display: flex; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; animation: fadeUp .4s ease both; }
.chk:nth-child(2) { animation-delay: .08s; } .chk:nth-child(3) { animation-delay: .16s; } .chk:nth-child(4) { animation-delay: .24s; }
.chk-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px; background-position: center; background-size: 60%; background-repeat: no-repeat; }
.chk-pass .chk-ico { background-color: #1f9d6b; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chk-warn .chk-ico { background-color: #e3a72f; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v5.5M8 12v.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.chk-fail .chk-ico { background-color: #d6453f; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.chk-info .chk-ico { background-color: var(--deep); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 7v5M8 4v.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.chk-body { min-width: 0; flex: 1; }
.chk-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.chk-head strong { color: var(--ink); font-size: 1.02rem; }
.chk-badge { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 6px; }
.chk-pass .chk-badge { background: #e3f6ef; color: #12795a; } .chk-warn .chk-badge { background: #fdf3dc; color: #8a6200; } .chk-fail .chk-badge { background: #fbe6e4; color: #a8322a; } .chk-info .chk-badge { background: var(--tint); color: var(--deep); }
.chk-body p { margin: .35rem 0 0; font-size: .93rem; }
.chk-record { display: block; margin-top: 8px; padding: 8px 10px; background: #f3f7f8; border-radius: 8px; font-size: .8rem; color: var(--deep); overflow-wrap: anywhere; }
.explain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.explain-grid article { background: var(--tint); border-radius: 12px; padding: 20px; }
.explain-grid p { font-size: .9rem; margin: 0; }
.explain-grid code, .tool-head code { background: #fff; padding: 1px 6px; border-radius: 5px; font-size: .85em; }

/* Print report (hidden on screen) */
.print-report { display: none; }
@media print {
  body.printing > *:not(main), body.printing main > *:not(.print-report) { display: none !important; }
  body.printing .print-report { display: block !important; color: #011326; font-family: var(--font); }
  @page { size: A4; margin: 16mm; }
  .pr-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #c28801; padding-bottom: 12px; }
  .pr-logo { width: 190px; }
  .pr-meta { display: grid; text-align: right; font-size: 11px; color: #33475a; }
  .pr-meta strong { font-size: 13px; color: #011326; }
  .print-report h1 { font-size: 22px; margin: 18px 0 10px; }
  .print-report h2 { font-size: 15px; margin: 18px 0 8px; color: #063553; }
  .pr-score { display: flex; gap: 22px; align-items: center; background: #eef5f6; border-radius: 10px; padding: 14px 18px; }
  .pr-score > div:first-child { display: grid; text-align: center; font-size: 11px; color: #5b6b73; min-width: 110px; }
  .pr-big { font-size: 34px; font-weight: 800; color: #008e91; line-height: 1.1; }
  .pr-score p { margin: 4px 0 0; font-size: 12px; }
  .pr-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .pr-table th, .pr-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #dbe6e8; }
  .pr-table th { background: #011326; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pr-bar { display: inline-block; width: 140px; height: 9px; background: #dbe6e8; border-radius: 9px; vertical-align: middle; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pr-bar-fill { display: block; height: 100%; background: #008e91; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pr-w0 { width: 2%; } .pr-w10 { width: 10%; } .pr-w20 { width: 20%; } .pr-w30 { width: 30%; } .pr-w40 { width: 40%; } .pr-w50 { width: 50%; } .pr-w60 { width: 60%; } .pr-w70 { width: 70%; } .pr-w80 { width: 80%; } .pr-w90 { width: 90%; } .pr-w100 { width: 100%; }
  .pr-list { font-size: 12px; padding-left: 18px; }
  .pr-list li { margin-bottom: 6px; }
  .pr-note { font-size: 10px; color: #5b6b73; margin-top: 16px; }
  .pr-foot { display: flex; justify-content: space-between; border-top: 1px solid #dbe6e8; margin-top: 18px; padding-top: 8px; font-size: 10px; color: #5b6b73; }
  .pr-score, .pr-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 1024px) {
  .tool-picker { grid-template-columns: repeat(2, 1fr); }
  .res-top, .res-top--csf { grid-template-columns: auto 1fr; }
  .res-chart { grid-column: 1 / -1; }
  .pass-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tool-picker { grid-template-columns: 1fr; }
  .tool-panel { padding: 22px; border-radius: 16px; }
  .quiz-card { padding: 22px; }
  .quiz-opt { flex: 1 1 100%; }
  .res-top, .res-top--csf { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .res-domains { text-align: left; width: 100%; }
  .explain-grid, .pw-checks { grid-template-columns: 1fr; }
  .mail-row { flex-direction: column; }
  .fbar { grid-template-columns: 72px 1fr 44px; }
}

/* ===== Threat map ===== */
.tool-picker { grid-template-columns: repeat(5, 1fr); }
.tool-tab { padding: 16px; column-gap: 12px; }
.tool-ico { width: 44px; height: 44px; }
.map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.map-status { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: .5rem .9rem; border-radius: 999px; background: #e3f6ef; color: #12795a; font-weight: 700; font-size: .85rem; }
.map-status.is-sample { background: #fdf3dc; color: #8a6200; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(31,157,107,.5); } 70% { box-shadow: 0 0 0 9px rgba(31,157,107,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,107,0); } }
.map-stage { position: relative; margin-top: 24px; border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #0b2a40 0%, #061a2c 55%, #020d19 100%); aspect-ratio: 1000 / 540; border: 1px solid #12324a; }
.world { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.country { fill: #11344b; stroke: #1f4f6b; stroke-width: .5; transition: fill .4s ease; }
.country:hover { fill: #1b4d6a; }
.country.is-target.t1 { fill: #0c5560; }
.country.is-target.t2 { fill: #0a727a; }
.country.is-target.t3 { fill: #008e91; }
.country--om { stroke: var(--gold-2); stroke-width: 1.4; }
.om-label { fill: var(--gold-2); font: 700 11px var(--font); letter-spacing: .06em; pointer-events: none; }
.map-tip { position: absolute; z-index: 3; background: rgba(1,19,38,.95); border: 1px solid #1f4f6b; color: #fff; padding: 8px 12px; border-radius: 10px; font-size: .82rem; pointer-events: none; display: grid; gap: 2px; min-width: 150px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.map-tip[hidden] { display: none; }
.tip-name { font-weight: 800; }
.tip-row { color: #c9d6db; }
.tip-muted { color: #7f97a8; }
.map-legend { position: absolute; left: 14px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: #c9d6db; background: rgba(1,19,38,.7); padding: 6px 12px; border-radius: 999px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg-origin { background: #f0605a; } .lg-target { background: #008e91; } .lg-om { border: 2px solid var(--gold-2); }
.map-lists { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; margin-top: 24px; }
.map-lists section { background: var(--tint); border-radius: 14px; padding: 20px; }
.map-lists h3 { font-size: 1rem; margin-bottom: 12px; }
.rank, .corridors { list-style: none; padding: 0; margin: 0; counter-reset: r; display: grid; gap: 9px; }
.rank li { counter-increment: r; display: grid; grid-template-columns: 22px 1fr auto; grid-template-rows: auto 6px; column-gap: 8px; row-gap: 4px; font-size: .88rem; }
.rank li::before { content: counter(r); grid-row: span 2; font-weight: 800; color: var(--muted); font-size: .8rem; }
.rank-name { color: var(--ink); font-weight: 600; }
.rank-val { font-weight: 700; color: var(--deep); font-size: .84rem; }
.rank-bar { grid-column: 2 / 4; height: 6px; background: #d6e3e5; border-radius: 6px; overflow: hidden; }
.rank-fill { display: block; height: 100%; width: 0; border-radius: 6px; background: #e0605a; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.rank--target .rank-fill { background: var(--teal); }
.rank li.is-om .rank-name, .corridors li.is-om .cor-route { color: var(--gold); font-weight: 800; }
.corridors li { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; padding-bottom: 7px; border-bottom: 1px dashed #cfdcdf; }
.cor-route { color: var(--ink); }
.cor-val { font-weight: 700; color: var(--deep); white-space: nowrap; }
.map-note { margin-top: 16px; font-size: .82rem; color: var(--muted); }
@media (max-width: 1180px) { .tool-picker { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) { .map-lists { grid-template-columns: 1fr 1fr; } .map-lists section:last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .tool-picker { grid-template-columns: 1fr; }
  .map-lists { grid-template-columns: 1fr; }
  .map-stage { aspect-ratio: 1000 / 600; }
  .map-legend { font-size: .7rem; gap: 8px; left: 8px; bottom: 8px; }
  .om-label { font-size: 14px; }
}

@media (max-width: 1024px) { .sectors { grid-template-columns: 1fr 1fr; } .sectors .sector, .sectors .sector:nth-child(n+5) { grid-column: auto; } .sectors .sector:last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .sectors { grid-template-columns: 1fr; } .sectors .sector:last-child { grid-column: auto; } }
