/* =========================================================
   CALLISTOX / EVIE — DESIGN TOKENS (monochrome)
========================================================= */
:root{
  --ink: #15120F;
  --ink-soft: #2B2724;
  --paper: #FFFFFF;
  --paper-off: #F6F5F2;
  --line: #E4E1D9;
  --muted: #716C64;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-w: 1180px;
  --radius-m: 16px;
  --radius-l: 28px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}

h1,h2{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p{ margin: 0; }

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

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

button{ font-family: inherit; cursor: pointer; }

.visually-hidden{
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

:focus-visible{
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover{ background: var(--ink-soft); }
.btn-small{ padding: 10px 20px; font-size: 14px; }

/* =========================================================
   NAVIGATION
========================================================= */
.nav{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: flex-direction .2s ease;
}
.nav-brand{ display: flex; align-items: center; }
.nav-logo{ height: 45px; width: auto; }

/* =========================================================
   HERO
========================================================= */
.hero{
  padding: 72px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-inner{ max-width: 720px; margin: 0 auto; }
.hero-evie-logo{
  height: 60px;
  width: auto;
  margin: 0 auto 40px;
}
.hero-title{
  font-size: clamp(38px, 6.4vw, 68px);
  letter-spacing: -0.02em;
}
.hero-sub{
  margin-top: 24px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-stage{
  position: relative;
  z-index: 1;
  margin-top: 56px;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 24px;
}
.hero-frame{
  width: 100%;
  max-width: 900px;
  background: var(--ink);
  border-radius: var(--radius-l);
  padding: 10px;
  box-shadow: 0 40px 80px -30px rgba(21,18,15,.35);
}
.hero-frame-bar{
  display: flex;
  gap: 7px;
  padding: 10px 12px;
}
.hero-frame-bar span{
  width: 9px; height: 9px; border-radius: 50%;
  background: #4A433B;
}
.hero-video{
  width: 100%;
  display: block;
  border-radius: var(--radius-m);
  background: #000;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* =========================================================
   LAUNCH BLOCK — countdown + signup, directly under the video
========================================================= */
.launch-block{
  position: relative;
  z-index: 1;
  margin: 64px auto 0;
  max-width: 480px;
  padding: 0 24px;
}
.launch-label{
  font-size: 14.5px;
  color: var(--muted);
}
.countdown-plain{
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.countdown-sep{
  color: var(--line);
  margin: 0 4px;
}
.countdown-launched{
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  color: var(--ink);
}
.launch-date{
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--muted);
}
.signup-heading{
  margin-top: 44px;
  font-size: clamp(21px, 3vw, 26px);
}

/* =========================================================
   WAITLIST FORM
========================================================= */
.waitlist-form{
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.waitlist-form input[type="email"]{
  flex: 1;
  min-width: 220px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--ink);
  text-align: center;
}
.waitlist-form input[type="email"]:focus{
  border-color: var(--ink);
}
.waitlist-form .btn{
  flex-shrink: 0;
}
.waitlist-feedback{
  margin-top: 14px;
  font-size: 14px;
  min-height: 20px;
  color: var(--muted);
}
.waitlist-feedback.is-error{ color: #B4402A; }
.waitlist-feedback.is-success{ color: var(--ink); font-weight: 600; }


/* =========================================================
   VOICE-FIRST SECTION
========================================================= */
.section-voice{
  position: relative;
  z-index: 1;
  padding: 96px 24px;
  max-width: 760px;
  margin: 0 auto;
}

/* =========================================================
   GRAY BACKDROP — solid CSS overlap (no JS measurement needed),
   pulled up under the bottom edge of the hero video for the
   floating-card look, robust on every viewport including mobile.
========================================================= */
:root{
  --gray-overlap: clamp(56px, 15vw, 150px);
}
#main{ position: relative; }
.gray-wrap{
  position: relative;
  z-index: 0;
  background: #ced2d4;
  margin-top: calc(-1 * var(--gray-overlap));
  padding-top: var(--gray-overlap);
}
.section-title{ font-size: clamp(28px, 4vw, 40px); }
.section-lead{
  margin-top: 18px;
  font-size: 17px;
  color: var(--muted);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.voice-demo{ margin-top: 44px; }
.voice-line{
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  padding: 32px 34px;
  background: var(--paper);
  border-radius: var(--radius-l);
  border-left: 3px solid var(--ink);
  text-align: left;
}
.voice-stages{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.voice-stage{
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 15px;
  font-weight: 500;
}
.voice-stage-num{
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =========================================================
   FOOTER
========================================================= */
.footer{
  padding: 64px 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer p + p{ margin-top: 8px; }

.platform-row{
  max-width: 640px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.platform-btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  color: var(--ink);
  transition: border-color .25s ease, transform .25s var(--ease), background .25s ease;
}
.platform-btn:hover{
  border-color: var(--ink);
  background: var(--paper-off);
  transform: translateY(-2px);
}
.platform-btn svg{ width: 24px; height: 24px; }
.platform-btn span{ font-size: 13px; font-weight: 500; }

/* =========================================================
   COMING SOON MODAL
========================================================= */
.modal{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden]{ display: none; }
.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(21,18,15,.55);
  backdrop-filter: blur(4px);
}
.modal-card{
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-l);
  padding: 40px;
  max-width: 420px;
  width: 100%;
  animation: modalIn .3s var(--ease);
}
@keyframes modalIn{
  from{ opacity: 0; transform: translateY(12px) scale(.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close{
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
}
.modal-eyebrow{
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.modal-title{ font-size: 24px; font-family: var(--font-display); }
.modal-body{
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}
.modal-body + .btn{ margin-top: 24px; }

/* =========================================================
   FLOATING SUCCESS TOAST
========================================================= */
.toast{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  max-width: 380px;
  width: calc(100% - 48px);
}
.toast[hidden]{ display: none; }
.toast-card{
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-m);
  padding: 22px 44px 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 20px 50px rgba(21,18,15,.35);
  animation: toastIn .4s var(--ease);
  text-align: left;
}
.toast.is-leaving .toast-card{ animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn{
  from{ opacity: 0; transform: translateY(16px) scale(.97); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut{
  from{ opacity: 1; transform: translateY(0) scale(1); }
  to{ opacity: 0; transform: translateY(10px) scale(.97); }
}
.toast-icon{
  flex-shrink: 0;
  width: 30px; height: 30px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
}
.toast-icon svg{ width: 16px; height: 16px; }
.toast-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  margin: 0;
}
.toast-body{
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.72);
}
.toast-btn{
  margin-top: 14px;
  padding: 9px 18px;
  font-size: 13px;
  background: var(--paper);
  color: var(--ink);
}
.toast-btn:hover{ background: rgba(255,255,255,.85); }
.toast-close{
  position: absolute;
  top: 12px; right: 12px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: transparent;
  color: rgba(255,255,255,.85);
  font-size: 16px;
  line-height: 1;
}
.toast-close:hover{ background: rgba(255,255,255,.14); }
@media (max-width: 640px){
  .toast{ left: 16px; right: 16px; bottom: 16px; max-width: none; width: auto; }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 640px){
  .nav-inner{ padding: 14px 18px; }
  .nav-logo{ height: 34px; }

  .hero{ padding: 40px 20px 0; }
  .hero-evie-logo{ height: 44px; margin-bottom: 28px; }
  .hero-title{ font-size: clamp(30px, 8vw, 40px); }
  .hero-sub{ margin-top: 16px; font-size: 16px; }

  .hero-stage{ margin-top: 36px; padding: 0 16px; }
  .hero-frame{ border-radius: 18px; padding: 8px; }

  :root{ --gray-overlap: clamp(40px, 20vw, 80px); }
  .launch-block{ margin-top: 40px; padding: 0 20px; }
  .countdown-plain{ font-size: clamp(30px, 11vw, 44px); }
  .countdown-sep{ margin: 0 2px; }
  .signup-heading{ margin-top: 34px; font-size: 20px; }

  .waitlist-form{
    flex-direction: column;
    align-items: stretch;
    margin-top: 18px;
  }
  .waitlist-form input[type="email"]{ width: 100%; min-width: 0; }
  .waitlist-form .btn{ width: 100%; }

  .section-voice{ padding: 56px 20px; }
  .section-title{ font-size: clamp(24px, 7vw, 30px); }
  .section-lead{ margin-top: 14px; font-size: 15.5px; }
  .voice-demo{ margin-top: 32px; }
  .voice-line{ padding: 22px 20px; font-size: clamp(18px, 5vw, 22px); }
  .voice-stages{ margin-top: 18px; }
  .voice-stage{ min-width: 0; flex-basis: calc(50% - 6px); padding: 14px; font-size: 14px; }

  .footer{ padding: 48px 20px 28px; }
  .platform-row{ grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 32px; }
}

@media (max-width: 380px){
  .voice-stages{ flex-direction: column; }
  .voice-stage{ flex-basis: auto; width: 100%; }
}
