/* Asset Security Academy — static site stylesheet (no external dependencies) */
:root {
  --navy: #0b1b2b;
  --navy-2: #123a52;
  --ink: #1a2433;
  --muted: #5b6778;
  --line: #e3e8ef;
  --bg: #f6f8fb;
  --card: #ffffff;
  --accent: #0fa38a;
  --accent-dk: #0b7f6c;
  --accent-bg: #ecfbf7;
  --warn: #9a3412;
  --warn-bg: #fff6ed;
  --warn-line: #fed7aa;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 27, 43, .08);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent-dk); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; color: var(--ink); padding: 8px 12px; z-index: 100; border-radius: 6px; }

/* Header */
header.site { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .2px; line-height: 1.2; }
.brand:hover { color: #fff; }
.brand small { display: block; font-weight: 400; font-size: 12px; opacity: .7; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav a.link { color: #d7e0ea; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a.link:hover, .nav a.link[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
.menu-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: 6px 12px; font-size: 20px; cursor: pointer; }
@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav ul { display: none; position: absolute; top: 68px; left: -20px; right: -20px; background: var(--navy); flex-direction: column; align-items: stretch; padding: 10px 20px 22px; gap: 2px; }
  .nav ul.open { display: flex; }
  .nav ul .btn { text-align: center; margin-top: 8px; }
}

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 13px 22px; border-radius: 10px; font-weight: 600; border: 0; cursor: pointer; font-size: 16px; font-family: inherit; transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--accent-dk); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.55); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.outline { background: transparent; color: var(--accent-dk); border: 1.5px solid var(--accent); }
.btn.outline:hover { background: var(--accent-bg); color: var(--accent-dk); }
.btn.sm { padding: 8px 14px; font-size: 15px; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 84px 0 92px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -80px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(15,163,138,.28), transparent 70%); pointer-events: none; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 18px; max-width: 840px; }
.hero h1 em { font-style: normal; color: #5eead4; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 20px); color: #c9d6e3; max-width: 700px; margin: 0; }
.page-hero { padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 44px); }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.hero .eyebrow { color: #5eead4; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding: 0; list-style: none; }
.pill { font-size: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 6px 12px; border-radius: 99px; color: #dbe6f0; }

/* Sections */
section { padding: 76px 0; }
section.tight { padding: 48px 0; }
.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--navy); color: #fff; }
.dark p { color: #c9d6e3; }
.section-head { max-width: 740px; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.dark .section-head p { color: #c9d6e3; }

.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 400px) { .g3, .g2, .g4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0 0 10px; }

/* Method cards */
.method { display: flex; flex-direction: column; }
.method .num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-bg); color: var(--accent-dk); font-weight: 800; margin-bottom: 12px; }
.method .why { color: var(--muted); }
.method .do { background: var(--accent-bg); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 8px; font-size: 15px; margin-top: auto; }
.method .do strong { color: var(--accent-dk); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* Interactive: address game */
.game { max-width: 820px; margin: 0 auto; }
.addr-target { background: var(--navy); color: #fff; border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.addr-target .label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #8fb3c9; }
.addr-short { font-family: var(--mono); font-size: 22px; font-weight: 700; color: #5eead4; }
.addr-options { display: grid; gap: 10px; }
.addr-opt { text-align: left; font-family: var(--mono); font-size: clamp(12px, 1.9vw, 16px); background: #fff; border: 1.5px solid #cdd5df; border-radius: 10px; padding: 14px 16px; cursor: pointer; word-break: break-all; color: var(--ink); }
.addr-opt:hover:not(:disabled) { border-color: var(--accent); }
.addr-opt.correct { border-color: #16a34a; background: #f0fdf4; }
.addr-opt.wrong { border-color: #dc2626; background: #fef2f2; }
.addr-opt mark { background: #fde68a; color: inherit; padding: 0 1px; border-radius: 2px; }
.game-feedback { margin-top: 16px; min-height: 24px; }

/* Interactive: quiz */
.quiz { max-width: 820px; margin: 0 auto; }
.q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.q:last-of-type { border-bottom: 0; }
.q p { margin: 0; }
.yn { display: flex; gap: 6px; flex-shrink: 0; }
.yn input { position: absolute; opacity: 0; pointer-events: none; }
.yn label { border: 1.5px solid #cdd5df; border-radius: 8px; padding: 6px 14px; cursor: pointer; font-weight: 600; font-size: 15px; user-select: none; }
.yn input:checked + label { background: var(--accent); border-color: var(--accent); color: #fff; }
.yn input.no:checked + label { background: #475569; border-color: #475569; }
.yn input:focus-visible + label { outline: 3px solid rgba(15,163,138,.35); }
@media (max-width: 560px) { .q { flex-direction: column; align-items: flex-start; } }
.result { margin-top: 22px; padding: 22px; border-radius: 12px; background: var(--accent-bg); border: 1px solid #b7ebdf; display: none; }
.result.show { display: block; }
.score { font-size: 40px; font-weight: 800; color: var(--accent-dk); line-height: 1; }
.meter { height: 10px; background: #d7e9e4; border-radius: 99px; overflow: hidden; margin: 12px 0 14px; }
.meter span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .5s ease; }

/* Checklist preview */
.cat { display: flex; gap: 14px; align-items: flex-start; }
.cat .ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; }
.cat h3 { font-size: 18px; margin: 0 0 4px; }
.cat p { color: var(--muted); font-size: 15px; margin: 0; }
.count { font-size: 13px; font-weight: 700; color: var(--accent-dk); }
.locked { position: relative; }
.locked ul { margin: 0; padding-left: 20px; }
.blur { filter: blur(4px); user-select: none; }

/* Steps */
.steps { counter-reset: s; }
.step { position: relative; padding-left: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 6px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }
.dark .step p { color: #c9d6e3; }

/* Forms */
.form { padding: 30px; }
.form h3 { font-size: 22px; }
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #cdd5df; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,163,138,.18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dark .card { color: var(--ink); }

/* Notices */
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); padding: 16px 18px; border-radius: 12px; font-size: 16px; }
.notice strong { color: #7c2d12; }
.notice.info { background: var(--accent-bg); border-color: #b7ebdf; color: #134e48; }
.benefits { list-style: none; padding: 0; margin: 20px 0; }
.benefits li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.benefits li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Prose (articles, legal) */
.prose { max-width: 800px; }
.prose h2 { margin-top: 48px; font-size: clamp(22px, 3vw, 28px); }
.prose h3 { margin-top: 28px; font-size: 20px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); font-size: 15px; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.article { scroll-margin-top: 90px; }
.keybox { background: var(--accent-bg); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin: 18px 0; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--accent-dk), #0e7490); color: #fff; border-radius: 18px; padding: 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: #e0f5f1; }
.cta-band .btn { background: #fff; color: var(--accent-dk); }
.cta-band .btn:hover { background: #ecfbf7; }

/* Footer */
footer.site { background: var(--navy); color: #b8c6d4; padding: 56px 0 28px; font-size: 15px; }
footer.site a { color: #d7e0ea; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
.fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 820px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fgrid { grid-template-columns: 1fr; } }
.fgrid h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.fgrid ul { list-style: none; margin: 0; padding: 0; }
.fgrid li { margin-bottom: 8px; }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px; font-size: 13.5px; color: #93a6b8; }
.legal p { margin: 0 0 10px; }

.center { text-align: center; }
.muted { color: var(--muted); }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
