:root{--bg:#F5F6FA;--surface:#FFFFFF;--surface2:#EFF1F6;--border:#E3E6EE;--border2:#CDD2DE;--text:#111C35;--text2:#4A5470;--text3:#636C85;--primary:#6257E8;--primary-hover:#5449DC;--primary-text:#4F44D6;--primary-soft:#EFEEFD;--navy:#111C35;--teal:#19A68C;--warning:#9A5B00;--warning-soft:#FBF1DF;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--bg:#0A1022;--surface:#111A2E;--surface2:#172238;--border:#1F2A40;--border2:#2C3852;--text:#EDF0F7;--text2:#A7B0C6;--text3:#8A93AC;--primary:#6257E8;--primary-hover:#7067F0;--primary-text:#A39CFF;--primary-soft:#1C2050;--navy:#111C35;--teal:#2BC4A5;--warning:#F0B45A;--warning-soft:#2B2416;--navy:#0C1430}}
/* IT Atlas public website. Colours are injected from src/theme/tokens.json at build time (see build.mjs). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
h1, h2, h3 { font-family: "Inter", system-ui, sans-serif; color: var(--text); margin: 0; }
.display { font-weight: 800; font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.045em; }
h2 { font-weight: 750; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.035em; }
h3 { font-weight: 650; font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; }
.over { font-weight: 650; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-text); margin: 0 0 14px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text2); max-width: 640px; }
.muted { color: var(--text2); }
.small { font-size: 14.5px; color: var(--text2); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 12px; font: 600 16px/1 "Inter", system-ui, sans-serif; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; cursor: pointer; border: 0; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px -10px rgba(98, 87, 232, .7); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-outline { color: var(--text); border: 1px solid var(--border2); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); }
.btn svg { width: 18px; height: 18px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--navy) 92%, transparent); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { color: #AEB6CC; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.top .cta { margin-left: auto; display: flex; gap: 10px; }
.top .btn { height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 420px) { .top .btn-ghost { display: none; } }

/* hero */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: 96px 0 0; isolation: isolate; }
.hero .display { color: #fff; max-width: 900px; }
.hero .lead { color: #AEB6CC; margin: 26px 0 34px; }
.hero .over { color: #A39CFF; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 14px; color: #8A93AC; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-bg .grid line { stroke: rgba(255, 255, 255, .045); }
.route { fill: none; stroke: url(#routeGrad); stroke-width: 2; stroke-linecap: round; }
.hero-glow { position: absolute; width: 900px; height: 900px; right: -300px; top: -380px; background: radial-gradient(closest-side, rgba(98, 87, 232, .38), transparent 70%); z-index: -1; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 64px; border-top: 1px solid rgba(255, 255, 255, .08); }
.stat { padding: 22px 0 26px; }
.stat b { display: block; font-size: clamp(28px, 3vw, 38px); font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: #AEB6CC; font-size: 14.5px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.showcase { position: relative; margin-top: 56px; height: clamp(260px, 44vw, 560px); }
.frame { position: absolute; border-radius: 16px; overflow: hidden; background: #0D1426; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08); }
.frame.desk { left: 0; right: 12%; top: 0; }
.frame.desk .bar { height: 30px; background: #1A2442; display: flex; gap: 7px; align-items: center; padding-left: 14px; }
.frame.desk .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2C3852; display: block; }
.frame.phone { width: clamp(150px, 20vw, 250px); right: 2%; top: 14%; border-radius: 28px; border: 6px solid #1A2442; }
@media (max-width: 700px) { .frame.desk { right: 0; } .frame.phone { display: none; } }

/* sections */
section { padding: 112px 0; }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.head { max-width: 720px; margin-bottom: 56px; }
.head .lead { margin-top: 18px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; counter-reset: s; }
.step { border-top: 2px solid var(--border2); padding-top: 22px; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-weight: 700; color: var(--primary-text); font-size: 14px; letter-spacing: .08em; margin-bottom: 14px; }
.step p { color: var(--text2); margin: 10px 0 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* path explorer */
.path { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start; }
.levels { position: relative; }
.levels::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--border2); }
.levels .fill { position: absolute; left: 19px; top: 20px; width: 2px; height: 0; background: var(--teal); }
.levels .lvl { position: relative; }
.plan .plan-title { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
.plan.featured .plan-title { color: #fff; }
.lvl { display: flex; gap: 16px; align-items: center; width: 100%; padding: 12px 12px 12px 0; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: var(--text); border-radius: 12px; }
.lvl .n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--surface); border: 2px solid var(--border2); position: relative; z-index: 1; transition: all .2s; }
.lvl strong { display: block; font-weight: 650; font-size: 16.5px; }
.lvl span { font-size: 14px; color: var(--text2); }
.lvl[aria-selected="true"] .n { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 6px var(--primary-soft); }
.lvl:hover .n { border-color: var(--primary); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px; min-height: 420px; }
.panel[hidden] { display: none; }
.panel .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); }
.panel .tag.pro { background: var(--navy); color: #fff; }
.panel h3 { font-size: 28px; letter-spacing: -0.03em; margin: 16px 0 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 22px; margin: 18px 0 26px; color: var(--text2); font-size: 15px; }
.facts b { color: var(--text); font-variant-numeric: tabular-nums; }
.mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.mods li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15.5px; }
.mods li span { color: var(--text3); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px) { .path { grid-template-columns: 1fr; } .mods { grid-template-columns: 1fr; } .panel { padding: 26px; } }

/* topics */
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.topic { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.topic .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; }
.topic .ic svg { width: 21px; height: 21px; }
.topic strong { font-weight: 650; display: block; }
.topic span { font-size: 14.5px; color: var(--text2); }
.topic em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--text3); font-weight: 600; font-size: 14px; }
@media (max-width: 800px) { .topics { grid-template-columns: 1fr; } }

/* practice */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.shot { border-radius: 22px; overflow: hidden; background: var(--surface2); border: 1px solid var(--border); aspect-ratio: 390 / 600; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.trio h3 { margin-top: 22px; }
.trio p { color: var(--text2); margin: 8px 0 0; font-size: 16px; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* split feature */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: center; }
.split .frame { position: relative; inset: auto; border-radius: 16px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; color: var(--text2); }
.ticks svg { flex: none; width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 36px; display: flex; flex-direction: column; }
.plan.featured { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 40px 80px -40px rgba(17, 28, 53, .6); }
.plan.featured h3, .plan.featured .price { color: #fff; }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; margin: 18px 0 2px; color: var(--text); }
.plan .price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--text2); }
.plan.featured .price small, .plan.featured .per { color: #AEB6CC; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; }
.plan li svg { flex: none; width: 20px; height: 20px; color: var(--teal); margin-top: 2px; }
.plan.featured li { color: #DDE2EE; }
.plan .btn { justify-content: center; }
.note { margin-top: 22px; font-size: 14px; color: var(--text3); max-width: 920px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 400; color: var(--primary-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--text2); max-width: 720px; }

/* author + cta + footer */
.author { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 860px; }
.mono { width: 96px; height: 96px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 32px; border: 3px solid var(--primary); }
.final { background: var(--navy); color: #fff; text-align: center; position: relative; overflow: hidden; }
.final h2 { color: #fff; max-width: 760px; margin: 0 auto; }
.final .lead { color: #AEB6CC; margin: 20px auto 34px; }
footer { background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .07); color: #8A93AC; padding: 48px 0; font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: #AEB6CC; text-decoration: none; }
footer a:hover { color: #fff; }

/* sub pages */
.page-hero { background: var(--navy); color: #fff; padding: 84px 0 64px; }
.page-hero h1 { color: #fff; font-weight: 800; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1.05; }
.page-hero .lead { color: #AEB6CC; margin-top: 18px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--text2); }
.draft { background: var(--warning-soft); border: 1px solid var(--warning); color: var(--text); padding: 16px 18px; border-radius: 12px; font-size: 15px; }
.lvlcard { border: 1px solid var(--border); background: var(--surface); border-radius: 20px; padding: 32px; margin-bottom: 20px; }
.lvlcard header { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; }
.samples { margin: 6px 0 0; padding-left: 18px; color: var(--text2); font-size: 15px; }

/* motion: elements start visible; JS adds .anim only when motion is allowed */
.anim [data-reveal] { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .anim [data-reveal] { opacity: 1; transform: none; } .btn { transition: none; } }
