/* =========================================================
   FREEDOM PATH REPLICATED WEBSITE
   DESIGN SETTINGS

   Change the values in :root to update the look of the site.
   The headline text and links are edited in assets/js/config.js.
   ========================================================= */

:root {
  --page-bg: #0b1016;
  --surface: #121a23;
  --surface-strong: #0f161e;
  --text-main: #ffffff;
  --text-muted: #c7d0d8;
  --line: rgba(255, 255, 255, 0.20);

  --accent: #27ed91;
  --accent-hover: #4af2a7;
  --accent-text: #06110b;

  --secondary-bg: #171f28;
  --secondary-hover: #202b36;
  --secondary-border: rgba(255, 255, 255, 0.34);

  --headline-font: "Oswald", Impact, sans-serif;
  --body-font: "Inter", Arial, sans-serif;

  --content-width: 1120px;
  --video-width: 980px;
  --video-radius: 22px;
  --button-radius: 14px;
}

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

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text-main);
  font-family: var(--body-font);
  background-color: var(--page-bg);
  background-image: url("/assets/images/background.svg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding:
    max(42px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(52px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
}

.hero {
  width: min(100%, var(--content-width));
  text-align: center;
}

.hero-header {
  width: min(100%, 1020px);
  margin: 0 auto 28px;
}

.hero-header h1 {
  margin: 0;
  color: var(--text-main);
  font-family: var(--headline-font);
  font-size: clamp(2.35rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.018em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 5px 26px rgba(0, 0, 0, 0.55);
}

.hero-subheadline {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
  text-wrap: balance;
}

.video-shell {
  position: relative;
  width: min(100%, var(--video-width));
  margin: 0 auto;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--video-radius);
  background: rgba(18, 26, 35, 0.92);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

.video-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  border-top: 1px solid rgba(39, 237, 145, 0.38);
  border-bottom: 1px solid rgba(87, 182, 235, 0.20);
  pointer-events: none;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--video-radius) - 7px);
  background: #000000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.enrollment-section[hidden] {
  display: none !important;
}

.enrollment-section {
  width: min(100%, 900px);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 25px;
}

.cta-button {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 17px 28px;
  border-radius: var(--button-radius);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 15px 36px rgba(0, 0, 0, 0.34);
  transition:
    transform 170ms ease,
    background-color 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.40);
}

.cta-button:active {
  transform: translateY(-1px);
}

.cta-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
}

.cta-primary {
  color: var(--accent-text);
  background: var(--accent);
  border: 1px solid var(--accent);
}

.cta-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.cta-secondary {
  color: var(--text-main);
  background: var(--secondary-bg);
  border: 1px solid var(--secondary-border);
}

.cta-secondary:hover {
  background: var(--secondary-hover);
  border-color: rgba(255, 255, 255, 0.58);
}

.choice-divider {
  position: relative;
  width: 1px;
  min-height: 66px;
  align-self: stretch;
  background: var(--line);
}

.choice-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  background: var(--surface-strong);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.noscript-message {
  width: min(100%, 760px);
  margin: 20px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: var(--text-muted);
  background: var(--surface);
}

@media (max-width: 760px) {
  .page-shell {
    display: block;
    min-height: 100vh;
    padding:
      max(30px, env(safe-area-inset-top))
      max(15px, env(safe-area-inset-right))
      max(38px, env(safe-area-inset-bottom))
      max(15px, env(safe-area-inset-left));
  }

  .hero-header {
    margin-bottom: 20px;
  }

  .hero-header h1 {
    font-size: clamp(2.15rem, 11vw, 3.65rem);
    line-height: 1;
  }

  .video-shell {
    padding: 4px;
    border-radius: 16px;
  }

  .video-wrap {
    border-radius: 12px;
  }

  .enrollment-section {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 21px;
  }

  .choice-divider {
    width: 100%;
    height: 1px;
    min-height: 1px;
    margin: 4px 0;
  }

  .choice-divider span {
    background: var(--surface-strong);
  }

  .cta-button {
    width: 100%;
    min-height: 60px;
  }
}

@media (max-width: 420px) {
  .hero-header h1 {
    font-size: clamp(2rem, 10.5vw, 2.85rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-button {
    transition: none;
  }
}
