@import url("style.css");

/* style.css is built for the fixed, single-screen breathing app. The
   landing page is a normal scrolling page, so undo the parts that assume
   a locked viewport. */
html,
body {
  height: auto;
}

body {
  min-height: 100vh;
  overflow: auto;
  touch-action: auto;
  user-select: auto;
  -webkit-user-select: auto;
}

.landing {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(2rem + env(safe-area-inset-top)) 1.5rem calc(2.5rem + env(safe-area-inset-bottom));
  text-align: center;
}

/* Grows to fill the space above the CTA and centers the text block within
   it, which keeps the headline/copy vertically centred while the call to
   action sits near the bottom edge of the screen. */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.75rem;
}

.hero-title {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0;
  max-width: 18ch;
}

.hero-subtitle {
  max-width: 34rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin: 0;
}

/* Two stacked lines (prefix above, rotating phrase below) so the varying
   length of the rotating phrase never shifts surrounding layout. */
.rotating-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
  margin: 0;
}

.rotating-cue-prefix {
  color: var(--muted);
}

.rotating-cue-text {
  display: block;
  min-height: 1.5em;
  color: var(--fg);
  font-weight: 600;
  transition: opacity 0.4s ease;
}

.rotating-cue-text.is-fading {
  opacity: 0;
}

.hero-cta {
  flex: none;
  margin-top: 2rem;
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  text-decoration: none;
}

/* Content sections */

.content-section {
  width: 100%;
  max-width: 38rem;
  box-sizing: border-box;
  padding: 3.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-title {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin: 0;
}

.content-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin: 0;
}

.content-section a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: rgba(245, 247, 240, 0.35);
}

.steps-list,
.benefit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.steps-list {
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  /* Sized to keep each step on one line down to ~360px-wide phones. */
  font-size: clamp(0.8rem, 3.5vw, 1rem);
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--muted);
}

.steps-list li::before {
  content: counter(step);
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.step-sep {
  margin: 0 0.1em;
  color: var(--muted);
}

.benefit-list li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.benefit-list li::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--fg);
}

.steps-list strong,
.benefit-list strong {
  color: var(--fg);
  font-weight: 600;
}

/* Final CTA */

.final-cta {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding: 2rem 1.5rem calc(4rem + env(safe-area-inset-bottom));
}

.final-cta .cta-btn {
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  text-decoration: none;
}
