@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&family=Outfit:wght@100..900&display=swap');

/* Dark, bootstrappy-ish utility vibes (inline, no external frameworks) */
:root {
  --bg: #0b0e14;
  --ink: #e8ecf5;
  --muted: #c3cad8;
  --panel: #333b50;
  --line: #1d2740;
	--blue: #2099dd;
	--purple: #9933dd;
  --btn: linear-gradient(135deg, var(--blue), var(--purple));
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --max: 1080px;
  --pad: 28px;
  --pad-lg: 32px;
  --leaf-red-1: #EF3340; /* flag red (Pantone 032C approx) */
  --leaf-red-2: #B30021; /* deeper red for gradient */
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

html,
body,
.modal-textarea {
  font: 16px/1.55 Onest, Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:not(.btn):hover { text-decoration: underline; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.center { text-align: center; }

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 400;
  color: #fff;
  background: var(--btn);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  letter-spacing: .25px;
  transition: filter ease-out 150ms;
  line-height: 18px;
}

.btn:hover,
.btn:active {
	filter: brightness(110%);
}
.feature, .block {
	transition: filter ease-out 150ms;
}
.feature:hover, .block:hover {
    filter: brightness(105%);
}

.btn.alt {
	background: var(--panel);
	color: var(--ink);
	border: 1px solid var(--line);
}

.lead {
	font-size: 20px;
	color: var(--muted);
	max-width: 70ch;
	margin: 0 auto 3rem;
	line-height: 1.5;
}

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* Blocks */
section.block { padding: var(--pad-lg) 0; }

.hero {
  border: 0;
  padding: calc(var(--pad-lg) + 12px) 0 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(122, 162, 255, .15), transparent),
    radial-gradient(1200px 600px at 50% -20%, rgba(138, 99, 255, .10), transparent);
	padding-bottom: 0 !important; 
}

.logo {
  margin: 3rem auto;
  width: min(380px, 80vw);
  padding: 30px;
}

h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 4rem;
}

h2 {
  font-size: 28px;
  margin: 0 0 28px;
  line-height: 1.25;
}

.spacer { height: 14px; }

.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 4rem 0
}

/* Feature rows */
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
.grid-two {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .grid-two {
    grid-template-columns: repeat(2, 1fr);
  }
}
.kicker {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: none;
}

.muted { color: var(--muted); }

/* Big stripes to encourage scrolling */
.stripe {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

footer {
  padding: 26px 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  position: static;
}

/* Dark base slightly lighter than black so glow shows */
body {
  background: #0d1323; /* a hair brighter than pure black */
  position: relative;
  overflow-x: hidden;
}

/* keep content above the glow */
header,
section,
footer,
.wrap {
  position: relative;
  z-index: 1;
}

/* BIG, saturated glow */
.bg-glow {
  position: fixed;
  inset: -30% -25% auto -25%;
  height: 110vh;
  z-index: 0;
  pointer-events: none;
  filter: blur(90px) saturate(140%);
  opacity: .95; /* make it loud; dial down later */
  background:
    /* center punch */
    radial-gradient(55% 65% at 50% -10%, rgba(255, 255, 255, .12), transparent 70%),
    /* left blue dome */
    radial-gradient(65% 70% at 20% 0%, rgba(70, 140, 255, .70), transparent 62%),
    /* right purple dome */
    radial-gradient(65% 70% at 80% 0%, rgba(150, 95, 255, .65), transparent 62%),
    /* low underglow band */
    radial-gradient(120% 50% at 50% 30%, rgba(50, 100, 255, .25), transparent 70%);
  mix-blend-mode: screen; /* brightens without muddying */
}

/* optional vignette to keep edges classy (comment out if you don’t want it) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(120% 120% at 50% 10%, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55) 70%);
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 12px;
}

.icon {
  font-size: 36px;
  line-height: 1;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; /* gradient text fill */
}

/* Canadian red gradient maple leaf */
.leaf-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.leaf-icon {
  font-size: 56px;
  line-height: 1;
  background: linear-gradient(90deg, var(--leaf-red-1), var(--leaf-red-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 6px 20px rgba(239, 51, 64, .35))
    drop-shadow(0 2px 8px rgba(179, 0, 33, .25));
  opacity: .98;
  margin: 1rem 0 2rem;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  color: var(--muted);
  font-size: 13px;
  left: auto;
  right: auto;
  bottom: auto;
}

.footer-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.footer-links {
	display: flex;
	gap: 16px;
	padding: 0 0 50px;
	justify-content: center;
}

.footer-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ink);
	background: var(--btn);
	border: 1px solid #2a334d;
	padding: 10px 14px;
	border-radius: 12px;
	text-decoration: none;
}

.footer-link.as-button {
	cursor: pointer;
	appearance: none;
	border: 0;
	width: 150px;
	justify-content: center;
	font-size: 16px;
	max-width: 37vw;
}

/* Modal */
.modal {
	position: fixed;
	inset: 0;
	z-index: -1;
	opacity: 0;
}

.modal.open {
	display: block;
	z-index: 5;
	opacity: 1;
	transition: opacity 150ms ease-in-out;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px);
}

.modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 92vw);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: var(--ink);
  overflow: hidden;
}
#deckModal .modal-card {
	width: min(800px, 92vw);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 20px;
}

.modal-header h3 {
	margin: 0;
	font-size: 18px;
	line-height: 24px;
}

.icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}

.icon-btn:hover { opacity: .85; }

.modal-body { padding: 0 16px; display: flex; flex-wrap: wrap; }

.modal-label {
  display: none;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.modal-textarea {
  width: 100%;
  min-height: 250px;
  resize: vertical;
}

.form-control {
  background: #0f1424;
  color: var(--ink);
  border: 1px solid #2a334d;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font-size: 20px;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(122, 162, 255, .15);
}

.modal-actions {
  display: flex;
  justify-content: space-evenly;
  gap: 12px;
  padding: 12px 16px;
}

/* Buttons reuse your existing .btn and .btn.secondary */
.cta .btn { width: 200px; }

/* BOTTOM RED GLOW */
.bg-glow-bottom {
  position: fixed;
  left: -5%;
  right: -5%;
  bottom: -35%;
  height: 120vh; /* tall dome rising up into the page */
  z-index: 1;
  pointer-events: none;
  filter: blur(90px) saturate(140%);
  opacity: .95; /* make it loud; dial down later */
  mix-blend-mode: screen;
  background:
    /* central red dome */
    radial-gradient(65% 70% at 50% 100%, rgba(239, 51, 64, .70), transparent 62%),
    /* deeper red edge */
    radial-gradient(80% 75% at 50% 105%, rgba(179, 0, 33, .55), transparent 70%),
    /* subtle cool lift to avoid muddying */
    radial-gradient(120% 60% at 50% 85%, rgba(255, 255, 255, .06), transparent 75%);
}

/* Reusable stripe icon styles (blue→purple gradient) */
.stripe-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  width: 86px;
  height: 86px;
  border-radius: 20px;
}

.stripe-icon {
  font-size: 46px;
  line-height: 1;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 6px 20px rgba(122, 162, 255, .28))
    drop-shadow(0 2px 8px rgba(138, 99, 255, .22));
  opacity: .98;
}

@media (min-width: 900px) {
  .stripe-icon-wrap {
    width: 96px;
    height: 96px;
  }
  .stripe-icon { font-size: 52px; }
}

@media (max-width: 899px) {
  section.block { padding: 8px 0; }
  .footer-link { padding: 10px; }
  .footer-link i { display: none; }

	.site-footer {
		padding-top: 3rem;		
	}
}

.modal-actions button {
  padding: 10px 30px;
  width: 100px;
  line-height: 18px;
}
.alert.alert-danger {
    color: lightpink;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.contact-sending {
    text-align: center;
    width: 100%;
    margin-top: 10%;	
}
.contact-sending h5 {
	margin: 1rem 0;
    font-size: 1.5rem;
}
.challenge-box {
	width: 150px;
    text-align: center;
    padding: 0 20px;
    white-space: nowrap;
	font-family: monospace;
    font-size: 20px;    
}
.challenge-box::before {
    content: "saffron-72";
    display: block;
    padding: 11px 0;
    border-radius: .375rem;
    letter-spacing: .6px;
}
button.btn-link {
    appearance: none;
    background: none;
    border: none;
    padding: 30px 0 0;
    color: var(--blue);
    text-decoration: underline;
    line-height: 1;
    cursor: pointer;
    font-size: 1rem;
}
.modal-actions #challengeInput {
	font-size: 19px;
	line-height: 23px;
	font-family: monospace;
	width: 100%;
}

/* mobile: 1st row 50/50, button full-width below */
@media (max-width: 899px) {
  .modal-actions {
		display: grid;
		grid-template-columns: 1fr 1fr; /* 50/50 */
		gap: 12px;
		align-items: center;
  }
  .modal-actions .challenge-box { grid-column: 1; width: auto; }
  .modal-actions #challengeInput {
		grid-column: 2;
		width: 100%; 
		font-size: 14px;
        line-height: 23px;
  }
  .modal-actions #submitContact { grid-column: 1 / -1; width: 100%; }
  .modal-header {
  	 padding: 8px 16px;
  }
  .slide-html {
  		padding: 16px !important;
  }
  .slide-html h2 {
  		margin-bottom: 12px;
  }
}
button.icon-btn.js-close-modal {
    padding: 10px;
}
#deckModal .modal-actions {
	display: block;
    text-align: center;
}

/* Deck layout */
.deck { position: relative; min-height: 320px; display: grid; place-items: center; width: 100%;
    height: 100%;}
.deck .deck-loading { display:flex; gap:10px; align-items:center; font-size:1.1rem; opacity:.8; }
.deck-slide { width:100%; max-width:1000px; height:min(600px,60vh); /*aspect-ratio:16/9;*/ border-radius:0;
  box-shadow:var(--shadow,0 10px 30px rgba(0,0,0,.35)); overflow:hidden; background:#111; display:none; }
.deck-slide.is-active { display:block; }
.deck-slide img { width:100%; height:100%; object-fit:cover; display:block; }


.slide-html {
  width: 100%;
  height: 100%;
  overflow: auto;

  /* Light card look */
  background: #f9fafc;        /* soft light gray-white, not harsh #fff */
  color: #1c1e23;             /* near-black for good readability */
  padding: 24px;

  /* Subtle elevation to stand off the dark modal background */
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Headings with a little brand color accent */
.slide-html h2 {
  margin-top: 0;
  color: var(--blue, #3366ff);
  font-weight: 600;
  line-height: 1.2;
}

/* Muted body text */
.slide-html p {
  line-height: 1.5;
  color: #333;
}
.slide-html li p {
	margin-top: 0;
}

/* Lists with spacing */
.slide-html ul {
  margin: 1em 0;
  padding-left: 2em;
}

.slide-html li {
  margin: 1em 0;
}

/* Actions/footer row */
.deck-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.deck-pagination { min-width:64px; text-align:center; font-variant-numeric:tabular-nums; opacity:.85; }
.deck-nav { display:flex; gap:8px; }

/* Fallback button styles if needed */
.icon-btn { border:0; background:var(--panel,#333a49); color:var(--ink,#e8ecf5); padding:10px 12px; border-radius:12px; }
.btn-ghost { background:transparent; border:1px solid var(--line,#1d2740); color:var(--ink,#e8ecf5); }

/*@media (max-width:640px){ .deck-slide { aspect-ratio:4/3; } }*/

.deck-nav {
  display: flex;
  align-items: center;       /* vertical centering */
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.deck-nav > * {
  flex: 1;                   /* stretch children equally */
  text-align: center;        /* center the middle one */
}

.deck-nav > :first-child {
  text-align: left;          /* align first item to start */
  padding-left: 1.5rem;
}

.deck-nav > :last-child {
  text-align: right;         /* align last item to end */
  padding-right: 1.5rem;
}

.slide-html table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: #1c1e23;
  font-size: 0.95rem;
}

.slide-html thead th {
  text-align: left;
  font-weight: 600;
  padding: 10px 12px;
  background: #f9fafc;                 /* soft header */
  border-bottom: 1px solid #e6e9ef;
}

.slide-html tbody td {
  padding: 10px 12px;
  border-top: 1px solid #eef2f7;       /* light row separators */
  vertical-align: middle;
      min-width: 150px;
}
.slide-html tbody tr:hover td {
  background: #fafcff;
}
a.pdf-download-btn {
	border: 1px solid white;
    color: white;
    padding: 5px 12px;
    border-radius: 0.5rem;
    opacity: 0.6;
    text-decoration: none !important;
    margin-right: 1rem;
    line-height: 16px;
    font-size: 12px;
    vertical-align: text-top;
    transition: opacity ease-in 150ms, background-color ease-in 150ms;
}
a.pdf-download-btn:hover, a.pdf-download-btn:focus, a.pdf-download-btn:active {
	opacity: 1;
	background: rgba(63,127,255,0.25);
}