/* HumDocs homepage.
 *
 * Near-black, hairline borders, Geist with Geist Mono for labels and times,
 * and the product itself as the only imagery. Every picture of the extension
 * here is the extension: the demo's cards are its overlay.js and the popups
 * are its popup.html (site/ext, copied by scripts/sync-extension.mjs).
 *
 * Loaded by index.html after styles.css and ui.css.
 */

body.home {
  background: #0a0a0a;
}

/* styles.css let some sections skip rendering off screen with a guessed
   height, which moved everything below while a link scrolled to it, and gave
   them their own padding. Render them normally. */
:root #features,
:root #preview,
:root #pricing,
:root #faq,
:root #preview-section {
  content-visibility: visible;
  contain-intrinsic-size: none;
  scroll-margin-top: 64px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
/* The first screen is the headline, centred, typed in by home.js. It stops
   a little short of the fold, so the top of the demo shows below it. */
.hx-hero {
  display: grid;
  align-items: center;
  /* The whole first screen: only the typed headline and its two buttons,
     with the demo starting below the fold (68px is the sticky bar). */
  min-height: calc(100svh - 68px);
  padding: 48px 0 40px;
}
.hx-hero-head {
  text-align: center;
}
.hx-display {
  margin: 0 auto 34px;
  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;
  color: var(--text);
  text-wrap: nowrap;
}
.hx-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
}
/* 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 2s 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 buttons under the headline rise in once it is typed, and
   only then: home.js adds .is-shown a beat after the last letter, and each
   follows the one before by a moment (--i). Their room is kept all along,
   so nothing moves.
   The fallback (shown anyway after 2.5s) is only for a page whose script
   never ran: home.js marks the hero .is-scripted before it starts typing,
   which switches the fallback off, so it can never cut in mid-sentence. */
html.js-type .hx-after {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 150ms);
  animation: hxShowAfter 0.8s ease 2.5s forwards;
}
/* Each button rides in its own wrapper, so the reveal's timing never touches
   the button's own hover. */
.hx-cta > .hx-after {
  display: flex;
}
html.js-type .is-scripted .hx-after {
  animation: none;
}
html.js-type .hx-after.is-shown {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}
@keyframes hxShowAfter {
  to { opacity: 1; transform: none; filter: none; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
/* With the ids, to beat the section padding styles.css gives #features. */
:root .hm-section,
:root #features.hm-section,
:root #pricing.hm-section,
:root #faq.hm-section {
  padding: clamp(96px, 12vw, 152px) 0 0;
}
:root #preview-section.hm-demo {
  padding: clamp(24px, 4vw, 48px) 0 0;
}
.hm-head {
  max-width: 44rem;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
}
.hm-label {
  margin: 0 0 14px;
  font: 500 12px/1 var(--ui-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}
.hm-title {
  margin: 0;
  font-family: var(--ui-sans);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.038em;
  color: var(--text);
  text-wrap: balance;
}
.hm-sub {
  margin: 16px auto 0;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text2);
  text-wrap: balance;
}
.hm-pro {
  display: inline-block;
  vertical-align: 0.32em;
  margin-left: 6px;
  padding: 3px 8px;
  border: 1px solid var(--ok-bd);
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font: 600 10px/1 var(--ui-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Demo ─────────────────────────────────────────────────────────────── */
/* A Chrome window, light theme, around the demo's Doc: the tab strip, the
   address bar and the extension icons are drawn here, at Chrome's own size
   (Chrome's bar does not zoom with the page); everything below them is
   /demo-doc.html. */
.hm-window {
  position: relative;
  border-radius: 12px;
  background: #dee3ea;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 50px 120px -30px rgba(0, 0, 0, 0.85), 0 0 140px -50px rgba(62, 207, 142, 0.14);
}
.cw-top {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #474747;
  user-select: none;
}
.cw-top svg {
  display: block;
  flex: none;
  fill: currentColor;
}
.cw-tabs {
  display: flex;
  align-items: flex-end;
  height: 42px;
  padding: 0 10px 0 16px;
}
.cw-lights {
  align-self: center;
  display: flex;
  gap: 8px;
  margin-right: 14px;
}
.cw-lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.cw-lights i:nth-child(2) {
  background: #febc2e;
}
.cw-lights i:nth-child(3) {
  background: #28c840;
}
.cw-tabsearch {
  align-self: center;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
}
/* The active tab: white, joined to the toolbar, with Chrome's curved feet. */
.cw-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 240px;
  min-width: 0;
  height: 34px;
  padding: 0 8px 0 12px;
  border-radius: 10px 10px 0 0;
  background: #fff;
  color: #1f1f1f;
  font-size: 12px;
}
.cw-tab::before,
.cw-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 10px;
}
.cw-tab::before {
  left: -10px;
  background: radial-gradient(circle at 0 0, transparent 9.5px, #fff 10px);
}
.cw-tab::after {
  right: -10px;
  background: radial-gradient(circle at 100% 0, transparent 9.5px, #fff 10px);
}
.cw-tab-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-newtab {
  align-self: center;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 14px;
}
.cw-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 0 8px;
  background: #fff;
  border-bottom: 1px solid #e3e5e8;
}
.cw-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
}
.cw-off {
  color: #b8b9bb;
}
.cw-omni {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  margin: 0 8px 0 6px;
  padding: 0 12px 0 5px;
  border-radius: 17px;
  background: #eef1f5;
  font-size: 14px;
  letter-spacing: 0.1px;
}
.cw-tune {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
}
.cw-url {
  flex: 1;
  min-width: 0;
  color: #5e5e5e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-url b {
  font-weight: 400;
  color: #1f1f1f;
}
.cw-hd img {
  display: block;
}
.cw-sep {
  flex: none;
  width: 1px;
  height: 20px;
  margin: 0 6px;
  background: #d5d7da;
}
.cw-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0 5px;
  border-radius: 50%;
  background: #7b8a9e;
  color: #fff;
  font: 500 12px/1 system-ui, -apple-system, sans-serif;
}
.hm-stage {
  position: relative;
  height: clamp(560px, 70vh, 660px);
  background: #f9fbfd;
}
/* Zoomed out: the Doc is laid out in a window a quarter bigger and shown at
   80%, so more of the page is in view, as in Docs at a lower zoom. The
   extension's cards shrink with it, as they would on a bigger screen. */
.hm-doc {
  display: block;
  width: 125%;
  height: 125%;
  border: 0;
  transform: scale(0.8);
  transform-origin: 0 0;
}
/* The veil before Play: one layer over the whole window, the Chrome bar
   included, so it is the same shade top to bottom, with Play in the middle
   of it all. */
.hm-curtain {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: rgba(10, 10, 10, 0.38);
  transition: opacity 0.35s var(--ui-ease), visibility 0s linear 0s;
}
.hm-curtain.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ui-ease), visibility 0s linear 0.3s;
}
/* Paper, like the Features panels: warm off-white with the same soft light
   and grain, and a dark label (owner's ask, 5 Oct 2026; it was the site's
   pure white button). Centred in the dimmed window by .hm-curtain. */
.hm-play {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  background:
    radial-gradient(80% 120% at 25% 0%, #f4f2ee, transparent 70%),
    #e8e5df;
  color: #0a0a0a;
  font: 600 15.5px/1 var(--ui-sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.07);
  transition: transform 0.2s var(--ui-ease), filter 0.2s ease, box-shadow 0.2s ease;
}
.hm-play::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hm-play:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.07);
}
.hm-play:active {
  transform: translateY(0) scale(0.98);
}
.hm-play:focus-visible {
  outline: 2px solid var(--ok);
  outline-offset: 3px;
}
.hm-play-ic {
  display: grid;
  place-items: center;
  color: #0a0a0a;
}

/* ── Features ─────────────────────────────────────────────────────────── */
.hm-rows {
  display: grid;
  gap: clamp(56px, 7vw, 96px);
}
.hm-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.hm-row--flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.hm-row--flip .hm-copy {
  order: 2;
}
.hm-copy h3 {
  margin: 0 0 14px;
  font-family: var(--ui-sans);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.032em;
  color: var(--text);
}
.hm-copy p {
  margin: 0;
  max-width: 25rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text2);
}
/* One picture per feature, each in a tile of the same fixed size, so nothing
   around it moves while it plays. In each tile a single dark panel: a piece
   of the real popup (home.js frames it on data-focus), or a line of a Doc. */
.hm-vis {
  --vis-room: 40px; /* least space between the panel and the tile's edge */
  --vis-scale: 1.6; /* the most a piece of the popup is enlarged */
  position: relative;
  display: grid;
  place-items: center;
  height: 400px;
  border: 1px solid #1b1b1b;
  border-radius: 22px;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(255, 255, 255, 0.04), transparent 70%),
    #0e0e0e;
  overflow: hidden;
  contain: layout paint;
}
.hm-panel {
  position: relative;
  border-radius: 16px;
  background: #0a0a0a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 36px 80px -24px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
/* The clipping box: exactly the focused part, scaled (sized by home.js). */
.hm-crop {
  position: relative;
  width: 300px;
  height: 180px;
  overflow: hidden;
  transition: width 0.35s var(--ui-ease), height 0.35s var(--ui-ease);
}
.hm-popup {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 340px;
  height: 540px;
  border: 0;
  background: #0a0a0a;
  color-scheme: dark;
  transform-origin: 0 0;
  opacity: 0;
  transition: opacity 0.5s var(--ui-ease), transform 0.35s var(--ui-ease);
}
.hm-popup.is-ready {
  opacity: 1;
}

/* The typo line: a slice of a Doc page, in the dark. Docs' face and caret,
   and its red underline for a word that is not right yet. One line that
   never wraps (the sentence is short, and the type sizes to the tile). */
.hm-sheet {
  container-type: inline-size;
  width: min(100% - 80px, 540px);
  padding: 34px 40px 38px;
  background: #111;
}
.hm-sheet-rule {
  display: block;
  width: 72%;
  height: 8px;
  margin-bottom: 12px;
  border-radius: 4px;
  background: #1f1f1f;
}
.hm-sheet-rule--short {
  width: 46%;
  margin-bottom: 26px;
}
.hm-sheet-line {
  height: 1.4em;
  margin: 0;
  /* clip, not hidden: sideways only, so the red underline shows below. */
  overflow-x: clip;
  overflow-y: visible;
  font: 400 clamp(15px, 5.4cqi, 26px) / 1.4 Arial, Helvetica, sans-serif;
  color: #ececec;
  white-space: pre;
  transition: opacity 0.45s var(--ui-ease);
}
.hm-sheet-line.is-clearing {
  opacity: 0;
}
.hm-bad {
  color: #f28b82;
  text-decoration: underline wavy #f28b82;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.hm-sheet-caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: #ececec;
  animation: hsBlink 1.06s steps(1) infinite;
}
.hm-sheet.is-typing .hm-sheet-caret {
  animation: none;
}

/* A few more, in a line each. */
.hm-minis {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: clamp(88px, 10vw, 128px) 0 0;
  padding: 0;
}
.hm-minis li {
  padding-top: 20px;
  border-top: 1px solid #222;
}
.hm-minis h4 {
  margin: 0 0 6px;
  font: 500 15px/1.35 var(--ui-sans);
  letter-spacing: -0.01em;
  color: var(--text);
}
.hm-minis p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text3);
}

/* ── Pricing ──────────────────────────────────────────────────────────── */
.hm-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 56rem;
  margin: 0 auto;
}
.hm-plan {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 28px;
  border: 1px solid #222;
  border-radius: 20px;
  background: #0e0e0e;
}
.hm-plan--pro {
  border-color: rgba(62, 207, 142, 0.36);
  background: linear-gradient(180deg, rgba(62, 207, 142, 0.06), rgba(62, 207, 142, 0) 60%), #0e0e0e;
}
.hm-plan-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 600 1.2rem/1.2 var(--ui-sans);
  letter-spacing: -0.02em;
}
.hm-badge {
  padding: 3px 9px;
  border: 1px solid var(--ok-bd);
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font: 600 10px/1.2 var(--ui-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hm-price {
  margin: 20px 0 6px;
  font: 600 3rem/1 var(--ui-sans);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.hm-plan-sub {
  margin: 0 0 24px;
  font-size: 0.93rem;
  color: var(--text3);
}
.hm-ticks {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 11px;
  margin: 0 0 28px;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid #1f1f1f;
}
.hm-ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text2);
}
.hm-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  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;
}
:root .hm-plan .btn {
  width: 100%;
  height: 46px;
  border-radius: 12px;
}
/* Under Get Pro: where a gift code goes. */
.hm-code {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text2);
}
.hm-code a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hm-code a:hover {
  color: var(--ok);
}
.hm-fine {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text3);
}
.hm-fine a,
.hm-disclaimer a {
  color: var(--text2);
}
.hm-disclaimer {
  max-width: 38rem;
  margin: 36px auto 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text3);
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.hm-faq {
  max-width: 46rem;
  margin: 0 auto;
  border-top: 1px solid #222;
}
.hm-faq details {
  border-bottom: 1px solid #222;
}
.hm-faq summary {
  position: relative;
  display: block;
  padding: 22px 44px 22px 2px;
  list-style: none;
  cursor: pointer;
  font: 500 1.02rem/1.45 var(--ui-sans);
  letter-spacing: -0.01em;
  color: var(--text);
}
.hm-faq summary::-webkit-details-marker {
  display: none;
}
.hm-faq summary::before,
.hm-faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--text3);
  transition: transform 0.3s var(--ui-ease), background-color 0.2s ease;
}
.hm-faq summary::after {
  transform: rotate(90deg);
}
.hm-faq details[open] summary::after {
  transform: rotate(0deg);
}
.hm-faq summary:hover::before,
.hm-faq summary:hover::after {
  background: var(--text);
}
.hm-faq summary:focus-visible {
  outline: 2px solid var(--ok);
  outline-offset: 2px;
  border-radius: 4px;
}
.hm-faq details p {
  margin: -6px 0 0;
  padding: 0 44px 24px 2px;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--text2);
}
.hm-faq details[open] p {
  animation: faqIn 0.35s var(--ui-ease);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
}
.hm-faq a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--b2);
  text-underline-offset: 3px;
}
.hm-faq a:hover {
  text-decoration-color: var(--text2);
}
.hm-faq kbd {
  padding: 1px 6px;
  border: 1px solid var(--b2);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--s1);
  font: 500 0.82em/1.4 var(--ui-mono);
  color: var(--text);
}

/* ── Closing call to action ───────────────────────────────────────────── */
/* Set in the mono the extension uses for its timer, and typed in. */
.hx-final {
  padding: clamp(88px, 11vw, 144px) 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. */
  overflow: clip;
}
.hx-final-inner::before {
  /* The same green hairline the timer card carries. */
  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;
}

/* After deleting an account (home.js). */
.hx-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border: 1px solid var(--b2);
  border-radius: 12px;
  background: var(--s1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
  color: var(--text);
  font: 500 14px/1.4 var(--ui-sans);
  transition: opacity 0.5s ease;
}
.hx-toast.is-out {
  opacity: 0;
}

/* ── Smaller screens ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hm-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hm-row--flip .hm-copy {
    order: 0;
  }
  .hm-copy {
    text-align: center;
  }
  .hm-copy p {
    margin: 0 auto;
  }
  .hm-minis {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
}
@media (max-width: 720px) {
  .hm-plans {
    grid-template-columns: 1fr;
  }
  .hm-window {
    border-radius: 12px;
  }
  /* Chrome in a narrow window: the tab narrows, and the toolbar keeps back,
     reload, the address and the extension icons. */
  .cw-tabs {
    height: 36px;
    padding: 0 8px 0 12px;
  }
  .cw-lights {
    gap: 6px;
    margin-right: 12px;
  }
  .cw-lights i {
    width: 10px;
    height: 10px;
  }
  .cw-tabsearch {
    display: none;
  }
  .cw-tab {
    flex-basis: 210px;
    height: 30px;
    font-size: 11.5px;
  }
  .cw-newtab {
    margin-left: 12px;
  }
  .cw-bar {
    height: 40px;
    padding: 0 4px;
    gap: 0;
  }
  .cw-btn {
    width: 30px;
    height: 30px;
  }
  .cw-off,
  .cw-sep,
  .cw-avatar,
  .cw-star {
    display: none;
  }
  .cw-omni {
    height: 30px;
    margin: 0 4px;
    padding-right: 10px;
    gap: 6px;
    font-size: 13px;
  }
  .cw-tune {
    width: 22px;
    height: 22px;
  }
  /* Tall enough that the break card, centred, clears the timer card in
     the corner, as it does in a laptop-sized window. */
  /* Phones: the Doc already fits the screen; no zooming out. */
  .hm-doc {
    width: 100%;
    height: 100%;
    transform: none;
  }
  .hm-stage {
    height: min(700px, calc(100svh - 110px));
    min-height: 640px;
  }
  .hm-vis {
    --vis-room: 14px;
    height: 240px;
    border-radius: 18px;
  }
  .hm-sheet {
    width: calc(100% - 28px);
    padding: 26px 22px 30px;
  }
  .hm-faq summary {
    padding: 18px 36px 18px 2px;
  }
  .hm-faq details p {
    padding-right: 8px;
  }
}
@media (max-width: 380px) {
  .hx-hero .hx-display {
    font-size: 1.62rem;
  }
  .hm-minis {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hm-popup,
  .hm-crop,
  .hm-sheet-line,
  .hm-curtain,
  .hm-play,
  .hm-play-ic,
  .hx-link span {
    transition: none;
  }
  .hm-sheet-caret,
  .hx-typed .cr::after {
    animation: none;
  }
  .hm-faq details[open] p {
    animation: none;
  }
}
