/* ==========================================================================
   Managed Firewall Services
   Design system: "policy console"
   Fixed left rail, steel/signal-blue palette, condensed display type,
   zero-radius geometry, elevation by border rather than blur.
   ========================================================================== */

:root {
  /* structure */
  --void:      #0A0F1A;
  --void-2:    #101827;
  --void-3:    #1B2637;
  --ink:       #0F1723;
  --body:      #3E4E63;
  --muted:     #6B7C93;
  --line:      #D5DDE7;
  --line-2:    #C0CBD9;
  --panel:     #EDF1F6;
  --panel-2:   #E2E9F1;
  --white:     #FFFFFF;

  /* signal */
  --allow:      #1B54B8;
  --allow-dark: #144090;
  --allow-soft: #E4ECFB;
  --allow-dim:  #6E93DC;
  --deny:       #B3261E;
  --deny-soft:  #FBE9E7;
  --watch:      #8A5A00;
  --watch-soft: #FBF1DF;

  /* metrics */
  --rail:   236px;
  --wrap:   1080px;
  --gut:    clamp(1.25rem, 4vw, 3.25rem);

  --hard:  4px 4px 0 var(--line-2);
  --hard-blue: 4px 4px 0 var(--allow);

  --ease: cubic-bezier(.2,.7,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 767px) { body { font-size: 16px; } }

h1, h2, h3, h4 {
  font-family: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1rem; max-width: 70ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--allow-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--allow);
  outline-offset: 2px;
}

strong { color: var(--ink); font-weight: 600; }

/* monospace utility: used only inside data components, never as a section kicker */
.mono {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .715rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 0; top: -200px; z-index: 200;
  background: var(--allow); color: var(--white);
  padding: .8rem 1.4rem; font-weight: 600;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ============================================================ page shell */

.page { min-height: 100vh; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

@media (min-width: 1100px) {
  .page { margin-left: var(--rail); }
}

/* ------------------------------------------------------------- left rail */

.rail {
  background: var(--void);
  color: #9FB0C6;
  display: flex; flex-direction: column;
}

@media (min-width: 1100px) {
  .rail {
    position: fixed; inset: 0 auto 0 0;
    width: var(--rail); height: 100vh;
    border-right: 1px solid #22314A;
    z-index: 60;
  }
}

.rail-mark {
  display: flex; align-items: center; gap: .7rem;
  padding: 1.6rem 1.5rem 1.4rem;
  color: var(--white); text-decoration: none;
  border-bottom: 1px solid #1E2B41;
}
.rail-mark svg { width: 30px; height: 30px; flex: none; }
.rail-mark b {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600; font-size: 1.14rem; line-height: 1.1;
  letter-spacing: .01em; display: block;
}
.rail-mark span { display: block; color: var(--allow-dim); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; margin-top: .18rem; }

.rail-nav { padding: 1.1rem 0; flex: 1 1 auto; overflow-y: auto; }
.rail-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rail-nav a {
  display: grid; grid-template-columns: 30px 1fr; gap: .55rem;
  padding: .5rem 1.5rem;
  color: #93A5BC; text-decoration: none;
  font-size: .89rem; line-height: 1.35;
  border-left: 2px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease), background-color .15s var(--ease);
}
.rail-nav a i {
  font-family: 'IBM Plex Mono', monospace;
  font-style: normal; font-size: .7rem; color: #55698A; padding-top: .16rem;
}
.rail-nav a:hover { color: var(--white); background: #101B2C; border-left-color: var(--allow); }
.rail-nav a:hover i { color: var(--allow-dim); }

.rail-foot { padding: 1.25rem 1.5rem 1.6rem; border-top: 1px solid #1E2B41; }
.rail-foot p { font-size: .78rem; color: #7387A2; margin: 0 0 .85rem; max-width: none; }

/* the mark block is always present; only the drawer button is breakpoint-bound */
.topbar { display: block; }
.rail-toggle { display: none; }

@media (max-width: 1099px) {
  .rail {
    position: sticky; top: 0; z-index: 60;
    width: 100%; height: auto;
    border-bottom: 1px solid #22314A;
  }
  .rail-mark { border-bottom: none; flex: 1; padding: .95rem var(--gut); }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
  }
  .rail-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-right: var(--gut);
    background: transparent; border: 1px solid #2C3D58; color: var(--white);
    cursor: pointer;
  }
  .rail-toggle svg { width: 22px; height: 22px; }
  .rail-nav, .rail-foot { display: none; border-top: 1px solid #1E2B41; }
  .rail.is-open .rail-nav, .rail.is-open .rail-foot { display: block; }
  .rail-nav a { padding: .75rem var(--gut); }
  .rail-foot { padding: 1.25rem var(--gut) 1.5rem; }
}

/* ================================================================== hero */

.hero {
  background:
    linear-gradient(180deg, #0A0F1A 0%, #0C1422 62%, #0E1929 100%);
  color: #B7C6DA;
  border-bottom: 1px solid #22314A;
  padding: clamp(2.75rem, 6vw, 4.75rem) 0 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(110,147,220,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,147,220,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-grid { display: grid; gap: clamp(2rem, 4vw, 3.25rem); align-items: start; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3.5rem; }
}

.hero h1 { color: var(--white); margin-bottom: 1.15rem; }
.hero h1 .yr {
  display: inline-block;
  font-size: .3em; font-weight: 500; letter-spacing: .12em;
  color: var(--allow-dim); vertical-align: super; margin-left: .55rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.9vw, 1.24rem);
  line-height: 1.55; color: #A7B8CE; max-width: 46ch;
  margin-bottom: 1.85rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid #22314A;
}
.hero-meta div {
  padding: .95rem 1.35rem .95rem 0;
  margin-right: 1.35rem;
  border-right: 1px solid #22314A;
}
.hero-meta div:last-child { border-right: none; margin-right: 0; }
.hero-meta b { display: block; color: var(--white); font-size: .82rem; letter-spacing: .04em; margin-top: .2rem; font-weight: 500; }
.hero-meta .mono { color: #61789A; }

/* nested perimeter zones */
.zones { border: 1px solid #2A3A55; background: rgba(10,16,27,.55); padding: 1.1rem; }
.zone {
  border: 1px dashed #33455F;
  padding: 2.05rem 1.1rem 1.1rem;
  position: relative;
}
.zone + .zone { margin-top: 0; }
.zone-tag {
  position: absolute; top: .55rem; left: .8rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .65rem; letter-spacing: .13em; text-transform: uppercase;
  color: #6F86A6;
}
.zone-2 { border-style: solid; border-color: var(--allow); background: rgba(27,84,184,.10); }
.zone-2 > .zone-tag { color: var(--allow-dim); }
.zone-3 { border-color: #3D5170; }
.zone-4 {
  border: 1px solid #46608A; background: rgba(110,147,220,.10);
  padding: 2.05rem 1.1rem 1.35rem;
}
.zone-note {
  margin: .9rem 0 0; font-size: .8rem; color: #6F86A6; max-width: none;
  font-family: 'IBM Plex Mono', monospace; letter-spacing: .02em;
}

/* ============================================================== buttons */

.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: 52px; padding: 0 1.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .78rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 0;
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary { background: var(--allow); color: var(--white); }
.btn-primary:hover { background: var(--allow-dark); color: var(--white); box-shadow: var(--hard-blue); transform: translate(-2px, -2px); }
.btn-primary:active { transform: translate(0,0); box-shadow: none; }

.btn-onvoid { background: var(--white); color: var(--ink); }
.btn-onvoid:hover { background: var(--allow-soft); color: var(--ink); box-shadow: 4px 4px 0 rgba(110,147,220,.5); transform: translate(-2px,-2px); }

.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); background: var(--panel); color: var(--ink); }

.btn-block { width: 100%; justify-content: center; min-height: 46px; font-size: .72rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--allow-dim); text-decoration: none;
  border-bottom: 1px solid rgba(110,147,220,.45); padding-bottom: .2rem;
}
.link-arrow:hover { color: var(--white); border-bottom-color: var(--white); }
.link-arrow svg { width: 14px; height: 14px; }

/* ============================================================== sections */

.sec { padding: clamp(3.25rem, 6.5vw, 5.25rem) 0; border-top: 1px solid var(--line); }
.sec:first-of-type { border-top: none; }
.sec-panel { background: var(--panel); border-top: 1px solid var(--line); }
.sec-void { background: var(--void); border-top: none; color: #A7B8CE; }
.sec-void h2, .sec-void h3 { color: var(--white); }

/* numbered section head: index sits in a left gutter, heading beside it */
.head { display: grid; gap: .6rem 1.5rem; margin-bottom: clamp(1.9rem, 3.5vw, 2.75rem); }
@media (min-width: 860px) {
  .head { grid-template-columns: 64px minmax(0, 1fr); gap: 0 1.75rem; }
}
.head-no {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .78rem; letter-spacing: .1em; color: var(--allow);
  padding-top: .5rem;
  border-top: 2px solid var(--allow);
  display: inline-block; align-self: start;
}
.sec-void .head-no { color: var(--allow-dim); border-top-color: var(--allow-dim); }
.head-body { max-width: 74ch; }
.head-body h2 { margin-bottom: .85rem; }
.head-body p:last-child { margin-bottom: 0; }

.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1rem; }
.sec-void .prose, .sec-void p { color: #A7B8CE; }
.sec-void strong { color: var(--white); }

.offset { }
@media (min-width: 860px) { .offset { padding-left: calc(64px + 1.75rem); } }

/* ------------------------------------------------- 01 scope: policy rows */

.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; gap: .35rem 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
@media (min-width: 760px) {
  .row { grid-template-columns: 64px minmax(180px, 260px) minmax(0, 1fr); gap: 0 1.75rem; }
}
.row-no {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem; letter-spacing: .1em; color: var(--allow);
}
.row-name {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600; font-size: 1.18rem; color: var(--ink); line-height: 1.2;
}
.row-desc { color: var(--body); font-size: .97rem; }
.row:hover { background: var(--panel); }
.row:hover .row-no { color: var(--allow-dark); }

/* ------------------------------------------- 02 NGFW inspection pipeline */

.pipe-frame { border: 1px solid var(--line); background: var(--white); }
.pipe-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1.1rem; border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}
.pipe-head span { display: inline-flex; align-items: center; gap: .45rem; }
.pipe-head svg { width: 15px; height: 15px; color: var(--allow); }

.pipe { display: grid; }
@media (min-width: 900px) { .pipe { grid-template-columns: repeat(5, 1fr); } }

.gate {
  padding: 1.2rem 1.1rem 1.3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
@media (min-width: 900px) {
  .gate { border-bottom: none; border-right: 1px solid var(--line); }
  .gate:last-child { border-right: none; }
}
.gate-no {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem; letter-spacing: .1em; color: var(--allow);
  display: block; margin-bottom: .6rem;
}
.gate svg { width: 20px; height: 20px; color: var(--allow); display: block; margin-bottom: .6rem; }
.gate b {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600; font-size: 1.06rem; color: var(--ink);
  display: block; line-height: 1.18; margin-bottom: .35rem;
}
.gate p { font-size: .89rem; color: var(--muted); margin: 0; }

.pipe-base {
  display: flex; align-items: center; gap: .8rem;
  padding: .95rem 1.1rem;
  border-top: 1px solid var(--line-2);
  background: repeating-linear-gradient(135deg, var(--panel) 0 8px, var(--panel-2) 8px 16px);
}
.pipe-base svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.pipe-base b { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 600; color: var(--ink); }
.pipe-base span { font-size: .89rem; color: var(--muted); }

.pipe-foot { padding: .85rem 1.1rem; border-top: 1px solid var(--line); font-size: .87rem; color: var(--muted); }

/* ------------------------------------------------------------- tables */

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 660px; }
caption { caption-side: top; text-align: left; }

thead th {
  background: var(--panel);
  color: var(--ink);
  text-align: left; vertical-align: bottom;
  padding: .85rem 1.15rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 2px solid var(--allow);
  white-space: nowrap;
}
tbody tr + tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: var(--allow-soft); }
td, tbody th { padding: 1rem 1.15rem; vertical-align: top; text-align: left; color: var(--body); }
tbody th {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 1.1rem; font-weight: 600; color: var(--ink); white-space: nowrap;
}

/* ------------------------------------- 04 enforcement: split comparison */

.split { display: grid; border: 1px solid var(--line); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.half { padding: clamp(1.6rem, 3vw, 2.4rem); }
.half-light { background: var(--white); border-bottom: 1px solid var(--line); }
.half-dark { background: var(--void-2); color: #A7B8CE; }
@media (min-width: 900px) {
  .half-light { border-bottom: none; border-right: 1px solid var(--line); }
}
.half h3 { margin-bottom: .35rem; font-size: 1.6rem; }
.half-dark h3 { color: var(--white); }
.half-kicker { margin-bottom: 1.4rem; color: var(--muted); }
.half-dark .half-kicker { color: var(--allow-dim); }

.attr { list-style: none; margin: 0; padding: 0; }
.attr li { padding: .8rem 0; border-top: 1px solid var(--line); display: grid; gap: .15rem; }
.half-dark .attr li { border-top-color: #22314A; }
.attr dt, .attr .k {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.half-dark .attr .k { color: #6F86A6; }
.attr .v { color: var(--ink); font-size: .96rem; }
.half-dark .attr .v { color: #C6D4E5; }

.half-note { margin-top: 1.3rem; font-size: .88rem; color: var(--muted); }
.half-dark .half-note { color: #7B90AD; }

/* ---------------------------------------------- 05 triggers: deny list */

.deny-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.deny-list li {
  display: grid; gap: .25rem 1.1rem; align-items: start;
  grid-template-columns: 22px minmax(0, 1fr);
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 1rem;
}
.deny-mark {
  width: 14px; height: 14px; margin-top: .32rem;
  border: 2px solid var(--deny); position: relative;
}
.deny-mark::after {
  content: ''; position: absolute; inset: 2px;
  background: var(--deny); opacity: .22;
}
@media (min-width: 760px) {
  .deny-list { columns: 2; column-gap: 3rem; }
  .deny-list li { break-inside: avoid; }
}

/* --------------------------------------------------- 06 vertical bands */

.vband {
  display: grid; gap: 1.1rem 2rem;
  padding: clamp(1.6rem, 3vw, 2.3rem) 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 880px) {
  .vband { grid-template-columns: 64px minmax(200px, 250px) minmax(0, 1fr); gap: 0 1.75rem; align-items: start; }
}
.vband:last-of-type { border-bottom: 1px solid var(--line); }
.vband-no {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.9rem; line-height: 1; color: var(--line-2); font-weight: 300;
}
.vband h3 { font-size: 1.5rem; }
.vband-kicker { margin-top: .3rem; color: var(--allow); }

/* --------------------------------------------- 07 pricing matrix + block */

.excl {
  border: 1px solid var(--line);
  border-left: 4px solid var(--deny);
  background: var(--white);
  padding: 1.4rem 1.5rem;
}
.excl h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.excl ul { list-style: none; margin: 0; padding: 0; }
.excl li {
  display: grid; grid-template-columns: 18px 1fr; gap: .8rem;
  padding: .5rem 0; font-size: .96rem; color: var(--body);
}
.excl li::before {
  content: ''; width: 10px; height: 2px; background: var(--deny); margin-top: .72rem;
}

/* ------------------------------------------- 08 SLA clauses: config rows */

.cfg { border-top: 1px solid var(--line); font-family: inherit; }
.cfg li {
  display: grid; gap: .2rem 1.5rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 800px) { .cfg li { grid-template-columns: 240px minmax(0, 1fr); gap: 0 2rem; align-items: baseline; } }
.cfg { list-style: none; margin: 0; padding: 0; }
.cfg .k {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .74rem; letter-spacing: .07em; color: var(--allow-dark); text-transform: uppercase;
}
.cfg .v { color: var(--ink); font-size: .98rem; }

/* ---------------------------------------- 09 onboarding vertical timeline */

.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before {
  content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line-2);
}
.tl li { position: relative; padding: 0 0 1.6rem 3.1rem; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: ''; position: absolute; left: 5px; top: 6px;
  width: 13px; height: 13px; background: var(--white);
  border: 2px solid var(--line-2); z-index: 2;
}
.tl-no {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem; letter-spacing: .1em; color: var(--muted); display: block; margin-bottom: .15rem;
}
.tl h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.tl p { font-size: .94rem; color: var(--body); margin: 0; max-width: 62ch; }
.tl .gate-step::before { background: var(--allow); border-color: var(--allow); }
.tl .gate-step h3 { color: var(--allow-dark); }
.tl .gate-step .tl-no { color: var(--allow); }
.tl .gate-step {
  border-left: 0;
}

/* ------------------------------------------------ 10 cadence strip */

.cadence { display: grid; gap: 0; border: 1px solid #22314A; }
@media (min-width: 860px) { .cadence { grid-template-columns: repeat(3, 1fr); } }
.cad {
  padding: 1.5rem 1.4rem;
  border-bottom: 1px solid #22314A;
}
@media (min-width: 860px) {
  .cad { border-bottom: none; border-right: 1px solid #22314A; }
  .cad:last-child { border-right: none; }
}
.cad .k { color: var(--allow-dim); display: block; margin-bottom: .7rem; }
.cad p { color: #A7B8CE; font-size: .95rem; margin: 0; }

/* ------------------------------------- 04 coverage map, on a void panel */

.cov { border: 1px solid #22314A; background: var(--void-2); margin: 0; }

.cov-head {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  padding: .8rem 1.1rem; border-bottom: 1px solid #22314A; color: #6F86A6;
}

.cov-body { padding: 1.35rem 1.1rem .9rem; overflow-x: auto; }

.week { display: flex; flex-direction: column; gap: 4px; min-width: 460px; }

.week-row {
  display: grid; grid-template-columns: 38px repeat(24, 1fr);
  gap: 3px; align-items: center;
}

.week-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .62rem; letter-spacing: .09em; text-transform: uppercase;
  color: #61789A; text-align: right; padding-right: .4rem;
}

.hr-cell {
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 1px solid #263852;
}
.hr-cell.covered { background: var(--allow); border-color: var(--allow-dim); }

.week-scale {
  display: grid; grid-template-columns: 38px repeat(24, 1fr);
  gap: 3px; margin-top: .5rem;
}
.week-scale span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .58rem; color: #55698A; text-align: center; white-space: nowrap;
}

.cov-legend {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  padding: .9rem 1.1rem 1rem; border-top: 1px solid #22314A;
  font-size: .82rem; color: #7B90AD;
}
.cov-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.cov-legend i { width: 12px; height: 12px; border: 1px solid #263852; flex: none; }
.cov-legend i.on { background: var(--allow); border-color: var(--allow-dim); }

/* ================================================================== CTA */

/* A: full-bleed void band, text left / action right */
.cta-void { background: var(--void); border-top: 1px solid #22314A; padding: clamp(2.5rem, 5vw, 3.6rem) 0; }
.cta-void .inner { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 880px) { .cta-void .inner { grid-template-columns: minmax(0,1fr) auto; gap: 3rem; } }
.cta-void h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: .7rem; }
.cta-void p { color: #A7B8CE; margin: 0; max-width: 58ch; }

/* B: inset bordered block with hard offset shadow */
.cta-inset { padding: clamp(2.5rem, 5vw, 3.6rem) 0; }
.cta-inset .inner {
  background: var(--white);
  border: 1px solid var(--ink);
  border-left: 6px solid var(--allow);
  box-shadow: var(--hard);
  padding: clamp(1.6rem, 3.2vw, 2.4rem);
  display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 880px) { .cta-inset .inner { grid-template-columns: minmax(0,1fr) auto; gap: 2.5rem; } }
.cta-inset h2 { font-size: clamp(1.55rem, 2.7vw, 2.05rem); margin-bottom: .65rem; }
.cta-inset p { margin: 0; max-width: 58ch; }

/* C: centered stack on void */
.cta-center { background: var(--void); padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; border-top: 1px solid #22314A; }
.cta-center h2 { color: var(--white); font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 auto .95rem; max-width: 20ch; }
.cta-center p { color: #A7B8CE; margin: 0 auto 1.9rem; max-width: 56ch; }
.cta-center .btn { margin: 0 auto; }

/* ================================================================== FAQ */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 56px minmax(0,1fr) 34px; align-items: center;
  gap: 0 .6rem; padding: 1.25rem 0; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  font-family: 'IBM Plex Mono', monospace; font-style: normal;
  font-size: .72rem; letter-spacing: .1em; color: var(--allow);
}
.faq summary b {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600; font-size: 1.22rem; color: var(--ink); line-height: 1.22;
}
.faq summary:hover b { color: var(--allow-dark); }
.faq .sign { position: relative; width: 18px; height: 18px; justify-self: end; }
.faq .sign::before, .faq .sign::after {
  content: ''; position: absolute; background: var(--allow); transition: transform .18s var(--ease);
}
.faq .sign::before { left: 0; right: 0; top: 8px; height: 2px; }
.faq .sign::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.faq details[open] .sign::after { transform: scaleY(0); }
.faq details[open] summary b { color: var(--allow-dark); }
.faq .ans { padding: 0 34px 1.5rem 56px; }
.faq .ans p { margin: 0; font-size: .98rem; color: var(--body); max-width: 74ch; }

@media (max-width: 640px) {
  .faq summary { grid-template-columns: 34px minmax(0,1fr) 24px; }
  .faq .ans { padding-left: 34px; padding-right: 0; }
}

/* =============================================================== footer */

.foot { background: var(--void); color: #7F93AE; border-top: 1px solid #22314A; }
.foot-top { display: grid; gap: 2.25rem; padding: clamp(2.5rem, 5vw, 3.5rem) 0 2.25rem; }
@media (min-width: 900px) { .foot-top { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 3rem; } }

.foot-word {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.02;
  color: var(--white); letter-spacing: -0.01em; margin-bottom: .9rem;
  text-decoration: none; display: block; max-width: 12ch;
}
.foot-word:hover { color: var(--allow-dim); }
.foot-top p { font-size: .88rem; color: #7387A2; margin: 0; max-width: 40ch; }

.foot-col h3 {
  color: var(--allow-dim); font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid #22314A;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li + li { margin-top: .55rem; }
.foot-col a { color: #93A5BC; text-decoration: none; font-size: .92rem; }
.foot-col a:hover { color: var(--white); text-decoration: underline; }

.foot-bar {
  border-top: 1px solid #22314A;
  padding: 1.1rem 0 1.6rem;
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  color: #61789A;
}

/* ============================================================= subpages */

.ph { background: var(--void); color: #A7B8CE; padding: clamp(2.5rem, 5vw, 3.75rem) 0; }
.ph h1 { color: var(--white); font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
.ph .mono { color: var(--allow-dim); display: block; margin-bottom: .8rem; }
.pb { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.pb h2 { font-size: 1.5rem; margin: 2.2rem 0 .85rem; }
.pb h2:first-child { margin-top: 0; }
.pb ul { padding-left: 1.15rem; }
.pb li { margin-bottom: .5rem; }
