/* The landing page and the legal pages. The same look as the app (web/src/style.css): an obsidian or paper ground,
   round cards, pill buttons and the six bots. data-theme is set from the device in partials/head.ejs. */
:root, :root[data-theme="light"] {
  --hf-bg: #f8f9fa; --hf-bg-subtle: #f1f2f4; --hf-panel-line: #e4e4e7; --hf-card: #ffffff;
  --hf-hover: #ececef;
  --hf-head: #111112; --hf-ink: #27272a; --hf-ink-2: #52525b; --hf-ink-3: #71717a; --hf-soft: #8a8a94;
  --hf-line: #e4e4e7; --hf-line-strong: #d4d4d8; --hf-line-hover: #c4c4cb;
  --hf-btn-bg: #18181b; --hf-btn-fg: #ffffff; --hf-btn-hover: #3f3f46;
  --hf-btn2-bg: #ffffff; --hf-btn2-fg: #18181b; --hf-btn2-hover: #f4f4f5;
  /* The six bots. The colour is the same in both themes; its ink is the shade that is read as text. */
  --hf-c-mint: #10b99a; --hf-c-blue: #2678f6; --hf-c-coral: #f93a4a; --hf-c-amber: #ffa016; --hf-c-mocha: #966b43; --hf-c-violet: #8e5bf5;
  --hf-i-mint: #0a7d68; --hf-i-blue: #1b5fd1; --hf-i-coral: #d42233; --hf-i-amber: #a35c00; --hf-i-mocha: #7a5433; --hf-i-violet: #6a3fe0;
  --hf-brand: var(--hf-i-mint);
  --hf-accent-bg: color-mix(in srgb, var(--hf-c-mint) 14%, transparent); --hf-accent-fg: var(--hf-i-mint);
  --hf-warn-bg: color-mix(in srgb, var(--hf-c-amber) 18%, transparent); --hf-warn-ink: var(--hf-i-amber);
  --hf-danger: var(--hf-i-coral);
  --hf-tint-soft: #e8f0fe; --hf-peach-bg: #fff4e2; --hf-mint-bg: #e6f7f3;
  --hf-shadow: 0 24px 48px -20px rgba(17, 17, 18, 0.18), 0 2px 6px rgba(17, 17, 18, 0.04);
  --hf-ring: 0 0 0 4px color-mix(in srgb, var(--hf-c-mint) 22%, transparent);
  --hf-glow: radial-gradient(circle at 50% 42%, rgba(16, 185, 154, 0.16) 0%, rgba(38, 120, 246, 0.08) 32%, transparent 68%);
  --hf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hf-page: 1152px;
  /* Cards are round, things you press are pills, and what sits inside a card is a little less round than the card. */
  --hf-r-box: 24px; --hf-r-in: 16px; --hf-r-control: 12px; --hf-r-mark: 8px; --hf-r-pill: 9999px;
}
:root[data-theme="dark"] {
  --hf-bg: #111112; --hf-bg-subtle: #141415; --hf-panel-line: #2c2c2e; --hf-card: #1c1c1e;
  --hf-hover: #242427;
  --hf-head: #f5f5f7; --hf-ink: #e5e5ea; --hf-ink-2: #a1a1a6; --hf-ink-3: #8e8e93; --hf-soft: #7c7c82;
  --hf-line: #2c2c2e; --hf-line-strong: #3a3a3e; --hf-line-hover: #3e3e42;
  --hf-btn-bg: #f5f5f7; --hf-btn-fg: #111112; --hf-btn-hover: #ffffff;
  --hf-btn2-bg: #1c1c1e; --hf-btn2-fg: #f5f5f7; --hf-btn2-hover: #262629;
  --hf-i-mint: #2fd1b1; --hf-i-blue: #6ba4ff; --hf-i-coral: #ff6b78; --hf-i-amber: #ffb23f; --hf-i-mocha: #c79a6e; --hf-i-violet: #b094ff;
  --hf-tint-soft: #17202f; --hf-peach-bg: #26201a; --hf-mint-bg: #17252a;
  --hf-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.65);
  --hf-glow: radial-gradient(circle at 50% 42%, rgba(16, 185, 154, 0.08) 0%, rgba(38, 120, 246, 0.05) 32%, transparent 68%);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
[hidden] { display: none !important; }
body.hf-root { margin: 0; background-color: var(--hf-bg); color: var(--hf-ink); font: 16px/1.55 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color 200ms var(--hf-ease), color 200ms var(--hf-ease); }
::selection { background: color-mix(in srgb, var(--hf-c-mint) 30%, transparent); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--hf-brand); outline-offset: 2px; border-radius: var(--hf-r-control); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; padding: 8px 14px; border-radius: var(--hf-r-pill); background: var(--hf-card); }

/* A bot: one of the six drawings in partials/head.ejs. --c is its colour and --ci that colour as text. */
.bot { display: block; flex: none; }
.bot.tilt { rotate: 14deg; }
.c-mint { --c: var(--hf-c-mint); --ci: var(--hf-i-mint); }
.c-blue { --c: var(--hf-c-blue); --ci: var(--hf-i-blue); }
.c-coral { --c: var(--hf-c-coral); --ci: var(--hf-i-coral); }
.c-amber { --c: var(--hf-c-amber); --ci: var(--hf-i-amber); }
.c-mocha { --c: var(--hf-c-mocha); --ci: var(--hf-i-mocha); }
.c-violet { --c: var(--hf-c-violet); --ci: var(--hf-i-violet); }

/* Sections */
.hf-section-wrap { padding: 72px 20px; border-top: 1px solid var(--hf-line); }
@media (min-width: 768px) { .hf-section-wrap { padding: 104px 32px; } }
.hf-container { max-width: var(--hf-page); margin: 0 auto; }
.hf-narrow { max-width: 820px; }
.hf-subtle { background-color: var(--hf-bg-subtle); }
.hf-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.hf-head .hf-lede { margin-inline: auto; }
.hf-head .hf-tabs { margin-top: 24px; }

/* Top bar: clear over the hero, frosted once the page has moved (site.js sets .is-top). */
.hf-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 max(20px, 50vw - 576px); background-color: color-mix(in srgb, var(--hf-bg) 85%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--hf-line); transition: background-color 200ms var(--hf-ease), border-color 200ms var(--hf-ease); }
.hf-topbar.is-top { background-color: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hf-brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.03em; color: var(--hf-head); }
.hf-brand .bot { transition: rotate 300ms var(--hf-ease); }
.hf-brand:hover .bot { rotate: 12deg; }
.hf-topbar_links { display: none; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; color: var(--hf-ink-2); }
.hf-topbar_links a { transition: color 200ms var(--hf-ease); }
.hf-topbar_links a:hover { color: var(--hf-head); }
/* Equal outer columns, so the links sit on the page's centre whatever the logo and buttons measure. */
@media (min-width: 860px) {
  .hf-topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; }
  .hf-topbar_links { display: flex; }
}
.hf-topbar_end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.hf-topbar .hf-topbar_signin { display: none; }
@media (min-width: 720px) { .hf-topbar .hf-topbar_signin { display: inline-flex; } }
/* The sun shows on a dark page, the moon on a light one: what pressing it brings. */
[data-theme-toggle] svg { width: 16px; height: 16px; }
[data-theme-toggle] svg:first-child { color: var(--hf-c-amber); }
[data-theme-toggle] svg:last-child, :root[data-theme="light"] [data-theme-toggle] svg:first-child { display: none; }
:root[data-theme="light"] [data-theme-toggle] svg:last-child { display: block; }

/* Words */
.hf-heading { margin: 0; font: 700 clamp(28px, 3.6vw, 40px)/1.12 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.03em; color: var(--hf-head); text-wrap: balance; }
.hf-heading--card { font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; }
.hf-soft { color: var(--hf-soft); }
.hf-sheen { font-style: normal; color: var(--hf-brand); }
.hf-lede { margin: 14px 0 0; max-width: 640px; font-size: 16px; line-height: 1.62; color: var(--hf-ink-2); text-wrap: pretty; }
.hf-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--hf-ink-2); }
.hf-mono-label { font: 12px/1.5 'JetBrains Mono', monospace; letter-spacing: 0.02em; color: var(--hf-ink-3); font-variant-numeric: tabular-nums; }
.hf-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 5px 12px 5px 6px; border: 1px solid var(--hf-line); border-radius: var(--hf-r-pill); background-color: var(--hf-card); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--hf-brand); }

/* Buttons */
.hf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid var(--hf-line); border-radius: var(--hf-r-pill); background-color: var(--hf-btn2-bg); color: var(--hf-btn2-fg); font: 500 14px 'Inter', sans-serif; white-space: nowrap; cursor: pointer; transition: background-color 200ms var(--hf-ease), border-color 200ms var(--hf-ease), transform 140ms var(--hf-ease); }
.hf-btn:hover { background-color: var(--hf-btn2-hover); }
.hf-btn:active { transform: scale(0.98); }
.hf-btn--primary { border-color: transparent; background-color: var(--hf-btn-bg); color: var(--hf-btn-fg); font-weight: 600; }
.hf-btn--primary:hover { background-color: var(--hf-btn-hover); }
.hf-btn--lg { height: 52px; padding: 0 28px; font-size: 15px; }
.hf-btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.hf-btn--icon { width: 36px; padding: 0; }
.hf-btn small { font-size: 12px; font-weight: 400; opacity: 0.6; }

/* Ticks */
.hf-ticks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hf-ticks li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hf-ink-3); }
.hf-ticks li::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background-color: var(--hf-c-mint); color: #111112; font-size: 11px; font-weight: 700; }

/* A switch between views: the one that is on is the page's ink, turned inside out. */
.hf-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; border: 1px solid var(--hf-line); border-radius: 26px; background-color: var(--hf-card); }
.hf-tab { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border: none; border-radius: var(--hf-r-pill); background: transparent; color: var(--hf-ink-2); font: 600 13px 'Inter', sans-serif; cursor: pointer; transition: background-color 200ms var(--hf-ease), color 200ms var(--hf-ease); }
.hf-tab:hover { color: var(--hf-head); }
.hf-tab:is([aria-selected="true"], [aria-pressed="true"]) { background-color: var(--hf-btn-bg); color: var(--hf-btn-fg); }
.hf-tab_count { padding: 1px 7px; border-radius: var(--hf-r-pill); background-color: color-mix(in srgb, currentColor 14%, transparent); font: 11px 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.hf-tab small { padding: 2px 8px; border-radius: var(--hf-r-pill); background-color: var(--hf-c-mint); color: #111112; font-size: 10px; font-weight: 700; }

/* Pills, tags and chips */
.hf-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--hf-r-pill); background-color: var(--hf-hover); color: var(--hf-ink-2); font: 500 12px 'Inter', sans-serif; white-space: nowrap; }
.hf-pill--live { background-color: var(--hf-accent-bg); color: var(--hf-accent-fg); }
.hf-pill--ai { background-color: color-mix(in srgb, var(--hf-c-blue) 14%, transparent); color: var(--hf-i-blue); }
.hf-tag { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--hf-line); border-radius: var(--hf-r-pill); background-color: var(--hf-bg-subtle); font: 500 12px 'Inter', sans-serif; color: var(--hf-ink-2); white-space: nowrap; }
.hf-chip { display: inline-flex; align-items: center; padding: 4px 12px; border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); border-radius: var(--hf-r-pill); background-color: color-mix(in srgb, var(--c) 14%, transparent); font: 500 12px 'Inter', sans-serif; color: var(--ci); white-space: nowrap; }

/* Cards */
.hf-panel, .hf-feature, .hf-plan, .hf-stat, .hf-faq, .hf-window { background-color: var(--hf-card); border: 1px solid var(--hf-line); border-radius: var(--hf-r-box); }
.hf-panel, .hf-stat, .hf-faq, .hf-window { overflow: hidden; }
.hf-feature, .hf-plan { transition: border-color 250ms var(--hf-ease), box-shadow 250ms var(--hf-ease); }
.hf-feature:hover, .hf-plan:hover { border-color: var(--hf-line-hover); box-shadow: var(--hf-shadow); }
.hf-panel_head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 20px; border-bottom: 1px solid var(--hf-line); }
.hf-panel_title { margin: 0; font: 600 15px 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.01em; color: var(--hf-head); }
.hf-panel_inner { padding: 20px; }
.hf-feature { display: flex; flex-direction: column; gap: 20px; padding: 28px; }
.hf-feature_top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hf-feature .bot { transition: scale 300ms var(--hf-ease); }
.hf-feature:hover .bot { scale: 1.1; }
.hf-feature h3 { margin: 0 0 8px; font: 700 20px/1.25 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.02em; color: var(--hf-head); }
.hf-over { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ci); }
.hf-feature .hf-well { margin-top: auto; }
.hf-feature_tag { display: inline-flex; align-items: center; gap: 8px; font: 600 14px 'Plus Jakarta Sans', sans-serif; color: var(--hf-head); }
.hf-well { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hf-line); border-radius: var(--hf-r-in); background-color: var(--hf-bg-subtle); }
.hf-well_row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; font-size: 13px; color: var(--hf-ink); }
.hf-well_row + .hf-well_row { border-top: 1px solid var(--hf-line); }
.hf-well_row em { font: normal 11px 'JetBrains Mono', monospace; color: var(--hf-ink-3); font-variant-numeric: tabular-nums; }

.hf-stat_label { display: flex; align-items: center; gap: 8px; padding: 16px 18px 0; font-size: 13px; font-weight: 500; color: var(--hf-ink-2); }
.hf-stat_panel { padding: 8px 18px 18px; }
.hf-stat_value { display: block; font: 700 36px/1.1 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.04em; color: var(--hf-head); font-variant-numeric: tabular-nums; }
.hf-stat_note { display: block; margin-top: 4px; font-size: 12px; color: var(--hf-ink-3); }

/* Before and after */
.hf-tile-before, .hf-tile-after { padding: 28px; border: 1px solid var(--hf-line); border-radius: var(--hf-r-box); }
.hf-tile-before { background-color: var(--hf-peach-bg); }
.hf-tile-after { background-color: var(--hf-mint-bg); }
.hf-tile_top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hf-tile-before p, .hf-tile-after p { margin: 8px 0 0; font-size: 15px; color: var(--hf-ink-2); }

/* The demo */
.hf-window { box-shadow: var(--hf-shadow); }
.hf-window_bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--hf-line); }
.hf-window_name { display: flex; align-items: center; gap: 10px; }
.hf-window_name .hf-mono-label { color: var(--hf-head); font-weight: 500; }
.hf-window_dots { display: inline-flex; align-items: center; gap: 6px; }
.hf-window_dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background-color: var(--hf-c-coral); }
.hf-window_dots i:nth-child(2) { background-color: var(--hf-c-amber); }
.hf-window_dots i:last-child { background-color: var(--hf-c-mint); }
.hf-panes { padding: 20px; }
.hf-window :is(.hf-panel, .hf-stat) { border-radius: var(--hf-r-in); background-color: var(--hf-bg-subtle); }
.hf-stack { display: flex; flex-direction: column; gap: 16px; }
.hf-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-log, .hf-queue { display: flex; flex-direction: column; padding: 0; }
.hf-log { max-height: 330px; overflow-y: auto; scrollbar-width: thin; }
.hf-log strong { display: block; color: var(--hf-head); overflow-wrap: anywhere; }
.hf-log .hf-well_row span:not(.hf-pill) { font-size: 12px; color: var(--hf-ink-2); }
.hf-log .hf-well_row { flex-shrink: 0; }
.hf-log .hf-well_row, .hf-queue .hf-well_row { padding: 14px 20px; }
.hf-queue .hf-well_row div { overflow-wrap: anywhere; min-width: 0; }
#panel-live { align-items: start; }
#panel-stats { align-items: center; }
#panel-stats h3 { margin-bottom: 16px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes hf-in { from { opacity: 0; translate: 0 10px; scale: 0.97; } }
  .hf-log .hf-well_row:first-child { animation: hf-in 300ms cubic-bezier(0.16, 1, 0.3, 1); }
}

.hf-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hf-bars_row { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
@media (max-width: 540px) { .hf-bars_row { grid-template-columns: 105px 1fr auto; font-size: 13px; } }
.hf-bars_track { height: 10px; overflow: hidden; border-radius: var(--hf-r-pill); background-color: var(--hf-hover); }
.hf-bars_fill { display: block; width: calc(var(--share, 0) * 1%); height: 100%; border-radius: var(--hf-r-pill); background-color: var(--hf-c-mint); transition: width 350ms var(--hf-ease); }
.hf-bars_value { display: inline-flex; align-items: center; gap: 6px; font: 12px 'JetBrains Mono', monospace; color: var(--hf-ink); font-variant-numeric: tabular-nums; }
.hf-bars_value span { color: var(--hf-ink-3); }

/* Fields */
.hf-field { display: flex; flex-direction: column; gap: 8px; }
.hf-field_label { margin: 0; font-size: 13px; font-weight: 600; color: var(--hf-ink); }
.hf-input { width: 100%; height: 44px; padding: 0 18px; border: 1px solid var(--hf-line-strong); border-radius: var(--hf-r-pill); background-color: var(--hf-bg); color: var(--hf-head); font: 14px 'Inter', sans-serif; transition: border-color 200ms var(--hf-ease), box-shadow 200ms var(--hf-ease); }
.hf-input::placeholder { color: var(--hf-ink-3); opacity: 1; }
.hf-input:focus { outline: none; border-color: var(--hf-c-mint); box-shadow: var(--hf-ring); }
.hf-send { display: flex; gap: 8px; }
.hf-send .hf-input { min-width: 0; }
.hf-send .hf-btn { height: 44px; }

/* Plans */
.hf-plan { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 28px; }
.hf-plan--featured, .hf-plan--featured:hover { border-color: color-mix(in srgb, var(--hf-c-mint) 60%, transparent); box-shadow: 0 20px 48px -20px color-mix(in srgb, var(--hf-c-mint) 30%, transparent); }
.hf-plan_badge { position: absolute; top: -12px; left: 50%; translate: -50% 0; padding: 3px 12px; border-radius: var(--hf-r-pill); background-color: var(--hf-c-mint); color: #111112; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.hf-plan_top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hf-plan_top h3 { margin: 0; font: 600 16px 'Inter', sans-serif; color: var(--hf-head); }
.hf-plan_top .bot { margin-left: auto; }
.hf-plan_amount { font: 700 44px/1.05 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.04em; color: var(--hf-head); font-variant-numeric: tabular-nums; }
.hf-plan_amount small { font: 500 14px 'Inter', sans-serif; letter-spacing: 0; color: var(--hf-ink-3); }
.hf-plan .hf-note { margin: 10px 0 22px; font-size: 13px; }
.hf-plan_list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.hf-plan_list li { display: flex; align-items: center; gap: 10px; }
.hf-plan_list li::before { content: '✓'; font-weight: 700; color: var(--hf-i-mint); }
.hf-plan .hf-btn { width: 100%; }
#pricing .hf-grid-3 { padding-top: 12px; }
#pricing .plan-all { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 10px 16px; }
#pricing .plan-all p { margin: 0; }
#pricing .plan-all ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#pricing .plan-all li { padding: 4px 12px; border: 1px solid var(--hf-line); border-radius: var(--hf-r-pill); background-color: var(--hf-card); font-size: 13px; color: var(--hf-ink-2); }

/* Questions */
.hf-faq details { border-bottom: 1px solid var(--hf-line); }
.hf-faq details:last-child { border-bottom: none; }
.hf-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font: 600 16px 'Plus Jakarta Sans', sans-serif; color: var(--hf-head); }
.hf-faq summary::-webkit-details-marker { display: none; }
.hf-faq summary::after { content: '+'; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background-color: var(--hf-hover); font: 16px/1 'JetBrains Mono', monospace; color: var(--hf-ink-2); transition: background-color 200ms var(--hf-ease), color 200ms var(--hf-ease); }
.hf-faq details[open] summary::after { content: '×'; background-color: var(--hf-c-mint); color: #111112; }
.hf-faq details p { margin: 0; padding: 0 24px 20px; font-size: 15px; line-height: 1.6; color: var(--hf-ink-2); }

/* The last ask, and the footer every page ends on: the six bots look over its bottom edge. */
.hf-closing { text-align: center; background: var(--hf-glow); }
.hf-closing .hf-heading { font-size: clamp(30px, 4.6vw, 48px); }
.hf-closing .hf-lede { margin: 16px auto 32px; }
/* The two buttons share the wider one's width, so the gap between them sits on the centre line; stacked on phones, they share it too. */
.hf-closing_row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; width: fit-content; margin-inline: auto; }
@media (max-width: 540px) { .hf-closing_row { grid-auto-flow: row; } }
.hf-footer { overflow: hidden; padding: 32px 20px 0; border-top: 1px solid var(--hf-line); font-size: 13px; color: var(--hf-ink-3); }
.hf-footer_row { max-width: var(--hf-page); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.hf-footer nav { display: flex; gap: 20px; }
.hf-footer a:hover { color: var(--hf-head); }
.hf-footer_bots { max-width: 960px; margin: 32px auto 0; padding: 0 8px; display: flex; align-items: flex-end; justify-content: space-between; translate: 0 30%; pointer-events: none; }
.hf-footer_bots .bot { --s: clamp(40px, 7vw, 64px); width: var(--s); height: var(--s); }
.hf-footer_bots .bot:nth-child(2) { rotate: 12deg; }
.hf-footer_bots .bot:nth-child(6) { rotate: -12deg; }

/* The sign-up dialog */
.hf-modal { width: 100%; max-width: 440px; padding: 16px; border: none; background: transparent; color: inherit; }
.hf-modal::backdrop { background-color: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hf-modal .hf-panel { position: relative; box-shadow: var(--hf-shadow); }
.hf-modal .hf-panel_inner { padding: 28px; }
.hf-modal_close { position: absolute; top: 14px; right: 14px; }
.hf-modal_head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 8px; text-align: center; }
.hf-modal_head h3 { margin: 10px 0 0; font: 700 24px/1.2 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.03em; color: var(--hf-head); }
.hf-modal .hf-mono-label { margin: 0; text-align: center; }
.hf-modal_plan { color: var(--hf-brand); }
.hf-modal_status { color: var(--hf-danger); min-height: 18px; }
.hf-modal a { color: var(--hf-brand); }

/* Legal and 404 */
.prose { max-width: 744px; min-height: 60vh; margin: 0 auto; padding: 72px 32px 96px; line-height: 1.65; }
.prose a { color: var(--hf-brand); text-decoration: underline; text-underline-offset: 3px; }
.prose h1 { margin: 0 0 24px; font: 700 clamp(34px, 5vw, 48px)/1.1 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.04em; color: var(--hf-head); }
.prose h2 { margin: 36px 0 10px; font: 700 22px/1.3 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.025em; color: var(--hf-head); }
.prose p { margin: 0; }
.prose p + p, .prose ul { margin: 12px 0 0; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 8px; }

/* Grids */
.hf-grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 820px) { .hf-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.hf-grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .hf-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) {
  .hf-panes { padding: 12px; }
  .hf-feature, .hf-plan, .hf-tile-before, .hf-tile-after { padding: 22px; }
  .prose { padding: 48px 20px 72px; }
}

/* Feature breakdown: rows that alternate sides. Pictures are in partials/feature-art.ejs. */
.bd-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.bd-head .hf-lede { margin-inline: auto; }
.bd-rows { display: grid; gap: 80px; }
.bd-row { display: grid; gap: 24px; align-items: center; }
.bd-copy h3 { margin: 14px 0 12px; font: 600 clamp(24px, 2.6vw, 34px)/1.14 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.03em; color: var(--hf-head); text-wrap: balance; }
.bd-copy p { margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.62; color: var(--hf-ink-2); }
.bd-foot { margin: 48px 0 0; text-align: center; }
@media (min-width: 900px) {
  .bd-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; }
  .bd-row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .bd-row:nth-child(even) .bd-art { order: 2; }
}

.bd-art { container-type: inline-size; position: relative; height: 420px; overflow: hidden; border: 1px solid var(--hf-panel-line); border-radius: var(--hf-r-box); background: var(--hf-hover); font-size: 13px; line-height: 1.4; color: var(--hf-ink); }
.bd-art--tint { background: var(--hf-tint-soft); }
.bd-art--peach { background: var(--hf-peach-bg); }
.bd-art--mint { background: var(--hf-mint-bg); }
.bd-art p { margin: 0; }
.bd-art b { font-weight: 600; color: var(--hf-head); }
.bd-dim { font-size: 12px; color: var(--hf-ink-3); }
.bd-dim.mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.bd-card, .bd-phone { position: absolute; background: var(--hf-card); border: 1px solid var(--hf-line-strong); border-radius: var(--hf-r-in); box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.3), 0 2px 6px rgba(15, 23, 42, 0.05); }
.bd-face { width: 26px; height: 26px; flex: none; border-radius: 50%; background: #7fa8e8; }
.bd-face.a { background: #e9a27d; }
.bd-face.b { background: #7dbf9b; }
.bd-face.c { background: #b49be0; }
.bd-face.us {
  background: var(--hf-c-mint);
}
.bd-said { display: flex; gap: 10px; }
.bd-said p { padding-top: 3px; }
.bd-said.back { margin: 8px 0 0 36px; }
.bd-said.back .bd-face { width: 22px; height: 22px; }
.bd-said.back p { padding-top: 1px; color: var(--hf-ink-2); }
.bd-msg { align-self: flex-start; max-width: 78%; padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--hf-hover); }
.bd-msg.me {
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  background: var(--hf-btn-bg);
  color: var(--hf-btn-fg);
}
.bd-msg.me.soft { background: var(--hf-accent-bg); color: var(--hf-accent-fg); }
.bd-tap { align-self: flex-start; padding: 7px 14px; border: 1px solid var(--hf-line-strong); border-radius: 10px; font-weight: 600; color: var(--hf-brand); white-space: nowrap; }
.bd-thread { display: flex; flex-direction: column; gap: 9px; padding: 16px; }
.bd-thread .end { align-self: flex-end; margin-bottom: -5px; }
.bd-post_head, .bd-bar { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; border-bottom: 1px solid var(--hf-line); }
.bd-bar { justify-content: space-between; font-size: 15px; }

/* Photographs, as light on simple shapes: a desk by a window, a block of flats at dusk, a shelf of pots. */
.bd-photo { background-size: cover; background-position: center; }
.bd-photo--desk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 300' preserveAspectRatio='xMidYMid slice'%3E%3Crect width='260' height='300' fill='%23e8d5c0'/%3E%3Cpath d='M30 24h120v130H30z' fill='%23fbeed6'/%3E%3Cpath d='M88 24h4v130h-4zM30 86h120v4H30z' fill='%23cfae8c'/%3E%3Cpath d='M60 160l130-6 50 60H110z' fill='%23fff6e2' opacity='.5'/%3E%3Cpath d='M0 196h260v14H0z' fill='%23a8754e'/%3E%3Cpath d='M0 210h260v90H0z' fill='%23d3b593'/%3E%3Cpath d='M96 146h84v50H96z' fill='%232b3a5e'/%3E%3Cpath d='M102 152h72v38h-72z' fill='%23a8c7fa'/%3E%3Cpath d='M84 192h108v5H84z' fill='%231f2a44'/%3E%3Cpath d='M210 168h26l-4 28h-18z' fill='%23c8643c'/%3E%3Cpath d='M223 168c-22-14-20-40-8-52 4 16 8 30 8 52zm0 0c20-12 24-34 14-48-8 14-12 28-14 48z' fill='%234f7f5c'/%3E%3C/svg%3E"); }
.bd-photo--home { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 240' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop stop-color='%236f8fd0'/%3E%3Cstop offset='1' stop-color='%23f6c9a0'/%3E%3C/linearGradient%3E%3Cpattern id='w' width='40' height='38' patternUnits='userSpaceOnUse'%3E%3Cpath d='M9 9h22v18H9z' fill='%23ffe3a8'/%3E%3Cpath d='M5 29h30v3H5z' fill='%23fff' opacity='.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='480' height='240' fill='url(%23s)'/%3E%3Ccircle cx='396' cy='150' r='34' fill='%23ffe7c2'/%3E%3Cpath d='M0 120h110v120H0zM360 150h120v90H360z' fill='%23536a9c' opacity='.55'/%3E%3Cpath d='M140 40h160v200H140z' fill='%23f3e4d3'/%3E%3Cpath d='M300 70h60v170h-60z' fill='%23d9bfa5'/%3E%3Cpath d='M140 46h160v190H140z' fill='url(%23w)'/%3E%3Cpath d='M0 218h480v22H0z' fill='%23486b52'/%3E%3C/svg%3E"); }
.bd-photo--shop { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 160' preserveAspectRatio='xMidYMid slice'%3E%3Crect width='200' height='160' fill='%23dfe6dc'/%3E%3Cpath d='M0 112h200v10H0z' fill='%23a8754e'/%3E%3Cpath d='M28 66h44l-6 46H34z' fill='%23c8643c'/%3E%3Cpath d='M86 46h30c14 22 14 48 4 66H82c-10-18-10-44 4-66z' fill='%232b5a6e'/%3E%3Cpath d='M140 80h38c0 18-6 32-19 32s-19-14-19-32z' fill='%23e3b04b'/%3E%3C/svg%3E"); }

.bd-phone { left: calc(50% - 232px); top: 36px; width: 272px; height: 480px; border: 6px solid #16181d; border-radius: 38px; overflow: hidden; background: var(--hf-card); }
[data-theme="dark"] .bd-phone { border-color: #3a3d44; }
.bd-reel .bd-photo { height: 210px; }
.bd-sheet { position: relative; margin-top: -18px; padding: 10px 16px; border-radius: 18px 18px 0 0; background: var(--hf-card); display: flex; flex-direction: column; gap: 12px; }
.bd-grab { align-self: center; width: 34px; height: 4px; border-radius: 4px; background: var(--hf-line-strong); }
.bd-sheet .bd-said.back { margin-top: -2px; }
.bd-dm { left: calc(50% + 8px); top: 84px; width: 236px; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.bd-dm .bd-msg { max-width: none; }
.bd-post { left: 14%; right: 14%; top: 36px; height: 480px; overflow: hidden; }
.bd-post .bd-photo { height: 96px; }
.bd-comments { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.bd-chat { left: calc(50% - 240px); top: 36px; width: 344px; }
.bd-chat .bd-thread { min-height: 400px; }
.bd-saved { left: calc(50% + 60px); top: 272px; width: 190px; padding: 14px 16px; display: grid; gap: 2px; }
.bd-saved b + .bd-dim { margin-top: 8px; }
.bd-cal { left: 8%; top: 36px; width: 820px; height: 480px; }
.bd-seg { display: none; }
.bd-week { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 14px; }
.bd-day { display: grid; gap: 8px; align-content: start; }
.bd-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 6px; border: 1px solid var(--hf-line); border-radius: var(--hf-r-control); background: var(--hf-card); }
.bd-tile.on { box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.35); border-color: var(--hf-line-strong); }
.bd-tile .bd-photo { width: 100%; height: 164px; border-radius: var(--hf-r-mark); }
.bd-tile b { line-height: 1.25; }
.bd-empty { height: 178px; border: 1px dashed var(--hf-line-strong); border-radius: var(--hf-r-control); }
.bd-inbox { left: 8%; right: 8%; top: 36px; height: 480px; display: grid; grid-template-columns: 236px minmax(0, 1fr); overflow: hidden; }
.bd-conv .bd-thread { min-height: 188px; }
.bd-write { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--hf-line); }
.bd-write div { width: 100%; padding: 9px 12px; border: 1px solid var(--hf-brand); border-radius: var(--hf-r-control); box-shadow: var(--hf-ring); }
.bd-list { border-right: 1px solid var(--hf-line); }
.bd-item { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--hf-line); }
.bd-item.on { background: var(--hf-tint-soft); }
.bd-item div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.bd-item .hf-pill { margin-top: 5px; }
.hf-pill.bd-needs { background: var(--hf-warn-bg); color: var(--hf-warn-ink); }
.bd-table { left: 8%; right: 8%; top: 36px; height: 480px; overflow: hidden; }
.bd-tr { display: grid; grid-template-columns: minmax(0, 1fr) 76px 66px 66px 50px; align-items: center; gap: 8px; min-height: 68px; padding: 0 16px; border-bottom: 1px solid var(--hf-line); font-variant-numeric: tabular-nums; }
.bd-tr > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.bd-tr > span:nth-child(n + 3) { text-align: right; }
.bd-tr.head { min-height: 38px; font-size: 12px; color: var(--hf-ink-3); }

/* The pictures play once in view (site.js adds .bd-play to the page, .is-on to the picture). Every
   animation waits, paused on its first frame, until then, and ends on the picture as drawn above.
   A .bd-grow is always a one-row grid, so it lays out the same whether or not anything plays. */
.bd-grow { display: grid; grid-template-rows: 1fr; }
.bd-grow > * { min-height: 0; }
.bd-grow > .bd-msg, .bd-grow > .bd-tap { justify-self: start; }
.bd-grow > .bd-msg.me { justify-self: end; }
.bd-tile .bd-grow { align-self: stretch; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes bd-grow { from { grid-template-rows: 0fr; margin-top: calc(-1 * var(--gap, 0px)); } }
  @keyframes bd-fade { from { opacity: 0; translate: 0 6px; } 40% { opacity: 0; } }
  @keyframes bd-pop { from { opacity: 0; translate: 0 12px; scale: 0.94; } }
  @keyframes bd-lift { from { box-shadow: none; border-color: var(--hf-line); } }
  @keyframes bd-caret { 50% { opacity: 0; } }
  @keyframes bd-tick { from { opacity: 0.25; translate: 0 0.4em; } }
  .bd-play .bd-grow { animation: bd-grow 560ms var(--hf-ease) backwards paused; }
  .bd-play .bd-grow > * { overflow: hidden; animation: bd-fade 560ms var(--hf-ease) backwards paused; }
  .bd-play .bd-pop { transform-origin: 50% 100%; animation: bd-pop 520ms var(--hf-ease) backwards paused; }
  .bd-play .bd-tile.on { animation: bd-lift 600ms var(--hf-ease) backwards paused; }
  .bd-play .bd-grow, .bd-play .bd-grow > *, .bd-play .bd-pop, .bd-play .bd-tile.on { animation-delay: var(--at, 0ms); }
  .bd-art.is-on .bd-grow, .bd-art.is-on .bd-grow > *, .bd-art.is-on .bd-pop, .bd-art.is-on .bd-tile.on { animation-play-state: running; }
  .bd-tr .is-tick { animation: bd-tick 320ms var(--hf-ease); }
  .bd-write .is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: -0.22em; background: var(--hf-brand); animation: bd-caret 1s steps(1) infinite; }
  .bd-write [data-type]:empty::before { content: "\200b"; }
}

@media (max-width: 600px) {
  .bd-rows { gap: 56px; }
  .bd-art { height: 390px; }
}
/* A picture is narrow on a phone, and again beside its words on a small laptop. */
@container (max-width: 590px) {
  .bd-phone { left: max(16px, 50% - 190px); top: 28px; width: 232px; }
  .bd-dm { left: auto; right: max(12px, 50% - 190px); top: 56px; width: 178px; padding: 10px; font-size: 12px; }
  .bd-reel .bd-photo { height: 220px; }
  .bd-post { left: 6%; right: 6%; top: 28px; }
  .bd-post .bd-photo { height: 112px; }
  .bd-tile .bd-photo { height: 136px; }
  .bd-empty { height: 150px; }
  .bd-chat { left: 6%; right: 6%; top: 28px; width: auto; }
  .bd-saved { display: none; }
  .bd-comments > div:nth-child(n + 3), .bd-sheet .bd-said:nth-child(n + 4) { display: none; }
  .bd-cal, .bd-inbox { left: 6%; top: 28px; }
  .bd-cal { width: 700px; }
  .bd-inbox { grid-template: auto 1fr / 1fr; }
  .bd-list { border-bottom: 1px solid var(--hf-line); }
  .bd-conv .bd-post_head { display: none; }
  .bd-conv .bd-thread { min-height: 0; }
  .bd-list { border-right: none; }
  .bd-item:nth-child(n + 2) { display: none; }
  .bd-table { left: 4%; right: 4%; top: 28px; }
  .bd-tr { grid-template-columns: minmax(0, 1fr) 48px 48px 44px; padding: 0 12px; }
  .bd-tr .pill { display: none; }
  .bd-tr.head { min-height: 48px; line-height: 1.25; }
}

/* Hero: the page's ground with a faint glow, and bots floating in the space around the words. */
.hf-hero { position: relative; margin-top: -64px; padding: 152px 20px 96px; overflow: hidden; text-align: center; color: var(--hf-ink-2); background: var(--hf-glow); }
.hero-bots .bot { position: absolute; width: var(--s); height: var(--s); opacity: 0.95; }
.hero-bots .b1 { --s: clamp(44px, 6vw, 80px); top: 88px; left: max(16px, 50% - 640px); }
.hero-bots .b2 { --s: clamp(40px, 5vw, 64px); top: 92px; right: max(24px, 50% - 610px); rotate: 26deg; }
.hero-bots .b3 { --s: clamp(36px, 4.5vw, 56px); bottom: 28px; left: max(28px, 50% - 560px); }
.hero-bots .b4 { --s: clamp(36px, 4.5vw, 56px); bottom: 32px; right: max(32px, 50% - 540px); rotate: -12deg; }
/* The two at the sides have room only where the comments and DMs sit under the bar, on a screen wide enough. */
.hero-bots .b5, .hero-bots .b6 { display: none; --s: 60px; top: 55%; }
.hero-bots .b5 { left: 5%; }
.hero-bots .b6 { right: 5%; }
@media (min-width: 760px) and (max-width: 1179px) { .hero-bots .b5, .hero-bots .b6 { display: block; } }
@media (prefers-reduced-motion: no-preference) {
  @keyframes hf-float { 50% { translate: 0 -14px; } }
  @keyframes hf-pulse { 50% { opacity: 0.4; } }
  .hero-bots .bot { animation: hf-float 7s ease-in-out infinite; }
  .hero-bots :is(.b2, .b3) { animation-duration: 5.5s; }
  .hero-bots :is(.b4, .b5) { animation-duration: 8s; animation-delay: 2s; }
  .hf-eyebrow i { animation: hf-pulse 2s ease-in-out infinite; }
}
.hf-hero > :not(.hero-bots) { position: relative; }
.hf-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 28px; padding: 6px 14px; border: 1px solid var(--hf-line); border-radius: var(--hf-r-pill); background-color: var(--hf-card); font-size: 13px; color: var(--hf-ink-2); }
.hf-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background-color: var(--hf-c-mint); }
.hf-heading--hero { max-width: 860px; margin-inline: auto; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -0.04em; }
.hf-heading--hero .hf-sheen { display: block; }
.hf-hero .hf-lede { max-width: 600px; margin: 22px auto 0; font-size: clamp(16px, 1.6vw, 19px); text-wrap: balance; }
.hf-hero .hf-ticks { justify-content: center; }
.hero-try { margin-top: 36px; }
.hero-try label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 500; color: var(--hf-ink-2); }
.hero-row { position: relative; max-width: 400px; margin-inline: auto; }
.hero-bar { position: relative; display: flex; gap: 6px; padding: 5px; border: 1px solid var(--hf-line-strong); border-radius: var(--hf-r-pill); background-color: var(--hf-card); box-shadow: var(--hf-shadow); transition: border-color 200ms var(--hf-ease), box-shadow 200ms var(--hf-ease); }
.hero-bar:has(input:focus-visible) { border-color: var(--hf-c-mint); box-shadow: var(--hf-ring), var(--hf-shadow); }
.hero-bar input { flex: 1; min-width: 0; padding: 0 12px 0 16px; border: 0; outline: 0; background: none; color: var(--hf-head); font: 600 16px 'Inter', sans-serif; text-transform: uppercase; }
.hero-bar input::placeholder { color: var(--hf-ink-3); opacity: 1; }
.hero-bar .hf-btn { height: 40px; padding: 0 20px; }
.hero-says { margin: 16px 0 0; font-size: 14px; }
.hero-says b { color: var(--hf-head); font-weight: 600; overflow-wrap: anywhere; }
.hero-more { margin: 22px 0 0; }
.hero-said, .hero-dm { margin: 0; text-align: left; font-size: 14px; line-height: 1.35; }
.hero-said { padding: 9px 15px 10px; border: 1px solid var(--hf-line); border-radius: 16px 16px 16px 4px; background-color: var(--hf-card); color: var(--hf-head); }
.hero-said b { display: block; font-size: 12px; font-weight: 500; color: var(--hf-ink-3); }
.hero-said [data-word] { font-weight: 600; color: var(--hf-brand); }
.hero-dm { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border: 1px solid var(--hf-line); border-radius: var(--hf-r-in); background-color: var(--hf-card); color: var(--hf-ink-3); font-size: 13px; box-shadow: var(--hf-shadow); }
.hero-dm b { display: block; font-size: 14px; font-weight: 600; color: var(--hf-head); }
@media (max-width: 540px) {
  .hf-hero { padding: 140px 16px 88px; }
  .hero-row { max-width: 320px; }
}

/* The comments and the DMs they set off fan out beside the bar where there is room. Narrower, the line under the bar says it. */
.hero-flow { display: none; }

/* Wide: comments come in from the left, DMs go out on the right. */
@media (min-width: 1180px) {
  .hero-flow { position: absolute; top: calc(50% - 220px); display: block; width: calc((min(100vw, 1440px) - 464px) / 2); height: 360px; }
  .hero-flow--in { right: 100%; }
  .hero-flow--out { left: 100%; }
  .hero-flow > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-flow path { fill: none; stroke: color-mix(in srgb, var(--hf-c-mint) 55%, transparent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
  .hero-flow p { position: absolute; translate: 0 -50%; white-space: nowrap; }
  .hero-flow p:nth-of-type(1) { top: 46px; }
  .hero-flow p:nth-of-type(2) { top: 148px; }
  .hero-flow p:nth-of-type(3) { top: 300px; }
  .hero-said:nth-of-type(1) { left: 6%; }
  .hero-said:nth-of-type(2) { left: 24%; }
  .hero-said:nth-of-type(3) { left: 0; }
  .hero-dm:nth-of-type(1) { right: 0; }
  .hero-dm:nth-of-type(2) { right: 14%; }
  .hero-dm:nth-of-type(3) { right: 0; }
}

/* Once, on load: comments, then the lines, then the replies. */
@media (min-width: 1180px) and (prefers-reduced-motion: no-preference) {
  @keyframes hero-in { from { opacity: 0; scale: 0.92; } }
  @keyframes hero-line { from { opacity: 0; } }
  .hero-flow p { animation: hero-in 420ms var(--hf-ease) backwards; }
  .hero-flow path { animation: hero-line 420ms ease-out backwards; }
  .hero-said:nth-of-type(1) { animation-delay: 150ms; }
  .hero-said:nth-of-type(2) { animation-delay: 300ms; }
  .hero-said:nth-of-type(3) { animation-delay: 450ms; }
  .hero-flow--in path { animation-delay: 650ms; }
  .hero-flow--out path { animation-delay: 850ms; }
  .hero-dm:nth-of-type(1) { animation-delay: 950ms; }
  .hero-dm:nth-of-type(2) { animation-delay: 1050ms; }
  .hero-dm:nth-of-type(3) { animation-delay: 1250ms; }
}

/* Phones: Start free docks at the bottom while no other sign-up button is on screen (site.js sets .is-on), and steps aside for the keyboard. */
.hf-dock { display: none; }
@media (max-width: 719px) {
  .hf-dock { position: fixed; inset: auto 0 0; z-index: 30; display: block; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hf-line); background-color: color-mix(in srgb, var(--hf-bg) 85%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: translate 240ms var(--hf-ease), visibility 240ms; }
  .hf-dock .hf-btn { width: 100%; height: 48px; font-size: 15px; }
  .hf-dock:not(.is-on), :root:has(main :is(input, textarea):focus) .hf-dock { translate: 0 100%; visibility: hidden; }
}
