/* Digital Habit Tracker ("The Warzone") sales page */

body.habit {
  background: rgb(15, 15, 16);
  --ink: rgb(28, 30, 34);
  --paper: rgb(224, 224, 224);
  --red: rgb(178, 34, 34);
  --blue: rgb(31, 78, 121);
}

.wz {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 6962px;
  background: var(--ink);
  overflow: hidden;
}

/* ---------- Shared bits ---------- */
.wz-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 240px;
  height: 37px;
  flex: none;
  border-radius: 10px;
  background-color: var(--red);
  box-shadow: 1px 2px 0 0 rgb(0, 191, 255);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 25.2px;
  letter-spacing: -0.72px;
  white-space: pre;
  overflow: hidden;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.wz-btn svg {
  width: 29px;
  height: 25px;
  fill: #fff;
  transform: rotate(180deg);
  flex: none;
}
.wz-btn:hover {
  filter: brightness(1.12);
}
.wz-btn:active {
  transform: translateY(1px);
}
.wz-btn--glow {
  width: 259px;
  height: 52px;
  box-shadow: 0 0 43px 3px var(--blue);
}
.wz-btn--glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--paper);
  border-radius: inherit;
  pointer-events: none;
}
/* 44px tap area on touch screens without changing the look */
.wz-btn::before {
  content: "";
  position: absolute;
  inset: -4px 0;
}

.wz-h1 {
  font-size: 59px;
  font-weight: 800;
  line-height: 82.6px;
  letter-spacing: -0.6px;
  text-align: center;
  color: #fff;
  white-space: pre;
}
.wz-h3 {
  font-size: 26px;
  font-weight: 700;
  line-height: 36.4px;
  letter-spacing: -1.04px;
  color: var(--paper);
}

/* ---------- Hero ---------- */
.wz-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 434px; /* 504px when the discount banner is showing */
  flex: none;
  overflow: hidden;
}
.wz-hero.has-banner {
  height: 504px;
}
.wz-banner[hidden] {
  display: none;
}

.wz-banner {
  position: relative;
  width: 100%;
  height: 60px;
  flex: none;
  background-color: var(--red);
  overflow: hidden;
  text-align: center;
}
.wz-banner__label {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 700;
  line-height: 25.2px;
  letter-spacing: -0.72px;
  color: rgb(229, 231, 235);
  white-space: pre;
}
.wz-banner__timer {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  color: var(--paper);
  white-space: pre;
  font-variant-numeric: tabular-nums;
}

.wz-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  width: 797px;
  max-width: 100%;
  height: 449px;
  flex: none;
}
.wz-pill {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 10px;
  background-color: var(--blue);
  box-shadow: 1px 2px 0 0 var(--red);
  font-size: 13px;
  font-weight: 600;
  line-height: 16.9px;
  color: var(--paper);
  white-space: pre;
}
.wz-hero__title {
  font-size: 72px;
  font-weight: 700;
  line-height: 86.4px;
  letter-spacing: -3.8px;
  text-align: center;
  color: #fff;
  white-space: pre;
}
.wz-hero__sub {
  max-width: 96%;
  font-size: 16px;
  font-weight: 600;
  line-height: 19.2px;
  text-align: center;
  color: var(--paper);
}

/* ---------- Carousel ---------- */
.wz-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 730px;
  flex: none;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 941px;
  aspect-ratio: 1.31748 / 1;
  flex: none;
  --pad: 65px;
  --gap: 11px;
  user-select: none;
  -webkit-user-select: none;
}
.carousel__viewport {
  position: absolute;
  inset: 0;
  padding: var(--pad);
  perspective: 900px;
}
.carousel__track {
  position: relative;
  display: flex;
  gap: var(--gap);
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.carousel__slide {
  flex: none;
  width: 100%;
  height: 100%;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* No JavaScript: a plain swipeable strip */
html:not(.js) .carousel__viewport {
  perspective: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
html:not(.js) .carousel__slide {
  scroll-snap-align: center;
}
html:not(.js) .carousel__controls {
  display: none;
}

/* With JavaScript: 3D cube-style slideshow */
.js .carousel__track {
  display: block;
  transform-style: preserve-3d;
  touch-action: pan-y;
}
.js .carousel__slide {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
  backface-visibility: visible;
}

.carousel__controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.carousel__arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 40px;
  background-color: rgba(0, 0, 0, 0.2);
  overflow: visible;
  pointer-events: auto;
  transition: background-color 0.2s ease;
}
.carousel__arrow::before {
  content: "";
  position: absolute;
  inset: -2px;
}
.carousel__arrow:hover {
  background-color: rgba(0, 0, 0, 0.4);
}
.carousel__arrow img {
  width: 40px;
  height: 40px;
}
.carousel__arrow--prev { left: 20px; }
.carousel__arrow--next { right: 20px; }

.carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  background-color: rgba(0, 0, 0, 0.2);
  overflow: hidden;
  pointer-events: auto;
}
.carousel__dot {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 5px;
}
.carousel__dot:first-child { padding-left: 10px; }
.carousel__dot:last-child { padding-right: 10px; }
.carousel__dot span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}
.carousel__dot[aria-current="true"] span {
  opacity: 1;
}
.carousel__dot:focus-visible {
  outline-offset: -4px;
}

/* ---------- Long copy card ---------- */
.wz-copy {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 2285px;
  padding: 52.5px 60px;
  flex: none;
}
.wz-paper {
  position: relative;
  flex: 1 0 0;
  max-width: 1000px;
  min-height: 2180px;
  padding: 45px 45px 39.9px;
  border-radius: 32px;
  background-color: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.wz-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 7px solid var(--blue);
  border-radius: inherit;
  pointer-events: none;
}

.wz-rich > * + * {
  margin-top: 40px;
}
.wz-rich h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: -1.2px;
}
.wz-rich h3 {
  font-size: 26px;
  font-weight: 700;
  line-height: 36.4px;
  letter-spacing: -1.04px;
}
.wz-rich p {
  font-size: 22px;
  font-weight: 700;
  line-height: 30.8px;
  letter-spacing: -0.88px;
}
.wz-rich strong {
  font-weight: 900;
}
.wz-rich em {
  font-style: italic;
}
/* same Inter character variants as the original text presets */
.wz-rich,
.wz-h3,
.wz-btn,
.wz-banner__label {
  font-feature-settings: "blwf" on, "cv09" on, "cv03" on, "cv04" on, "cv11" on;
}
.wz-quote figcaption,
.wz-quote blockquote {
  margin: 0;
}

/* ---------- What's included ---------- */
.wz-included {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  min-height: 812px;
  flex: none;
}
.wz-included__head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 176px;
}
.wz-included__head .wz-h1 {
  letter-spacing: -0.8px;
  text-decoration: underline;
}
.wz-included__head .wz-h3,
.wz-included__cta .wz-h3 {
  max-width: 100%;
}

.wz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(50px, 1fr));
  grid-auto-rows: 189px;
  gap: 15px;
  width: 100%;
  max-width: 1000px;
}
.wz-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  border-radius: 11px;
  overflow: hidden;
}
.wz-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--red);
  border-radius: inherit;
  pointer-events: none;
}
.wz-feature svg {
  width: 47px;
  height: 48px;
  fill: var(--red);
  flex: none;
}
.wz-feature h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 26.4px;
  color: var(--paper);
  white-space: pre;
}
.wz-feature p {
  font-size: 13px;
  font-weight: 400;
  line-height: 16.9px;
  letter-spacing: -0.2px;
  color: var(--paper);
}

.wz-included__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1000px;
  min-height: 115px;
}

/* ---------- Red outlined card ---------- */
.wz-offer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 724px;
  flex: none;
}
.wz-offer__card {
  position: relative;
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 35px;
  max-width: 1000px;
  padding: 35px 35px 45px;
  border-radius: 26px;
  overflow: hidden;
}
.wz-offer__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 8px solid var(--red);
  border-radius: inherit;
  pointer-events: none;
}
.wz-offer__card .wz-rich {
  width: 100%;
  color: #fff;
}

/* ---------- Testimonials ---------- */
.wz-testimonials {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
  width: 100%;
  padding: 67px 40px;
  flex: none;
}
.wz-testimonials__cols {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  width: 1000px;
  max-width: 100%;
}
.wz-testimonials__col {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.wz-quote {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 30px;
  border-radius: 20px;
  background-color: var(--paper);
  box-shadow:
    rgba(0, 0, 0, 0.05) 0 0.796192px 2.38858px -0.625px,
    rgba(0, 0, 0, 0.05) 0 2.41451px 7.24352px -1.25px,
    rgba(0, 0, 0, 0.05) 0 6.38265px 19.148px -1.875px,
    rgba(0, 0, 0, 0.05) 0 20px 60px -2.5px;
}
.wz-quote--loose {
  gap: 30px;
}
.wz-quote__name {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.8px;
  color: var(--red);
}
.wz-quote__role {
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: -0.7px;
  color: var(--red);
  white-space: pre;
}
.wz-quote__text {
  font-size: 16px;
  font-weight: 500;
  line-height: 25.6px;
  color: rgb(42, 46, 53);
}

/* ---------- FAQ ---------- */
.wz-faq {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
  width: 100%;
  padding: 66px 40px;
  flex: none;
}
.wz-faq__title {
  font-size: 50px;
  font-weight: 800;
  line-height: 60px;
  letter-spacing: -0.6px;
  text-align: center;
  color: #fff;
}

.accordion {
  width: 1000px;
  max-width: 100%;
  padding: 0 20px;
  border-radius: 20px;
  overflow: hidden;
}
.accordion--light {
  background-color: var(--paper);
}
.accordion__item + .accordion__item {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.accordion__q {
  margin: 0;
}
.accordion__trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 20px 0 20px 40px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: rgb(51, 51, 51);
  cursor: pointer;
}
.accordion__trigger:focus-visible {
  outline-offset: -2px;
}
.accordion__plus {
  position: absolute;
  left: 0;
  top: 25px;
  width: 16px;
  height: 16px;
  opacity: 0.3;
  transition: transform 0.3s cubic-bezier(0.3, 0.9, 0.3, 1);
}
.accordion__plus::before,
.accordion__plus::after {
  content: "";
  position: absolute;
  background: #000;
  border-radius: 10px;
}
.accordion__plus::before {
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
}
.accordion__plus::after {
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
}
.accordion__trigger[aria-expanded="true"] .accordion__plus {
  transform: rotate(45deg);
}
.accordion__panel {
  overflow: hidden;
}
.accordion__a {
  padding: 0 20px 20px 40px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: rgb(102, 102, 102);
  white-space: pre-wrap;
}
/* JS enhances the panels into animated collapsibles; without JS they stay open */
.js .accordion__panel {
  height: 0;
  visibility: hidden;
  transition: height 0.35s cubic-bezier(0.3, 0.9, 0.3, 1), visibility 0s linear 0.35s;
}
.js .accordion__panel.is-open {
  visibility: visible;
  transition: height 0.35s cubic-bezier(0.3, 0.9, 0.3, 1), visibility 0s;
}

/* ---------- Final CTA ---------- */
.wz-final {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 35px;
  width: 100%;
  min-height: 312px;
  flex: none;
}
.wz-final__title {
  max-width: 95%;
  padding-top: 19.2px;
  font-size: 42px;
  font-weight: 800;
  line-height: 50.4px;
  letter-spacing: -0.6px;
  text-align: center;
  color: var(--paper);
}

/* ---------- Tablet ---------- */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .wz { min-height: 7294px; }
  .wz-hero { height: 416px; }
  .wz-hero.has-banner { height: 486px; }
  .wz-hero__content { width: 640px; }
  .wz-hero__title { font-size: 62px; line-height: 74.4px; }
  .wz-hero__sub { max-width: 94%; }

  .wz-showcase { height: 588px; }
  .carousel { width: 752px; aspect-ratio: 1.30104 / 1; }

  .wz-copy { min-height: 2444px; padding: 63px 20px; }
  .wz-paper { min-height: 2318px; padding: 35px; }

  .wz-h1 { font-size: 32px; line-height: 44.8px; }
  .wz-included { gap: 15px; min-height: 948px; }
  .wz-included__head { min-height: 123px; }
  .wz-grid {
    grid-template-columns: repeat(2, minmax(50px, 1fr));
    grid-auto-rows: 200px;
    padding: 20px;
  }
  .wz-offer { padding: 0 10px; }
  .wz-testimonials { padding: 66px 40px; }
  .wz-faq { padding: 80px 40px; }
}

/* ---------- Phone ---------- */
@media (max-width: 809.98px) {
  .wz { gap: 10px; min-height: 8497px; }
  .wz-hero { height: 336px; }
  .wz-hero.has-banner { height: 406px; }
  .wz-hero__content { width: 336px; height: 352px; }
  .wz-hero__title { font-size: 40px; line-height: 40px; letter-spacing: -2.2px; }
  .wz-hero__sub { font-size: 14px; line-height: 16.8px; }

  .wz-showcase { height: 283px; }
  .carousel { width: 355px; max-width: calc(100% - 20px); height: 256px; aspect-ratio: auto; --pad: 0px; }

  .wz-copy { min-height: 2384px; padding: 52.5px 5px; }
  .wz-paper { min-height: 2279px; padding: 12px; border-radius: 13px; }
  .wz-rich h2 { font-size: 26px; line-height: 36.4px; letter-spacing: -1.04px; }
  .wz-paper .wz-rich p { font-size: 16px; font-weight: 600; line-height: 22.4px; letter-spacing: -0.32px; }
  .wz-paper .wz-rich p strong { font-weight: 700; }

  .wz-h1 { font-size: 28px; line-height: 39.2px; }
  .wz-h3 { font-size: 16px; font-weight: 600; line-height: 22.4px; letter-spacing: -0.32px; text-align: center; }
  .wz-included { min-height: 1593px; padding: 0 8px; }
  .wz-included__head { min-height: 114px; }
  .wz-included__head .wz-h1 { letter-spacing: -0.6px; }
  .wz-grid { grid-template-columns: minmax(50px, 1fr); grid-auto-rows: 200px; }
  .wz-included__cta { min-height: 103px; }

  .wz-offer { min-height: 876px; padding: 10px; }
  .wz-offer__card { padding: 19px 20px 45px; }
  .wz-offer__card::after { border-width: 6px; }
  .wz-offer__card .wz-rich p { font-size: 18px; line-height: 25.2px; letter-spacing: -0.72px; }
  .wz-offer__card .wz-rich h3 { font-size: 22px; line-height: 30.8px; letter-spacing: -0.88px; }

  .wz-testimonials { gap: 40px; padding: 51px 15px; }
  .wz-testimonials__cols { flex-direction: column; }
  .wz-testimonials__col { flex: none; width: 100%; }
  .wz-quote, .wz-quote--loose { gap: 10px; padding: 18px; }

  .wz-faq { gap: 31px; padding: 39px 15px; }
  .wz-faq__title { font-size: 28px; line-height: 33.6px; }

  .wz-final__title { padding-top: 0; font-size: 28px; line-height: 33.6px; color: #fff; }
}
