/*
 * The landing page for visitors sent by adverts (EM_LP). One job: a purchase, or a free trial.
 * Dark, so the light pictures and the gold Buy button stand out. The app's own typefaces and colours,
 * no build step and nothing loaded from elsewhere.
 */
:root {
  color-scheme: dark;
  --bg: #101311;
  --surface: #191d1a;
  --text: #f4f2ea;
  --muted: #cfd3c9;
  --line: #2c322c;
  --accent: #7fc8a0;
  --accent-soft: #1b3327;
  /* The one colour kept for the thing we most want pressed. */
  --buy: #f2a12e;
  --on-buy: #1c211d;
}
@font-face {
  font-family: 'Inter Variable';
  font-display: swap;
  font-weight: 100 900;
  src: url('../welcome/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fraunces Variable';
  font-display: swap;
  font-weight: 100 900;
  src: url('../welcome/fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
}

* {
  box-sizing: border-box;
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--buy);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3,
.brand {
  font-family: 'Fraunces Variable', Georgia, 'Times New Roman', serif;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.06;
  font-weight: 650;
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.15;
  font-weight: 650;
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin-top: 1rem;
}
.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}
main > section {
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
}
main > section + section {
  border-top: 1px solid var(--line);
}

/* Prices: dollars unless the visitor is in India. */
[data-in] {
  display: none;
}
html[data-country='IN'] [data-intl] {
  display: none;
}
html[data-country='IN'] [data-in] {
  display: inline;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 650;
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}

.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 1.5rem !important;
}
.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lead {
  margin-top: 1.2rem;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.actions.centre {
  justify-content: center;
}
.button {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border-radius: 0.8rem;
  border: 1.5px solid transparent;
  font-family: inherit;
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.button.buy {
  background: var(--buy);
  color: var(--on-buy);
  box-shadow: 0 10px 28px rgb(242 161 46 / 0.22);
}
.button.buy:hover {
  filter: brightness(1.07);
}
.button.ghost {
  background: none;
  border-color: rgb(127 200 160 / 0.6);
  color: var(--accent);
}
.small {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--line);
}
.demo {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}
.sound {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.sound.held {
  color: var(--on-buy);
  background: var(--buy);
  border-color: var(--buy);
  font-weight: 650;
}
.sound[aria-pressed='true'] {
  color: var(--accent);
  border-color: rgb(127 200 160 / 0.6);
}
/* The demo video, in the outline of a phone. */
.phone {
  width: min(100%, 19rem);
  margin-inline: auto;
  padding: 0.6rem;
  border-radius: 2.4rem;
  background: #050605;
  border: 1px solid #3a413a;
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.55);
}
.phone video {
  width: 100%;
  border-radius: 1.9rem;
  background: #f6f3ec;
}

.pains {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  list-style: none;
}
.pains li {
  padding: 1.1rem 1.25rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--buy);
}
.bridge {
  margin-top: 1.75rem;
  font-size: 1.2rem;
  color: var(--muted);
}
.bridge strong {
  color: var(--text);
}

.steps {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 1.15rem 1.25rem 1.15rem 4rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #0c1f15;
  font-weight: 700;
}
.steps strong {
  color: var(--text);
}

.cards {
  display: grid;
  gap: 1.5rem;
}
.cards img {
  border-radius: 1.1rem;
}
.cards p {
  margin-top: 0.35rem;
  color: var(--muted);
}
.more {
  margin-top: 1.75rem;
  text-align: center;
}

.compare {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--surface);
}
.compare [role='row'] {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.25fr;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  font-size: 0.98rem;
}
.compare [role='row'] + [role='row'] {
  border-top: 1px solid var(--line);
}
.compare .head {
  font-weight: 650;
  background: #141815;
}
.compare [role='rowheader'] {
  color: var(--muted);
}
.compare [role='cell'] {
  color: var(--muted);
}
.compare .yes {
  color: var(--text);
  font-weight: 600;
}
.compare .head [role='columnheader']:nth-child(2) {
  color: var(--buy);
}

.price,
.trial,
.last {
  text-align: center;
}
/* The thank-you page's Device Sync offer: right under the thank-you, framed in the Buy colour so it is not missed. */
.offer {
  max-width: 40rem;
  margin: 2rem auto 0;
  padding: 1.75rem 1.25rem;
  border: 2px solid var(--buy);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgb(242 161 46 / 0.14), var(--surface) 60%);
  box-shadow: 0 0 0 6px rgb(242 161 46 / 0.08), 0 18px 48px rgb(242 161 46 / 0.12);
}
/* The page's own styles give these a display of their own, so `hidden` has to be said again. */
.offer[hidden],
.offer [hidden],
[data-next][hidden],
.button[hidden] {
  display: none;
}
/* Once Device Sync is paid for, the card turns green. */
.offer.done {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgb(127 200 160 / 0.14), var(--surface) 60%);
  box-shadow: 0 0 0 6px rgb(127 200 160 / 0.08), 0 18px 48px rgb(127 200 160 / 0.12);
}
.offer.done .wait {
  color: var(--accent);
}
.wait {
  font-family: 'Fraunces Variable', Georgia, serif;
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--buy);
}
.offer h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
}
.offer p:not(.wait) {
  margin-top: 0.9rem;
}
.price {
  border: 1px solid var(--line) !important;
  border-radius: 1.5rem;
  background: var(--surface);
  margin-block: clamp(2.75rem, 7vw, 4.5rem);
  padding-inline: 1.25rem;
}
.price + section {
  border-top: 0;
}
.amount {
  font-family: 'Fraunces Variable', Georgia, serif;
  font-size: 3.2rem;
  line-height: 1.1;
  font-weight: 650;
}
.amount s {
  font-size: 1.3rem;
  color: var(--muted);
  font-weight: 400;
}
.price ul {
  display: inline-grid;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
  text-align: start;
}
.price li::before {
  content: '✓';
  margin-inline-end: 0.6rem;
  color: var(--accent);
  font-weight: 700;
}
.sync-note {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
}
.trial p {
  max-width: 38rem;
  margin-inline: auto;
  color: var(--muted);
}

.faq details {
  border-top: 1px solid var(--line);
  padding-block: 1rem;
  max-width: 46rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq p {
  margin-top: 0.6rem;
  color: var(--muted);
}

.foot {
  padding-block: 2rem 6.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

.sticky {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgb(16 19 17 / 0.96);
  border-top: 1px solid var(--line);
}
.sticky[hidden] {
  display: none;
}
.sticky .button {
  padding: 0.65rem 1.2rem;
}

@media (min-width: 46rem) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .pains,
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps li {
    padding: 4rem 1.25rem 1.25rem;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .foot {
    padding-bottom: 2rem;
  }
  /* The Buy button is never far away on a wide screen. */
  .sticky {
    display: none;
  }
}
@media (min-width: 68rem) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* The checkout page. */
.pay {
  max-width: 34rem;
  text-align: start;
}
.pay h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}
.pay label,
.pay summary {
  display: block;
  margin: 1.1rem 0 0.4rem;
}
.pay summary {
  display: list-item;
  cursor: pointer;
  color: var(--accent);
}
.pay input:not([type='checkbox']),
.pay select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 0.6rem;
}
.pay .row {
  display: flex;
  gap: 0.6rem;
}
.pay [role='alert'],
.pay [role='status'] {
  color: var(--buy);
}
.pay .total {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}
.pay button {
  font-family: inherit;
  cursor: pointer;
}
.pay button.ghost {
  background: none;
}
.pay button:disabled {
  opacity: 0.6;
}

/* Black Friday sale strip and price-box tag. Remove with the sale. */
.sale {
  margin: 0;
  padding: 10px 16px;
  text-align: center;
  background: #f2a12e;
  color: #1c211d;
  font-size: 0.95rem;
  line-height: 1.35;
}
.sale-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f2a12e;
  color: #1c211d;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Black Friday price block: the cut, the new price, then the regular price struck out. Remove with the sale. */
.price .off {
  margin-top: 0.75rem;
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sale, #f2a12e);
}
.price .amount {
  margin-top: 0.4rem;
}
.price .was {
  margin-top: 0.6rem;
  color: var(--muted);
}
.price .was s {
  font-weight: 600;
}
.price .bonus {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

/* Link to the Black Friday page. Remove with the sale. */
.sale a { color: inherit; text-decoration: none; }
.sale a:hover { text-decoration: underline; }
.sale-link { margin: 0.8rem 0 0; font-weight: 700; }
.sale-link a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #f2a12e; color: #1c211d; text-decoration: none; line-height: 1.35; }
.sale-link a:hover { background: #f5b04f; }
