/* ==========================================================================
   PQCStatus.ai — shared design system
   Light theme on white, Georgia throughout, deep-teal accent,
   faint grid, rounded panels.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --panel: #f7f9fb;
  --panel-2: #eef2f7;
  --line: #dbe2ea;
  --ink: #0e1520;
  --ink-dim: #4a5768;
  --ink-faint: #64707f;
  --accent: #0a7a74;
  --accent-deep: #ffffff;
  --warn: #a76400;
  --hot: #c62828;
  --ok: #1c7c46;
  --grid: rgba(10, 122, 116, 0.055);
  --mono: Georgia, 'Times New Roman', Times, serif;
  --display: Georgia, 'Times New Roman', Times, serif;
  --code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  line-height: 1.6;
    overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0; pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
}
.wrap { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV -------------------------------------------------------------------- */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1140px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.5px; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand .brand-mark { flex: none; display: block; border-radius: 5px; }
.brand .brand-tip { animation: tip 2.4s infinite; transform-origin: 16px 16px; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(10, 122, 116, 0.14); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.45;transform:scale(.82)} }
@keyframes tip { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.72)} }
@media (prefers-reduced-motion: reduce){ .brand .dot, .brand .brand-tip { animation: none; } }
.brand b { color: var(--accent); }
.nav-links { display: flex; gap: 24px; font-size: 13px; align-items: center; }
.nav-links a { color: var(--ink-dim); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--accent); }
@media (max-width: 820px){ .nav-links { display: none; } }

/* HERO / PAGE HEAD ------------------------------------------------------- */
.page-head { padding: 70px 0 30px; }
.page-head.center { text-align: center; }
.kicker { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5.6vw, 62px); line-height: 1.06; letter-spacing: -1.2px; margin-bottom: 20px; }
h1 em { font-style: italic; color: var(--accent); }
.lede { color: var(--ink-dim); max-width: 680px; font-size: 17px; }
.page-head.center .lede { margin: 0 auto; }

/* SECTIONS --------------------------------------------------------------- */
section { padding: 46px 0; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 30px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.sec-num { font-size: 12px; color: var(--ink-faint); letter-spacing: 2px; }
h2 { font-family: var(--display); font-size: clamp(26px, 4vw, 38px); font-weight: 600; letter-spacing: -1px; }
h3 { font-family: var(--display); font-size: 22px; font-weight: 600; margin: 26px 0 10px; letter-spacing: -0.3px; }
h4 { font-size: 15px; font-weight: 700; margin: 18px 0 8px; letter-spacing: 0.2px; }
p { margin: 0 0 14px; color: var(--ink-dim); }
p strong, li strong { color: var(--ink); font-weight: 600; }
.prose { font-size: 15px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: var(--ink-dim); }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--accent); }

/* PANELS / CARDS --------------------------------------------------------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px){ .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card .step { font-size: 12px; color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }
.card h3 { font-size: 20px; margin: 0 0 8px; }
.card p { font-size: 14px; color: var(--ink-dim); margin: 0; }
.card .ico { font-size: 22px; margin-bottom: 12px; display: block; }

/* CALLOUTS --------------------------------------------------------------- */
.note { background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 8px; padding: 16px 20px; font-size: 14px; color: var(--ink-dim); margin: 22px 0; }
.note b { color: var(--warn); }
.note.accent { border-left-color: var(--accent); }
.note.accent b { color: var(--accent); }
.note.hot { border-left-color: var(--hot); }
.note.hot b { color: var(--hot); }

/* BADGES ----------------------------------------------------------------- */
.badge { display: inline-block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line); border-radius: 20px; padding: 2px 10px; }
.badge.warn { color: var(--warn); }
.badge.hot { color: var(--hot); }
.badge.ok { color: var(--ok); }
.badge.solid { background: var(--accent); color: var(--accent-deep); border-color: var(--accent); font-weight: 700; }

/* TABLES ----------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 700; background: var(--panel-2); font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; }
td { color: var(--ink-dim); }
tr:last-child td { border-bottom: none; }
td code, p code, li code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-family: var(--code); font-size: 12px; color: #0b6f6a; }

/* TIMELINE / STEPS ------------------------------------------------------- */
.tl { position: relative; padding-left: 28px; }
.tl::before { content:""; position:absolute; left:7px; top:6px; bottom:6px; width:2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 30px 22px; }
.tl-item::before { content:""; position:absolute; left:-25px; top:5px; width:14px; height:14px; border-radius:50%; background: var(--bg); border:2px solid var(--accent); }
.tl-item.warn::before { border-color: var(--warn); }
.tl-item.hot::before { border-color: var(--hot); background: var(--hot); }
.tl-yr { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--accent); }
.tl-item.warn .tl-yr { color: var(--warn); }
.tl-item.hot .tl-yr { color: var(--hot); }
.tl-body { color: var(--ink-dim); font-size: 14px; margin-top: 4px; }

/* Numbered phase blocks */
.phase { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.phase:last-child { border-bottom: none; }
.phase .pnum { font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 0.9; opacity: 0.9; }
.phase h3 { margin-top: 0; }
@media (max-width: 640px){ .phase { grid-template-columns: 1fr; gap: 8px; } .phase .pnum { font-size: 30px; } }

/* BUTTONS ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-deep); border: none; border-radius: 10px; padding: 12px 22px; font-family: var(--mono); font-weight: 700; font-size: 14px; cursor: pointer; transition: opacity .2s, transform .1s; text-decoration: none; }
.btn:hover { opacity: .88; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.ghost:hover { background: rgba(10,122,116,0.07); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }

/* FORMS / TOOLS ---------------------------------------------------------- */
label { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-dim); margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--ink); font-family: var(--mono); font-size: 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; font-family: var(--code); font-size: 13px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%), linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field-help { font-size: 12px; color: var(--ink-faint); margin-top: 5px; text-transform: none; letter-spacing: 0; }

/* Range slider labeling */
.slider-row { display: grid; grid-template-columns: 1fr 70px; gap: 14px; align-items: center; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.slider-val { font-family: var(--display); font-size: 26px; color: var(--accent); text-align: right; }

/* Code / pre */
pre { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-x: auto; font-family: var(--code); font-size: 12.5px; line-height: 1.6; color: var(--ink); margin: 16px 0; }
pre code { background: none; border: none; color: inherit; padding: 0; font-family: var(--code); }

/* Result box */
.result-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-top: 18px; white-space: pre-wrap; font-size: 14px; line-height: 1.65; }
.result-box.empty { color: var(--ink-faint); }

/* Meter */
.meter { height: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin: 8px 0; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 20px; transition: width .4s; }
.meter.warn > span { background: var(--warn); }
.meter.hot > span { background: var(--hot); }
.meter.ok > span { background: var(--ok); }

/* KPI tiles */
.kpi { text-align: center; padding: 22px; }
.kpi .big { font-family: var(--display); font-size: 44px; font-weight: 600; line-height: 1; color: var(--accent); }
.kpi .lbl { font-size: 12px; color: var(--ink-dim); margin-top: 8px; }

/* Pills / tag list */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pill { font-size: 12px; border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px; color: var(--ink-dim); }
.pill.on { border-color: var(--accent); color: var(--accent); }

/* Accordion */
details { border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; background: var(--panel); overflow: hidden; }
details summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: 20px; }
details[open] summary::after { content: "\2013"; }
details .acc-body { padding: 0 20px 18px; font-size: 14px; color: var(--ink-dim); }

/* CTA band */
.cta { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 40px; text-align: center; margin: 30px 0; }
.cta h2 { margin-bottom: 10px; }
.cta p { max-width: 560px; margin: 0 auto 22px; }

/* FOOTER ----------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; text-align: center; color: var(--ink-faint); font-size: 12px; margin-top: 30px; }
footer b { color: var(--accent); }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { color: var(--ink-dim); }
.disclaimer { max-width: 680px; margin: 14px auto 0; line-height: 1.7; }

/* Utility */
.mt0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--ink-faint); }
.small { font-size: 12.5px; }
hr.div { border: none; border-top: 1px solid var(--line); margin: 30px 0; }
