/* Carbon / Lime: shared visual direction with the Windows app. */
:root {
  color-scheme: dark;
  --background: #0b0f0d;
  --surface: #171d19;
  --surface-raised: #1c241f;
  --heading: #f3f7f1;
  --text-secondary: #d1ddaF;
  --monitor: #b6ff38;
  --accent: #b6ff38;
  --accent-hover: #c9ff70;
  --accent-pressed: #9de329;
  --accent-text: #0b0f0d;
  --accent-soft: #243219;
  --success: #b6ff38;
  --warning: #ffe34d;
  --caution: #ff9638;
  --danger: #ff505c;
  --line: #394a3e;
  --text: #f3f7f1;
  --muted: #aab8ad;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }

.site-header {
  position: relative;
  z-index: 10;
  height: 72px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
}
.brand img { width: 34px; height: 34px; object-fit: contain; }
.site-header nav { display: flex; gap: 28px; color: var(--muted); font-size: 13px; }
.site-header nav a:hover { color: var(--accent); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-support,
.header-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.header-support:hover,
.header-download:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.header-download { gap: 9px; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border-bottom: 1px solid var(--heading);
  color: var(--heading);
  font-size: 13px;
  font-weight: 700;
}
.header-cta svg,
.header-download svg,
.button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 78px 30px 86px;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  align-items: center;
  gap: 68px;
}
.hero-copy { max-width: 500px; }
.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.eyebrow span { width: 15px; height: 1px; background: var(--accent); }
.section h2,
.sim-section h2,
.closing h2 {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
}
.hero-logo {
  margin: 22px 0 25px;
  display: flex;
  align-items: center;
  gap: 16px;
  line-height: 1;
}
.hero-logo img {
  width: clamp(72px, 7.5vw, 88px);
  height: clamp(72px, 7.5vw, 88px);
  object-fit: contain;
}
.hero-logo span {
  display: flex;
  align-items: baseline;
  color: var(--heading);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: clamp(46px, 5.2vw, 66px);
  font-weight: 700;
  letter-spacing: -.055em;
}
.hero-logo strong { font: inherit; color: var(--heading); }
.hero-logo em { font: inherit; color: var(--accent); font-style: normal; }
.hero-copy > p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
}
.button-primary { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); }
.button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button-secondary {
  min-height: auto;
  padding: 4px 0;
  border-bottom: 1px solid var(--heading);
  border-radius: 0;
  color: var(--heading);
}
.hero-copy .version-note {
  margin-top: 22px;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
}
.version-note strong { color: var(--text-secondary); }
.development-note {
  max-width: 480px;
  margin-top: 18px;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  background: var(--surface);
}
.development-note > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(182, 255, 56, .12);
}
.development-note strong {
  color: var(--heading);
  font-size: 13px;
}
.development-note p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.product-stage {
  position: relative;
  width: min(650px, 50vw);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.app-capture {
  position: relative;
  width: 100%;
  aspect-ratio: 680 / 780;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .3), 10px 10px 0 rgba(182, 255, 56, .05);
}
.app-capture::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.app-capture img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.product-stage figcaption {
  align-self: flex-end;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
  letter-spacing: .04em;
}

.proof-bar {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-bar div {
  padding: 21px 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid var(--line);
}
.proof-bar div:first-child { padding-left: 0; }
.proof-bar div:last-child { padding-right: 0; border-right: 0; }
.proof-bar strong { color: var(--heading); font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; }
.proof-bar span { color: var(--muted); font-size: 12px; line-height: 1.45; }

.section { max-width: 1120px; margin: 0 auto; padding: 92px 30px; }
.section-kicker { display: block; margin-bottom: 13px; }
.section h2,
.sim-section h2,
.closing h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(35px, 4vw, 49px);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.sim-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.process-kicker { margin-bottom: 26px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
}
.process-grid article {
  min-height: 220px;
  padding: 24px 0 0;
  border-top: 2px solid var(--line);
}
.process-grid article:nth-child(1) { border-top-color: var(--monitor); }
.process-grid article:nth-child(2) { border-top-color: var(--warning); }
.process-grid article:nth-child(3) { border-top-color: var(--success); }
.step-icon {
  position: relative;
  width: 46px;
  height: 46px;
  margin-bottom: 25px;
  background: var(--accent-soft);
}
.process-grid article:nth-child(2) .step-icon { background: #342d15; }
.process-grid article:nth-child(3) .step-icon { background: var(--accent-soft); }
.monitor-icon { display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 11px; }
.monitor-icon i { width: 5px; background: var(--monitor); }
.monitor-icon i:nth-child(1) { height: 13px; }
.monitor-icon i:nth-child(2) { height: 23px; }
.monitor-icon i:nth-child(3) { height: 18px; }
.explain-icon { padding: 12px 11px; }
.explain-icon i { display: block; height: 3px; margin: 4px 0; background: var(--warning); }
.explain-icon i:nth-child(2) { width: 75%; }
.explain-icon i:nth-child(3) { width: 52%; }
.repair-icon { display: grid; place-items: center; }
.repair-icon > i { position: absolute; width: 24px; height: 24px; border: 2px solid var(--success); border-radius: 50%; }
.repair-icon svg { z-index: 1; width: 15px; fill: none; stroke: var(--success); stroke-width: 2; }
.process-grid h3 {
  margin: 0 0 10px;
  color: var(--heading);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 22px;
}
.process-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.sim-section { border-top: 4px solid var(--accent); background: var(--surface); color: white; }
.sim-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.section-kicker.light { color: var(--accent); }
.sim-section h2 { color: var(--heading); }
.sim-copy p { color: var(--muted); }
.sim-list { border-top: 1px solid var(--line); }
.sim-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.sim-row strong { font-size: 14px; font-weight: 500; }
.sim-row i { color: var(--success); }
.sim-row svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.companion-coverage {
  grid-column: 1 / -1;
  padding: 36px 34px 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
}
.companion-coverage .section-kicker { margin-bottom: 0; font-size: 14px; letter-spacing: .035em; }
.companion-coverage p { max-width: 900px; margin: 14px 0 24px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.companion-list { display: flex; flex-wrap: wrap; gap: 12px; }
.companion-list a { padding: 11px 14px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.045); color: var(--heading); font-size: 14px; text-decoration: none; }
.companion-list a:hover { border-color: var(--accent); background: var(--accent-soft); }
.library-promo{max-width:1120px;margin:0 auto;padding:68px 30px;display:flex;align-items:center;justify-content:space-between;gap:55px;border-bottom:1px solid var(--line)}
.library-promo>div{max-width:750px}.library-promo h2{margin:10px 0 15px;color:var(--heading);font-family:"Segoe UI",Arial,sans-serif;font-size:clamp(31px,4vw,45px);line-height:1.1}.library-promo p{margin:0;color:var(--muted);font-size:15px;line-height:1.7}.library-promo>.button{flex:0 0 auto}

.closing {
  max-width: 1120px;
  margin: 0 auto;
  padding: 78px 30px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 230px;
  gap: 36px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.about-mark { align-self: start; }
.about-mark img { width: 46px; height: 46px; margin-bottom: 16px; object-fit: contain; }
.about-copy h2 {
  max-width: 650px;
  color: var(--heading);
  font-size: clamp(32px, 3.25vw, 42px);
  line-height: 1.08;
  text-wrap: balance;
}
.about-copy p { max-width: 620px; margin: 17px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.button-white {
  min-height: auto;
  padding: 5px 0;
  border-bottom: 1px solid var(--heading);
  border-radius: 0;
  color: var(--heading);
  white-space: nowrap;
}
.about-actions {
  display: flex;
  width: 230px;
  flex-direction: column;
  align-items: flex-start;
  justify-self: end;
  gap: 12px;
}
.about-actions > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.developer-email {
  color: var(--text-secondary);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}

footer {
  min-height: 105px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
}
footer p { margin: 0; color: var(--muted); font-size: 12px; }
footer > div { display: flex; gap: 22px; color: var(--muted); font-size: 12px; }
footer > div a:hover { color: var(--accent); }

@media (max-width: 1000px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { max-width: 700px; }
  .product-stage { width: min(760px, 100%); min-height: auto; margin: 0 auto; }
  .sim-inner { gap: 46px; }
  .closing { grid-template-columns: 120px minmax(0, 1fr); }
  .closing .about-actions { grid-column: 2; justify-self: start; }
}

@media (max-width: 720px) {
  .site-header { height: 66px; padding: 0 20px; }
  .brand { font-size: 19px; }
  .brand img { width: 31px; height: 31px; }
  .header-actions { gap: 8px; }
  .header-cta { display: none; }
  .header-support,
  .header-download { min-height: 34px; padding: 7px 11px; font-size: 12px; }
  .header-download { font-size: 0; }
  .header-download::before { content: "Download"; font-size: 12px; }
  .hero { padding: 56px 20px 68px; gap: 42px; }
  .hero-logo { gap: 12px; }
  .hero-logo img { width: 66px; height: 66px; }
  .hero-logo span { font-size: 45px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .product-stage { width: 100%; }
  .app-capture { aspect-ratio: 680 / 780; border-radius: 7px; }
  .app-capture img { width: 100%; height: auto; }
  .product-stage figcaption { align-self: flex-start; }
  .proof-bar { margin: 0 20px; grid-template-columns: 1fr; }
  .proof-bar div,
  .proof-bar div:first-child,
  .proof-bar div:last-child {
    padding: 17px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .proof-bar div:last-child { border-bottom: 0; }
  .section { padding: 72px 20px; }
  .process-kicker { margin-bottom: 22px; }
  .process-grid { grid-template-columns: 1fr; gap: 30px; }
  .process-grid article { min-height: auto; }
  .sim-inner { grid-template-columns: 1fr; gap: 40px; }
  .companion-coverage { padding: 26px 20px; }
  .companion-coverage p { font-size: 15px; }
  .library-promo { padding: 55px 20px; align-items: flex-start; flex-direction: column; gap: 25px; }
  .closing { padding: 66px 20px; grid-template-columns: 1fr; gap: 24px; }
  .closing .about-actions { grid-column: auto; }
  .about-actions { width: min(100%, 260px); }
  .about-mark { display: flex; align-items: center; gap: 14px; }
  .about-mark img { width: 40px; height: 40px; margin: 0; }
  footer { grid-template-columns: 1fr; justify-items: start; gap: 15px; padding: 26px 20px; }
  footer > div { flex-wrap: wrap; }
}

/* Simulator troubleshooting guides */
.sim-row{transition:color .16s ease,background .16s ease}.sim-row:hover{color:var(--accent);background:rgba(255,255,255,.035)}
.sim-guide{max-width:1160px;margin:0 auto;padding:34px 30px 78px}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:12px}.breadcrumbs a:hover{color:var(--accent)}
.guide-hero{max-width:860px;padding:62px 0 84px}.guide-hero h1{margin:13px 0 22px;color:var(--heading);font-family:"Segoe UI",Arial,sans-serif;font-size:clamp(43px,6vw,70px);line-height:1.03;letter-spacing:-.035em}.guide-hero>p{max-width:720px;margin:0;color:var(--muted);font-size:18px;line-height:1.75}.guide-actions{display:flex;align-items:center;gap:22px;margin-top:30px}.guide-hero .version-note{margin-top:18px;color:var(--muted);font-family:ui-monospace,Consolas,monospace;font-size:11px}

.failure-map{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(0,1.28fr);gap:78px;padding:76px 0;border-top:1px solid var(--line)}
.failure-map-head{position:sticky;top:110px;align-self:start}
.failure-map h2,.diagnostic-focus h2,.repair-capture h2,.guide-cta h2{margin:10px 0 16px;color:var(--heading);font-family:"Segoe UI",Arial,sans-serif;font-size:clamp(31px,4vw,45px);line-height:1.1}
.failure-map-head p{max-width:390px;margin:0;color:var(--muted);font-size:15px;line-height:1.72}
.failure-paths{border-top:1px solid var(--line)}
.failure-paths article{display:grid;grid-template-columns:130px minmax(0,1fr);gap:28px;padding:29px 0;border-bottom:1px solid var(--line)}
.failure-phase{padding-top:3px;color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.failure-paths h3{margin:0;color:var(--heading);font-family:"Segoe UI",Arial,sans-serif;font-size:23px;line-height:1.2}
.failure-paths p{max-width:580px;margin:10px 0 0;color:var(--muted);font-size:14px;line-height:1.7}

.diagnostic-focus{margin:0 calc(50% - 50vw);padding:76px max(30px,calc((100vw - 1100px)/2));display:grid;grid-template-columns:minmax(250px,.72fr) minmax(0,1.28fr);gap:78px;background:var(--surface);color:#fff}
.diagnostic-focus .section-kicker{color:var(--accent)}
.diagnostic-focus h2{color:#fff}
.diagnostic-focus-head p{max-width:390px;margin:0;color:var(--muted);font-size:14px;line-height:1.68}
.diagnostic-list{border-top:1px solid var(--line)}
.diagnostic-list>a{min-height:92px;padding:20px 0;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);color:#fff;transition:padding-left .16s ease,background .16s ease}
.diagnostic-list>a:hover{padding-left:10px;background:rgba(255,255,255,.035)}
.diagnostic-list>a:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.diagnostic-list>a>span:first-child{display:flex;flex-direction:column;gap:6px}
.diagnostic-list strong{font-family:"Segoe UI",Arial,sans-serif;font-size:19px;line-height:1.25}
.diagnostic-list small{color:var(--muted);font-size:12px;line-height:1.45}
.issue-action{flex:0 0 auto;color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}

.repair-capture{padding:76px 0;border-bottom:1px solid var(--line)}.repair-capture-copy{max-width:800px}.repair-capture-copy p{margin:0;color:var(--muted);font-size:16px;line-height:1.7}.repair-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:34px}.repair-capture figure{margin:0;border:1px solid var(--line);background:var(--surface)}.repair-capture figure>a{display:block;overflow:hidden;background:var(--surface-raised)}.repair-capture img{display:block;width:100%;height:auto;transition:transform .22s ease}.repair-capture figure>a:hover img{transform:scale(1.006)}.repair-capture figcaption{padding:18px 20px;color:var(--muted);font-size:13px;line-height:1.6}.repair-capture figcaption strong{color:var(--heading)}.repair-capture figcaption a{margin-left:5px;color:var(--accent);font-weight:700}.repair-capture figcaption a:hover{text-decoration:underline}

.guide-cta{padding:66px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:60px;border-bottom:1px solid var(--line)}
.guide-cta .section-kicker.light{color:var(--accent)}
.guide-cta h2{max-width:720px}
.guide-cta p{max-width:680px;margin:0;color:var(--muted);line-height:1.65}
.button-light{flex:0 0 auto;border:1px solid var(--accent);background:var(--accent);color:var(--accent-text)}.button-light:hover{border-color:var(--accent-hover);background:var(--accent-hover)}

.also-supported{padding:30px 0 24px;display:flex;align-items:flex-start;gap:28px;color:var(--muted);font-size:12px}
.also-supported>span{flex:0 0 auto;color:var(--heading);font-weight:800}
.also-supported>div{display:flex;flex-wrap:wrap;gap:9px 0}
.also-supported a{padding:0 13px;border-left:1px solid var(--line);color:var(--muted);line-height:1.4}
.also-supported a:first-child{padding-left:0;border-left:0}
.also-supported a:hover{color:var(--accent)}
.affiliation-note{margin:0;color:var(--muted);font-size:11px;line-height:1.55}

.faq-section{padding:72px 0;border-top:1px solid var(--line)}.faq-section h2{margin:10px 0 18px;color:var(--heading);font-family:"Segoe UI",Arial,sans-serif;font-size:clamp(31px,4vw,45px);line-height:1.1}.faq-list{margin-top:28px;border-top:1px solid var(--line)}.faq-list details{border-bottom:1px solid var(--line)}.faq-list summary{padding:20px 4px;color:var(--heading);font-size:16px;font-weight:700;cursor:pointer}.faq-list p{max-width:820px;margin:0;padding:0 4px 22px;color:var(--muted);line-height:1.7}

@media(max-width:900px){
  .failure-map,.diagnostic-focus{grid-template-columns:1fr;gap:34px}
  .failure-map-head{position:static}
  .diagnostic-focus{padding-left:30px;padding-right:30px}
  .guide-cta{grid-template-columns:1fr;align-items:start;gap:28px}
}
@media(max-width:720px){
  .sim-guide{padding:24px 20px 58px}
  .guide-hero{padding:46px 0 60px}
  .guide-hero>p{font-size:16px}
  .guide-actions{align-items:flex-start;flex-direction:column;gap:16px}
  .failure-map{padding:54px 0}
  .failure-paths article{grid-template-columns:1fr;gap:8px;padding:24px 0}
  .diagnostic-focus{margin-left:-20px;margin-right:-20px;padding:52px 20px}
  .diagnostic-list>a{align-items:flex-start;min-height:0;padding:20px 0}
  .issue-action{padding-top:2px}
  .repair-capture{padding:54px 0}.repair-gallery{grid-template-columns:1fr}
  .guide-cta{padding:50px 0}
  .also-supported{flex-direction:column;gap:13px}
  .also-supported>div{gap:10px 16px}
  .also-supported a,.also-supported a:first-child{padding:0;border:0}
}

/* Diagnostic Library */
.site-header nav a.active{color:var(--accent)}
.library-page{max-width:1120px;margin:0 auto;padding:34px 30px 82px}
.library-hero{position:relative;max-width:900px;padding:58px 0 68px}
.library-hero h1{max-width:880px;margin:12px 0 20px;color:var(--heading);font-family:"Segoe UI",Arial,sans-serif;font-size:clamp(43px,6vw,68px);line-height:1.03;letter-spacing:-.035em;text-wrap:balance}
.library-hero>p{max-width:760px;margin:0;color:var(--muted);font-size:17px;line-height:1.72}
.library-product{margin:12px 0 0!important;color:var(--accent)!important;font-family:ui-monospace,Consolas,monospace;font-size:12px!important;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.library-index-hero{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) 200px;column-gap:40px;align-items:end}
.library-index-hero>.section-kicker,.library-index-hero>h1{grid-column:1/-1}
.library-index-hero>p{grid-column:1;min-width:0}
.library-count{grid-column:2;padding-left:20px;border-left:3px solid var(--accent);display:flex;flex-direction:column}
.library-count strong{color:var(--heading);font-family:"Segoe UI",Arial,sans-serif;font-size:42px;line-height:1}
.library-count span{margin-top:7px;color:var(--muted);font-size:12px;line-height:1.4}
.library-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 20px}
.library-topics a{min-height:106px;padding:19px 20px;border:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;gap:7px}
.library-topics a:hover,.library-topics a[aria-current="true"]{border-color:var(--accent);box-shadow:4px 4px 0 rgba(182,255,56,.08)}
.library-topics strong{color:var(--heading);font-family:"Segoe UI",Arial,sans-serif;font-size:17px;line-height:1.25}
.library-topics span{color:var(--muted);font-size:12px;line-height:1.45}
.issue-status{display:flex;flex-wrap:wrap;gap:8px;margin-top:25px}
.issue-status span{padding:7px 10px;border:1px solid var(--line);background:var(--surface);color:var(--text-secondary);font-size:11px;font-weight:700}
.library-controls{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:12px;padding:22px;border:1px solid var(--line);background:var(--surface-raised)}
.library-controls label{display:flex;flex-direction:column;gap:7px}
.library-controls label>span{color:var(--heading);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.library-controls input,.library-controls select{width:100%;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:2px;background:var(--surface);color:var(--heading);font:14px "Segoe UI",Arial,sans-serif}
.library-controls input:focus,.library-controls select:focus{outline:3px solid rgba(182,255,56,.25);border-color:var(--accent)}
.library-results{margin:25px 0 12px;color:var(--muted);font-size:12px}.library-results strong{color:var(--heading)}
.library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.library-card{min-height:245px;padding:24px;display:flex;flex-direction:column;border:1px solid var(--line);background:var(--surface);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.library-card:hover{border-color:var(--accent);box-shadow:5px 5px 0 rgba(182,255,56,.09);transform:translateY(-1px)}
.library-card[hidden]{display:none}
.library-card-product{color:var(--accent);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.library-card h2{margin:11px 0 10px;color:var(--heading);font-family:"Segoe UI",Arial,sans-serif;font-size:22px;line-height:1.18}
.library-card p{margin:0 0 20px;color:var(--muted);font-size:13px;line-height:1.62}
.library-card>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:15px;border-top:1px solid var(--line);font-size:11px}
.library-card>div span{color:var(--success);font-weight:700}.library-card>div a{color:var(--heading);font-weight:800}.library-card>div a:hover{color:var(--accent)}
.library-empty{padding:45px;border:1px dashed var(--line);color:var(--muted);text-align:center}
.diagnostic-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}
.diagnostic-main{display:grid;gap:15px}
.diagnostic-card{position:relative;padding:31px 32px;border:1px solid var(--line);background:var(--surface)}
.diagnostic-card h2,.library-aside h2,.related-diagnostics h2{margin:0 0 15px;color:var(--heading);font-family:"Segoe UI",Arial,sans-serif;font-size:29px;line-height:1.15}
.diagnostic-card h3{margin:25px 0 12px;color:var(--heading);font-size:13px;text-transform:uppercase;letter-spacing:.045em}
.diagnostic-card>p{max-width:720px;margin:0;color:var(--muted);font-size:15px;line-height:1.72}
.diagnostic-guide .guide-checks{margin:0;padding-left:20px;color:var(--muted);font-size:14px;line-height:1.75}
.diagnostic-guide .guide-checks li+li{margin-top:6px}
.diagnostic-example .example-label{font-size:13px;font-weight:700}
.diagnostic-example .example-evidence{margin-top:20px;font-size:14px;overflow-wrap:anywhere}
.diagnostic-guide h3+p{max-width:720px;margin:0;color:var(--muted);font-size:15px;line-height:1.72}
.signal-list{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}.signal-list code{display:block;padding:7px 9px;background:var(--surface-raised);color:var(--heading);font-size:11px}
.repair-steps{margin:0;padding-left:21px;color:var(--muted);font-size:14px;line-height:1.8}
.safety-note{margin-top:24px;padding:16px 18px;border-left:3px solid var(--success);background:var(--accent-soft);display:flex;flex-direction:column;gap:4px}.safety-note strong{color:var(--heading);font-size:12px}.safety-note span{color:var(--muted);font-size:13px}
.source-list{margin:22px 0 0;padding:0;border-top:1px solid var(--line);list-style:none}.source-list li{padding:18px 0;display:grid;grid-template-columns:1fr auto;gap:20px;border-bottom:1px solid var(--line)}.source-list li>div{display:flex;flex-direction:column;align-items:flex-start}.source-list strong{color:var(--heading);font-size:14px}.source-list span{margin-top:4px;color:var(--success);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}.source-list p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.55}.source-list a{align-self:center;color:var(--accent);font-size:12px;font-weight:800;white-space:nowrap}
.library-aside{position:sticky;top:96px;padding:27px;border-top:4px solid var(--accent);background:var(--surface);color:#fff}.library-aside h2{color:#fff;font-size:25px}.library-aside p{margin:0 0 22px;color:var(--muted);font-size:13px;line-height:1.65}.library-aside .button{width:100%;margin-top:9px}.library-aside .button-primary{border-color:var(--accent);background:var(--accent);color:var(--accent-text)}.library-aside .button-primary:hover{border-color:var(--accent-hover);background:var(--accent-hover)}.library-aside .button-secondary{border-color:var(--line);color:#fff}.library-aside small{display:block;margin-top:18px;color:var(--muted);font-size:10px;line-height:1.5}
.related-diagnostics{margin-top:54px;padding-top:45px;border-top:1px solid var(--line)}.related-diagnostics>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.related-diagnostics a{min-height:88px;padding:18px;border:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;justify-content:center;gap:6px}.related-diagnostics a:hover{border-color:var(--accent)}.related-diagnostics strong{color:var(--heading);font-size:14px;line-height:1.35}.related-diagnostics span{color:var(--muted);font-size:11px}
@media(max-width:900px){.library-index-hero{display:block}.library-count{margin-top:26px}.library-topics{grid-template-columns:repeat(2,minmax(0,1fr))}.diagnostic-layout{grid-template-columns:1fr}.library-aside{position:static}.library-controls{grid-template-columns:1fr 1fr}.library-controls label:first-child{grid-column:1/-1}}
@media(max-width:720px){.library-page{padding:24px 20px 58px}.library-hero{padding:44px 0 52px}.library-hero>p{font-size:15px}.library-topics,.library-controls,.library-grid,.related-diagnostics>div{grid-template-columns:1fr}.library-controls label:first-child{grid-column:auto}.diagnostic-card{padding:25px 21px}.source-list li{grid-template-columns:1fr}.source-list a{justify-self:start}.library-card{min-height:220px}}


/* Visible search context while preserving the PitMedic wordmark. */
.hero-heading { margin: 0 0 16px; color: var(--heading); font-size: clamp(24px, 3vw, 34px); line-height: 1.2; text-wrap: balance; }
.featured-guides { margin: 18px 0 0; padding-left: 20px; line-height: 1.6; }
.featured-guides li + li { margin-top: 8px; }
.featured-guides a { color: var(--heading); text-decoration: underline; text-underline-offset: 3px; }

/* Dark-theme interaction states remain visible for keyboard and pointer users. */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
::selection { background: var(--accent); color: var(--accent-text); }
.button-primary:active, .button-light:active, .header-support:active {
  background: var(--accent-pressed);
  color: var(--accent-text);
}
.brand span { color: var(--heading); }
.brand em { color: var(--accent); font-style: normal; }
.development-note { border-left-color: var(--caution); }
.development-note > span { background: var(--caution); box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
