/* TruRevival
   One stylesheet for the whole site. Sections follow the page from top to bottom:
   1. Colors, fonts, easing     5. Hero                    9. Early access form
   2. Base elements             6. Feature cards + slider  10. Footer
   3. Layout helpers + buttons  7. "Intentional living"    11. Legal pages (Privacy, Terms)
   4. Navbar + mobile menu      8. Product cards           12. Animations
   Breakpoints: 1440px and up (large), 991 / 767 / 479px and down. */

/* 1. Colors, fonts, easing ------------------------------------------------ */
:root {
  --background: #000;
  --hero-background: #03040d;
  --grey-section: #0d0d0d;
  --card: #181818;
  --cta-box: #1b1c1d;
  --text: #fff;
  --paragraph: #ffffffb3;
  --muted: #7d7d7d;
  --link: #d8d8d8;
  --blue: #0266ff;
  --blue-hover: #114ba3;
  --field: #333;
  --field-border: #515151;
  --divider: #2b2b2b;

  --heading-font: Outfit, sans-serif;
  --body-font: "IBM Plex Sans Hebrew", sans-serif;

  /* Easing curves copied from the Webflow interactions. */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-swing: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 2. Base elements -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background-color: var(--background);
  color: var(--text);
  font-family: var(--heading-font);
  font-size: 14px;
  line-height: 1.2;
}

h1, h2, h3, h4, h5, h6 { font-weight: 500; }
h1 { margin: 20px 0 0; font-size: 62px; line-height: 0.9; }
h2 { margin: 20px 0 10px; font-size: 35px; line-height: 1.2; }
h3 { margin: 20px 0 10px; font-size: 38px; line-height: 1.2; }

p {
  margin: 0 0 10px;
  color: var(--paragraph);
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

a {
  color: var(--paragraph);
  font-family: var(--body-font);
  text-decoration: none;
}

img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

ul, ol { margin: 0 0 10px; padding-left: 40px; }

li {
  padding: 14px 0;
  font-family: var(--body-font);
  font-size: 15px;
}

strong { font-weight: 700; }

button, input { color: inherit; font: inherit; margin: 0; }

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

/* 3. Layout helpers + buttons --------------------------------------------- */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 2em;
}

.section { position: relative; }
.section-grey { background-color: var(--grey-section); }

.center-text,
.title-holder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.title-holder { row-gap: 18px; }
.title-container { max-width: 762px; }
.paragraph-holder { max-width: 465px; }

.title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.3;
}

.button {
  display: inline-block;
  padding: 15px 25px;
  border: 0;
  border-radius: 8px;
  background-color: var(--blue);
  color: #fff;
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 500;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.45s;
}

.button:hover { background-color: var(--blue-hover); }

.icon-tile {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: #fff;
}

/* 4. Navbar + mobile menu ------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
  border-bottom: 1px solid #ffffff1a;
  background-color: #1b1b1b42;
  -webkit-backdrop-filter: blur(21px);
  backdrop-filter: blur(21px);
}

/* On the homepage the bar floats over the hero instead of pushing it down. */
.navbar-fixed {
  position: fixed;
  inset: 0 0 auto;
  z-index: 19;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 2em;
}

.brand { position: relative; display: block; }
.nav-menu-clip { flex: 1; height: 100%; }
.brand img { width: 152px; }

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  column-gap: 40px;
  height: 100%;
}

.nav-link {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  border-bottom: 3px solid #fff0;
  color: #fff;
  font-size: 15px;
  transition: border-color 0.6s;
}

.nav-link.is-current { border-bottom-color: #fff; }

.navbar-button {
  padding: 7px 24px;
  border-radius: 4px;
  background-color: #fff;
  color: #000;
  font-size: 15px;
}

.navbar-button:hover { background-color: #b3b3b3; }

.menu-button {
  display: none;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: #fff;
  cursor: pointer;
}

.menu-button svg { display: block; width: 24px; height: 24px; }
.menu-button[aria-expanded="true"] { background-color: var(--blue); }

@media (max-width: 991px) {
  .menu-button { display: block; }

  /* The menu drops down from under the bar. */
  .nav-menu-clip {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    overflow: hidden;
    pointer-events: none;
  }

  .nav-menu {
    flex-direction: column;
    row-gap: 20px;
    height: auto;
    padding: 20px 0;
    background-color: var(--grey-section);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    visibility: hidden;
  }

  .nav-menu.is-open {
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu:not(.is-open) { transition: transform 0.4s ease, visibility 0s 0.4s; }

  .nav-links {
    flex: none;
    flex-direction: column;
    row-gap: 20px;
    height: auto;
  }

  .nav-link { height: auto; }
}

/* 5. Hero ----------------------------------------------------------------- */
.hero {
  overflow: hidden;
  background-color: var(--hero-background);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 30px;
  padding-top: 120px;
  text-align: center;
}

.hero-mark-holder {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1500px;
}

.hero-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 9px;
  background-color: #fff;
}

.hero-mark img { width: 26px; }

.hero-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 9px;
  max-width: 600px;
  margin: 0;
  perspective: 1500px;
}

.hero-word {
  display: block;
  margin-top: 20px;
}

.hero-line-break { flex-basis: 100%; height: 0; }

.hero-intro { max-width: 430px; }
.hero-buttons { display: flex; column-gap: 30px; }

.hero-phone-holder {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
}

.hero-phone-perspective {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1500px;
}

.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 310px;
  overflow: hidden;
}

.hero-phone-frame {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-phone-screen-holder {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3.5% 4%;
}

.hero-phone-screen {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 35px;
  object-fit: cover;
  object-position: 50% 0%;
}

.hero-phone-shade {
  position: absolute;
  inset: 1% 4% 2%;
  z-index: 1;
  border-radius: 30px;
  background-color: var(--background);
  opacity: 0.3;
}

.hero-phone-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 3.5% 4%;
  border-radius: 9%;
  object-fit: cover;
}

.hero-glow-holder {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-glow { width: 140%; min-width: 115%; max-width: none; }

/* 6. Feature cards + slider ----------------------------------------------- */
.under-hero {
  position: relative;
  z-index: 2;
  margin-top: -70px;
  background-color: #000;
}

.feature-cards {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  padding: 80px 0 140px;
}

.card {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background-color: var(--card);
  overflow: hidden;
}

.habit-card-text {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
  padding: 40px;
  perspective: 1500px;
}

.habit-card-text p { max-width: 325px; }
.habit-card-image { width: 100%; }

.phone-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px;
}

.phone-card-phone {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.phone-card-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: cover;
}

.phone-card-screen-holder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 4.5% 5%;
  border-radius: 70px;
  overflow: hidden;
}

.phone-card-screen { width: 100%; height: 100%; object-fit: cover; }

.phone-card-background-holder {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-card-background { width: 100%; height: 100%; object-fit: cover; }

.ecosystem-card-inner {
  width: 100%;
  height: 100%;
  padding: 40px 25px 25px;
}

.card-label {
  display: flex;
  align-items: center;
  column-gap: 8px;
  font-family: var(--body-font);
  font-size: 18px;
}

.card-label .icon-tile img { width: 22px; }

.slider { position: relative; width: 100%; }

/* All slides sit on top of each other and fade between. */
.slider-mask { display: grid; overflow: hidden; }

.slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 45px;
  padding-top: 32px;
  transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
}

.slide:not(.is-active) { opacity: 0; visibility: hidden; }
.slide.is-active { transition: opacity 0.45s var(--ease) 0.45s, visibility 0s 0.45s; }

.slide-name { font-size: 62px; }

.slide-headline {
  color: #fff;
  font-family: var(--body-font);
  font-size: 20px;
}


.slider-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24%;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 200px;
  background: none;
  cursor: pointer;
}

.slider-arrow img { width: 16px; }

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 5px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  margin: 0 3px;
  padding: 0;
  border: 0;
  border-radius: 100%;
  background-color: #fff6;
  cursor: pointer;
  transition: background-color 0.1s;
}

.slider-dot.is-active { background-color: #fff; }

/* 7. "Intentional living" ------------------------------------------------- */
.intentional { padding: 80px 0; }

.intentional-rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 230px;
  width: 100%;
  padding: 130px 0 90px;
}

.intentional-row {
  display: flex;
  justify-content: space-between;
  column-gap: 160px;
  width: 90%;
}

.intentional-card {
  position: relative;
  width: 100%;
  min-width: 370px;
  perspective: 1500px;
}

.intentional-image-holder {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
}

.intentional-image-layer {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  perspective: 1500px;
}

.intentional-image-layer.is-stacked {
  justify-content: space-between;
  padding: 80px 50px;
}

.intentional-background { width: 100%; }

.intentional-big-image {
  position: relative;
  top: 100px;
  left: 20%;
  width: 100%;
  border-radius: 20px;
  box-shadow: -1px 1px 17px #00000040;
}

.is-stacked .intentional-big-image { top: 0; left: 0; }
.intentional-big-image img { width: 100%; border-radius: 12px; }

.intentional-small-image {
  position: absolute;
  inset: 7% auto auto -7%;
  z-index: 1;
  width: 350px;
}

.is-stacked .intentional-small-image { position: static; width: 100%; }

.intentional-small-image img {
  border-radius: 10px;
  box-shadow: 1px 1px 20px #00000070;
}

.is-stacked .intentional-small-image img { width: 100%; }

.intentional-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  row-gap: 30px;
  width: 100%;
}

.intentional-label {
  display: flex;
  align-items: center;
  column-gap: 10px;
  font-family: var(--body-font);
  font-size: 18px;
}

.intentional-label .icon-tile img { width: 24px; }
.intentional-title { max-width: 349px; }

/* 8. Product cards -------------------------------------------------------- */
.products { padding: 90px 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 90px 0;
}

.product-image-holder {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  background-color: var(--grey-section);
  overflow: hidden;
}

.product-image {
  position: relative;
  z-index: 1;
}

.product-image img {
  position: relative;
  left: 1px;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

/* Colored glow behind each product image. It fades in and spins on hover. */
.product-glow {
  position: absolute;
  width: 150%;
  height: 150%;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.product-image-holder:hover .product-glow { opacity: 1; }

.product-glow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: spin 2s linear infinite;
}

.product-text {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  padding: 10px 0;
}

.product-heading { font-size: 20px; }

/* 9. Early access form ---------------------------------------------------- */
.early-access { padding: 90px 0; }

.cta-holder {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
}

.cta-box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 970px;
  max-width: 100%;
  border-radius: 12px;
  background-color: var(--cta-box);
  overflow: hidden;
}

.cta-circle-holder {
  position: absolute;
  inset: auto auto -32% -15%;
  width: 350px;
}

.cta-circle-holder.is-second {
  inset: -18% -14% auto auto;
  transform: rotate(180deg);
}

.cta-circle { width: 100%; animation: spin-back 7s linear infinite; }
.is-second .cta-circle { animation-name: spin; }

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 75px 0 32px;
}

.cta-logo-holder {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-logo {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: inset 0 0 20px #0266ff47;
}

.cta-logo img { position: relative; left: 1px; width: 26px; }

.cta-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 200px;
  background-color: #0266ffb0;
  filter: blur(20px);
  opacity: 0.35;
}

.cta-glow.is-large {
  width: 200px;
  height: 200px;
  background-color: #00d4ff;
  opacity: 0.09;
}

.cta-line {
  position: absolute;
  top: -200px;
  width: 1px;
  height: 200px;
  background-color: #fff;
  opacity: 0.09;
}

.cta-heading-holder {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 4px;
  padding: 24px 0 32px;
}

.cta-heading {
  margin: 0;
  font-family: var(--body-font);
  font-size: 24px;
  font-weight: 500;
}

.cta-heading-holder p {
  max-width: 440px;
  text-align: center;
}

.form-block { width: 370px; }

.email-row {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.text-field {
  display: block;
  width: 100%;
  height: 51px;
  padding: 8px 12px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background-color: var(--field);
  color: #fff;
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 1.42857;
  box-shadow: 0 4px 4px #0000003d, 0 0 14px #0000003d, 0 21px 36px #635bff1f;
  transition: border-color 0.45s, box-shadow 0.425s;
}

.text-field:hover {
  border-color: #777;
  box-shadow: 0 0 4px #0000003d, 0 17px 20px #0000003d, 0 21px 36px #635bff1f;
}

.text-field:focus {
  border-color: #448eff;
  outline: 0;
  box-shadow: 0 4px 18px #0000003d, 0 0 14px #0000003d, 0 21px 90px #635bff0a;
}

.text-field::placeholder {
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 15px;
}

.submit-button {
  position: absolute;
  right: 10px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: var(--blue) url("/assets/images/icons/arrow-submit.svg") 50% / auto no-repeat;
  cursor: pointer;
  transition: background-color 0.375s;
}

.submit-button:hover { background-color: #0f56c3; }
.submit-button:disabled { opacity: 0.6; cursor: wait; }

.form-message {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background-color: var(--field);
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 16px;
  text-align: center;
  box-shadow: 0 4px 4px #0000003d, 0 0 14px #0000003d, 0 21px 36px #635bff1f;
}

.form-message.is-error {
  margin-top: 10px;
  padding: 10px;
  border-color: #aa5252;
  box-shadow: 0 4px 4px #0000003d, 0 0 14px #0000003d, 0 21px 36px #ff00041f;
}

.form-message strong { color: #fff; font-weight: 400; }

/* 10. Footer -------------------------------------------------------------- */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 18px;
  max-width: 300px;
}

.footer-brand img { width: 280px; }

.footer-columns {
  display: grid;
  grid-template-columns: auto;
  column-gap: 70px;
  row-gap: 40px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 10px;
}

.footer-title,
.footer-bottom {
  font-family: var(--body-font);
  font-size: 15px;
  text-transform: uppercase;
}

.footer-link {
  color: var(--link);
  font-size: 15px;
  line-height: 1.2;
  transition: color 0.475s;
}

.footer-link:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--divider);
}

/* 11. Legal pages (Privacy, Terms) ---------------------------------------- */
.legal { margin-top: 23px; }

.legal-content {
  max-width: 940px;
  margin: 0 auto;
}

/* Keeps the first heading's and last paragraph's spacing inside the box, like Webflow did. */
.legal-content::before, .legal-content::after { content: ""; display: table; }
.legal-content h1 { margin-bottom: 29.5px; }
.legal-content ul { overflow: hidden; }
.legal-content .legal-contact { margin-top: 29.5px; }

/* 12. Animations ---------------------------------------------------------- */
/* Elements start hidden only when JavaScript is running, so the page never ends up blank.
   main.js adds .is-loaded to <html> on page load and .is-in-view to sections as they scroll in. */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-back { to { transform: rotate(-360deg); } }

.js [data-animate] {
  transition-property: opacity, transform;
  transition-timing-function: var(--ease);
}

/* Fade up: text blocks all over the page. */
.js [data-animate="fade-up"] { opacity: 0; transform: translateY(20px); transition-duration: 0.8s; transition-delay: 0.3s; }

/* Slide in from the right: product images, one after another. */
.js [data-animate="slide-in-right"] {
  opacity: 0;
  transform: translateX(100px);
  transition-duration: 1s;
  transition-timing-function: var(--ease-out-quart);
}

/* Flip up: words that tip forward into place. */
.js [data-animate="flip-up"] { opacity: 0; transform: translateY(30px) rotateX(90deg) skewX(15deg); transition-duration: 1.1s; }
.js .habit-card [data-animate="flip-up"] { transform: translateY(30px) rotateX(90deg) skewX(12deg); transition-duration: 0.7s; }

/* Rise: hero paragraph, hero button, form. */
.js [data-animate="rise"] { opacity: 0; transform: translateY(30px); transition-duration: 0.6s; }

.js .is-in-view[data-animate],
.js .is-in-view [data-animate],
.js.is-loaded .hero [data-animate] { opacity: 1; transform: none; }

/* Hero on page load */
.js .navbar[data-animate] { transition-duration: 0.5s; transition-delay: 1s; transition-timing-function: linear; }
.js.is-loaded .navbar[data-animate] { opacity: 1; }

.js .hero-mark-holder { transform: rotateY(90deg); transition: transform 1.1s var(--ease-swing) 0.2s; }
.js .hero-mark { opacity: 0; transition: opacity 1.1s var(--ease) 0.2s; }
.js .hero-mark img { transform: scale(1.3); transition: transform 1.1s var(--ease) 0.2s; }
.js.is-loaded .hero-mark-holder,
.js.is-loaded .hero-mark img { transform: none; }
.js.is-loaded .hero-mark { opacity: 1; }

.js .hero-glow { opacity: 0; transform: scale(0.4); transition: opacity 2.8s var(--ease) 0.7s, transform 2.8s var(--ease) 0.7s; }
.js.is-loaded .hero-glow { opacity: 1; transform: none; }

.js .hero-phone { opacity: 0; transform: translateY(50px) rotateX(-46deg); transition: opacity 0.7s var(--ease) 1s, transform 0.7s var(--ease) 1s; }
.js.is-loaded .hero-phone { opacity: 1; transform: none; }

.js .hero-phone-screen { opacity: 0; transition: opacity 0.5s var(--ease) 1s; }
.js.is-loaded .hero-phone-screen { opacity: 1; }

/* Habit card: words flip up, then the plan image slides in. */
.js .habit-card-image { transform: translateX(100%); transition: transform 0.7s var(--ease) 0.2s; }
.js .habit-card.is-in-view .habit-card-image { transform: none; }

/* Phone card: the phone zooms down into place, then the background fades in. */
.js .phone-card-phone { opacity: 0; transform: scale(2); transition: opacity 0.8s var(--ease) 0.3s, transform 0.8s var(--ease-swing) 0.3s; }
.js .phone-card-background { opacity: 0; transition: opacity 0.8s var(--ease) 0.6s; }
.js .phone-card.is-in-view .phone-card-phone { opacity: 1; transform: none; }
.js .phone-card.is-in-view .phone-card-background { opacity: 1; }

/* "Intentional living" cards: the small card swings in, then the photo slides in. */
.js .intentional-small-image { opacity: 0; transform: translateX(65px) rotateY(-55deg); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .intentional-big-image { opacity: 0; transform: translateX(177px); transition: opacity 0.6s var(--ease) 0.1s, transform 0.6s var(--ease) 0.1s; }
.js .intentional-card.is-in-view .intentional-small-image,
.js .intentional-card.is-in-view .intentional-big-image { opacity: 1; transform: none; }

/* Early access box */
.js .cta-logo-holder { transform: translateY(-190px); transition: transform 1.6s var(--ease); }
.js .cta-glow { opacity: 0; transform: scale(0.3); transition: opacity 0.7s var(--ease) 0.1s, transform 2.3s linear 0.1s; }
.js .cta-glow.is-large { transform: scale(0.1); transition-delay: 0s; }
.js .cta-circle-holder { opacity: 0; transition: opacity 1.3s var(--ease) 0.1s; }
.js .cta-heading-holder { opacity: 0; transition: opacity 0.7s var(--ease) 0.8s; }
.js .cta-holder [data-animate="rise"] { transition-duration: 0.7s; transition-delay: 1s; }
.js .cta-holder.is-in-view .cta-logo-holder { transform: none; }
.js .cta-holder.is-in-view .cta-glow { opacity: 0.35; transform: none; }
.js .cta-holder.is-in-view .cta-glow.is-large { opacity: 0.09; }
.js .cta-holder.is-in-view .cta-circle-holder,
.js .cta-holder.is-in-view .cta-heading-holder { opacity: 1; }

/* Visitors who turn off motion in their device settings get no animations at all
   (base.njk skips the .js class for them), so only the endless spins need stopping here. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-glow img, .cta-circle { animation: none; }
}

/* Large screens ------------------------------------------------------------ */
@media (min-width: 1440px) {
  .container { max-width: 1340px; }
  .phone-card { padding: 35px; }
  .slider { height: 100%; }
  .footer-columns { grid-template-columns: auto 1fr; }
  .slider-controls { bottom: 8%; }
  .legal { margin-top: 92px; margin-bottom: 129px; }
}

/* Tablet ------------------------------------------------------------------- */
@media (max-width: 991px) {
  h1 { font-size: 42px; }
  h2 { font-size: 38px; }
  h3 { font-size: 32px; }

  .hero-title { max-width: 430px; }

  .feature-cards { grid-template-columns: 0.5fr 1fr; }
  .habit-card { grid-column: span 2; }
  .phone-card-screen-holder { border-radius: 50px; }
  .ecosystem-card-inner { padding-bottom: 121px; }

  .intentional-row { column-gap: 40px; width: 100%; }

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

  .cta-box { width: 100%; }
  .cta-circle-holder { left: -28%; }
  .cta-circle-holder.is-second { right: -26%; }

  .footer-columns { column-gap: 60px; }
}

/* Large phones --------------------------------------------------------------- */
@media (max-width: 767px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }

  .hero { min-height: 120vh; }
  .hero-content { padding-top: 180px; }
  .hero-phone-holder { top: 60px; }

  .feature-cards { display: flex; flex-direction: column; align-items: center; }
  .phone-card-phone { width: 50%; }

  .intentional-rows { padding-top: 50px; }
  .intentional-row { display: grid; grid-template-columns: 1fr; row-gap: 60px; }
  .intentional-row .intentional-text { grid-row: 1; }

  .products { padding: 50px 0; }
  .product-grid { padding: 40px 0; }

  .cta-circle-holder { width: 260px; }
  .cta-circle-holder.is-second { width: 270px; }

  .footer-top { flex-direction: column; }
  .footer-columns { grid-template-columns: 1fr; margin-top: 40px; }

  /* Live-site fix: the Privacy and Terms text used to touch the screen edges on phones. */
  .legal-content { padding: 0 2em; }
}

/* Phones ------------------------------------------------------------------- */
@media (max-width: 479px) {
  .container, .navbar-container { padding-left: 1em; padding-right: 1em; }

  .hero-content { row-gap: 20px; padding-top: 100px; }
  .hero-buttons { flex-direction: column; row-gap: 16px; width: 100%; }
  .hero-phone-holder { align-items: flex-start; padding: 13px; }
  .hero-phone-perspective { width: 100%; }
  .hero-glow { width: 160%; min-width: 350%; }

  .habit-card { border-radius: 10px; }
  .habit-card-text { padding: 20px; }
  .phone-card { border-radius: 12px; }
  .phone-card-phone { width: 80%; }
  .phone-card-screen-holder { border-radius: 40px; }

  .title-holder { row-gap: 8px; }

  .intentional { padding: 40px 0; }
  .intentional-rows { row-gap: 100px; padding-bottom: 50px; }
  .intentional-image-holder { border-radius: 14px; }
  .intentional-image-layer.is-stacked { padding: 30px; }
  .intentional-small-image { top: 14%; left: 4%; width: 250px; }
  .intentional-card { min-width: 0; }

  .product-grid { display: flex; flex-direction: column; row-gap: 60px; }
  .product-text { padding: 16px 0 0; }

  .early-access { padding: 30px 0; }
  .cta-holder { padding: 29px 0; }
  .cta-heading-holder p { padding: 0 11px; }
  .form-block { width: 100%; padding: 0 12px; }
  .cta-circle-holder, .cta-circle-holder.is-second { width: 180px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; row-gap: 20px; margin-top: 20px; padding-top: 20px; }

  .legal-content { padding: 0 1em; }
}
