@font-face {
  font-family: "Antarctica";
  src: url("/fonts/Antarctica WOFF2/Antarctica VAR-VF.ttf.woff2") format("woff2");
  font-weight: 1 950;
  font-style: normal;
  font-display: swap;
}

/* Page-nav crossfade (see main.js's use of document.startViewTransition) */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
  animation-timing-function: ease-in-out;
}

:root {
  --bg: #edfdf2;
  --ink: #002c32;
  --teal: #1a5a61;
  --border: #DBF0E9;
  --body-text: #4e797e;
  --accent: #00A465;
  --link: #003a42;
  --panel-bg: #00171a;
}



html,
body {
  height: auto;
  min-height: 100vh;
  width: 100vw;
  position: absolute;
}

body {
  background: var(--bg);
  color: var(--body-text);
  font-family: "Antarctica", Arial, sans-serif;
  font-weight: 340;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

body::selection {
  background-color: #00a46565;
}

.page-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 24px;
  max-width: 2600px;
}

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

p + p, ul + p, ol + p {
  margin-top: 20px;
}

h1 {
  font-weight: 300;
  font-size: clamp(20px, 6cqi, 60px);
  line-height: 1.25;
}

/* Header */
.site-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  height: 76px;
  position: relative;
}

.site-header::after {
  content: '';
  width: 100%;
  height: 1px;
  background-color: var(--border);
  top: auto;
  bottom: 0;
  left: 0;
  position: absolute;
  z-index: -1;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  height: 100%;
  align-items: flex-start;
}

.logo-link img {
  display: block;
  height: 16px;
}

.logo-link .logo-icon {
  height: 16px;
  width: auto;
  margin-top: 5px;
}

.logo-link .logo-word {
  height: 12px;
  width: auto;
  margin-top: 6.5px;
}

.site-nav {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  height: 100%;
}

.nav-link {
  display: inline-flex;
  align-items: flex-start;
  height: 100%;
  position: relative;
  color: var(--teal);
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer !important;
}

.nav-link.current,
.logo-link.current {
  color: var(--ink);
}

.nav-link.current::after,
.logo-link.current::after {
  content: "";
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ink);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 8vh, 80px);
  min-height: calc(100vh - 120px);
  padding: 60px;
  

}

.content-container {
  flex: 1;
  display: flex;
  min-width: 0;
  padding: 0;
}

.home-content{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  container-type: inline-size;
}

/* FAQ / Terms / Privacy: top-aligned content-container child (home-content's sibling) */
.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.image-panel {
  flex: 0 0 auto;
  container-type: inline-size;
  background:
    radial-gradient(ellipse 500px 700px at 50% 115%, rgba(34, 236, 236, 0.3), rgba(34, 236, 236, 0)),
    var(--panel-bg);
  &.desktop {
    display: block;
    width: 50%;
    max-width: 1000px;
    height: calc(100vh - 48px);
    min-height: 690px;
    overflow: hidden;
    position: sticky;
    top: 24px;
    right: 24px;
    bottom: 24px;
    left: auto;
    border-radius: 16px;

    .image-panel__phone {
      position: absolute;
      filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
    }

    .image-panel__phone img {
      display: block;
      border-radius: 10%;
      width: 100%;
    }

    .image-panel__phone--1 {
      /* Pull top phone img up from bottom by 72%, minus absolute 400px: pushes image down further the taller and narrower the container gets */
      bottom: calc(65cqh - 400px);
      left: 8%;
      width: 45cqh;
      max-width: 70cqw;
      z-index: 1;
    }

    .image-panel__phone--2 {
      /* Push bottom phone img down from top by 75%, minus absolute 400px: pushes image up further the taller and narrower the container gets */
      top: calc(72cqh - 400px);
      right: 8%;
      width: 48cqh;
      max-width: 75cqw;
    }
  }

  &.mobile {
    display: none;
    position: relative;
    height: 320px;
    border-radius: 8px;
    margin-top: 40px;
    overflow: visible;

    .image-panel__phone {
      position: absolute;
      height: 120%;
      top: -10%;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
    }

    .image-panel__phone img {
      display: block;
      border-radius: 10%;
    }
  }
}



/* Home hero */

h1.hero-heading {
  margin: 0;
  width: 100%;
  max-width: 1000px
}

.hero-heading .line-ink {
  color: var(--ink);
  display: block;
}

.hero-heading .line-accent {
  color: var(--accent);
  display: block;
}

.hero-sub {
  font-size: 16px;
  color: var(--body-text);
  margin-bottom: 12px;
}

.waitlist-form {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--teal);
  transition: border-color 0.15s ease;
  max-width: 960px;
}

.waitlist-form:has(.waitlist-form__input:focus) {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.waitlist-form__label {
  background: #edfdf5;
  color: var(--body-text);
  font-size: 16px;
  padding: 22px 24px;
  white-space: nowrap;
  border-right: 1px solid;
  transition: border-color 0.15s ease;
}

.waitlist-form__field {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
}

.waitlist-form__input {
  flex: 1 1 auto;
  min-width: 0;
  background: #fff;
  color: var(--body-text);
  font-family: inherit;
  font-size: 16px;
  padding: 22px 24px;
  border: none;
  border-right: 1px solid;
  transition: border-color 0.15s ease;
}

.waitlist-form__input:focus {
  outline: none;
}

.waitlist-form:has(.waitlist-form__input:focus) .waitlist-form__label,
.waitlist-form:has(.waitlist-form__input:focus) .waitlist-form__input {
  border-color: var(--teal);
}

.waitlist-form__input::placeholder {
  color: var(--body-text);
  font-family: inherit;
}

.waitlist-form__submit {
  flex: 0 0 72px;
  width: 72px;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.waitlist-form__submit img {
  max-width: 20px;
  max-height: 20px;
}

/* Section heading (FAQ page title, Terms/Privacy title) */
.section-heading {
  color: var(--ink);
  font-size: 24px;
  line-height: 32px;
  margin: 0 0 24px;
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  transition: 0.15s all ease-in-out;
}

.faq-item:first-child {
  border-top: none;
  padding-top: 0 !important; 
}

.faq-item:last-child {
  padding-bottom: 0 !important;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  font-size: 24px;
  font-weight: 300;
  line-height: 32px;
  cursor: pointer;
  padding: 0;
}


.faq-question__icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-question__icon img {
  max-width: 100%;
  max-height: 100%;
  display: none;
}

.faq-question__icon--plus img.icon-plus {
  display: block;
}

.faq-item.is-open {
  padding: 40px 0;
}

.faq-item.is-open .faq-question__icon--plus img.icon-plus {
  display: none;
}

.faq-item.is-open .faq-question__icon--plus img.icon-minus {
  display: block;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.faq-answer__inner {
  min-height: 0;
  overflow: hidden;
  color: var(--body-text);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  padding-top: 16px;
}

.legal-body h3 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 360;
  margin: 32px 0 24px;
}

.legal-body h3:first-child {
  margin-top: 0;
}

.legal-body a {
  color: var(--teal);
  text-decoration: underline;
}

.legal-body .summary-box {
  background: #1a5a6114;
  border-left: 1px solid var(--teal);
  padding: 24px;
  margin: 24px 0;
}

/* Footer */
.site-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  width: 100%;
  height: 116px;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.footer-text {
  color: var(--body-text);
  font-size: 11px;
  line-height: 1.5;
  max-width: 658px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-text p {
  margin: 0;
}

.footer-text a {
  color: var(--link);
  text-decoration: underline;
}

/* Login / gate page */
.gate-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
}

.gate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  width: 100%;
  max-width: 360px;
}

.gate-logo {
  height: 60px;
  width: auto;
  padding: 0 24px;
  margin-bottom: 32px;
}

.gate-card .waitlist-form {
  width: 100%;
}

.gate-error {
  color: #b3261e;
  font-size: 14px;
  margin: 0;
}