/* Phalanx Nano — still-water / frost palette */
:root {
  --teal: #1C7293;
  --ink: #0E2A33;
  --mist: #E9F3F4;
  --paper: #FBFDFD;
  --copper: #C17A48;
  --line: #C9D9DD;
  --muted: #5F7782;
  --serif: Cambria, "Hoefler Text", "Times New Roman", Georgia, serif;
  --sans: Calibri, "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --serif-display: "Fraunces", "Playfair Display", Georgia, serif;
  --sans-ui: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; }
em { color: var(--teal); font-style: normal; }

/* ---------- NDA gate ---------- */
.gate { background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 320px); }
.gate-shell { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--teal); font-weight: 700; margin: 0 0 8px; }
.gate-head h1 { font-size: 32px; margin: 0 0 12px; }
.lede { color: var(--muted); font-size: 17px; margin: 0 0 8px; }

.nda-doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 32px;
  margin: 28px 0;
  max-height: 46vh;
  overflow-y: auto;
}
.nda-doc h1 { font-size: 22px; margin: 0 0 14px; }
.nda-doc h2 { font-size: 16px; margin: 22px 0 6px; color: var(--teal); }
.nda-doc h3 { font-size: 14px; margin: 16px 0 4px; }
.nda-doc p, .nda-doc li { font-size: 14.5px; color: #25434c; }
.nda-doc ul { margin: 6px 0 6px 18px; padding: 0; }

/* form */
.sign-form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px 32px; }
.form-error { background: #fdecec; border: 1px solid #f3b6b6; color: #8a1c1c; padding: 10px 14px; border-radius: 8px; margin: 0 0 18px; font-size: 14px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field span { font-size: 13px; font-weight: 600; color: var(--ink); }
.field em { color: var(--teal); }
.field input {
  font-family: var(--sans); font-size: 15px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink);
}
.field input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.signature input { font-family: var(--serif); font-size: 20px; font-style: italic; }

.meta-row { display: flex; gap: 32px; margin: 4px 0 20px; }
.meta-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.meta-val { font-size: 15px; font-weight: 600; }

.affirm { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 22px; font-size: 14.5px; }
.affirm input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--teal); }

.btn-primary {
  font-family: var(--sans); font-size: 16px; font-weight: 700; color: #fff;
  background: var(--teal); border: 0; border-radius: 8px; padding: 14px 26px; cursor: pointer;
}
.btn-primary:hover { background: #155d79; }
.fineprint { font-size: 12px; color: var(--muted); margin: 16px 0 0; }

/* ---------- Deck (block renderer) ---------- */
body.deck { background: var(--mist); font-family: var(--sans-ui); overflow-x: hidden; }
.slides { display: block; }
.slide { scroll-margin-top: 0; }

/* Cover */
.slide-cover {
  min-height: 100vh; display: flex; align-items: center; padding: 48px 40px;
  background: linear-gradient(135deg, var(--ink) 0%, #123039 55%, var(--teal) 135%); color: #fff;
}
.cover-grid { max-width: 1100px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
/* Shield mark only (wordmark cropped out — the title below already reads "Phalanx Nano").
   Transparent PNG, sits directly on the dark cover, sized by height. */
.cover-logo { display: block; height: 104px; width: auto; margin: 0 0 26px; }
.cover-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; color: #8FCBE2; margin: 0 0 16px; }
.cover-title { font-family: var(--serif-display); font-weight: 600; font-size: 58px; line-height: 1.02; margin: 0; color: #fff; }
.cover-subtitle { font-family: var(--serif-display); font-weight: 500; font-size: 30px; color: var(--copper); margin: 4px 0 0; }
.cover-tagline { font-size: 17px; font-style: italic; color: rgba(255,255,255,.82); margin: 22px 0 0; max-width: 42ch; }
.cover-hero img { width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); display: block; }

/* Content slide shell: top bar, body, footer */
.slide-content { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.topbar { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 40px; border-bottom: 1px solid var(--line); }
.slide-inner { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; min-width: 0; padding: 32px 40px 22px; }
.footer { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 12px 40px; border-top: 1px solid var(--line); }
.footer .foot-num { font-variant-numeric: tabular-nums; }

/* Numbered section bar */
.section-bar { display: flex; align-items: baseline; gap: 12px; background: var(--mist); border-left: 5px solid var(--teal); border-radius: 4px; padding: 13px 18px; margin: 0 0 24px; }
.section-num, .section-title { font-family: var(--serif-display); font-weight: 600; color: var(--teal); line-height: 1.15; }
.section-num { font-size: 20px; }
.section-title { font-size: 22px; }

/* Blocks */
.blk-banner { margin: 0 0 20px; }
.blk-banner img { width: 100%; height: 120px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; display: block; }

.blk-lead { font-size: 17px; color: #2a4751; max-width: 76ch; margin: 0 0 18px; }

.blk-bullets { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 11px; max-width: 82ch; }
.blk-bullets li { position: relative; padding-left: 24px; font-size: 15.5px; color: #25434c; }
.blk-bullets li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.blk-bullets strong { color: var(--ink); font-weight: 700; }

.blk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 4px 0 20px; }
.stat { background: var(--mist); border-radius: 8px; padding: 20px 16px; text-align: center; }
.stat-val { font-family: var(--serif-display); font-weight: 600; color: var(--teal); font-size: 30px; line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 9px; line-height: 1.35; }

.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 4px 0 18px; }
.blk-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.blk-table th {
  text-align: left; font-family: var(--sans-ui); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: .05em; color: var(--teal);
  background: var(--mist); padding: 9px 16px; white-space: nowrap;
}
.blk-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); color: #25434c; vertical-align: top; }
.blk-table tbody tr:last-child td { border-bottom: none; }
.blk-table .total-row td { font-weight: 700; color: var(--ink); border-top: 2px solid var(--teal); background: rgba(28,114,147,.05); }

.blk-highlight { background: var(--mist); border-left: 5px solid var(--teal); border-radius: 4px; padding: 16px 20px; margin: 6px 0 20px; font-size: 16px; }
.hl-lead { font-weight: 700; color: var(--teal); }
.hl-rest { color: #2a4751; }

figure { margin: 0 0 18px; }
figure figcaption { font-size: 12px; font-style: italic; color: var(--muted); margin-top: 8px; line-height: 1.4; max-width: 82ch; }
.blk-image img, .blk-chart img { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: block; }

.gal { display: grid; gap: 14px; }
.gal.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gal.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gal.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gal-item img { width: 100%; height: 180px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: block; }
.gal-label { display: block; font-size: 12px; font-weight: 600; color: var(--teal); margin-top: 6px; }

.blk-note { font-size: 12.5px; font-style: italic; color: var(--muted); max-width: 82ch; margin: 8px 0 16px; line-height: 1.5; }

/* placeholder shown by the deck script when an asset is not yet supplied */
.img-missing {
  display: flex; align-items: center; justify-content: center; min-height: 120px;
  border: 1px dashed var(--line); border-radius: 8px; background: var(--mist);
  color: var(--muted); font-size: 12.5px; font-style: italic; text-align: center; padding: 20px;
}

.deck-controls { position: fixed; right: 22px; bottom: 22px; display: flex; gap: 10px; z-index: 20; }
.ctrl {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--teal); font-size: 20px; cursor: pointer; box-shadow: 0 2px 10px rgba(14,42,51,.12);
}
.ctrl:hover { background: var(--teal); color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  /* gate page */
  .grid { grid-template-columns: 1fr; }
  .gate-head h1 { font-size: 26px; }
  .nda-doc { padding: 20px; }
  .sign-form { padding: 22px; }
  /* deck */
  .cover-grid { grid-template-columns: 1fr; gap: 28px; }
  .cover-title { font-size: 40px; }
  .cover-subtitle { font-size: 24px; }
  .slide-cover { padding: 40px 22px; }
  .cover-logo { height: 88px; width: auto; margin-bottom: 22px; }
  .topbar, .footer { padding-left: 20px; padding-right: 20px; }
  .slide-inner { padding: 24px 20px 18px; }
  .section-title { font-size: 18px; }
  .section-num { font-size: 17px; }
  .blk-lead { font-size: 15.5px; }
  .blk-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-val { font-size: 26px; }
  .gal.cols-3, .gal.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .gal-item img { height: 140px; }
  .blk-table { font-size: 13px; }
  .blk-table th, .blk-table td { padding: 8px 12px; }
  .table-wrap { scrollbar-width: thin; }
}
