/* HumDocs homepage (September 2026 redesign).
 *
 * The page borrows the extension popup's look instead of a marketing theme:
 * flat #0a0a0a, hairline #282828 borders, mono labels, and the product itself
 * as the imagery. The "rx-" blocks are the extension's popup, timer, break
 * card and summary rebuilt in HTML from their own CSS (popup.html,
 * overlay.js, content.js), so they stay sharp at any size and on any screen,
 * where the old screenshots were blurry and carried a browser frame.
 *
 * Loaded by index.html after styles.css and before ui.css.
 */

body.home {
  background: #0a0a0a;
}

/* ── Type ─────────────────────────────────────────────────────────────── */
.hx-display {
  font-family: var(--ui-sans);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--text);
  margin: 18px 0 20px;
  text-wrap: balance;
}
.hx-title {
  font-family: var(--ui-sans);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 12px 0 0;
  text-wrap: balance;
}
.hx-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: var(--text2);
  max-width: 34rem;
  margin: 0 0 30px;
}
.hx-sub {
  color: var(--text2);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 40rem;
  margin: 14px 0 0;
}
.hx-sub a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--b2);
  text-underline-offset: 3px;
}
.hx-sub a:hover {
  text-decoration-color: var(--text2);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
/* The whole first screen is the headline, centred, typed in by home.js. */
.hx-hero {
  display: grid;
  align-items: center;
  min-height: calc(100svh - 68px);
  padding: 48px 0 72px;
}
.hx-hero-head {
  text-align: center;
}
.hx-hero .hx-display {
  margin: 0 auto 22px;
  font-family: var(--ui-mono);
  font-weight: 500;
  font-size: clamp(1.85rem, 5.4vw, 3.9rem);
  line-height: 1.14;
  letter-spacing: -0.055em;
  text-wrap: nowrap;
}
.hx-hero .hx-lede {
  margin: 0 auto 30px;
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
}
.hx-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.hx-hero .hx-cta,
.hx-cta--center {
  justify-content: center;
}
/* The second action is a plain link, not a second box. */
.hx-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  font: 500 14.5px/1 var(--ui-sans);
  letter-spacing: -0.01em;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.15s ease;
}
.hx-link span {
  transition: transform 0.25s var(--ui-ease);
}
.hx-link:hover {
  color: var(--text);
}
.hx-link:hover span {
  transform: translateX(3px);
}

/* Typed headings (hero and closing). home.js wraps each letter in .ch and
   reveals them one by one; the sentence is laid out in full from the start,
   so nothing moves while it types. The caret stays and blinks at the end. */
html.js-type .hx-typed:not(.is-ready) {
  visibility: hidden;
  animation: hxShowAnyway 0s 3s forwards;
}
@keyframes hxShowAnyway {
  to { visibility: visible; }
}
.hx-typed .ch {
  opacity: 0;
}
.hx-typed .ch.on {
  opacity: 1;
}
.hx-typed .cr {
  position: relative;
  display: inline-block;
  width: 0;
}
.hx-typed .cr::after {
  content: "";
  position: absolute;
  left: 0.06em;
  top: -0.86em;
  width: 0.08em;
  height: 1.02em;
  background: var(--ok);
  animation: hsBlink 1.06s steps(1) infinite;
}
.hx-typed.is-typing .cr::after {
  animation: none;
}
@keyframes hsBlink {
  50% { opacity: 0; }
}

/* The line and buttons under the headline fade in once it is typed. */
html.js-type .hx-after {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s var(--ui-ease), transform 0.9s var(--ui-ease);
  transition-delay: calc(var(--i, 0) * 160ms);
  animation: hxShowAfter 0s 5s forwards;
}
html.js-type .hx-after.is-shown {
  opacity: 1;
  transform: none;
  animation: none;
}
@keyframes hxShowAfter {
  to { opacity: 1; transform: none; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
main > section[id] {
  scroll-margin-top: 64px;
}
.hx-section {
  padding: clamp(72px, 9vw, 112px) 0;
  border-top: 1px solid #161616;
}
.hx-head {
  max-width: 44rem;
  margin: 0 0 clamp(40px, 6vw, 64px);
}
.hx-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.hx-head--center .hx-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ── Demo ─────────────────────────────────────────────────────────────── */
.hx-section--demo .hero-immersive {
  margin: 0;
  padding: 0;
}
.hx-section--demo .immersive-bg,
.hx-section--demo .immersive-edge,
.hx-section--demo .immersive-kicker,
.hx-section--demo .immersive-preview-hint,
.hx-section--demo .immersive-preview-tip {
  display: none;
}
.hx-section--demo .scene-viewport {
  border-radius: 14px;
  border: 1px solid var(--b1);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.hx-section--demo .preview-curtain {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.05) 0%, rgba(10, 10, 10, 0.55) 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* The play button: black, like the extension's own controls. */
:root .hx-section--demo .preview-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 22px 0 16px;
  border-radius: 14px;
  background: #0a0a0a;
  color: var(--text);
  border: 1px solid var(--b2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: var(--ui-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}
:root .hx-section--demo .preview-play-btn:hover {
  background: #111;
  border-color: #4a4a4a;
}
:root .hx-section--demo .preview-play-btn:active {
  transform: scale(0.98);
}
:root .hx-section--demo .preview-play-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--s2);
  border: 1px solid var(--b2);
  font-size: 10px;
  color: var(--ok);
  padding-left: 2px;
}

/* ── Features: three big rows ───────────────────────────────────────── */
.hx-rows {
  display: grid;
  gap: clamp(72px, 10vw, 128px);
  margin-top: clamp(24px, 4vw, 48px);
}
.hx-row {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .hx-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
  }
  .hx-row--flip .hx-row-copy {
    order: 2;
  }
}
.hx-row-n {
  margin: 0 0 14px;
  font: 500 13px/1 var(--ui-mono);
  letter-spacing: 0.06em;
  color: var(--ok);
}
.hx-row-copy h3 {
  margin: 0 0 12px;
  font: 600 clamp(1.7rem, 3vw, 2.4rem)/1.1 var(--ui-sans);
  letter-spacing: -0.035em;
  color: var(--text);
}
.hx-row-copy p:not(.hx-row-n) {
  margin: 0;
  max-width: 24rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--text2);
}
/* The picture sits on a soft pool of light, no box around it. */
.hx-row-vis {
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 24px 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.045), transparent 100%);
}
.hx-row-vis .rx-scale {
  zoom: 1.4;
}
@media (max-width: 899px) {
  .hx-row-copy {
    text-align: center;
  }
  .hx-row-copy p:not(.hx-row-n) {
    margin: 0 auto;
  }
  .hx-row-vis {
    min-height: 0;
  }
  .hx-row-vis .rx-scale {
    zoom: 1.15;
  }
}
@media (max-width: 420px) {
  .hx-row-vis .rx-scale {
    zoom: 1;
  }
}
.hx-privacy-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: clamp(72px, 9vw, 112px) 0 0;
  font-size: 14.5px;
  color: var(--text3);
}
.hx-privacy-line a {
  color: var(--text2);
  text-decoration: underline;
  text-decoration-color: var(--b2);
  text-underline-offset: 3px;
}

.hx-pro,
:root .h-pro {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--ok-bd);
  background: var(--ok-bg);
  color: var(--ok);
  font-family: var(--ui-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.2em;
  line-height: 1.4;
}
/* ── Pricing (card design kept; buttons and type updated) ─────────────── */
.h-plans {
  display: grid;
  gap: 16px;
  max-width: 58rem;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .h-plans {
    grid-template-columns: 1fr 1fr;
  }
}
.h-plan {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border: 1px solid var(--b1);
  border-radius: 20px;
  background: #0f0f0f;
}
.h-plan--pro {
  border-color: rgba(62, 207, 142, 0.42);
  background: linear-gradient(180deg, rgba(62, 207, 142, 0.07), rgba(62, 207, 142, 0.01) 62%), #0f0f0f;
}
.h-plan-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ui-sans);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 0;
}
.h-badge {
  font-family: var(--ui-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ok);
  border: 1px solid var(--ok-bd);
  background: var(--ok-bg);
  border-radius: 999px;
  padding: 3px 9px;
}
.h-price {
  font-family: var(--ui-sans);
  font-weight: 600;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 18px 0 8px;
  font-variant-numeric: tabular-nums;
}
/* The launch price: the full price struck through beside it. */
.h-price .h-price-was {
  margin-right: 10px;
  font-size: 0.55em;
  font-weight: 500;
  color: var(--text3);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(142, 142, 142, 0.7);
  vertical-align: 0.35em;
}
.h-price small {
  font-family: var(--ui-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text3);
  margin-left: 8px;
}
.h-plan-sub {
  color: var(--text3);
  font-size: 0.93rem;
  margin: 0 0 22px;
}
.h-ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.h-ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.5;
}
.h-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ok-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2l2.2 2.2 4.7-4.8' fill='none' stroke='%233ecf8e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}
.h-plan .h-ticks {
  flex: 1;
  align-content: start;
  margin-bottom: 28px;
}
:root .h-plan .btn {
  width: 100%;
  height: 46px;
  border-radius: 12px;
}
.h-fine {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--text3);
  text-align: center;
}
.h-fine a,
.h-disclaimer a {
  color: var(--text2);
}
.h-disclaimer {
  text-align: center;
  margin: 36px auto 0;
  max-width: 40rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text3);
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.h-faq {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--b1);
}
:root .h-faq .faq-item {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--b1);
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:root .h-faq .faq-item summary {
  padding: 20px 4px;
  font-family: var(--ui-sans);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
:root .h-faq .faq-answer {
  padding: 0 4px 20px;
}
:root .h-faq .faq-answer p {
  color: var(--text2);
  font-size: 0.97rem;
  line-height: 1.65;
}
.faq-answer a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--b2);
  text-underline-offset: 3px;
}
.faq-answer a:hover {
  text-decoration-color: var(--text2);
}

/* ── Closing call to action ───────────────────────────────────────────── */
/* The heading is set in the mono the extension uses for its timer and
   durations, and types itself in, like the product does. */
.hx-final {
  padding: clamp(16px, 3vw, 32px) 0 clamp(80px, 10vw, 128px);
}
.hx-final-inner {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: clamp(64px, 9vw, 112px) clamp(20px, 4vw, 48px);
  border: 1px solid #1c1c1c;
  border-radius: 24px;
  background: #0c0c0c;
  /* clip, not hidden: hidden makes this box its own scroll area, and the
     fade-ins inside it then never finished (they read the box's scrolling,
     which never moves, instead of the page's). */
  overflow: clip;
}
.hx-final-inner::before {
  /* The same green hairline the timer and summary cards carry. */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(62, 207, 142, 0.35) 35%, rgba(110, 231, 180, 0.25) 50%, rgba(62, 207, 142, 0.35) 65%, transparent);
}
/* Faint ruled lines, like a page, fading out at the edges. */
.hx-final-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(180deg, transparent 0 39px, rgba(255, 255, 255, 0.04) 39px 40px);
  -webkit-mask-image: radial-gradient(ellipse 55% 65% at 50% 50%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 65% at 50% 50%, #000 15%, transparent 75%);
}
.hx-final-title {
  margin: 0 auto;
  font-family: var(--ui-mono);
  font-weight: 500;
  font-size: clamp(1.6rem, 4.2vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.05em;
  color: var(--text);
}
.hx-final-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  margin: 22px 0 34px;
  font: 500 12.5px/1.4 var(--ui-mono);
  letter-spacing: 0.02em;
  color: var(--text3);
}
.hx-final-sub i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #3a3a3a;
}

/* Pro pill in the demo's Schedule break button. */
.scene-inner .ov-pro-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 20px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #4ade80;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}

/* ══ Replicas of the extension UI ═════════════════════════════════════════
   Sizes are the extension's own pixel values; .rx-scale zooms them. */
.rx-scale {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #f2f2f2;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
}
.rx-scale *,
.rx-scale *::before,
.rx-scale *::after {
  box-sizing: border-box;
}
.rx-mono,
.rx-scale b,
.rx-lbl,
.rx-cc,
.rx-pill,
.rx-badge,
.rx-time,
.rx-time-sub,
.rx-stats,
.rx-stop,
.rx-min-note,
.rx-est small {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Popup */
.rx-popup {
  width: 340px;
  background: #0a0a0a;
  border: 1px solid #282828;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.rx-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 11px;
  border-bottom: 1px solid #282828;
}
.rx-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}
.rx-logo img {
  width: 24px;
  height: 24px;
  display: block;
}
.rx-logo-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.rx-logo-tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9.5px;
  color: #8e8e8e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.rx-hdr-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rx-gear {
  color: #8e8e8e;
}
.rx-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #282828;
  background: #111;
  font-size: 10px;
  color: #8e8e8e;
}
.rx-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.rx-pill--ready {
  color: #3ecf8e;
  border-color: rgba(62, 207, 142, 0.28);
  background: rgba(62, 207, 142, 0.1);
}
.rx-body {
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
}
.rx-lbl {
  font-size: 9.5px;
  font-weight: 500;
  color: #8e8e8e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 8px 0 5px;
}
.rx-ta {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  line-height: 1.65;
  color: #f2f2f2;
  background: #111;
  border: 1px solid #282828;
  border-radius: 8px;
  padding: 9px 10px;
  height: 66px;
  overflow: hidden;
}
.rx-ta-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.rx-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid;
}
.rx-chip b {
  font-size: 7.5px;
  padding: 0 4px;
  border-radius: 20px;
  border: 1px solid rgba(62, 207, 142, 0.28);
}
.rx-chip--ok {
  color: #3ecf8e;
  border-color: rgba(62, 207, 142, 0.28);
  background: rgba(62, 207, 142, 0.07);
}
.rx-chip--err {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.22);
  background: rgba(248, 113, 113, 0.06);
}
.rx-cc {
  margin-left: auto;
  font-size: 9.5px;
  color: #8e8e8e;
}
.rx-dur {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #282828;
  border-radius: 8px;
  background: #111;
  overflow: hidden;
}
.rx-dur > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 6px;
}
.rx-dur > div + div {
  border-left: 1px solid #282828;
}
.rx-dur b {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
}
.rx-dur span {
  font-size: 8.5px;
  color: #8e8e8e;
  margin-top: 2px;
}
.rx-min-note {
  display: flex;
  justify-content: center;
  margin: 5px 0 6px;
}
.rx-min-note span {
  font-size: 8.5px;
  color: #8e8e8e;
  border: 1px solid #282828;
  background: #111;
  border-radius: 999px;
  padding: 2px 8px;
}
.rx-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.rx-sc {
  text-align: center;
  font-size: 10.5px;
  font-weight: 500;
  color: #b8b8b8;
  border: 1px solid #282828;
  background: #111;
  border-radius: 8px;
  padding: 6px 0;
}
.rx-sc--on {
  color: #3ecf8e;
  border-color: rgba(62, 207, 142, 0.35);
  background: rgba(62, 207, 142, 0.08);
}
.rx-est {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  padding: 8px 10px;
  border: 1px solid #282828;
  border-radius: 8px;
  background: #0d0d0d;
}
.rx-est-ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(62, 207, 142, 0.28);
  background: rgba(62, 207, 142, 0.08);
  color: #3ecf8e;
}
.rx-est-ico svg {
  width: 13px;
  height: 13px;
}
.rx-est b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}
.rx-est small {
  display: block;
  font-size: 9px;
  color: #8e8e8e;
  margin-top: 1px;
}
.rx-start {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #fff;
  padding: 10px 11px;
  border-radius: 8px;
  background: linear-gradient(165deg, #26a366 0%, #156b42 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* A popup section on its own (duration, more controls). */
.rx-panel {
  width: 300px;
  padding: 6px 14px 14px;
  background: #0a0a0a;
  border: 1px solid #282828;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.rx-adv-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: #f2f2f2;
}
.rx-adv-h span {
  font-size: 7px;
  color: #8e8e8e;
}
.rx-select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #f2f2f2;
  border: 1px solid #282828;
  background: #111;
  border-radius: 8px;
  padding: 7px 10px;
}
.rx-select span {
  color: #8e8e8e;
  font-size: 10px;
}
.rx-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #282828;
  background: #111;
  border-radius: 8px;
  padding: 9px 10px;
}
.rx-rail {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: #282828;
}
.rx-rail i {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6ee7b4, #1a7a4a);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.18);
}
.rx-slider span {
  flex: 0 0 46px;
  text-align: right;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: #b8b8b8;
}

/* In-Doc timer (overlay.js #w) */
.rx-timer {
  width: 220px;
  background: #0a0a0a;
  border: 1px solid #282828;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.88), 0 4px 20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.rx-topline {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(62, 207, 142, 0.35) 35%, rgba(110, 231, 180, 0.25) 50%, rgba(62, 207, 142, 0.35) 65%, transparent);
}
.rx-tbody {
  padding: 12px 14px;
}
.rx-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.rx-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.22px;
}
.rx-brand img {
  width: 18px;
  height: 18px;
  display: block;
}
.rx-brand--lg {
  font-size: 12px;
}
.rx-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: #f87171;
}
.rx-badge i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f87171;
  animation: rxPulse 1.4s ease-in-out infinite;
}
@keyframes rxPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.12; }
}
.rx-time {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1.8px;
  line-height: 1;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}
.rx-time-sub {
  font-size: 9px;
  color: #8e8e8e;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  margin-bottom: 10px;
}
.rx-track {
  height: 3px;
  background: #1f1f1f;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}
.rx-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #1a7a4a, #3ecf8e, #6ee7b4);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.rx-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.rx-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.rx-stats b {
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.rx-stats span {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 8px;
  color: #8e8e8e;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}
.rx-stats > i {
  width: 1px;
  height: 18px;
  background: #282828;
}
.rx-btn-row {
  display: flex;
  gap: 7px;
}
.rx-pause {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #b8b8b8;
}
.rx-stop {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #f87171;
  font-size: 10px;
  font-weight: 500;
}
.rx-sched {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #1f1f1f;
}
.rx-sched span {
  display: block;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: #111;
  color: #bae6fd;
  font-size: 11px;
  font-weight: 600;
}

/* Scheduled break card (overlay.js away card) */
.rx-break {
  width: 300px;
  background: #0a0a0a;
  border: 1px solid #1e3a4f;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  text-align: center;
}
.rx-break-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(14, 116, 144, 0.5) 32%, rgba(56, 189, 248, 0.42) 50%, rgba(125, 211, 252, 0.35) 68%, transparent);
}
.rx-break-body {
  padding: 22px 20px 26px;
}
.rx-break-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}
.rx-break-kicker img {
  width: 20px;
  height: 20px;
}
.rx-break-time {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -2px;
  color: #e0f2fe;
  margin: 18px 0 8px;
  text-shadow: 0 0 32px rgba(56, 189, 248, 0.22);
}
.rx-break-sub {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.55px;
}
.rx-break-minis {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.rx-break-minis span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #2f3f55;
  background: #111;
  color: #94a3b8;
}
.rx-break-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.rx-break-pause {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: #111;
  color: #bae6fd;
}
.rx-break-end {
  flex: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: #111;
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 600;
}

/* End-of-run summary (content.js) */
.rx-summary {
  width: 328px;
  background: #0a0a0a;
  border: 1px solid #282828;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.88), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.rx-sbody {
  padding: 14px 16px;
}
.rx-done {
  font-size: 9px;
  font-weight: 600;
  color: #3ecf8e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rx-ssub {
  font-size: 10px;
  color: #8e8e8e;
  line-height: 1.45;
  margin: 0 0 14px;
}
.rx-hero-box {
  text-align: center;
  padding: 12px 8px 14px;
  margin-bottom: 16px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
}
.rx-hero-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #8e8e8e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.rx-hero-val {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.05;
}
.rx-sides {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.rx-sides > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
}
.rx-sides b {
  font-size: 15px;
  font-weight: 600;
  color: #ececec;
  letter-spacing: -0.35px;
}
.rx-sides span {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 600;
  color: #a3a3a3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}
.rx-dismiss {
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(165deg, #26a366 0%, #156b42 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .rx-badge i { animation: none; }
  .rx-bar { transition: none; }
}
.nowrap { white-space: nowrap; }

/* ── Demo: dimmed until it plays ──────────────────────────────────────── */
.hx-demo-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
/* The demo's old full-bleed layout, undone so it sits in the column. It also
   drops content-visibility: while off screen the demo reported a stand-in
   height of 1200px, so everything below it moved as it came into view, and
   links to Pricing and FAQ landed short of their sections. */
:root .hx-demo-wrap .hero-immersive {
  width: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  content-visibility: visible;
  contain-intrinsic-size: none;
}
:root .hx-demo-wrap .immersive-frame {
  width: auto;
  animation: none;
}
:root .hx-demo-wrap .preview-stage {
  width: auto;
  max-width: none;
}
.hx-section--demo .scene-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  background: #0a0a0a;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.9s var(--ui-ease);
}
.hx-section--demo .is-playing .scene-viewport::after {
  opacity: 0.1;
}

/* ── In-page links ────────────────────────────────────────────────────── */
/* styles.css let #features and #pricing skip rendering while off screen and
   stand in with a guessed 760px height. The real heights differ, so every
   section below moved while a link was scrolling to it, and it landed short.
   Render them normally; the page is light enough. The id selectors also
   carried their own padding, which beat .hx-section. */
:root #features,
:root #preview,
:root #pricing,
:root #faq,
:root #preview-section {
  content-visibility: visible;
  contain-intrinsic-size: none;
  scroll-margin-top: 64px;
}
:root #features.hx-section,
:root #pricing.hx-section,
:root #faq.hx-section {
  padding: clamp(72px, 9vw, 112px) 0;
}

/* ── Feature pictures ─────────────────────────────────────────────────── */
/* A soft pool of light behind each one, and a slow drift, so the section
   feels alive without anything blinking at you. */
.hx-row-vis {
  position: relative;
  isolation: isolate;
}
/* The pool of light is wider than its picture on purpose. Clipping it at the
   page edge (clip, not hidden, so the scroll-linked fades still read the
   page's own scrolling) keeps a phone from scrolling sideways. */
:root main {
  overflow-x: clip;
}
.hx-row-vis::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 118%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(62, 207, 142, 0.07), rgba(255, 255, 255, 0.03) 45%, transparent 72%);
  opacity: 0.9;
}
@media (prefers-reduced-motion: no-preference) {
  .hx-row-vis::before {
    animation: hxDrift 14s ease-in-out infinite alternate;
  }
}
@keyframes hxDrift {
  from { transform: translate(-52%, -50%) scale(0.96); }
  to { transform: translate(-48%, -50%) scale(1.04); }
}

/* The finish-time buttons (01). */
.rx-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.rx-picks .rx-sc {
  width: 100%;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}
.rx-picks .rx-sc:hover {
  color: #f2f2f2;
  border-color: #363636;
}
.rx-picks .rx-sc.is-on {
  color: #3ecf8e;
  border-color: rgba(62, 207, 142, 0.35);
  background: rgba(62, 207, 142, 0.08);
}
.rx-picks .rx-sc:active {
  transform: scale(0.98);
}
.rx-panel .rx-dur b,
.rx-panel .rx-est b {
  transition: color 0.2s ease;
}
.rx-panel.is-changed .rx-dur b,
.rx-panel.is-changed .rx-est b {
  animation: hxTick 0.5s ease;
}
@keyframes hxTick {
  0% { color: #6ee7b4; }
  100% { color: inherit; }
}

/* The typing line (02). */
.fx-paper {
  width: 420px;
  max-width: 100%;
  padding: 18px 20px 22px;
  border-radius: 12px;
  border: 1px solid #1f1f1f;
  background: linear-gradient(180deg, #121212, #0d0d0d);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}
.fx-paper-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
}
.fx-paper-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #242424;
}
.fx-paper-line {
  margin: 0;
  min-height: 6.8em;
  font: 13px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #d4d4d4;
  word-break: break-word;
}
.fx-paper-line .fx-bad {
  color: #f87171;
  text-decoration: underline wavy rgba(248, 113, 113, 0.45);
  text-underline-offset: 3px;
}
.fx-paper-caret {
  display: inline-block;
  width: 1.5px;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--ok);
  animation: hsBlink 1.06s steps(1) infinite;
}

/* The timer card (03) sits in the flow here, not fixed to a corner. */
.hx-row-vis .fx-ov {
  position: static;
  scale: 1.25;
}
@media (max-width: 899px) {
  .hx-row-vis .fx-ov { scale: 1; }
  .fx-paper { width: 320px; }
}
