/* css/home-v2.css — the homepage sections rebuilt in November 2026.
 *
 * Everything here is namespaced .hv2-* so it cannot collide with the page's
 * older inline <style>, which still styles the sections that were kept
 * (comparison table, pricing, final call to action, FAQ).
 *
 * Tokens only (css/tokens.css): no hex, no arbitrary radius. Light-first; the
 * dark theme follows from the tokens.
 */

.hv2 { position: relative; }
.hv2-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hv2-sec { padding: 96px 0; }
.hv2-sec--tight { padding: 64px 0; }
.hv2-sec--tint { background: var(--bg-2); }

.hv2-ey {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: "JetBrains Mono", var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple-text);
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--brand) 9%, var(--panel));
  border: 1px solid var(--border);
}
.hv2-ey i { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--green-bright); }

.hv2-h2 {
  font-family: "Inter Tight", var(--font-heading); font-weight: 800; color: var(--text);
  font-size: clamp(1.875rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -0.03em;
  margin: var(--space-5) 0 var(--space-4); text-wrap: balance;
}
.hv2-h2 em, .hv2-h1 em {
  font-family: "Fraunces", serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.08em;
}
.hv2-sub { font-size: 1.125rem; line-height: 1.6; color: var(--text-2); max-width: 640px; margin: 0; text-wrap: pretty; }
.hv2-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.hv2-head .hv2-sub { margin: 0 auto; }

/* ------------------------------------------------------------------ hero */
.hv2-hero { padding: 72px 0 0; text-align: center; position: relative; z-index: 1; }
.hv2-h1 {
  font-family: "Inter Tight", var(--font-heading); font-weight: 800; color: var(--text);
  font-size: clamp(2.25rem, 5.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.04em;
  margin: var(--space-6) auto var(--space-5); max-width: 940px; text-wrap: balance;
}
.hv2-lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--text-2); max-width: 680px; margin: 0 auto; text-wrap: pretty; }

.hv2-form {
  display: flex; align-items: center; gap: var(--space-2);
  width: min(600px, 100%); margin: var(--space-8) auto 0; padding: var(--space-2);
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
}
.hv2-form:focus-within { border-color: var(--brand); box-shadow: var(--shadow-lg), 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.hv2-input {
  flex: 1; min-width: 0; height: 52px; padding: 0 var(--space-5); border: 0; outline: 0; background: transparent;
  font: 500 1.0625rem/1 var(--font); color: var(--text);
}
.hv2-input::placeholder { color: var(--muted-soft); }
.hv2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 52px; padding: 0 var(--space-6); border: 0; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--gradient); color: var(--on-brand); font: 700 1rem/1 var(--font); white-space: nowrap;
  text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand-solid) 70%, transparent);
}
.hv2-btn:hover { transform: translateY(-1px); }
.hv2-btn:focus-visible, .hv2-btn-ghost:focus-visible, .hv2-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; }
.hv2-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 var(--space-6);
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--panel);
  color: var(--text); font: 600 1rem/1 var(--font); text-decoration: none;
}
.hv2-btn-ghost:hover { border-color: var(--brand); }

.hv2-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-6); margin: var(--space-5) 0 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--text-3); }
.hv2-trust li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hv2-trust svg { color: var(--green); flex: none; }
.hv2-alt { margin-top: var(--space-4); font-size: 0.875rem; color: var(--text-3); }
.hv2-alt a, .hv2-link { color: var(--purple-text); font-weight: 600; text-decoration: none; }
/* A text link on its own line is a tap target on a phone: give it height. */
.hv2-link { display: inline-block; padding: 12px 0; }
.hv2-alt a:hover, .hv2-link:hover { text-decoration: underline; }

/* The product frame: a plain browser window around a real screenshot. */
.hv2-frame {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--brand-solid) 45%, transparent), var(--shadow-lg);
  overflow: hidden;
}
.hv2-frame-bar { display: flex; align-items: center; gap: var(--space-2); padding: 12px var(--space-4); border-bottom: 1px solid var(--hairline); background: var(--bg-2); }
.hv2-frame-bar i { width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--border-strong); }
.hv2-frame-url {
  margin-left: var(--space-3); padding: 5px var(--space-4); border-radius: var(--radius-pill); background: var(--panel);
  border: 1px solid var(--hairline); font: 500 0.75rem/1.2 "JetBrains Mono", var(--font-mono); color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hv2-frame picture, .hv2-frame img { display: block; width: 100%; height: auto; }
.hv2-hero-shot { width: min(1120px, calc(100% - 48px)); margin: 64px auto 0; position: relative; }
.hv2-hero-shot::before {
  content: ""; position: absolute; inset: 8% -6% -4%; z-index: -1; border-radius: var(--radius-xl);
  background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--brand-2) 26%, transparent), transparent 70%);
  filter: blur(40px);
}
.hv2-hero-shot .hv2-frame { max-height: 620px; position: relative; }
.hv2-hero-shot .hv2-frame::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--panel));
}

/* ---------------------------------------------------------------- engines */
.hv2-engines { padding: 56px 0 24px; text-align: center; }
.hv2-engines p { margin: 0 0 var(--space-5); font: 500 0.75rem/1 "JetBrains Mono", var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.hv2-engines ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.hv2-engines li {
  padding: 10px var(--space-5); border-radius: var(--radius-pill); background: var(--panel); border: 1px solid var(--border);
  font: 600 0.9375rem/1 var(--font); color: var(--text-2);
}

/* ------------------------------------------------------------------ cards */
.hv2-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.hv2-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: var(--space-8); box-shadow: var(--shadow-sm);
}
.hv2-card h3 { font: 700 1.25rem/1.25 "Inter Tight", var(--font-heading); letter-spacing: -0.01em; color: var(--text); margin: var(--space-5) 0 var(--space-3); }
.hv2-card p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--text-2); }
.hv2-chip {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 11%, var(--panel)); color: var(--purple-text); border: 1px solid var(--border);
}
.hv2-num { font: 500 0.8125rem/1 "JetBrains Mono", var(--font-mono); letter-spacing: 0.1em; color: var(--purple-text); }

/* ----------------------------------------------------------- feature rows */
.hv2-feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.hv2-feat + .hv2-feat { margin-top: 112px; }
.hv2-feat--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hv2-feat--flip .hv2-feat-copy { order: 2; }
.hv2-feat-copy h3 { font: 800 clamp(1.625rem, 3vw, 2.25rem)/1.12 "Inter Tight", var(--font-heading); letter-spacing: -0.025em; color: var(--text); margin: var(--space-5) 0 var(--space-4); text-wrap: balance; }
.hv2-feat-copy > p { font-size: 1.0625rem; line-height: 1.65; color: var(--text-2); margin: 0 0 var(--space-5); }
.hv2-ticks { margin: 0 0 var(--space-6); padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.hv2-ticks li { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-3); font-size: 1rem; line-height: 1.5; color: var(--text-2); }
.hv2-ticks svg { color: var(--green); margin-top: 2px; }
.hv2-feat-shot .hv2-frame { max-height: 520px; position: relative; }
.hv2-feat-shot .hv2-frame::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--panel));
}
.hv2-cap { margin: var(--space-4) 0 0; font-size: 0.8125rem; color: var(--text-3); text-align: center; }

/* ------------------------------------------------------------- tool groups */
.hv2-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.hv2-group {
  display: block; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--panel);
  border: 1px solid var(--border); text-decoration: none; transition: border-color 0.18s ease, transform 0.18s ease;
}
.hv2-group:hover { border-color: var(--brand); transform: translateY(-2px); }
.hv2-group b { display: block; font: 700 1.0625rem/1.3 "Inter Tight", var(--font-heading); color: var(--text); margin-bottom: var(--space-2); }
.hv2-group span { display: block; font-size: 0.875rem; line-height: 1.5; color: var(--text-3); }
.hv2-center { text-align: center; margin-top: var(--space-10); }

/* ------------------------------------------------------------- free tools */
.hv2-free { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.hv2-free a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-4);
  padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg); background: var(--panel);
  border: 1px solid var(--border); text-decoration: none; color: var(--text); font: 600 1rem/1.35 var(--font);
  transition: border-color 0.18s ease;
}
.hv2-free a:hover { border-color: var(--brand); }
.hv2-free a small { display: block; margin-top: var(--space-1); font: 400 0.8125rem/1.45 var(--font); color: var(--text-3); }
.hv2-free svg { color: var(--purple-text); }

/* ---------------------------------------------------------------- honesty */
.hv2-honest {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center;
  padding: 56px; border-radius: var(--radius-xl); background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.hv2-honest .hv2-h2 { margin-top: var(--space-4); font-size: clamp(1.625rem, 3.2vw, 2.375rem); }
.hv2-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.hv2-facts li { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--hairline); }
.hv2-facts b { display: block; font: 700 1rem/1.3 "Inter Tight", var(--font-heading); color: var(--text); margin-bottom: var(--space-1); }
.hv2-facts span { font-size: 0.875rem; line-height: 1.5; color: var(--text-3); }

/* ------------------------------------------------------------ final strip */
.hv2-final { text-align: center; padding: 104px 0; }
.hv2-final .hv2-form { margin-top: var(--space-8); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .hv2-sec { padding: 72px 0; }
  .hv2-grid3 { grid-template-columns: 1fr; }
  .hv2-feat, .hv2-feat--flip, .hv2-honest { grid-template-columns: 1fr; gap: var(--space-8); }
  .hv2-feat--flip .hv2-feat-copy { order: 0; }
  .hv2-feat + .hv2-feat { margin-top: 72px; }
  .hv2-groups { grid-template-columns: repeat(2, 1fr); }
  .hv2-free { grid-template-columns: 1fr 1fr; }
  .hv2-honest { padding: var(--space-8); }
}
@media (max-width: 640px) {
  .hv2-wrap, .hv2-hero-shot { width: calc(100% - 32px); }
  .hv2-sec { padding: 56px 0; }
  .hv2-hero { padding-top: 40px; }
  .hv2-head { margin-bottom: var(--space-8); }
  .hv2-form { flex-direction: column; border-radius: var(--radius-xl); padding: var(--space-3); }
  .hv2-input { width: 100%; flex: none; height: 52px; text-align: center; }
  .hv2-form .hv2-btn { width: 100%; }
  .hv2-hero-shot { margin-top: var(--space-10); }
  .hv2-hero-shot .hv2-frame { max-height: 300px; }
  .hv2-feat-shot .hv2-frame { max-height: 320px; }
  .hv2-frame-url { display: none; }
  .hv2-groups, .hv2-free, .hv2-facts { grid-template-columns: 1fr; }
  .hv2-card { padding: var(--space-6); }
  .hv2-final { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hv2-btn, .hv2-group { transition: none; }
}
.hv2-sub--center { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) {
  .hv2-ey { font-size: 0.6875rem; letter-spacing: 0.1em; padding: 6px 12px; }
}

/* ------------------------------------------------- product recordings */
.hv2-frame--video { max-height: none; }
.hv2-hero-shot .hv2-frame--video, .hv2-demo-shot .hv2-frame--video { max-height: none; }
.hv2-hero-shot .hv2-frame--video::after, .hv2-demo-shot .hv2-frame--video::after { display: none; }
.hv2-video-wrap { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); }
.hv2-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hv2-video-toggle {
  position: absolute; right: var(--space-4); bottom: var(--space-4); width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--panel) 88%, transparent); color: var(--text);
  box-shadow: var(--shadow-md); opacity: 0; transition: opacity 0.18s ease;
}
.hv2-video-wrap:hover .hv2-video-toggle, .hv2-video-toggle:focus-visible, .hv2-video-toggle.is-paused { opacity: 1; }
.hv2-video-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; }
.hv2-video-toggle .hv2-ic-play { display: none; }
.hv2-video-toggle.is-paused .hv2-ic-play { display: block; }
.hv2-video-toggle.is-paused .hv2-ic-pause { display: none; }
.hv2-demo-shot { margin: 0; }
.hv2-hero-shot .hv2-cap { margin-top: var(--space-4); }

.hv2-demo + .hv2-demo { margin-top: 112px; }
.hv2-demo-copy {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end;
  max-width: 1040px; margin: 0 auto var(--space-8);
}
.hv2-demo-copy h3 { font: 800 clamp(1.625rem, 3vw, 2.25rem)/1.12 "Inter Tight", var(--font-heading); letter-spacing: -0.025em; color: var(--text); margin: var(--space-5) 0 var(--space-4); text-wrap: balance; }
.hv2-demo-copy p { font-size: 1.0625rem; line-height: 1.65; color: var(--text-2); margin: 0 0 var(--space-2); }
.hv2-demo-copy .hv2-ticks { margin: 0 0 var(--space-3); }
.hv2-demo-shot { max-width: 1040px; margin: 0 auto; }
@media (hover: none) { .hv2-video-toggle { opacity: 1; } }
@media (max-width: 1000px) {
  .hv2-demo-copy { grid-template-columns: 1fr; gap: var(--space-5); }
  .hv2-demo + .hv2-demo { margin-top: 72px; }
}
@media (max-width: 640px) {
  .hv2-hero-shot .hv2-frame--video, .hv2-demo-shot .hv2-frame--video { max-height: none; }
  .hv2-video-toggle { right: var(--space-2); bottom: var(--space-2); width: 40px; height: 40px; }
}
