html, body { overflow-x: clip; }
body { -webkit-font-smoothing: antialiased; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.9;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.num {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex: none;
}

#site-header {
  transition: background-color .3s ease;
}
#site-header .header-row { transition: padding .3s ease; }
#site-header .header-logo { transition: width .3s ease, height .3s ease; }
#site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
#site-header.is-scrolled .header-row { padding-top: 0.6rem; padding-bottom: 0.6rem; }
#site-header.is-scrolled .header-logo { width: 2.75rem; height: 2.75rem; }

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #000;
  box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--color-accent) 80%, transparent);
}
.btn-primary:hover {
  background: #e3ff7a;
  box-shadow: 0 0 26px -2px color-mix(in srgb, var(--color-accent) 60%, transparent);
}
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.badge-dot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.5rem;
  border-radius: 9999px;
  background: var(--color-accent);
  vertical-align: 0.15em;
}

/* Soft, wide accent glow behind an app screenshot. The wrapper is sized to the
   phone; the glow spills well past it and sits under the image. */
.screen-glow {
  position: relative;
  isolation: isolate;
}
.screen-glow::before {
  content: "";
  position: absolute;
  inset: -25% -90%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-accent) 18%, transparent), transparent);
  filter: blur(30px);
}
/* Tighter, denser variant: hugs the phone so it still reads over a photo. */
.screen-glow--sm::before {
  inset: -12% -45%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-accent) 50%, transparent), color-mix(in srgb, var(--color-accent) 15%, transparent) 60%, transparent);
}

.phone {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 19;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(145deg, #3a3a3a, #111 40%, #2a2a2a);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 90px -30px color-mix(in srgb, var(--color-accent) 35%, transparent);
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  background: #050505;
}
.phone-screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: #000;
  z-index: 2;
}

.zone-bar { height: 8px; border-radius: 9999px; }

.bubble-me {
  margin-left: auto;
  border-radius: 20px 20px 6px 20px;
  background: var(--color-accent);
  color: #000;
}
.bubble-coach {
  border-radius: 20px 20px 20px 6px;
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.85);
}

.reel {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  padding-right: 0.08em;
  margin-right: -0.08em;
}
.reel-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.reel-strip > span {
  display: block;
  height: 1em;
  line-height: 1;
}

.rotator { display: grid; }
.rotator > [data-slide] {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.rotator > [data-slide].is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.rotator-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  transition: width .3s ease, background-color .3s ease;
  cursor: pointer;
}
.rotator-dot.is-active { width: 28px; background: var(--color-accent); }

.speech {
  position: relative;
  border-radius: 1.5rem 1.5rem 1.5rem 0;
}
.speech::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 26px;
  height: 17px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.speech-right { border-radius: 1.5rem 1.5rem 0 1.5rem; }
.speech-right::after {
  left: auto;
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.speech-text .q-num {
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.speech.bg-accent .speech-text .q-num { color: #000; }

.outline-num {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-accent);
}

details[open] .plus { transform: rotate(45deg); color: var(--color-accent); }
summary:hover .plus { color: var(--color-accent); }
summary::-webkit-details-marker { display: none; }

details[open] > summary ~ * {
  animation: details-reveal 0.28s ease-out;
}
@keyframes details-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.field {
  width: 100%;
  margin-top: 0.6rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--color-ink-900);
  padding: 0.85rem 1rem;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: border-color .2s ease;
}
.field::placeholder { color: rgba(255, 255, 255, 0.3); }
.field:focus { border-color: var(--color-accent); }

.check {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: var(--color-ink-900) center / 14px no-repeat;
  cursor: pointer;
}
.check:checked {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.check:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.rich-text h2 {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  color: #fff;
  margin-top: 3.5rem;
}
.rich-text h2:first-child { margin-top: 0; }
.rich-text h3 {
  font-weight: 600;
  font-size: 1.0625rem;
  color: #fff;
  margin-top: 1.75rem;
}
.rich-text p,
.rich-text li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-silver);
}
.rich-text p { margin-top: 1rem; }
.rich-text ul { margin-top: 1rem; }
.rich-text li {
  position: relative;
  padding-left: 1.4rem;
  margin-top: 0.6rem;
}
.rich-text li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--color-accent);
}
.rich-text strong { color: #fff; font-weight: 600; }
.rich-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-accent); }

@media (prefers-reduced-motion: reduce) {
  details[open] > summary ~ * { animation: none; }
  .btn-primary, .btn-outline { transition: none; }
  #site-header, #site-header .header-row, #site-header .header-logo { transition: none; }
  .rotator > [data-slide], .rotator-dot { transition: none; }
}
