
 @font-face {
    font-family: 'Helvetica';
    font-style: normal;
    font-weight: normal;
    src: local('Helvetica'), url('Helvetica.woff') format('woff');
    }

/* ========== RESET + GLOBAL OVERRIDE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root, html, body {
  height: 100%;
  font-family: 'ITCGaramond', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji' !important;
}
/* Make every element inherit the global font (overrides component-specific fonts) */
*, *::before, *::after { font-family: inherit !important; } 

/* ========== FLUID TOKENS (base: small phones) ========== */
:root{
  --space: clamp(12px, 4vw, 24px);
  --pad-h: clamp(16px, 4vw, 40px);
  --h-logo: clamp(84px, 13vw, 120px);
  --h1: clamp(22px, 6vw, 32px);
  --h2: clamp(16px, 4.2vw, 20px);
  --p: clamp(14px, 3.8vw, 18px);
  --btn-fs: clamp(15px, 4.2vw, 18px);
  --btn-pad-y: clamp(10px, 2.8vh, 14px);
  --btn-pad-x: clamp(18px, 6vw, 26px);
}

/* ========== LANDING (HOME) ========== */
.landing {
  background: url('images/earth2.jpg') no-repeat center center/cover;
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  position: relative;
  overflow: hidden;
}

/* header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space) var(--pad-h);
  padding-top: calc(var(--space) + env(safe-area-inset-top, 0px));
}



.logo-container img {
  height: var(--h-logo);
  /* remove aggressive negative offsets on small screens */
  margin-left: 0;
  margin-top: 0;
  
}

.tagline {
  font-size: var(--h2);
  font-weight: bold;
  margin-right: calc(var(--space) * 0.5);
  opacity: 0.95;
}

/* content */
.content {
  max-width: 640px;
  width: min(92%, 640px);
  padding: var(--pad-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* center on mobile */
  height: 100%;
  margin-inline: auto;
  text-align: center;
}

.content h1,
.headline {
  font-size: var(--h1);
  line-height: 1.35;
  margin-bottom: 12px;
  font-weight: 700;
}

.subheadline {
  font-size: var(--p);
  font-weight: 300;
  color: #e0e0e0;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto 14px;
}

.subheadline2{
  font-size: clamp(13px, 3.8vw, 16px);
  font-weight: 300;
  color: #cfcfcf;
  line-height: 1.5;
  text-align: center;
  max-width: 700px;
  margin-top: 16px;
}

/* CTA */
.cta-button {
  background: linear-gradient(135deg, #56ab2f, #a8e063);
  color: #000;
  border: none;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-size: var(--btn-fs);
  cursor: pointer;
  align-self: center; /* center on mobile */
  border-radius: 10px;
  font-weight: 600;
  transition: transform .2s ease, background .3s ease;
}
.cta-button:hover { transform: translateY(-2px); }

/* footer */
.content { flex: 1; }
.footer {
  width: 100%;
  padding-bottom: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  /* was 'Inter'; we want global font everywhere */
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: transparent;
  opacity: 0;
}
.footer-visible { opacity: 1; transform: translateY(0); }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-link { color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: color 0.3s ease; font-weight: 500; }
.footer-link:hover { color: #4da3ff; }
.footer-copy { font-size: 0.8rem; opacity: 0.7; }

/* ========== VIDEO PAGE (unchanged behavior) -----------------------------------------------------------========== */
.video-page, .video-wrapper {
  margin: 0; padding: 0; height: 100vh; width: 100%;
  overflow: hidden; position: relative; background: black;
}
.video-desktop, .video-mobile {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.video-desktop { display: block; }
.video-mobile  { display: none; }

.mute-toggle-overlay {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 3;
  border: 0;
  border-radius: 9999px;
  padding: 10px;
  background: rgba(0,0,0,0.5);
  color: white;
  cursor: pointer;
}
.mute-toggle-overlay:focus { outline: 2px solid white; }

.button-container {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.calculate-button { 
  padding: 15px 40px; 
  font-size: 1.2rem;
  /* was 'SullingRegular' — now inherit global font */
  background: linear-gradient(135deg, #56ab2f, #a8e063);
  color: #000000;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}
.calculate-button:hover { transform: translateY(-2px); }

/* Show mobile video on small screens----------------------------------------- */
@media (min-width: 1024px){
  .content{
    max-width: 720px;
    width: min(60%, 720px);
    align-items: flex-start;
    text-align: left;
    margin-inline: auto;  /* ✅ Center horizontally */
    margin-left: 0;       /* ✅ Remove negative offset */
  }

  .content h1,
  .content .headline {          
    text-align: left;  /* ✅ Align with content container */
    margin-inline: 0;
  }

  .subheadline2{
    max-width: 60ch;
    margin-inline: 0;
    text-align: left; /* ✅ Matches headline alignment */
  }

  .cta-button{ margin-left: 0; } /* ✅ Align under headline */
}

@media (max-width: 768px) {
  .video-desktop { display: none; }
  .video-mobile  { display: block; }
  .landing {
    background: url('images/earth_vertical.png') no-repeat center center/cover;
    align-items: center;
    text-align: center;
  }
  header { flex-direction: column; align-items: center; gap: 10px; }
  .logo-container { display: flex; justify-content: center; width: 100%; margin-top: 10px; }
}

/* =========================================
   >= -----------------------------375px
   ========================================= */
@media (min-width: 360px){
 .content {     
  width: min(90%, 680px);
  margin-top: 150px;
  line-height: 90px;
 }

 .cta-button{ margin-top: 20px; }
 .subheadline2{ font-size: 10px; margin-top: 2px; }

 .logo-container{
   margin-left: -130px;
   margin-top: -20px;
 }
}

/* =========================================
   >= ------------------------390px
   ========================================= */
@media (min-width: 390px){
  :root{
    --h1: clamp(24px, 5.4vw, 34px);
    --p: clamp(14px, 3.4vw, 18px);
    --h-logo: clamp(96px, 12vw, 128px);
  }
  .content {     
    width: min(90%, 680px);
    margin-top: 200px;
    line-height: 90px;
  }

  .cta-button{ margin-top: 45px; margin-bottom: 45px; }
  .subheadline2{ font-size: 15px; }
}

/* =========================================
   >= 768px  (tablets portrait)
   ========================================= */
@media (min-width: 768px){
  :root{
    --pad-h: 40px;
    --h1: clamp(28px, 3.2vw, 40px);
    --p: clamp(16px, 2vw, 18px);
    --btn-fs: 18px;
    --h-logo: 120px;
  }

  header{
    flex-direction: row;
    padding: 24px 40px;
  }

  .logo-container img{
    height: 120px;
    margin-left: -60px;
    margin-top: -10px;
  }

  .tagline{ margin-top: 0; font-size: 1.1rem; }

  .content{
    align-items: flex-start;
    text-align: left;
    margin-top: 0;
    width: min(80%, 760px);
  }

  .cta-button{ align-self: flex-start; }
}

/* =========================================
   >= 1024px  (tablets landscape / desktop)
   ========================================= */
@media (min-width: 1024px){
  :root{
    --h1: clamp(32px, 2.4vw, 44px);
    --p: 18px;
    --h-logo: 130px;
  }

  .logo-container img{
    height: 130px;
    margin-left: -10px;
    margin-top: -20px;
  }

  .tagline{
    margin-top: -40px;
    margin-right: 40px;
  }

  .content{
    max-width: 720px;
    width: min(60%, 720px);
    align-items: flex-start;
    text-align: left;
    margin-inline: 0;
    margin-left: -30px;
  }

  .content h1,
  .content .headline {          
    margin-inline: auto;
    text-align: center;
    display: block;
  }

  .subheadline2{
    max-width: 60ch;
    margin-inline: auto;
    text-align: center;
    text-wrap: pretty;
    display: block; 
  }

  .cta-button{ margin-left: 200px; }
}

/* ========= Optional: short-height devices helper ========= */
@media (max-height: 720px){
  .button-container{ top: 82%; }
  .content{ padding-top: calc(var(--pad-h) * 0.5); }
}

.video-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 10;
}

