html {
}
@font-face {
  font-family: 'ZT Otez';
  src: url('fonts/zt-otez.regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --ice: #BBE0EF;        /* hero / section background */
  --midnight: #161E54;   /* headline / titles / body copy */
  --orange: #F16D34;     /* CTA */
  --coral: #FF986A;      /* hover / icon / subtle UI frames */
  --white: #FFFFFF;      /* CTA text */

  /* Layout */
  --container-width: 1152px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --border: rgba(22, 30, 84, 0.12);
}
/* ===== FUTURE.CO STYLE GLOWS ===== */
.element-glow {
  position: absolute;
  z-index: 2; /* Increased to stay above the overlay/video */
  border-radius: 50%;
  filter: blur(80px); 
  opacity: 0.7; /* Made slightly more visible */
  pointer-events: none; 
  mix-blend-mode: screen; /* Helps the color "glow" against the background */
}

.glow-brand-orange {
  width: 350px; /* Increased size so it's visible behind the icon */
  height: 350px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
}

/* Orange Glow - use behind the logo */
.glow-brand-orange {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
}

/* Blue/Ice Glow - use behind the phone mockup */
.glow-brand-ice {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--ice) 0%, transparent 70%);
}
/* ===== RESET ===== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--midnight);
  background: var(--white);
  scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; }

/* ===== LAYOUT ===== */

/* Background gradient for the full page area (Origin → Footer) */
.page-gradient {
  /* For now: everything after Hero is solid ice-blue */
  background: var(--ice);
}

/* Inside the gradient wrapper, let the wrapper show through (avoid hard white cuts) */
.page-gradient .section {
  background: transparent;
}

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

.section {
  padding: 60px 0;
  background: var(--white);
  /* Ensures smooth scroll doesn't land flush against the top edge */
  scroll-margin-top: 20px;
}

.section-ice {
  background: transparent;
}

/* These classes remain for flexibility (no per-section gradients right now) */
.section-ice--top,
.section-ice--bottom,
.section-ice--both {
  background: transparent;
}

/* ===== BENEFITS (iframe mockup) ===== */
.benefits-section {
  padding: 60px 0;
  background: transparent;
  overflow: hidden;
}

.benefits-flex-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.benefits-text {
  flex: 1;
  min-width: 320px;
}

.benefits-heading {
  color: #1e293b;
  margin-bottom: 24px;
  line-height: 1.1;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-cta {
  padding: 16px 32px;
  border-radius: 12px;
  background-color: var(--orange);
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  font-weight: 700;
}

.benefits-mockup {
  flex: 1;
  min-width: 320px;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 420px;
  height: 800px;
  border: 0;
  border-radius: 40px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* ===== PERSONAS (carousel) ===== */
.personas {
  padding: 64px 0;
}

.personas-inner {
  width: 100%;
  max-width: none;
  padding: 0;
}

.personas-carousel {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 36px 0;
  box-sizing: border-box;
}

.personas-track {
  display: flex;
  gap: 22px;
  align-items: stretch;
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 900ms cubic-bezier(0.22, 0.65, 0.3, 1);
}

.personas-track.is-no-anim {
  transition: none !important;
}

.persona-card {
  flex: 0 0 78vw;
  max-width: 760px;
  min-width: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;

  /* "image set" background (trim area) */
  background: var(--white);

  border: 1px solid rgba(22, 30, 84, 0.10);
  box-shadow: none;

  transform: scale(0.985);
  opacity: 0.92;
  transition: transform 750ms cubic-bezier(0.22, 0.65, 0.3, 1), opacity 350ms ease;
}

.persona-card.is-active {
  transform: scale(1.02);
  opacity: 1;
}

.persona-stack {
  width: 100%;
  position: relative;
  z-index: 0;
  display: block;

  /* the white trim behind the image */
  padding: 12px;
  background: var(--white);
}

.persona-img {
  width: 100%;
  border-radius: var(--radius-md);
  background-color: rgba(22, 30, 84, 0.08);
  background-image: url("images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  outline: 1px solid rgba(22, 30, 84, 0.12);
  overflow: hidden;
  position: relative;
  display: block;
}

/* top image fills; bottom removed */
.persona-img--bottom { display: none !important; }
.persona-img--top { height: 520px; min-height: 520px; }

.persona-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  gap: 10px;
  color: var(--white);
  pointer-events: none;
  text-align: left;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.persona-card.is-active .persona-overlay {
  opacity: 1;
  transform: translateY(0);
}

.persona-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,30,84,0) 34%, rgba(22,30,84,0.86) 100%);
}

.persona-overlay > * { position: relative; z-index: 1; }

.persona-name {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.persona-headline {
  font-family: 'ZT Otez', 'Inter', sans-serif;
  margin: 0;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.08;
  font-weight: 400;
}

.persona-sub {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
  max-width: 54ch;
}

.persona-trigger {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.95;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 10px 12px;
  width: fit-content;
}

.persona-overlay .btn {
  pointer-events: auto;
  width: fit-content;
  margin-top: 8px;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  transition: 0.15s ease;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}

.btn-primary:hover { background: var(--coral); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  width: 100%;
  padding: 0 20px;
}

.hero-logo {
  position: absolute;
  top: 30px;
  left: 36px;
  margin: 0;
  z-index: 3;
}

.hero-logo img {
  width: 30px;
  height: auto;
  display: block;
}

.hero h1 {
  font-family: 'ZT Otez', 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 15px;
  font-weight: 400;
  color: var(--white);
}

.hero-subtext {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 22px;
}

.hero-waitlist {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 520px;
  margin: 0 auto;
}

.hero-waitlist .waitlist-row {
  grid-template-columns: 1fr;
}

.hero-waitlist .btn {
  width: 100%;
}

.hero-waitlist .waitlist-error,
.hero-waitlist .waitlist-success {
  text-align: left;
}

/* ===== ORIGIN STORY ===== */
.hero--plain {
  position: relative;
  /* IMPORTANT: this section should NOT inherit the .hero 100vh height */
  height: auto;
  min-height: 0;

  background-color: transparent;
  /* Origin section only: full 0%→100% gradient (white → ice) + mesh accents */
  background-image:
    linear-gradient(to bottom, var(--white) 0%, var(--ice) 100%),
    radial-gradient(circle at 20% 30%, rgba(241, 109, 52, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 152, 106, 0.12) 0%, transparent 50%);
  overflow: hidden;

  /* remove the hero centering behavior */
  display: block;

  /* much tighter on desktop */
  padding: 12px 0;
}

.hero--plain::before { display: none; }

.origin {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.origin-copy {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(22, 30, 84, 0.06);
  text-align: left;
}

.hero--plain .hero-video,
.hero--plain .hero-overlay,
.hero--plain .hero-logo {
  display: none;
}

.origin-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.origin-media img {
  width: min(420px, 100%);
  height: auto;
  display: block;
}

.plain-hero-title {
  font-family: 'ZT Otez', 'Inter', sans-serif;
  font-weight: 400;
  margin: 0 0 14px;
  font-size: clamp(22px, 2.6vw, 34px);
  color: var(--midnight);
}

.plain-hero-sub {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  opacity: 0.9;
  color: var(--midnight);
}

@media (max-width: 960px) {
  /* Shorter hero on mobile so scroll is obvious */
  .hero {
    height: 78vh;
    height: 78dvh;
  }

  .container { padding: 0 24px; }

  /* Hero logo placement */
  .hero-logo {
    top: 18px;
    left: 18px;
  }
  .hero-logo img { width: 26px; }

  /* Origin stacks on mobile */
  .origin {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero--plain {
    padding: 20px 0 44px; /* extra space so the Origin "frame" isn't clipped */
    overflow: visible;   /* allow border/shadow to render fully on mobile */
    position: relative;
    z-index: 2;          /* ensure Origin card stays above the next section's content */
  }
  .origin-copy { text-align: center; }
  .plain-hero-sub { margin: 0 auto; }

  /* Create real separation BEFORE the sticky track starts (prevents "covering" as soon as Benefits enters view) */
  #benefits {
    padding-top: 24px;   /* increase if you want more clearance */
    position: relative;
    z-index: 1;
  }

  /* Benefits stacks on mobile (fix iframe sliver/left align) */
  .benefits-flex-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .benefits-text,
  .benefits-mockup {
    min-width: 0;
    width: 100%;
  }
  .benefits-heading {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.2;
  }
  .phone-mockup {
    width: 320px;
    height: 580px;
    transform: scale(0.85);
    transform-origin: top center;
    margin-bottom: -80px;
  }

  /* Mobile fix: stop the sticky Join/Host panel from covering the end of Origin Story */
  #benefits .sticky-wrapper {
    top: 18px; /* pushes the sticky content down slightly once it becomes sticky */
    height: calc(100dvh - 18px);
    overflow: visible;  /* avoid clipping shadows/frames at the boundary */
  }


  /* Personas: full-screen cards on mobile */
  .personas { padding: 0; }
  .personas-carousel { padding: 0; }
  .personas-track { gap: 0; }

  .persona-card {
    flex: 0 0 100vw;
    max-width: none;
    min-width: 100vw;
    height: 100dvh;
    border-radius: 0;
    transform: none;
    opacity: 1;
  }

  /* Remove trim padding so the image is truly full-screen */
  .persona-stack { padding: 0; }
  .persona-img--top { height: 100%; min-height: 100%; border-radius: 0; }

  .persona-overlay { padding: 18px; }
  .persona-sub { display: none; }
}

/* ===== SIGNUP ===== */
.signup {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.signup-left h2 {
  font-family: 'ZT Otez', 'Inter', sans-serif;
  font-size: 36px;
  margin: 0 0 12px;
  font-weight: 400;
  color: var(--midnight);
}

.signup-subtext {
  opacity: 0.85;
  margin: 0 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.waitlist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.waitlist-row input {
  height: 48px;
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(22, 30, 84, 0.18);
  padding: 0 16px;
  font-size: 15px;
  color: var(--midnight);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.waitlist-row input:focus {
  border-color: rgba(241, 109, 52, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 152, 106, 0.25);
}

.waitlist-error {
  margin: 6px 0 0;
  font-size: 13px;
  color: #b00020;
}

.waitlist-success {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.9;
}

.signup-visual {
  height: 260px;
  border-radius: var(--radius-lg);
  outline: 2px solid rgba(255, 152, 106, 0.35);
  background: rgba(22, 30, 84, 0.12);
  background-image: url("images/signup-blur.jpg");
  background-size: cover;
  background-position: center;
}

@media (max-width: 960px) {
  .container { padding: 0 24px; }

  .signup { grid-template-columns: 1fr; }

  .waitlist-row {
    grid-template-columns: 1fr;
  }

  .waitlist-row .btn {
    width: 100%;
    text-align: center;
  }

  .signup-visual {
    height: 220px;
  }
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: transparent;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-heading {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(22, 30, 84, 0.85);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  opacity: 0.95;
}

.footer-links a:hover { color: var(--coral); }

.footer-icons {
  display: flex;
  gap: 10px;
}

.icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.icon:hover img {
  opacity: 0.7;
  transform: scale(1.05);
  transition: 0.15s ease;
}

@media (min-width: 961px) {
  .footer-grid {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .footer-col--links {
    grid-column: 1;
  }

  .footer-col--social {
    grid-column: 3;
    align-items: flex-start;
    text-align: left;
  }
}
