:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-red: #f80000;
  --color-orange: #f1a21b;
  --color-green: #7fcd12;
  --color-offwhite: #f1f0ed;
  --color-cream: #f9f8f3;
  --color-mint: #baf5e4;
  --color-sky-blue: #71d4f2;
  --color-plum: #be87b9;
  --color-teal: #19c593;

  --fontSize-heading: 26px;
  --fontSize-body: 16px;
  --fontSize-button: 26px;

  --letterSpacing-heading: 0.04em;
  --letterSpacing-body: 0.02em;
  --letterSpacing-button: 0.05em;
  --letterSpacing-nav: 0.06em;

  --padding-default: 2.5rem 4rem;
}

@media (max-width: 768px) {
  :root {
    --padding-default: 4rem 2rem;

    --fontSize-heading: 18px;
    --fontSize-body: 14px;
    --fontSize-button: 18px;
  }
}

@font-face {
  font-family: "GT Eesti Pro Text";
  src: url("assets/fonts/GT-Eesti-Text-Regular.woff2") format("opentype");
  font-weight: 400;
}

@font-face {
  font-family: "GT Eesti Pro Text";
  src: url("assets/fonts/GT-Eesti-Display-Medium.woff2") format("opentype");
  font-weight: 500;
}

body {
  font-family: "GT Eesti Pro Text", sans-serif;
  font-size: var(--fontSize-body);
  letter-spacing: var(--letterSpacing-body);
  line-height: 1.35;
  color: var(--color-black);
}

h1,
h2,
h3 {
  font-size: var(--fontSize-heading);
  letter-spacing: var(--letterSpacing-heading);
  font-weight: 400;
}

a {
  color: var(--color-black);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}

a:hover,
a.no-underline,
button.no-underline {
  text-decoration: none;
}

a.no-underline:hover,
button.no-underline:hover {
  text-decoration: underline;
}

button {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
  color: var(--color-black);
  /* transition:
    transform 500ms,
    text-underline-offset 500ms,
    letter-spacing 500ms; */
}

button:hover {
  /* transform: translateY(-1px);
  text-underline-offset: 4px;
  letter-spacing: 0.04em; */
  text-decoration: none;
}

/* Play/pause chip shown over ambient videos paused by prefers-reduced-motion.
   Translucent white keeps the black glyph legible over any video frame. */
.video-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 2.75rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85);
  color: var(--color-black);
  text-decoration: none;
}

/* display: grid outweighs the UA [hidden] rule, so restore it explicitly */
.video-toggle[hidden] {
  display: none;
}

.video-toggle:hover {
  background: var(--color-white);
}

.video-toggle:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

header {
  margin: 0 auto;
  position: fixed;
  top: 0px;
  z-index: 2000;
  background: var(--color-white);

  max-height: 70px;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    background-color 0.4s ease;
  width: 100%;
  height: 100dvh;
}

nav {
  padding: 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "wordmark eyeicons links";
  align-items: center;
  white-space: nowrap;
}

.menu-btn {
  display: none;
}

.wordmark {
  grid-area: wordmark;
}

.nav-content {
  grid-area: links;
  justify-self: end;
}

.eye-icons {
  display: flex;
  gap: 4.86px;
  justify-content: center;
}

.eye-icons svg {
  display: inline;
}

nav li {
  display: inline;
  padding-inline: 14px;
}

nav a,
nav button {
  letter-spacing: var(--letterSpacing-nav);
  font-weight: 400;
}

#menu-btn {
  grid-area: menu;
}

.hide-desktop {
  display: none;
}

@media (max-width: 1000px) {
  .hide-desktop {
    display: block;
  }
  #menu-btn {
    letter-spacing: var(--letterSpacing-nav);
  }

  header {
    max-height: 59px;
  }

  nav {
    grid-template-columns: 1fr auto;
    grid-template-areas: "wordmark menu";
    padding: 1.25rem 2rem;
  }

  nav .nav-content,
  nav .eye-icons {
    display: none;
  }
}

.mobile-menu-open {
  position: fixed;
  max-height: 100dvh;
  height: 100vh;
  background-color: var(--color-orange);
}

.mobile-menu-open .eye-icons {
  grid-area: eyeicons;
  display: flex;
  justify-content: center;
  justify-self: center;
  text-align: center;
}

.mobile-menu-open li {
  display: block;
}

.mobile-menu-open nav {
  height: 100%;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "wordmark menu"
    "links    links"
    "eyeicons eyeicons";
  padding-bottom: 2rem;
}

.mobile-menu-open .nav-content {
  display: grid;
  justify-self: center;
  text-align: center;
  grid-template-rows: auto auto 1fr;
  height: 100%;
  padding: 4.875rem 0 3rem;
  font-size: var(--fontSize-button);
  gap: 35px;
}

.mobile-menu-open .privacy-policy-li {
  align-self: end;
}

#hero-banner {
  background-color: var(--color-white);
  padding: var(--padding-default);
  padding-top: 139px;
}

#hero-banner h1 {
  max-width: 508px;
  text-wrap: pretty;
  margin-bottom: 2rem;
}

#hero-banner p {
  margin-bottom: 1.25rem;
}

#hero-video {
  position: relative;
}

#hero-video video {
  width: 100%;
  aspect-ratio: 1440 / 725;
}

#hero-video video img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  #hero-banner {
    padding-top: 105px;
  }

  #hero-banner h1 {
    margin-bottom: 3.75rem;
  }

  #hero-banner button {
    letter-spacing: 0.02em;
  }

  #hero-video video {
    aspect-ratio: 402 / 202.4;
  }
}

#about {
  /* position: relative; */
  /* height: 725px; */
  height: min(725px, 50.3472vw);
  background-color: var(--color-offwhite);
  padding-inline: max(293px, 20.35%);
}

.about-interactives {
  margin: 0 auto;
  position: relative;
  height: 100%;
  background-image: url("assets/images/front-transparent.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-clip: padding-box;
  padding: 5rem 0;
  max-width: 854px;
}

.about-interactive {
  position: relative;
  padding: 0.5rem 1rem;
  width: 315px;
  height: min(137px, 18.896%);
  letter-spacing: 0.03em;
}

.interactive-one {
  background-color: var(--color-mint);
  position: absolute;
  top: 55px;
  right: 80px;
  left: min(87.94%, 752px);
}

.interactive-one svg {
  position: absolute;
  bottom: -15px;
  left: -15px;
}

.interactive-two {
  background-color: var(--color-sky-blue);
  position: absolute;
  bottom: 54px;
  right: min(83.37%, 712px);
}

.interactive-two svg {
  position: absolute;
  top: -15px;
  right: -15px;
}

@media (max-width: 1000px) {
  #about {
    padding-inline: 27vw;
    height: 55vw;
  }
  .about-interactives {
    min-width: 352px;
  }

  .about-interactive {
    width: min(315px, 36.887%);
    min-width: 250px;
    height: auto;
  }
}

@media (max-width: 825px) {
  .interactive-one {
    top: 4vw;
  }
  .interactive-two {
    bottom: 4vw;
  }
}

@media (max-width: 768px) {
  #about {
    font-size: 11px;
    height: 299px;
    padding-inline: 1.5rem;
  }

  .about-interactives {
    min-width: unset;
    max-width: 352px;
  }
  .about-interactive {
    min-width: unset;
    height: unset;
    padding: 6px 10px 14px;
  }

  .interactive-one {
    max-width: 234px;
    width: 66.48%;
    top: 12px;
    left: min(32.59vw, 131px);
  }

  .interactive-two {
    max-width: 217px;
    width: 61.648%;
    bottom: 18px;
    left: min(18.66vw, 75px);
  }

  .interactive-two svg {
    bottom: -15px;
    left: -15px;
  }
}

#how-it-works {
  padding: 2rem 4rem 5.25rem;
}

#how-it-works p {
  margin-bottom: 1rem;
  text-wrap: balance;
}

.how-it-works-three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.how-it-works-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.how-it-works-image-block {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--color-plum);
  position: relative;
}

.fragmented-attention {
  background-color: var(--color-red);
  width: 72%;
  position: absolute;
  padding-inline: 0.5rem;
  height: 27%;
  top: 0;
  right: 0;
  text-align: center;
  align-content: center;
}

.focused-attention {
  position: absolute;
  padding: 1.5rem 2rem;
  bottom: 0;
  left: 0;
}

@media (max-width: 768px) {
  .focused-attention {
    padding: 19px 15px;
  }
}

#how-it-works button {
  font-size: var(--fontSize-heading);
  letter-spacing: 0.05em;
  text-align: center;
  width: 100%;
  margin-top: 4.25rem;
}

#how-it-works button:hover {
  /* letter-spacing: 0.1em; */
}

@media (max-width: 768px) {
  #how-it-works {
    padding: 4.25rem 2rem 8.5rem;
  }

  #how-it-works p {
    max-width: 250px;
    text-wrap: unset;
  }

  #how-it-works button {
    margin-top: 8.5rem;
  }

  .how-it-works-three-cols {
    gap: 4rem;
    grid-template-columns: unset;
  }
}

/* The 50% right padding this used to carry was sized for a full-width band.
   It now sits in the 59% left column, so the copy just takes normal insets. */
#see-the-science {
  position: relative;
  background-color: var(--color-cream);
  padding: 3.25rem 4rem 3.625rem;
    z-index: 1500;
}

#see-the-science p {
  margin-block: 1.25rem;
}

@media (max-width: 768px) {
  #see-the-science {
    padding: 1.25rem 2rem;
  }
  #see-the-science p {
    margin-block: 6.5rem 1.25rem;
  }
}

#symptoms-interactive {
  display: grid;
  grid-template-columns: 59% 1fr;
  background-color: var(--color-cream);
}

/* Desktop: the science copy and the shape artwork share the left column so the
   first beat can hand off to the second in place. Mobile switches the
   parent to display:block below, where these placements are ignored and the
   sections simply stack in source order. */
#symptoms-interactive > #see-the-science,
#symptoms-interactive > .wrap.isDesktop {
  grid-area: 1 / 1;
}

#symptoms-interactive > .symptoms-text {
  grid-area: 1 / 2;
}

#symptoms-interactive .symptoms-text {
  padding: 52px;
  display: flex;
  flex-direction: column;
  gap: 41px;
}

#symptoms-interactive .symptoms-text h3 {
  margin-bottom: 19px;
}

@media (max-width: 768px) {
  #symptoms-interactive {
    display: block;
  }

  /* One block visible at a time on mobile: stack every block into the same
     grid cell so they swap in place. The container sizes itself to the
     tallest block, so nothing jumps as they swap. */
  #symptoms-interactive .symptoms-text {
    display: grid;
    gap: 0;
    padding: 39px 32px;
  }

  #symptoms-interactive .symptoms-text > div {
    grid-area: 1 / 1;
  }

  #symptoms-interactive .symptoms-text h3 {
    margin-bottom: 11px;
  }
}

.isMobile {
  display: none;
}
@media (max-width: 768px) {
  .isDesktop {
    display: none;
  }
  .isMobile {
    display: block;
  }
}

#symptoms-interactive .wrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

#symptoms-interactive .wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Resting state is visible; the scroll timeline overrides this to fade the
   layers in, so the artwork still renders if GSAP never loads. */
#symptoms-interactive .wrap path {
  opacity: 1;
}

#cognitive-insights {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 59%;
}

#cognitive-insights .content {
  padding: 4rem;
}

#cognitive-insights .content h2 {
  margin-bottom: 2.25rem;
}

#cognitive-insights .content p {
  margin-bottom: 1.5rem;
}

#cognitive-insights .content div {
  margin-bottom: 1.5rem;
  position: relative;
}
#cognitive-insights .content svg {
  position: absolute;
  top: 0.5rem;
  left: -2rem;
}

#cognitive-insights .video-wrap {
  position: relative;
}

#cognitive-insights img,
#cognitive-insights video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  #cognitive-insights {
    grid-template-columns: unset;
  }

  #cognitive-insights .content {
    padding: 4.25rem 2rem 3rem;
  }

  #cognitive-insights .content p:last-of-type {
    margin-bottom: 4.25rem;
  }

  #cognitive-insights .content svg {
    display: none;
  }
}

.waitlist {
  text-align: center;
}

.waitlist .content {
  max-width: 470px;
  margin: 0 auto 8rem;
}

.waitlist .content h2 {
  margin-bottom: 1.5rem;
}

.waitlist .content form {
  text-align: left;
}

.waitlist .content .email-input {
  margin-top: 7rem;
  font-size: var(--fontSize-body);
  text-decoration: none;
  border-bottom: 1px solid var(--color-black);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
}

.waitlist .content small {
  font-size: 9px;
  letter-spacing: 0.02em;
  margin-top: 1rem;
  display: block;
}

@media (max-width: 768px) {
  .waitlist .content {
    margin: 0 auto 5.5rem;
  }

  .waitlist .content h2 {
    margin-bottom: 2.5rem;
  }

  .waitlist .content .email-input {
    margin-top: 5rem;
  }

  form input {
    font-size: 16px;
  }
}

footer {
  background-color: var(--color-orange);
  padding: 4rem 4rem 2rem;
}

@media (max-width: 1080px) {
  footer {
    padding-inline: 2rem;
  }
}

#footer-links {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  white-space: nowrap;
}

#footer-links button {
  letter-spacing: var(--letterSpacing-nav);
}

@media (max-width: 1000px) {
  #footer-links {
    grid-template-columns: 1fr 1fr;
  }

  #footer-links div:last-child {
    display: none;
  }

  #footer-links .eye-icons {
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 1.5rem 2rem 1.25rem;
  }
}

#waitlist-modal {
  background: var(--color-teal);
  width: 718px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

#waitlist-modal .content {
  padding: 5.5rem 1rem;
  margin: 0 auto;
}

@media (max-width: 768px) and (min-width: 584px) {
  #waitlist-modal {
    max-width: 550px;
  }
}

@media (max-width: 768px) {
  #waitlist-modal .content {
    padding: 2rem 1rem;
  }
}

input {
  border: unset;
  padding-block: 0.75rem;
  flex-grow: 1;
  background-color: unset;
}

input::placeholder {
  color: var(--color-black);
}

input:focus::placeholder {
  color: transparent;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 9999s ease-in-out 0s;
}

.spinning {
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

footer ul {
  text-align: right;
}

footer li {
  display: inline;
  letter-spacing: 0.06em;
  padding-inline: 14px;
}

dialog {
  border: none;
  position: relative;
}

dialog::backdrop {
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.3);
}

.close-icon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1rem;
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: #222;
  color: #fff;
  display: none;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}
#cookie-banner button {
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
