/* TechToMaster: one stylesheet for the whole site. Self-hosted font only; no outside requests.

   LOOK: taken from the logo. Heavy angular letters (Chakra Petch), corners cut at an angle the way the T and M are cut,
   deep navy, electric blue, and bright yellow for anything you can act on. A white, high-contrast light theme that mirrors the
   artwork, and a full navy dark theme. Tokens live on :root; dark mode follows the device unless the visitor chose a theme. */

@font-face { font-family: "Chakra Petch"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/chakra-petch-500.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/chakra-petch-600.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/chakra-petch-700.woff2") format("woff2"); }

:root {
  color-scheme: light dark;

  /* brand palette (fixed) */
  --navy-950: #030a1f;
  --navy-900: #06143a;
  --navy-800: #0a1f58;
  --navy-700: #0f2d7a;
  --electric: #1f6bff;
  --electric-2: #3d8bff;
  --glow: #2f8cff;
  --ice: #9fd0ff;
  --yellow: #ffd600;
  --yellow-2: #ffe14d;
  --ink: #05070d;

  /* light theme */
  --bg: #ffffff;
  --bg-soft: #eef4ff;
  --surface: #ffffff;
  --surface-2: #e8f0ff;
  --line: #d3def5;
  --line-strong: #9db3e6;
  --text: #05070d;
  --muted: #45537a;
  --brand: #1450e0;          /* electric blue for links, borders and icons (AA on white) */
  --brand-hover: #0c3bb4;
  --brand-ink: #ffffff;
  --brand-soft: #e6eeff;
  --cta: var(--yellow);      /* bright yellow for anything you can act on */
  --cta-hover: var(--yellow-2);
  --cta-ink: #08122e;
  --ok: #0f7a45;
  --ok-soft: #e1f6ea;
  --warn: #8a5207;
  --warn-soft: #fff1c9;
  --bad: #b42318;
  --bad-soft: #fdeae8;
  --info: #1450e0;
  --info-soft: #e6eeff;

  /* dark surfaces used by the header, footer, bands and book covers in BOTH themes */
  --steel: var(--navy-900);
  --steel-2: var(--navy-800);
  --steel-line: #1c3a86;
  --steel-text: #eaf2ff;
  --steel-muted: #a9bde8;

  --c-plc: #3d8bff;
  --c-cnc: #ffc933;
  --c-robotics: #27d3f5;
  --shadow: 0 1px 2px rgba(6, 20, 58, 0.08), 0 10px 28px -8px rgba(20, 80, 224, 0.18);
  --radius: 2px;
  --radius-sm: 2px;
  --maxw: 1180px;
  --display: "Chakra Petch", "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --cut: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #030a1f;
    --bg-soft: #071436;
    --surface: #0a1a45;
    --surface-2: #10255c;
    --line: #1c3472;
    --line-strong: #2f4f9c;
    --text: #eaf2ff;
    --muted: #9fb4e4;
    --brand: #5aa0ff;
    --brand-hover: #8cbcff;
    --brand-ink: #04112b;
    --brand-soft: #0e2457;
    --ok: #4cd08e;
    --ok-soft: #0c2a22;
    --warn: #ffd34d;
    --warn-soft: #2d2808;
    --bad: #ff8f86;
    --bad-soft: #3a1418;
    --info: #7db5ff;
    --info-soft: #0e2457;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 34px -10px rgba(47, 140, 255, 0.25);
  }
}
:root[data-theme="dark"] {
  --bg: #030a1f;
  --bg-soft: #071436;
  --surface: #0a1a45;
  --surface-2: #10255c;
  --line: #1c3472;
  --line-strong: #2f4f9c;
  --text: #eaf2ff;
  --muted: #9fb4e4;
  --brand: #5aa0ff;
  --brand-hover: #8cbcff;
  --brand-ink: #04112b;
  --brand-soft: #0e2457;
  --ok: #4cd08e;
  --ok-soft: #0c2a22;
  --warn: #ffd34d;
  --warn-soft: #2d2808;
  --bad: #ff8f86;
  --bad-soft: #3a1418;
  --info: #7db5ff;
  --info-soft: #0e2457;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 34px -10px rgba(47, 140, 255, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 0.5em; }
h1, h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.012em; line-height: 1.04; }
h1 { font-size: clamp(2.3rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: 0.01em; line-height: 1.15; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--cta); color: var(--cta-ink); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }
.container-form { max-width: 460px; }

/* ---------- electric effects (shared) ---------- */
.bolt { fill: none; stroke: #e2f1ff; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 2px #9fd0ff) drop-shadow(0 0 7px #2f8cff) drop-shadow(0 0 16px #1f6bff); }
.bolt-divider { display: block; width: 100%; height: 30px; overflow: visible; }
.bolt-field { width: 100%; height: 100%; }
.mark-watermark { fill: currentColor; fill-rule: evenodd; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); color: var(--steel-text);
  border-bottom: 1px solid #1d3f93; box-shadow: 0 1px 0 #2f8cff55, 0 12px 36px -16px #2f8cffaa; }
.nav { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.logo-mark { height: 42px; width: auto; flex: none; display: block; }
.logo-mark .ttm { fill: #ffffff; }
.logo-mark .gear { fill: var(--yellow); }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.11em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav-links a, .nav-right a:not(.btn) { color: var(--steel-muted); text-decoration: none; padding: 10px 13px; font-family: var(--display); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; }
.nav-links a:hover, .nav-right a:not(.btn):hover { color: #fff; box-shadow: inset 0 -3px 0 var(--yellow); }
.nav-links a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--yellow); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.theme-btn { background: transparent; border: 1px solid var(--steel-line); color: var(--steel-muted); width: 40px; height: 40px; cursor: pointer; display: inline-grid; place-items: center; }
.theme-btn:hover { color: #fff; border-color: var(--yellow); }
.menu-toggle { display: none; margin-left: auto; }
.menu-toggle summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--steel-line); color: var(--steel-text); }
.menu-toggle summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 70px; background: var(--navy-900); border-bottom: 1px solid var(--steel-line); padding: 12px 20px 18px; display: grid; gap: 2px; }
.menu-panel a, .menu-panel button { color: var(--steel-text); text-decoration: none; padding: 13px 10px; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; background: none; border: 0; text-align: left; font-size: 0.9rem; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--steel-2); }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--steel-line); color: var(--steel-text); font-family: var(--display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.account-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 30px; height: 30px; background: var(--yellow); color: var(--cta-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 0.9rem; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); }
.account-menu .dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--navy-800); border: 1px solid var(--steel-line); border-top: 3px solid var(--yellow); padding: 6px; box-shadow: 0 20px 50px #000a; display: grid; }
.account-menu .dropdown a, .account-menu .dropdown button { color: var(--steel-text); background: none; border: 0; text-align: left; padding: 11px 12px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.account-menu .dropdown a:hover, .account-menu .dropdown button:hover { background: var(--navy-900); color: #fff; }
.dropdown hr { border: 0; border-top: 1px solid var(--steel-line); margin: 6px 0; width: 100%; }
@media (max-width: 900px) { .nav-links, .nav-right { display: none; } .menu-toggle { display: block; } .brand-text { font-size: 0.9rem; } }
@media (max-width: 420px) { .brand-text { display: none; } }

/* ---------- buttons: corners cut at an angle, like the letters ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border: 0; border-radius: 0; font-family: var(--display); font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; cursor: pointer; line-height: 1.1;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px)); transition: background 0.12s, color 0.12s, transform 0.06s, filter 0.12s; }
.btn:focus-visible { clip-path: none; outline: 3px solid var(--brand); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta); color: var(--cta-ink); }
.btn-primary:hover { background: var(--cta-hover); color: var(--cta-ink); filter: drop-shadow(0 0 10px #ffd60088); }
.btn-secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line-strong); }
.btn-secondary:hover { color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--yellow); color: var(--navy-900); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #ffffff66; }
.btn-outline-light:hover { color: #fff; box-shadow: inset 0 0 0 2px var(--yellow); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); padding: 8px 10px; clip-path: none; }
.btn-sm { padding: 9px 16px; font-size: 0.8rem; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.btn-lg { padding: 17px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.3); }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hero: white, high contrast, like the artwork ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 80px; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 480px at 88% 0%, #2f8cff28, transparent 62%), radial-gradient(700px 380px at 0% 100%, #ffd60022, transparent 58%), linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#1f6bff16 1px, transparent 1px), linear-gradient(90deg, #1f6bff16 1px, transparent 1px); background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%); }
.hero .mark-watermark { position: absolute; left: -9%; bottom: -26%; width: min(820px, 72vw); color: var(--electric); opacity: 0.06; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 52px; align-items: center; }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand); margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 34px; height: 5px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); flex: none; }
.hero h1 { color: var(--text); margin-bottom: 0.3em; }
.hero h1 em { font-style: normal; color: var(--brand); box-shadow: inset 0 -0.2em 0 var(--yellow); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 10px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.93rem; }
.trust-row li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 9px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%, 0 70%); box-shadow: 0 0 0 1px #08122e22; }
.hero-visual { position: relative; filter: drop-shadow(0 0 26px #2f8cff66) drop-shadow(0 18px 30px #06143a33); }
.logo-frame { background: linear-gradient(135deg, var(--electric) 0%, #8cc8ff 45%, var(--yellow) 100%); padding: 3px;
  clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px); }
.logo-panel { background: #fff; padding: 10px;
  clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px); }
.logo-panel img { display: block; width: 100%; height: auto; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 38px; } .hero { padding: 44px 0 56px; } .hero-visual { max-width: 560px; } }

/* ---------- sections and dark bands ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 38px; }
.section-head h2::before { content: ""; display: block; width: 58px; height: 7px; margin-bottom: 16px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center h2::before { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.band { position: relative; overflow: hidden; padding: 80px 0; }
.band-dark { color: var(--steel-text);
  background: radial-gradient(900px 420px at 50% -18%, #1f6bff66, transparent 62%), linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.band-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#7da6ff12 1px, transparent 1px), linear-gradient(90deg, #7da6ff12 1px, transparent 1px); background-size: 46px 46px; }
.band-dark .container { position: relative; z-index: 1; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .section-head p, .band-dark p { color: var(--steel-muted); }
.band-dark .eyebrow { color: var(--ice); }
.band-dark .card { background: linear-gradient(180deg, #11307f, #0a1f58); border: 0; border-top: 3px solid var(--electric-2); box-shadow: inset 0 0 0 1px #2556bb; color: var(--steel-text); }
.band-dark .card h3 { color: #fff; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.1rem; }
.band-dark .card p { color: var(--steel-muted); }
.band-fx { position: absolute; inset: 0; pointer-events: none; opacity: 0.55; }
.page-head { position: relative; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); border-bottom: 1px solid var(--line); padding: 42px 0 34px; }
.page-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 180px; height: 5px; background: linear-gradient(90deg, var(--yellow), var(--electric)); }
.page-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: 0.25em; }
.page-head p { color: var(--muted); font-size: 1.08rem; max-width: 46em; margin: 0; }
.crumbs { font-family: var(--display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.page-body { padding: 42px 0 76px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .section, .band { padding: 54px 0; } }

/* the path: three steps joined by an electric line */
.path-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; list-style: none; margin: 0; padding: 0; position: relative; }
.path-steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 50%; height: 3px; background: linear-gradient(90deg, #2a5de0, #8cc8ff 55%, var(--yellow)); box-shadow: 0 0 14px #2f8cff, 0 0 30px #1f6bff88; }
.path-steps li { position: relative; z-index: 1; padding: 28px 26px 26px; color: var(--steel-text);
  background: linear-gradient(180deg, #11307f, #0a1f58); border-top: 3px solid var(--electric-2); box-shadow: inset 0 0 0 1px #2556bb;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px)); }
.path-steps .n { display: block; font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.2em; color: var(--yellow); margin-bottom: 10px; }
.path-steps h3 { color: #fff; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.path-steps p { margin: 0; color: var(--steel-muted); font-size: 0.97rem; }
.path-steps li.top { background: linear-gradient(180deg, #1c49b5, #0f2d7a); border-top-color: var(--yellow); box-shadow: inset 0 0 0 1px #4a7de6, 0 0 36px #ffd60033; }
.path-steps li.top h3 { color: var(--yellow); }
.path-books { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.path-books a { text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; padding: 11px 22px; box-shadow: inset 0 0 0 2px #4a7de6; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); }
.path-books a:hover { box-shadow: inset 0 0 0 2px var(--yellow); color: var(--yellow); }
@media (max-width: 900px) { .path-steps { grid-template-columns: 1fr; gap: 22px; } .path-steps::before { left: 50%; right: auto; top: 3%; bottom: 3%; width: 3px; height: auto; background: linear-gradient(180deg, #2a5de0, #8cc8ff 55%, var(--yellow)); } }

/* ---------- cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card::after { content: ""; position: absolute; top: -3px; right: -1px; width: 26px; height: 26px; background: linear-gradient(225deg, var(--yellow) 0 50%, transparent 50%); pointer-events: none; }
.card h3 { margin-bottom: 0.4em; }
.card-flat { box-shadow: none; border-top-width: 1px; }
.card-flat::after { display: none; }
.book-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; border-top-width: 1px; transition: transform 0.15s, box-shadow 0.15s; }
.book-card::after { display: none; }
.book-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--brand), 0 18px 40px -12px #1f6bff77; }
.book-cover { background: radial-gradient(420px 200px at 100% 0%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, var(--navy-800)), var(--navy-950)); color: #fff; padding: 24px 26px 46px; position: relative; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%); }
.book-cover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px); background-size: 32px 32px; }
.book-cover .glyph { position: absolute; right: 20px; top: 18px; width: 78px; height: 78px; color: color-mix(in srgb, var(--c) 65%, #fff); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 70%, transparent)); }
.book-cover .kicker { position: relative; font-family: var(--display); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: #ffffffc0; }
.book-cover h3 { position: relative; color: #fff; font-size: 1.55rem; margin: 6px 0 0; max-width: 10em; text-transform: uppercase; letter-spacing: 0.03em; }
.book-body { padding: 14px 26px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.book-body p { margin: 0; color: var(--muted); }
.book-body .tagline { color: var(--text); font-weight: 700; }
.book-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-from { font-size: 0.9rem; color: var(--muted); }
.price-from strong { font-family: var(--display); font-size: 1.4rem; color: var(--text); }
.c-plc { --c: var(--c-plc); } .c-cnc { --c: var(--c-cnc); } .c-robotics { --c: var(--c-robotics); }
.stat-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px; background: var(--surface-2); border-left: 3px solid var(--brand); font-size: 0.84rem; color: var(--muted); }
.chip b { color: var(--text); font-family: var(--display); font-size: 1em; }
.badge { display: inline-block; padding: 3px 10px; font-family: var(--display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); white-space: nowrap; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; padding: 0; list-style: none; }
.step { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: 26px; box-shadow: var(--shadow); }
.step::before { content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; min-width: 46px; height: 38px; padding: 0 10px; margin-bottom: 14px; background: var(--yellow); color: var(--cta-ink); font-family: var(--display); font-weight: 700; letter-spacing: 0.08em; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); }
.step h3 { margin-bottom: 0.3em; text-transform: uppercase; letter-spacing: 0.03em; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.feature-list li { padding-left: 32px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 19px; height: 19px; background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.feature-list li::after { content: ""; position: absolute; left: 5px; top: calc(0.32em + 5px); width: 9px; height: 5px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 40px -10px #1f6bffaa; }
.price-card .ribbon { position: absolute; top: -14px; left: 24px; background: var(--yellow); color: var(--cta-ink); font-family: var(--display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 14px; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); }
.price { font-family: var(--display); font-size: 2.9rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.price small { font-family: var(--font); font-size: 0.95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card .feature-list { margin: 4px 0 8px; font-size: 0.97rem; }
.price-card .btn { margin-top: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy-900); color: #fff; font-family: var(--display); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare td.yes { color: var(--ok); font-weight: 700; }
.compare td.no { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* ---------- buy box ---------- */
.buy-grid { display: grid; grid-template-columns: 1fr 390px; gap: 44px; align-items: start; }
@media (max-width: 960px) { .buy-grid { grid-template-columns: 1fr; } }
.buy-box { position: sticky; top: 90px; }
.license-pick { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; border: 0; }
.license-pick label { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px; border: 2px solid var(--line); cursor: pointer; background: var(--surface); }
.license-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 20px -6px #1f6bffaa; }
.license-pick input { margin-top: 4px; accent-color: var(--brand); }
.license-pick .lp-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.license-pick .lp-sub { display: block; font-size: 0.86rem; color: var(--muted); }
.license-pick .lp-price { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); margin: 0 0 14px; }
.agree input { margin-top: 4px; accent-color: var(--brand); }

/* ---------- outline ---------- */
.outline details { border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--surface); margin-bottom: 10px; }
.outline summary { cursor: pointer; padding: 14px 18px; font-family: var(--display); font-weight: 700; letter-spacing: 0.03em; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.outline summary::-webkit-details-marker { display: none; }
.outline summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 1.4rem; line-height: 1; }
.outline details[open] summary::after { content: "–"; }
.outline details[open] { border-left-color: var(--yellow); }
.outline ol { margin: 0; padding: 0 18px 14px 18px; list-style: none; display: grid; gap: 6px; }
.outline li { display: grid; grid-template-columns: 4.2em 1fr; gap: 8px; font-size: 0.95rem; color: var(--muted); }
.outline li b { font-family: var(--display); font-weight: 600; font-size: 0.82rem; color: var(--text); padding-top: 0.1em; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; padding: 17px 32px 17px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; font-weight: 500; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 18px; color: var(--muted); max-width: 52em; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.input, select.input, textarea.input { width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: var(--surface); border: 2px solid var(--line-strong); border-radius: var(--radius); }
textarea.input { min-height: 140px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #1f6bff33, 0 0 18px #1f6bff44; }
.help { font-size: 0.86rem; color: var(--muted); }
.form-card { max-width: 480px; margin: 0 auto; }
.form-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.92rem; }
.alert { padding: 14px 16px; border-left: 5px solid currentColor; margin: 0 0 18px; font-size: 0.97rem; }
.alert strong { font-weight: 800; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-bad { background: var(--bad-soft); color: var(--bad); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert a { color: inherit; font-weight: 700; }
.owner-note { border: 2px dashed var(--warn); background: var(--warn-soft); color: var(--warn); padding: 10px 14px; font-size: 0.9rem; }

/* ---------- account ---------- */
.library { display: grid; gap: 18px; }
.lib-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 22px; align-items: center; padding: 20px 22px; }
.lib-item .cover { width: 100px; height: 100px; background: radial-gradient(60px 60px at 70% 20%, color-mix(in srgb, var(--c) 40%, transparent), transparent), linear-gradient(135deg, color-mix(in srgb, var(--c) 24%, var(--navy-800)), var(--navy-950)); display: grid; place-items: center; color: color-mix(in srgb, var(--c) 65%, #fff); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.lib-item .cover svg { width: 62px; height: 62px; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--c) 70%, transparent)); }
.lib-item h3 { margin-bottom: 4px; }
.lib-item .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 0.9rem; }
.lib-item .actions { display: grid; gap: 8px; justify-items: stretch; min-width: 176px; }
@media (max-width: 720px) { .lib-item { grid-template-columns: 76px 1fr; } .lib-item .cover { width: 76px; height: 76px; } .lib-item .cover svg { width: 46px; height: 46px; } .lib-item .actions { grid-column: 1 / -1; } }
.account-layout { display: grid; grid-template-columns: 236px 1fr; gap: 38px; align-items: start; }
.side-nav { display: grid; gap: 3px; position: sticky; top: 92px; }
.side-nav a { text-decoration: none; color: var(--muted); padding: 11px 14px; font-family: var(--display); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase; border-left: 4px solid transparent; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); border-left-color: var(--yellow); }
@media (max-width: 860px) { .account-layout { grid-template-columns: 1fr; gap: 18px; } .side-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; } .side-nav a { white-space: nowrap; border-left: 0; border-bottom: 4px solid transparent; } .side-nav a[aria-current="page"] { border-bottom-color: var(--yellow); } }
.banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 22px; background: linear-gradient(90deg, var(--navy-900), var(--navy-700)); color: var(--steel-text); margin-bottom: 22px; border-left: 6px solid var(--yellow); box-shadow: 0 0 30px -8px #1f6bff99; }
.banner p { margin: 0; color: var(--steel-muted); }
.banner strong { color: #fff; font-family: var(--display); letter-spacing: 0.03em; text-transform: uppercase; }

.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--display); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); background: var(--surface-2); }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { height: 12px; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
details.confirm { display: inline-block; }
details.confirm summary { list-style: none; cursor: pointer; color: var(--bad); font-weight: 700; font-size: 0.9rem; }
details.confirm summary::-webkit-details-marker { display: none; }
details.confirm form { margin-top: 8px; padding: 10px; border: 1px solid var(--line); background: var(--surface); }
.stat-card { padding: 18px; }
.stat-card b { display: block; font-family: var(--display); font-size: 2.2rem; letter-spacing: -0.01em; line-height: 1.1; }
.stat-card span { color: var(--muted); font-size: 0.88rem; }
.thread { display: grid; gap: 14px; }
.msg { padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); background: var(--surface); }
.msg.staff { background: var(--brand-soft); border-left-color: var(--brand); }
.msg .who { font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; font-weight: 700; }
.msg .body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- prose / legal ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.prose li { margin-bottom: 0.4em; }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--yellow); padding: 14px 18px; margin: 1.4em 0; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--navy-950); color: var(--steel-muted); padding: 0 0 32px; margin-top: auto; font-size: 0.93rem; border-top: 1px solid #1d3f93; }
.footer-bolt { padding: 0; color: #fff; }
.site-footer a { color: var(--steel-text); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-body { padding-top: 38px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { font-size: 0.8rem; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.18em; color: var(--yellow); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-brand p { max-width: 24em; }
.fine { border-top: 1px solid var(--steel-line); margin-top: 36px; padding-top: 22px; font-size: 0.8rem; line-height: 1.55; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- local preview strip, demo checkout ---------- */
.dev-strip { background: #3a2a00; color: #ffd27a; font-size: 0.82rem; padding: 6px 0; border-bottom: 1px solid #5c4300; }
.dev-strip a { color: #ffe3a6; }
.dev-strip .container { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.demo-pay { max-width: 560px; margin: 40px auto; }

/* ---------- reader shell ---------- */
body.reader { height: 100vh; height: 100dvh; overflow: hidden; background: var(--navy-900); }
.reader-bar { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 54px; background: var(--navy-900); color: var(--steel-text); border-bottom: 1px solid #1d3f93; box-shadow: 0 1px 0 #2f8cff55; }
.reader-bar .brand { gap: 10px; }
.reader-bar .logo-mark { height: 30px; }
.reader-bar .brand-text { font-size: 0.82rem; }
.reader-bar .crumb { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
.reader-bar .crumb a { color: var(--steel-muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.reader-bar .crumb a:hover { color: #fff; }
.reader-bar .title { font-family: var(--display); font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-bar .grow { flex: 1; }
.reader-bar .pill { font-size: 0.74rem; padding: 4px 10px; box-shadow: inset 0 0 0 1px var(--steel-line); color: var(--steel-muted); white-space: nowrap; font-family: var(--display); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.reader-bar .pill.ro { box-shadow: inset 0 0 0 1px #ffd60099; color: var(--yellow); }
.reader-bar .pill.ok { box-shadow: inset 0 0 0 1px #2f8a5e; color: #6ee0a8; }
.reader-bar select { background: var(--navy-800); color: var(--steel-text); border: 1px solid var(--steel-line); padding: 6px 8px; font: inherit; font-size: 0.88rem; max-width: 190px; }
.reader-bar a.rb-link { color: var(--steel-muted); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 10px; white-space: nowrap; }
.reader-bar a.rb-link:hover { color: var(--yellow); }
.reader-frame { display: block; width: 100%; height: calc(100vh - 55px); height: calc(100dvh - 55px); border: 0; background: #0e1217; }
@media (max-width: 760px) { .reader-bar .hide-sm { display: none; } .reader-bar .brand-text { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .book-card { transition: none; } }
@media print { .site-header, .site-footer, .dev-strip { display: none !important; } }
