/* ============================================================
   Cumulus Blue Platforms — static prototype stylesheet
   Shared by index.html (Home), about.html, contact.html
   ============================================================ */

:root {
  --navy:        #1B2D5B;
  --navy-deep:   #0F1E45;
  --blue:        #2F6BB6;
  --blue-light:  #6FA3DE;
  --grey-light:  #F4F6FA;
  --grey-mid:    #9CA3AF;
  --grey-line:   #E5E8EE;
  --text:        #1F2937;
  --text-dim:    #6B7280;
  --white:       #FFFFFF;

  --container:   1180px;
  --radius:      8px;
  --radius-lg:   16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== NAV ===================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
}
.nav__brand {
  display: flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
  line-height: 1;
}
.nav__brand img {
  height: 44px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .nav__inner { padding: 10px 16px; }
  .nav__brand img { height: 32px; }
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav__link:hover { color: var(--navy); text-decoration: none; }
.nav__link.is-active {
  color: var(--navy);
  font-weight: 600;
}
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}
.nav__icon {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity 0.2s, transform 0.2s;
}
.nav__link:hover .nav__icon { opacity: 0.7; }
.nav__link.is-active .nav__icon { transform: scale(1.05); }

/* hamburger toggle for mobile */
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  margin: 4px 0;
  transition: transform 0.2s;
}

/* ===================== BUTTONS ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--lg { padding: 14px 28px; font-size: 15px; }

/* ===================== PAGE HEADERS ===================== */

.page-header {
  padding: 64px 0 24px;
  text-align: center;
}
.page-header__kicker {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}
.page-header__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 8px;
  letter-spacing: -0.5px;
}
.page-header__lede {
  margin: 20px auto 0;
  max-width: 640px;
  font-size: 17px;
  color: var(--text-dim);
}

/* ===================== HOME — HERO ===================== */

.hero {
  text-align: center;
  padding: 56px 24px 24px;
}
.hero__brand {
  display: inline-block;
  line-height: 1;
}
.hero__logo {
  width: min(640px, 80vw);
  height: auto;
  display: block;
}
.hero__tagline {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--navy);
  margin-top: 22px;
}

.home-loop {
  margin: 32px auto 0;
  max-width: 1100px;
  padding: 0 24px;
}
.home-loop video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.home-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 56px 24px 80px;
}

/* ===== Home-page: fit everything in one viewport ===== */
body.home-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.home-page .nav { flex: 0 0 auto; position: static; }
body.home-page .hero {
  flex: 0 0 auto;
  padding: 16px 24px 0;
  position: relative;
  z-index: 2;
}
body.home-page .hero__logo { width: min(460px, 70vw); }
body.home-page .hero__tagline {
  margin-top: 28px;
  margin-bottom: 28px;
  font-size: clamp(20px, 2.75vw, 28px);
}
body.home-page .home-loop {
  flex: 1 1 0;
  min-height: 0;
  margin: -40px auto 0;
  padding: 0 24px 16px;
  width: 100%;
  max-width: 1920px;          /* matches source video resolution — no upscaling artifacts */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 1;                /* sits behind the hero/tagline */
}
body.home-page .home-loop video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
}
@media (max-width: 600px) {
  /* Hide the cursor in mobile-emulated browser views — real phones don't have one anyway,
     but this keeps screenshots clean when previewing mobile in a desktop browser. */
  body { cursor: none; }

  /* On mobile, abandon the single-viewport flex lock — the home page becomes a normal
     scrolling page that also contains the embedded About + Contact sections below.   */
  body.home-page {
    display: block;
    overflow: visible;
    min-height: auto;
  }
  body.home-page .nav { position: sticky; }       /* nav follows scroll on the long mobile page */
  body.home-page .hero { padding: 12px 16px 0; }  /* tighten whitespace ABOVE the video */
  body.home-page .hero__tagline {
    margin-top: 14px;
    margin-bottom: 14px;
  }
  body.home-page .home-loop {
    flex: none;
    margin: 0 auto 8px;                            /* tighten whitespace BELOW the video */
    padding: 0 16px;
    max-width: 100%;
    display: block;
  }
  body.home-page .home-loop video {
    width: 100%;
    height: auto;                                  /* natural aspect ratio — no forced fill */
    max-height: none;
    object-fit: contain;
  }
}

/* ============================================================
   MOBILE-ONLY embedded sections (About + Contact stacked under Home on phones)
   ============================================================ */
.mobile-section { display: none; }
@media (max-width: 600px) {
  .mobile-section { display: block; padding-top: 12px; }   /* matches the 12px gap between nav and hero at the top of the page */
  /* Drop the video-list's 80px bottom padding on mobile — the Contact section's own padding-top above gives the separation already.
     Halves the gap between the last About video and the Contact Us section header. */
  #about-section .video-list { padding-bottom: 0; }
  .mobile-section__header {
    text-align: center;
    padding: 14px 16px 12px;
  }
  .mobile-section__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
  }
  .mobile-section__lede {
    font-size: 14px;
    color: var(--text-dim);
    margin: 8px auto 0;
    max-width: 320px;
    line-height: 1.4;
  }
}

/* Desktop-only: claw back vertical space so the video can grow taller — mobile unaffected */
@media (min-width: 601px) {
  body.home-page .hero { padding: 6px 24px 0; }
  body.home-page .hero__tagline {
    margin-top: 14px;
    margin-bottom: 14px;
  }
  body.home-page .home-loop { padding: 0 12px 8px; }
}

/* ===================== ABOUT — VIDEO CARDS ===================== */

.about-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 48px;
  text-align: center;
  font-size: 17px;
  color: var(--text-dim);
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 24px 80px;
  max-width: 578px;          /* 30% narrower again (was 826px → now 578px = ~51% of 1180px container) */
  margin: 0 auto;
}

.video-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, width 0.35s ease, max-width 0.35s ease;
  cursor: pointer;
}
.video-card.is-playing {
  align-self: center;        /* break out of flex stretch so width applies */
  width: 60vw;
  max-width: 60vw;
  cursor: default;
}
/* Mobile: 60vw would actually shrink the card. Use a full-bleed expansion instead. */
@media (max-width: 600px) {
  .video-card.is-playing {
    width: 100vw;
    max-width: 100vw;
    margin-left: -24px;       /* cancel .video-list's left padding */
    margin-right: -24px;      /* cancel .video-list's right padding */
    border-radius: 0;         /* edge-to-edge looks cleaner without the rounded corners */
    border-left: 0;
    border-right: 0;
  }
}

/* ===== Rotate-to-landscape prompt (full-viewport overlay, mobile portrait only) ===== */
/* Previously position:absolute inside .video-card__media (so it'd be visible during
   Fullscreen API). The Fullscreen API path was dropped on Android (unreliable), so the
   prompt is now position:fixed and covers the whole viewport during the rotation hint. */
.video-card__rotate {
  display: none;
}
@media (max-width: 600px) {
  .video-card__rotate {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 30, 69, 0.94);   /* navy-deep with high opacity */
    color: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 24px 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .video-card.is-prompting .video-card__rotate {
    opacity: 1;
    pointer-events: auto;
    transition-duration: 0s;          /* instant fade-IN so the video frame isn't briefly visible underneath */
  }
  .video-card__rotate-icon {
    width: 84px;
    height: 84px;
    color: #fff;
    transform-origin: 50% 50%;
    /* No animation by default — only runs while .is-prompting is on, so it restarts on every click */
  }
  .video-card.is-prompting .video-card__rotate-icon {
    animation: phone-rotate 1.6s ease-in-out 2;   /* loops exactly 2 times (3.2s total) then stops */
  }
  .video-card__rotate-text {
    margin: 22px 0 0;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
  }
  @keyframes phone-rotate {
    0%, 20%   { transform: rotate(0deg); }
    50%, 70%  { transform: rotate(-90deg); }
    100%      { transform: rotate(0deg); }
  }
}

.video-card:hover {
  box-shadow: 0 10px 30px -10px rgba(15,30,69,0.15);
  transform: translateY(-2px);
}

.video-card__media {
  position: relative;
  background: var(--grey-light);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video-card__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card__video {
  display: none;
  width: 100%;
  height: 100%;
  background: #000;
}

/* Fullscreen overrides (Android Chrome / desktop). Without these the 16/9 aspect-ratio
   on .video-card__media keeps the element shaped to 16:9 even inside the fullscreen
   container, so one dimension fills the viewport while the other overflows.
   object-fit: contain on the video itself preserves the source aspect and letterboxes
   inside the viewport rather than scaling past it. */
.video-card__media:fullscreen,
.video-card__media:-webkit-full-screen {
  aspect-ratio: auto;
  width: 100vw;
  height: 100vh;
  background: #000;
}
.video-card__media:fullscreen .video-card__video,
.video-card__media:-webkit-full-screen .video-card__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.video-card.is-playing .video-card__poster,
.video-card.is-playing .video-card__play {
  display: none;
}
/* runtime stays visible during playback — it's in the header, not overlaying the video */
.video-card.is-playing .video-card__video { display: block; }
.video-card.is-playing .video-card__close { display: flex; }

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.video-card__play svg {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  padding: 16px;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.video-card__runtime {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(15,30,69,0.85);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.video-card__close {
  display: none;
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(15,30,69,0.85);
  color: var(--white);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.video-card__close:hover { background: var(--navy-deep); }

.video-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.video-card__kicker {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}
.video-card__header {
  position: relative;
  padding: 18px 22px 14px;
}
.video-card__runtime { display: none; }   /* hidden — kept in markup so it's easy to restore */
.video-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
  text-align: center;
}
.video-card__header .video-card__runtime {
  position: absolute;
  top: auto;               /* clear the base rule's top:12px so bottom alignment works */
  right: 60px;             /* aligns approximately with right edge of laptop screen in each thumbnail */
  bottom: 14px;            /* sits on the same baseline as the second line of the title */
  /* overrides — see base .video-card__runtime rule below for the in-thumbnail look that this rule replaces */
  background: transparent;
  color: var(--navy);
  padding: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.video-card__desc {
  color: var(--text-dim);
  font-size: 15px;
}

/* ===================== CONTACT — FORM ===================== */

.form-wrap {
  max-width: 1080px;          /* widened from 880 so 3-col dropdowns don't overflow the border */
  margin: 0 auto;
  padding: 0 24px 80px;
}

.form {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form__section {
  margin-bottom: 28px;
}
.form__section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
}

.form__row {
  display: grid;
  gap: 14px;
}
.form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* minmax allows columns to shrink under content width — selects clip cleanly instead of overflowing */
.form__row--required { grid-template-columns: 1fr; max-width: 520px; }

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;                /* lets the field track the column width even when the select's natural width is larger */
}
.form__field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.form__field .req { color: var(--blue); }
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;                  /* lock select width to its column so long option text truncates instead of expanding */
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form__field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,107,182,0.15);
}
.form__char-count {
  font-size: 12px;
  color: var(--grey-mid);
  text-align: right;
  margin-top: -2px;
}
.form__char-count.is-near-limit { color: var(--text); }
.form__char-count.is-at-limit { color: var(--blue); font-weight: 500; }
.form__field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%239CA3AF' d='M5 6 0 0h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.form__captcha {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
  /* Turnstile renders its own iframe with consistent dimensions */
  min-height: 65px;
}

.form__submit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.form__footnote {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  white-space: nowrap;
  line-height: 1.5;
}
@media (max-width: 600px) {
  /* On narrow phones the line is longer than the viewport — allow wrap there */
  .form__footnote { white-space: normal; }
}

.form__success {
  display: none;
  padding: 16px 18px;
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  border-radius: var(--radius);
  color: #065F46;
  font-size: 14px;
  margin-bottom: 18px;
}
.form.is-submitted .form__success { display: block; }

/* ===================== FOOTER ===================== */

.footer {
  background: var(--grey-light);
  border-top: 1px solid var(--grey-line);
  padding: 48px 0 32px;
  margin-top: 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__logo {
  height: 56px;
  width: auto;
  display: block;
}
.footer__tagline {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 240px;
}
.footer__patent {
  font-size: 11px;
  color: var(--grey-mid);
  margin-top: 4px;
  line-height: 1.5;
}
.footer__col-title {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 10px;
}
.footer__col a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 0;
}
.footer__col a:hover { color: var(--navy); text-decoration: none; }
.footer__bottom {
  border-top: 1px solid var(--grey-line);
  margin-top: 32px;
  padding: 18px 24px 0;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 860px) {
  .video-card { grid-template-columns: 1fr; }
  .video-card__media { aspect-ratio: 16/9; }
  .form__row--3 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  /* Mobile nav: logo on the left, Login pill on the right. Section icons removed
     (the single-page mobile layout means users just scroll through Home → About → Contact). */
  .nav__toggle { display: none !important; }
  .nav__link { display: none; }        /* hide Home / About / Contact icon links */
  .nav__menu {
    gap: 12px;
  }
  .nav__inner { padding: 8px 12px; }
  .nav__brand img { height: 30px; }

  .form { padding: 22px; }
  .form__row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* 2 dropdowns side by side on mobile (was single-column) */
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .page-header { padding: 40px 0 16px; }
  .page-header__title { font-size: 30px; }
  .home-cta { padding: 36px 24px 56px; }
}

/* ===================== BLOG ===================== */

.blog-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.blog-list__empty {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 20px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
  box-shadow: 0 10px 30px -10px rgba(15, 30, 69, 0.15);
  transform: translateY(-2px);
}
.blog-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--grey-light);
  overflow: hidden;
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-card__date {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}
.blog-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
}
.blog-card__title a {
  color: inherit;
  text-decoration: none;
}
.blog-card__title a:hover { color: var(--blue); }
.blog-card__desc {
  color: var(--text-dim);
  font-size: 15px;
  margin: 4px 0 0;
  line-height: 1.5;
}
.blog-card__more {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
}
.blog-card__more:hover { text-decoration: underline; }

.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.blog-post__header { margin-bottom: 32px; }
.blog-post__back {
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
}
.blog-post__back:hover { text-decoration: underline; }
.blog-post__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 12px;
}
.blog-post__meta {
  font-size: 13px;
  color: var(--text-dim);
}
.blog-post__author { margin-left: 4px; }
.blog-post__cover {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}
.blog-post__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.blog-post__body h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 12px;
}
.blog-post__body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin: 28px 0 10px;
}
.blog-post__body p { margin: 0 0 18px; }
.blog-post__body a {
  color: var(--blue);
  text-decoration: underline;
}
.blog-post__body ul,
.blog-post__body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.blog-post__body li { margin-bottom: 6px; }
.blog-post__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 18px 0;
}
.blog-post__body blockquote {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 18px;
  color: var(--text-dim);
  font-style: italic;
  margin: 18px 0;
}

/* ===================== LEGAL DOCS (Privacy / ToS / etc.) ===================== */

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.legal-doc__draft-banner {
  background: #FFF6D6;
  border: 1px solid #F2D27A;
  color: #6E5712;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 36px;
  font-size: 15px;
}
.legal-doc__draft-banner strong { color: #4A3C0A; }

.legal-doc h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 8px;
}
.legal-doc h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 12px;
  line-height: 1.3;
}
.legal-doc h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 28px 0 8px;
  line-height: 1.35;
}
.legal-doc p { margin: 0 0 14px; }
.legal-doc strong { font-weight: 600; color: var(--text); }
.legal-doc a {
  color: var(--blue);
  text-decoration: underline;
}
.legal-doc a:hover { color: var(--navy); }
.legal-doc ul,
.legal-doc ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.legal-doc li {
  margin-bottom: 6px;
}
.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.legal-doc th,
.legal-doc td {
  border: 1px solid var(--grey-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-doc th {
  background: var(--grey-light);
  font-weight: 600;
  color: var(--navy);
}
.legal-doc blockquote {
  border-left: 3px solid var(--blue);
  margin: 18px 0;
  padding: 4px 0 4px 16px;
  color: var(--text-dim);
  font-style: italic;
}
.legal-doc code {
  background: var(--grey-light);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--navy);
}
.legal-doc hr {
  border: 0;
  border-top: 1px solid var(--grey-line);
  margin: 36px 0;
}

/* Footer link block for legal docs */
.legal-footer-links {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid var(--grey-line);
}
.legal-footer-links a {
  color: var(--blue);
  margin: 0 8px;
  text-decoration: none;
}
.legal-footer-links a:hover { text-decoration: underline; }
/* Home-page desktop is viewport-locked, so the footer in normal flow would be clipped.
   Pin it to the bottom of the viewport as a slim strip instead — semi-transparent white
   with a backdrop blur so it sits over the video without obscuring it.
   Mobile home reverts to natural flow (home scrolls on mobile). */
body.home-page .legal-footer-links {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(229, 232, 238, 0.6);
  font-size: 11px;
  z-index: 50;
}
@media (max-width: 600px) {
  body.home-page .legal-footer-links {
    position: static;
    background: transparent;
    backdrop-filter: none;
    border-top: 1px solid var(--grey-line);
    padding: 32px 16px;
    font-size: 13px;
  }
}

/* ===================== CONTACT FORM — honeypot + error ===================== */

/* Honeypot field — off-screen so humans never see it, but present in the DOM
   so bots that fill every input get caught by the Worker's server-side check. */
.form__hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form__error {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: #FEEAEA;
  border: 1px solid #F2B5B5;
  color: #8A1F1F;
  border-radius: var(--radius);
  font-size: 14px;
}

/* ===================== BACK BUTTONS ===================== */

/* Static desktop Back button — rendered at the bottom of legal pages by LegalLayout */
.back-button--static {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  margin: 36px 0 24px;
}
.back-button--static:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  text-decoration: none;
}
.back-button--static svg {
  width: 16px;
  height: 16px;
}
/* Hide the static back button on mobile — the floating one (below) takes over */
@media (max-width: 600px) {
  .back-button--static { display: none; }
}

/* Floating mobile Back button — appears after scrolling on the mobile site */
.back-button--float {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 30, 69, 0.25);
  transition: opacity 0.2s, transform 0.2s;
  opacity: 0;
  pointer-events: none;
}
.back-button--float.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.back-button--float svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
}
/* Shown only on mobile (and we add .is-visible via JS once user has scrolled a bit) */
@media (max-width: 600px) {
  .back-button--float { display: inline-flex; align-items: center; }
}

/* "Tell us more" collapsible toggle on contact forms */
.form__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  cursor: pointer;
}
.form__toggle-chevron {
  transition: transform 0.2s ease;
}
.form__toggle[aria-expanded="true"] .form__toggle-chevron {
  transform: rotate(180deg);
}
.form__collapsible[hidden] { display: none !important; }
