/* ===========================================================
   NSIT — Tool page (single-preview layout)
   =========================================================== */

:root {
  --shadow: 9px 9px 16px rgba(0, 0, 0, 0.21);
  --rule: rgba(31, 42, 68, 0.14);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ===========================================================
   HERO ZONE — off-white, matching nsit.ca homepage / about
   =========================================================== */
.hero-zone { background: var(--off-white); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  padding-top: 56px;
  padding-bottom: 72px;
  text-align: left;
}
.crumbs {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(31, 42, 68, 0.6);
}
.crumbs a { transition: color 160ms ease; }
.crumbs a:hover { color: var(--rose); }

.eyebrow {
  margin: 0 0 18px;
  color: var(--rose);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow .dot { color: var(--gold); margin: 0 6px; }

.hero h1 {
  margin: 0;
  font-family: "Faculty Glyphic", Georgia, serif;
  font-weight: 400;
  font-size: 54px;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.hero-lede {
  width: min(720px, 100%);
  margin: 22px 0 0;
  color: var(--black);
  font-size: 19px;
  line-height: 32px;
}

/* ===========================================================
   DOWNLOAD — single preview + copy
   =========================================================== */
.download {
  display: grid;
  grid-template-columns: minmax(360px, 480px) 1fr;
  gap: 80px;
  align-items: start;
  padding-bottom: 96px;
}

.download-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.download-copy h2 {
  margin: 0;
  font-family: "Faculty Glyphic", Georgia, serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.download-copy > p:not(.updated-line) {
  margin: 0;
  color: var(--black);
  font-size: 18px;
  line-height: 30px;
  max-width: 520px;
}
.download-copy strong { font-weight: 700; color: var(--navy); }

.action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.updated-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: rgba(31, 42, 68, 0.55);
  letter-spacing: 0.02em;
}
.updated-line .ul-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
}
.updated-line time { font-weight: 600; color: rgba(31, 42, 68, 0.75); }

/* ===========================================================
   STYLIZED DOCUMENT PREVIEW
   =========================================================== */
.doc-preview {
  position: relative;
  perspective: 1400px;
  padding: 12px 0;
}
.doc-stage {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 360ms ease;
}
.doc-preview:hover .doc-stage {
  transform: rotateY(-1.5deg) rotateX(1.5deg) translateY(-3px);
}
.doc-sheet {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 8.5 / 11;
  margin: 0 auto;
  border-radius: 6px;
  background: var(--white);
  box-shadow:
    0 1px 0 rgba(31, 42, 68, 0.08),
    0 26px 50px -18px rgba(31, 42, 68, 0.30),
    0 16px 28px -12px rgba(31, 42, 68, 0.16);
  overflow: hidden;
}
/* stacked-paper shadow */
.doc-stage::before,
.doc-stage::after {
  position: absolute;
  left: 50%;
  top: 20px;
  max-width: 440px;
  width: calc(100% - 44px);
  aspect-ratio: 8.5 / 11;
  border-radius: 6px;
  content: "";
  z-index: -1;
  transform: translateX(-50%);
}
.doc-stage::before {
  background: var(--white);
  box-shadow: 0 16px 24px -14px rgba(31, 42, 68, 0.18);
  top: 28px;
  width: calc(100% - 88px);
}
.doc-stage::after {
  background: rgba(247, 245, 240, 0.85);
  top: 36px;
  width: calc(100% - 130px);
}

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 16px;
  border-bottom: 1px solid rgba(31, 42, 68, 0.08);
}
.doc-mast { display: flex; flex-direction: column; gap: 4px; }
.doc-mast-title {
  font-family: "Faculty Glyphic", Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--navy);
  line-height: 1.15;
}
.doc-mast-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
}

.doc-body {
  padding: 16px 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.doc-table {
  display: grid;
  gap: 1px;
  background: rgba(31, 42, 68, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.doc-tr {
  display: grid;
  grid-template-columns: 22px 1fr 36px 36px;
  padding: 5px 10px;
  background: var(--white);
  font-size: 9.5px;
  line-height: 1.3;
  align-items: center;
}
.doc-tr--head {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.doc-tr--banner {
  grid-template-columns: 1fr;
  background: var(--off-white);
  color: var(--navy);
  font-weight: 800;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 10px;
}
.doc-tr--banner-rose { background: rgba(240, 66, 107, 0.10); color: var(--rose); }
.doc-cat { font-weight: 700; color: var(--navy); }
.doc-name { color: var(--navy); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-yes { color: #1f8a5b; font-weight: 800; text-align: center; }
.doc-no  { color: #c0392b; font-weight: 800; text-align: center; }
.doc-yes-small { color: #1f8a5b; font-weight: 700; font-size: 8px; text-align: center; }

.doc-footer {
  margin-top: auto;
  padding: 10px 26px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(31, 42, 68, 0.6);
  border-top: 1px solid rgba(31, 42, 68, 0.08);
}
.doc-page { font-family: var(--mono); }

/* ===========================================================
   BUTTONS — production primary, with an alt variant for DOCX
   =========================================================== */
.primary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 192px;
  min-height: 54px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--rose);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.primary-button::before {
  position: absolute;
  left: 50%; top: 70px;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
  transform: translateX(-50%);
  transition: top 220ms ease, width 220ms ease, height 220ms ease, transform 220ms ease;
}
.primary-button > * { position: relative; z-index: 1; }
.primary-button .pb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--gold);
  transition: color 160ms ease, transform 240ms ease;
}
.primary-button:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(31, 42, 68, 0.18);
}
.primary-button:hover::before {
  top: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
}
.primary-button:hover .pb-icon { color: var(--navy); transform: translateY(2px); }
.primary-button:hover .pb-label { color: var(--white); }

/* Alt: navy background, gold ring fills to rose on hover — distinguishes DOCX */
.primary-button--alt { background: var(--navy); }
.primary-button--alt::before { background: var(--rose); }
.primary-button--alt .pb-icon { color: var(--gold); }
.primary-button--alt:hover { background: var(--rose); box-shadow: 0 10px 20px rgba(31, 42, 68, 0.18); }
.primary-button--alt:hover::before { background: var(--gold); }
.primary-button--alt:hover .pb-icon { color: var(--navy); }

/* ===========================================================
   USAGE BAND (3 cards)
   =========================================================== */
.usage-band {
  background: var(--light-blue);
  padding: 64px 0;
}
.usage-band .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.usage-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 30px;
  background: var(--white);
  border-radius: 18.626px;
  box-shadow: 0 6px 16px rgba(31, 42, 68, 0.05);
}
.usage-card .uc-kicker {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--rose);
}
.usage-card h3 {
  margin: 0;
  font-family: "Faculty Glyphic", Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--navy);
  line-height: 1.2;
}
.usage-card p {
  margin: 0;
  color: var(--black);
  font-size: 15px;
  line-height: 24px;
}

/* ===========================================================
   COMPLIANCE BAND
   =========================================================== */
.compliance {
  background: var(--navy);
  padding: 72px 0 80px;
}
.compliance-inner {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 36px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto 56px;
}
.compliance-inner > img { width: 96px; height: 96px; }
.compliance-copy h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  color: var(--light-blue);
  line-height: 1.25;
}
.compliance-copy > p {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 17px;
  line-height: 28px;
}
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 32px;
  color: var(--light-blue);
  font-size: 16px;
  line-height: 28px;
}
.check-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  content: "✓⃝";
}

.important-card {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto -1px;
  padding: 26px 30px 28px;
  border-radius: 24px;
  background: var(--rose);
  color: var(--white);
  text-align: center;
}
.important-card h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--gold);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
}
.important-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  background: url("assets/important-icon.png") center / contain no-repeat;
}
.important-card p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 26px;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  padding: 40px 0 32px;
  background: var(--white);
}
.footer-top {
  display: grid;
  grid-template-columns: 168px 380px 1fr;
  gap: 96px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--navy);
}
.footer-logo { width: 168px; }
.watermark {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
}
.lock-icon { display: inline-flex; width: 26px; height: 37px; color: var(--rose); transform: translateY(1px); }
.lock-icon svg { width: 26px; height: 37px; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 16px 60px;
  justify-content: end;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.footer-nav a:hover { color: var(--rose); }
.footer-bottom {
  display: grid;
  grid-template-columns: 366px 1fr;
  gap: 11px;
  padding-top: 20px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
}
.footer-bottom p { margin: 0; line-height: 16px; }
.footer-bottom p:last-child { text-align: right; }

/* ===========================================================
   TOAST
   =========================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
  z-index: 100;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .t-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
}

/* ===========================================================
   TWEAKS
   =========================================================== */
body[data-page-bg="cream"] .page-shell { background: var(--off-white); }
body[data-page-bg="cream"] .hero-zone { background: var(--white); }
body[data-page-bg="cream"] .site-footer { background: var(--off-white); }
body[data-page-bg="cream"] .usage-band { background: var(--white); }

body[data-show-breadcrumb="off"] .crumbs { display: none; }
body[data-show-important="off"]  .important-card { display: none; }
body[data-show-important="off"]  .compliance { padding-bottom: 32px; }

/* Updated-line styles */
body[data-updated-style="inline"] .updated-line {}
body[data-updated-style="badge"] .updated-line {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(252, 178, 21, 0.14);
  color: var(--navy);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
body[data-updated-style="badge"] .updated-line .ul-dot { background: var(--gold); }
body[data-updated-style="hidden"] .updated-line { display: none; }

#tweaks-root { position: relative; z-index: 1000; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1000px) {
  .download {
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 640px;
    margin: 0 auto;
  }
  .doc-sheet { max-width: 420px; }
  .hero h1 { font-size: 44px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding-bottom: 0; border-bottom: 0; }
  .footer-nav { justify-content: start; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-bottom p:last-child { text-align: left; }
  .compliance-inner { grid-template-columns: 1fr; gap: 20px; }
  .compliance-inner > img { width: 72px; height: 72px; }
  .usage-band .container { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .container { width: min(100% - 32px, var(--container)); }
  /* .site-header / .main-nav / .brand img are handled by the shared
     .has-mobile-menu pattern in site.css. */
  .hero { padding-top: 36px; padding-bottom: 48px; }
  .hero h1 { font-size: 34px; }
  .hero-lede { font-size: 16px; line-height: 26px; }
  .download-copy h2 { font-size: 30px; }
  .doc-preview { display: none; }
  .action-row .primary-button { flex: 1 1 100%; }
}
