:root {
  --ink: #13202E;
  --ink-2: #374151;
  --muted: #4B5563;
  --terracotta: #B04A33;
  --terracotta-dark: #8F3A27;
  --gold: #E9B04A;
  --mist: #F4F5F7;
  --line: #E2E5EA;
  --white: #FFFFFF;
  --pass: #2F7D5B;
  --warn: #9A6200;
  --fail: #B42318;
  --info: #3B5B7A;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--terracotta); }
a:hover { color: var(--terracotta-dark); }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header { background: var(--ink); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.logo { display: inline-flex; flex-direction: column; color: inherit; text-decoration: none; }
.logo:hover { color: inherit; }
.logo-word { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.logo-line { width: 150px; height: 18px; margin-top: 2px; }
.logo-sub { font-size: 9.5px; font-weight: 700; letter-spacing: 0.3em; color: #C7CFD9; margin-top: 2px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: #E6EAF0; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }

/* Hero */
.hero { background: var(--ink); color: var(--white); padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 20px; max-width: 760px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: #D3DAE3; max-width: 640px; margin: 0 0 32px; }
.hero-pulse { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 60px; opacity: 0.9; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--mist); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terracotta); margin: 0 0 10px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 800; }
.section-intro { color: var(--ink-2); font-size: 18px; max-width: 680px; margin: 0 0 36px; }

/* Checker */
.checker { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 2px rgba(19,32,46,0.04); }
.checker form { display: flex; gap: 12px; flex-wrap: wrap; }
.checker label { display: block; font-weight: 700; margin-bottom: 8px; }
.checker input { flex: 1 1 280px; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 17px; border: 1.5px solid #B8C0CC; border-radius: 10px; color: var(--ink); }
.checker input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(233,176,74,0.5); }
.checker .small { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.check-error { color: var(--fail); font-weight: 600; margin: 16px 0 0; }
.report { margin-top: 28px; }
.report-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 8px; }
.report-head h3 { margin: 0; font-size: 22px; }
.tally { display: flex; gap: 8px; flex-wrap: wrap; }
.finding { border-bottom: 1px solid var(--line); }
.finding summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 4px; }
.finding summary::-webkit-details-marker { display: none; }
.finding summary .title { font-weight: 700; }
.finding summary .sum { display: block; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.finding summary .chev { color: var(--muted); transition: transform .15s; }
.finding[open] summary .chev { transform: rotate(90deg); }
.finding .body { padding: 0 4px 18px 0; margin-left: 110px; color: var(--ink-2); }
.finding .body p { margin: 0 0 10px; }
.finding pre { background: var(--mist); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; white-space: pre-wrap; word-break: break-word; font-size: 14px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; margin: 6px 0 10px; color: var(--ink); }
.fix-label { font-weight: 700; color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; min-width: 96px; justify-content: center; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip.pass { color: var(--pass); background: #E3F2EA; }
.chip.warn { color: var(--warn); background: #FBF0D9; }
.chip.fail { color: var(--fail); background: #FCE6E4; }
.chip.info { color: var(--info); background: #E6EDF4; }
.report-cta { margin-top: 24px; padding: 22px; background: var(--ink); color: var(--white); border-radius: var(--radius); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.report-cta p { margin: 0; font-size: 17px; }

/* Cyber Essentials readiness */
.ce-group { border: 0; padding: 0; margin: 0 0 28px; }
.ce-group legend { font-size: 19px; font-weight: 800; padding: 0 0 6px; margin-bottom: 4px; border-bottom: 2px solid var(--terracotta); }
.ce-q { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ce-text { margin: 0 0 4px; font-weight: 600; }
.ce-num { color: var(--terracotta); font-weight: 800; }
.ce-help { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.ce-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ce-opt { position: relative; }
.ce-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ce-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid #B8C0CC; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px; background: var(--white); }
.ce-opt span:hover { border-color: var(--ink); }
.ce-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.ce-opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.ce-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
#ce-report { margin-top: 24px; }
.ce-verdict.pass { color: var(--pass); }
.ce-verdict.warn { color: var(--warn); }
.ce-verdict.fail { color: var(--fail); }
.ce-summary { font-size: 17px; color: var(--ink-2); margin: 4px 0 8px; }
.ce-gap { padding: 10px 0; border-top: 1px dashed var(--line); }
.ce-gap:first-child { border-top: 0; padding-top: 0; }
.ce-gap p { margin: 0 0 6px; }
.ce-ans { color: var(--muted); font-size: 14px; }
.ce-ans b { color: var(--fail); }
.ce-note { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* Services */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 14px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-2); }
.card svg { width: 32px; height: 32px; color: var(--terracotta); }

/* About */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: center; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.points strong { display: block; }
.points span { color: var(--ink-2); }
.points svg { width: 24px; height: 24px; color: var(--terracotta); margin-top: 3px; }
.tower-art { width: 100%; max-width: 420px; height: auto; margin: 0 auto; }

/* Contact */
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field textarea { width: 100%; padding: 12px 14px; min-height: 48px; font: inherit; border: 1.5px solid #B8C0CC; border-radius: 10px; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(233,176,74,0.5); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: 14px; margin: 0; }
.form-status { font-weight: 600; margin: 0; }
.form-status.ok { color: var(--pass); }
.form-status.err { color: var(--fail); }
@media (max-width: 640px) {
  .contact-form { grid-template-columns: 1fr; padding: 20px; }
  .checker { padding: 20px; }
  .finding .body { margin-left: 0; }
  .finding summary { grid-template-columns: 1fr auto; }
  .finding summary .chip { grid-column: 1 / -1; justify-self: start; }
  section { padding: 56px 0; }
}

/* Footer */
.site-footer { background: var(--ink); color: #C7CFD9; padding: 40px 0; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: #F0C27A; }
.site-footer details summary { cursor: pointer; color: var(--white); font-weight: 600; }
.site-footer details p { max-width: 640px; }
