/* CS Trim — landing page styles */

:root {
    color-scheme: dark;

    --bg: #0b0b0c;
    --bg-alt: #0f0f11;
    --surface: #141416;
    --surface-2: #1b1b1e;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);

    --text: #ededee;
    --text-muted: #a0a0a8;
    --text-dim: #6e6e76;

    --accent: #2f7cf6;
    --accent-hover: #4a8ef8;
    --accent-soft: rgba(47, 124, 246, 0.12);
    --success: #3ecf8e;
    --danger: #f2555a;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;

    --container: 1120px;
    --gutter: 24px;
    --marker: #facc15;
    --font-display: "Rubik", "Heebo", system-ui, sans-serif;
    --font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.88rem; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: #232327; border-color: rgba(255, 255, 255, 0.2); }

.btn:disabled { opacity: 0.6; cursor: default; }

/* Added by the OS-detection script to the button for the visitor's platform */
.os-pill-badge {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 11, 12, 0.82);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; direction: ltr; }

.nav-links { display: flex; gap: 28px; margin-inline-start: auto; }
.nav-links a { font-size: 0.92rem; color: var(--text-muted); transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* ---------- Shared type ---------- */
.eyebrow {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-hover);
    margin-bottom: 14px;
}

.section { padding: 112px 0; }
.section-tight { padding: 40px 0 112px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.section-desc { margin-top: 14px; font-size: 1.08rem; color: var(--text-muted); }

.tag {
    display: inline-block;
    vertical-align: middle;
    margin-inline-start: 6px;
    padding: 1px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ---------- Home ---------- */
.section-title, .download-title, .h-title, .h-feat h3 { font-family: var(--font-display); }

.free-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 4px;
    padding-inline-end: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}
.free-badge strong {
    padding: 2px 10px;
    border-radius: 5px;
    background: var(--accent-soft);
    border: 1px solid rgba(47, 124, 246, 0.35);
    color: #8db8ff;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.free-points { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; font-size: 0.92rem; color: var(--text-muted); }
.free-points li { display: inline-flex; align-items: center; gap: 6px; }
.free-points svg { color: var(--success); flex-shrink: 0; }
.price-free { color: var(--success); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kbd { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.85rem; color: var(--text); }

/* Hero */
.h-hero { padding: 88px 0 80px; }
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.h-title { font-size: clamp(2.3rem, 3.9vw, 3.4rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
.h-title-mark { position: relative; display: inline-block; color: var(--marker); }
.h-click-text {
    display: inline-block;
    background: linear-gradient(100deg, var(--marker) 42%, #fff8d6 50%, var(--marker) 58%) 0 0 / 260% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: h-click-reveal 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 1.15s backwards, h-click-press 6s cubic-bezier(0.3, 1.6, 0.5, 1) 1.15s infinite;
}
.h-click-cursor {
    position: absolute; left: 42%; top: 58%; width: 30px; height: 30px; pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    animation: h-click-cursor 6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s infinite backwards;
}
.h-click-ripple {
    position: absolute; left: 42%; top: 58%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
    border: 2px solid var(--marker); opacity: 0; pointer-events: none;
    animation: h-click-ripple 6s ease-out 1.15s infinite;
}
@keyframes h-click-reveal { from { filter: grayscale(1) brightness(0.75); transform: scale(0.94); } to { filter: none; transform: none; } }
@keyframes h-click-press {
    0% { transform: scale(0.93); background-position: 0 0; }
    4% { transform: scale(1.06); }
    8% { transform: scale(1); }
    6% { filter: drop-shadow(0 0 18px rgba(250, 204, 21, 0.55)); }
    20% { filter: none; }
    24%, 100% { background-position: 100% 0; transform: scale(1); }
}
@keyframes h-click-cursor {
    0% { opacity: 0; transform: translate(70px, 60px) rotate(12deg); }
    10% { opacity: 1; }
    16% { transform: translate(0, 0) rotate(0); }
    17.5% { transform: translate(0, 0) scale(0.8); }
    19.5% { transform: translate(0, 0) scale(1); }
    30% { opacity: 1; transform: translate(0, 0); }
    40%, 100% { opacity: 0; transform: translate(26px, 30px); }
}
@keyframes h-click-ripple {
    0% { opacity: 0.9; transform: scale(0.4); }
    14% { opacity: 0; transform: scale(5.5); }
    100% { opacity: 0; transform: scale(5.5); }
}
.h-sub { margin-top: 20px; max-width: 520px; font-size: 1.15rem; color: var(--text-muted); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.h-window-wrap { margin: 0; }
.h-window { border-radius: 18px; border: 1px solid var(--line-strong); background: #111114; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.h-window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-dim); }
.h-dot { width: 10px; height: 10px; border-radius: 50%; }
.h-window-title { margin-left: 10px; }
.h-window-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; padding: 14px; }
.h-monitor { height: 200px; border-radius: 10px; background: linear-gradient(180deg, #1d2333, #12141b); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 24px; }
.h-caption { display: flex; gap: 4px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.55); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; }
.h-panel { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 10px; background: #18181c; border: 1px solid var(--line); font-size: 13px; }
.h-panel-name { font-weight: 700; }
.h-panel-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; font-size: 11px; text-align: center; }
.h-panel-tabs span { padding: 6px 2px; border-radius: 6px; background: #222228; color: var(--text-muted); }
.h-panel-tabs .is-on { background: var(--accent); color: #fff; }
.h-slider { height: 6px; border-radius: 3px; background: #222228; }
.h-slider i { display: block; height: 100%; border-radius: 3px; background: var(--accent-hover); }
.h-panel-btn { margin-top: auto; padding: 10px; border-radius: 8px; background: var(--accent); color: #fff; text-align: center; font-weight: 700; }
.h-timeline { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0 14px 18px; }
.h-figcap { margin-top: 14px; text-align: center; font-size: 0.88rem; color: var(--text-muted); }

/* Timeline tracks (shared by hero, silence demo and install step) */
.h-track { position: relative; display: flex; align-items: center; height: 30px; }
.h-track-a { height: 38px; }
.h-track-lg { height: 48px; }
.h-track-md { height: 40px; }
.h-track-sm { height: 14px; width: 100%; }
.h-clip { display: block; flex: 1 1 0; height: 100%; border-radius: 6px; background: #3b4fd8; }
.h-track-sm .h-clip { background: var(--success); border-radius: 3px; }
.h-wave {
    background: #12392b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 L3 5 L6 15 L9 3 L12 17 L15 8 L18 12 L21 4 L24 16 L27 7 L30 13 L33 2 L36 18 L39 6 L42 14 L45 9 L48 11 L51 4 L54 16 L57 7 L60 10' fill='none' stroke='%233ecf8e' stroke-width='1.3'/%3E%3C/svg%3E") repeat-x center / 60px 70%;
}
.h-gap {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 64px;
    height: 100%;
    margin: 0 3px;
    border-radius: 6px;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 4px, transparent 4px 9px);
    animation: h-collapse 6s cubic-bezier(0.7, 0, 0.2, 1) infinite;
}
.h-track-sm .h-gap { width: 40px; }
.h-static .h-gap { animation: none; }
@keyframes h-collapse {
    0%, 38% { width: 64px; margin: 0 3px; opacity: 1; }
    55%, 88% { width: 0; margin: 0; opacity: 0; }
    100% { width: 64px; margin: 0 3px; opacity: 1; }
}
.h-mark {
    position: absolute;
    top: -12px;
    left: calc(50% - 6px);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid var(--marker);
    animation: h-markin 6s ease infinite;
}
@keyframes h-markin {
    0%, 12% { opacity: 0; transform: translateY(-6px); }
    22%, 40% { opacity: 1; transform: none; }
    52%, 100% { opacity: 0; }
}
.h-playhead { position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); animation: h-play 6s linear infinite; }
@keyframes h-play { from { left: 0; } to { left: 100%; } }

/* Word highlighting */
.h-w3, .h-w6 { padding: 2px 8px; border-radius: 6px; }
.h-w3 { animation: h-hl3 3s linear infinite; }
.h-w6 { animation: h-hl6 6s linear infinite; }
@keyframes h-hl3 { 0%, 32% { background: var(--marker); color: #111; } 34%, 100% { background: transparent; color: #fff; } }
@keyframes h-hl6 { 0%, 16% { background: var(--marker); color: #111; } 17%, 100% { background: transparent; color: #fff; } }
.h-press { animation: h-press 6s ease infinite; }
@keyframes h-press {
    0%, 24% { transform: none; box-shadow: 0 0 0 0 rgba(61, 139, 255, 0.5); }
    28% { transform: scale(0.96); }
    34% { transform: none; box-shadow: 0 0 0 10px rgba(61, 139, 255, 0); }
}

/* At a glance */
.h-glance { padding: 80px 0; }
.h-glance .section-head { margin-bottom: 32px; }
.h-glance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.h-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.h-glance-grid .h-card { padding: 24px; }
.h-glance-grid h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.h-glance-grid p { font-size: 0.95rem; color: var(--text-muted); }

/* Features */
.h-feats { display: flex; flex-direction: column; gap: 104px; }
.h-feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.h-feat-rev .h-feat-media { order: -1; }
.h-feat-num { font-size: 0.85rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.h-feat h3 { margin: 8px 0 12px; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.h-feat-lead { font-size: 1.06rem; color: var(--text-muted); margin-bottom: 22px; }
.h-feat-note { font-size: 0.93rem; color: var(--text-muted); }
.h-numlist { display: grid; gap: 12px; }
.h-numlist li { display: flex; align-items: center; gap: 12px; }
.h-numlist span { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.h-dotlist { display: grid; gap: 10px; }
.h-dotlist li { position: relative; padding-inline-start: 18px; }
.h-dotlist li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--marker); }
.h-feat-media { margin: 0; }
.h-feat-media.h-card { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.h-ba-label { font-size: 0.82rem; color: var(--text-dim); margin-bottom: -4px; }
.h-legend { display: flex; gap: 18px; font-size: 0.82rem; color: var(--text-muted); }
.h-legend li { display: flex; align-items: center; gap: 6px; }
.h-key { width: 12px; height: 12px; border-radius: 3px; }
.h-key-speech { background: #12392b; border: 1px solid var(--success); }
.h-key-silence { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0 3px, transparent 3px 6px); }
.h-key-mark { width: 0; height: 0; border-radius: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--marker); }

.h-screen { position: relative; height: 180px; border-radius: 14px; background: linear-gradient(180deg, #1d2333, #12141b); overflow: hidden; }
.h-chunk {
    position: absolute;
    inset: auto 0 26px;
    display: flex;
    justify-content: center;
    gap: 4px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff;
    opacity: 0;
    animation: h-chunk 6s linear infinite;
}
@keyframes h-chunk { 0%, 32% { opacity: 1; transform: none; } 33.3%, 100% { opacity: 0; transform: translateY(6px); } }
.h-words-picker { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 0.88rem; color: var(--text-muted); }
.h-pills { display: flex; gap: 4px; }
.h-pills i { font-style: normal; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); }
.h-pills .is-on { background: var(--accent); color: #fff; }

.h-fx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.h-fx { height: 168px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; overflow: hidden; }
.h-fx-word { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; }
.h-fx-name { font-size: 0.82rem; color: var(--text-muted); direction: ltr; }
.h-fx-pop { animation: h-fxpop 2.4s cubic-bezier(0.2, 0.9, 0.3, 1.35) infinite; }
.h-fx-slide { animation: h-fxslide 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
.h-fx-zoom { animation: h-fxzoom 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
.h-fx-fade { animation: h-fxfade 2.4s ease infinite; }
@keyframes h-fxpop { 0% { opacity: 0; transform: scale(0.3); filter: blur(6px); } 22% { opacity: 1; transform: scale(1.1); filter: blur(0); } 32%, 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes h-fxslide { 0% { opacity: 0; transform: translateX(60px); filter: blur(5px); } 28%, 80% { opacity: 1; transform: none; filter: blur(0); } 100% { opacity: 0; } }
@keyframes h-fxzoom { 0% { opacity: 0; transform: scale(2.2); filter: blur(8px); } 30%, 80% { opacity: 1; transform: scale(1); filter: blur(0); } 100% { opacity: 0; } }
@keyframes h-fxfade { 0% { opacity: 0; } 35%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* Install steps */
.h-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.h-step { padding: 26px; }
.h-step h3 { margin-top: 20px; font-size: 1.12rem; font-weight: 700; }
.h-step p { margin-top: 6px; font-size: 0.95rem; color: var(--text-muted); }
.h-step-anim { height: 120px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; color: var(--accent-hover); }
.h-step-anim .h-panel-btn { margin: 0; padding: 8px 18px; font-size: 0.88rem; }
.h-drop { animation: h-drop 3s ease-in infinite; }
@keyframes h-drop { 0% { transform: translateY(-18px); opacity: 0; } 30% { opacity: 1; } 60%, 100% { transform: translateY(6px); opacity: 0; } }
.h-bar { width: 150px; height: 8px; border-radius: 4px; background: #222228; }
.h-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--accent); animation: h-fill 3s ease-in-out infinite; }
@keyframes h-fill { 0% { width: 0; } 70%, 100% { width: 100%; } }
.h-menu { flex-direction: row; flex-wrap: nowrap; gap: 4px; padding: 0 10px; }
.h-menu .h-chip { padding: 5px 8px; font-size: 0.78rem; white-space: nowrap; }
.h-chip { padding: 6px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); font-size: 0.85rem; animation: h-chip 3s steps(1, end) infinite; }
@keyframes h-chip { 0% { background: var(--accent); border-color: var(--accent); color: #fff; } 33.3%, 100% { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); } }
.h-sep { color: var(--text-dim); }
.h-more { margin-top: 28px; font-size: 0.95rem; }
.h-more a, .h-faq a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

/* Comparison */
.h-table-wrap { overflow-x: auto; }
.h-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.h-table th, .h-table td { padding: 18px 20px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.h-table thead th { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.h-table thead .is-us { color: var(--text); }
.h-table tbody th { font-weight: 500; }
.h-table td { color: var(--text-muted); }
.h-table td.is-us { color: var(--text); }
.h-table tbody tr:last-child > * { border-bottom: 0; }

/* Download */
.download-card { display: grid; grid-template-columns: 1.5fr 1fr; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface); overflow: hidden; }
.download-main { padding: 52px; }
.download-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.download-sub { margin-top: 12px; color: var(--text-muted); font-size: 1.08rem; }
.download-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.download-alt { display: inline-block; margin-top: 16px; font-size: 0.86rem; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.download-alt:hover { color: var(--text); }
.download-reqs { padding: 52px 40px; background: var(--bg-alt); border-inline-start: 1px solid var(--line); }
.download-reqs h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 18px; }
.download-reqs dl { display: grid; gap: 14px; margin: 0; }
.download-reqs dt { font-size: 0.8rem; color: var(--text-muted); }
.download-reqs dd { margin: 0; font-size: 0.95rem; }
.download-guide-link { display: inline-block; margin-top: 24px; color: var(--accent-hover); font-weight: 500; font-size: 0.93rem; }

/* FAQ */
.h-faq { border-top: 1px solid var(--line); }
.h-faq details { border-bottom: 1px solid var(--line); }
.h-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding: 20px 0; font-size: 1.05rem; font-weight: 500; cursor: pointer; list-style: none; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-plus { position: relative; flex: 0 0 auto; width: 14px; height: 14px; }
.h-plus::before, .h-plus::after { content: ""; position: absolute; top: 50%; left: 0; width: 14px; height: 1.5px; background: var(--text-muted); transition: transform 0.2s ease; }
.h-plus::after { transform: rotate(90deg); }
.h-faq details[open] .h-plus::after { transform: rotate(0deg); }
.h-faq details p { padding: 0 0 22px; padding-inline-end: 34px; color: var(--text-muted); }
.h-faq details strong { color: var(--text); font-weight: 500; }

/* Entrance + scroll reveal */
.site-header { border-bottom-color: transparent; transition: border-color 0.2s ease, background-color 0.2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.h-hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.h-hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.h-hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.h-hero-copy > :nth-child(n+4) { animation-delay: 0.18s; }
.h-window-wrap { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
/* Added by the scroll-reveal script, so content stays visible without JS */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.btn { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ---------- Feedback forms ---------- */
.suggest-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.com-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 28px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--line);
}
.com-tab-btn {
    height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
}
.com-tab-btn.active { background: var(--surface-2); color: var(--text); }

.pane-note { margin-bottom: 20px; color: var(--text-muted); font-size: 0.95rem; }

.suggest-form { display: grid; gap: 20px; }
.suggest-form .btn { justify-self: start; }
.suggest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: grid; gap: 8px; }
.form-label { font-size: 0.9rem; font-weight: 500; }
.req { color: var(--danger); }
.optional { color: var(--text-dim); font-weight: 400; }

.suggest-form input[type="text"],
.suggest-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--bg);
    font-size: 0.97rem;
    outline: none;
    transition: border-color 0.15s ease;
}
.suggest-form textarea { resize: vertical; min-height: 110px; }
.suggest-form input:focus, .suggest-form textarea:focus { border-color: var(--accent); }
::placeholder { color: var(--text-dim); }

.web-fb-type-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.web-fb-pill {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
}
.web-fb-pill input { position: absolute; opacity: 0; pointer-events: none; }
.web-fb-pill.active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

.suggest-status { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.93rem; }
.suggest-status.success { background: rgba(62, 207, 142, 0.1); color: var(--success); border: 1px solid rgba(62, 207, 142, 0.25); }
.suggest-status.error { background: rgba(242, 85, 90, 0.1); color: #ff8a8d; border: 1px solid rgba(242, 85, 90, 0.25); }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 12px; max-width: 280px; color: var(--text-muted); font-size: 0.9rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 0.85rem; font-weight: 500; color: var(--text-dim); margin-bottom: 4px; }
.footer-col a { font-size: 0.92rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--text-dim);
}
.footer-bottom a:hover { color: var(--text); }

/* ---------- Lead modal ---------- */
.lead-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.lead-modal-overlay.active { display: flex; }
.lead-modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 32px 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    animation: leadIn 0.2s ease-out;
}
@keyframes leadIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lead-modal-close-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.lead-modal-close-btn:hover { background: var(--surface-2); color: var(--text); }
.lead-modal-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.lead-modal-subtitle { margin-top: 6px; color: var(--text-muted); font-size: 0.95rem; }
.lead-modal-subtitle strong { color: var(--text); font-weight: 500; }
.lead-target-badge {
    display: inline-flex;
    margin-top: 16px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--surface-2);
    font-size: 0.82rem;
    color: var(--text-muted);
}
#leadTargetIcon { display: none; }
.lead-form-group { margin: 20px 0 16px; }
.lead-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--bg);
    font-size: 1rem;
    text-align: left;
    outline: none;
    transition: border-color 0.15s ease;
}
.lead-input:focus { border-color: var(--accent); }
.lead-input.is-invalid { border-color: var(--danger); }
.lead-input.is-valid { border-color: var(--success); }
.lead-error-msg { display: none; margin-top: 8px; font-size: 0.85rem; color: #ff8a8d; }
.lead-suggestion-box { display: none; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 8px; font-size: 0.85rem; color: var(--text-muted); }
#leadSuccessView { display: none; }
.btn-fix-email {
    border: 0;
    background: none;
    padding: 0 4px;
    color: var(--accent-hover);
    text-decoration: underline;
    cursor: pointer;
    direction: ltr;
}
.lead-consent-label { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; }
.lead-consent-label input { width: 16px; height: 16px; accent-color: var(--accent); }
.lead-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
}
.lead-btn-submit:hover { background: var(--accent-hover); }
.lead-btn-submit:disabled { opacity: 0.7; cursor: default; }
.lead-btn-submit svg { width: 16px; height: 16px; transform: scaleX(-1); }
.lead-btn-ghost { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); }
.lead-btn-ghost:hover { background: #232327; }
.lead-footer-note { margin-top: 14px; text-align: center; font-size: 0.8rem; color: var(--text-dim); }
.lead-manual, .lead-next { margin-top: 14px; font-size: 0.9rem; color: var(--text-muted); }
.lead-manual a, .lead-next a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.lead-next { margin-bottom: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.download-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 1100;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    font-size: 0.93rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.download-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Guide lightbox (shared markup, rarely used here) ---------- */
.guide-modal-overlay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.8); }
.guide-modal-overlay.active { display: flex; }
.guide-modal-box { max-width: 960px; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); }
.guide-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }
.guide-modal-caption { font-size: 0.9rem; color: var(--text-muted); }
.guide-modal-close { border: 0; background: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; }
.guide-modal-close:hover { color: var(--text); }
.guide-modal-img { width: 100%; height: auto; max-height: calc(100vh - 120px); object-fit: contain; background: #000; }

/* ---------- Inner pages (install guide, terms) ---------- */
.page { padding: 48px 0 112px; }
.container-doc { max-width: 880px; }

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.15s ease;
}
.btn-back-home:hover { color: var(--text); }

.page-head { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.page-title {
    font-size: clamp(2rem, 4.4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.page-sub { margin-top: 14px; max-width: 620px; font-size: 1.08rem; color: var(--text-muted); }
.text-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--accent-hover); }

/* Guide: OS tabs */
.guide-os-switcher {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    margin-bottom: 32px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
}
.guide-os-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.93rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.guide-os-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.guide-os-btn:hover { color: var(--text); }
.guide-os-btn.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Only the Windows pane shows before the tab script runs */
.guide-content-section { display: none; }
#guideWin { display: block; }

/* Guide: download bar */
.guide-dl-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 20px 24px;
    margin-bottom: 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
}
.guide-dl-info { display: flex; align-items: center; gap: 14px; }
.guide-dl-icon { flex-shrink: 0; color: var(--text-muted); }
.guide-dl-text strong { display: block; font-size: 1rem; font-weight: 700; }
.guide-dl-text span { font-size: 0.88rem; color: var(--text-muted); }

/* Guide: steps */
.guide-steps { display: grid; gap: 12px; }
.guide-step-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.step-header { display: flex; align-items: center; gap: 14px; }
.step-badge-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.step-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.step-body { margin-top: 12px; padding-inline-start: 44px; color: var(--text-muted); font-size: 0.98rem; line-height: 1.7; }
.step-body p + p { margin-top: 10px; }
.step-body strong { color: var(--text); font-weight: 500; }
.step-body code {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86em;
    direction: ltr;
    unicode-bidi: isolate;
}

/* Guide: screenshots */
.guide-shots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.guide-shot-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg-alt);
    text-align: start;
    cursor: zoom-in;
    transition: border-color 0.15s ease;
}
.guide-shot-card:hover { border-color: rgba(255, 255, 255, 0.26); }
.guide-shot-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
}
.mini-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.guide-shot-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    padding: 12px;
    overflow: hidden;
    background: #0e0e10;
}
.guide-shot-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.guide-shot-preview.win-bg { padding: 0; background: #0078d7; }
.guide-shot-preview.win-bg img { width: 100%; height: 100%; object-fit: cover; }
.guide-zoom-badge {
    position: absolute;
    bottom: 8px;
    inset-inline-start: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    background: rgba(11, 11, 12, 0.85);
    font-size: 0.72rem;
    color: var(--text);
}
.guide-shot-desc { display: block; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 0.88rem; line-height: 1.55; color: var(--text-muted); }
.guide-shot-desc strong { color: var(--text); font-weight: 500; }
.highlight-action { color: var(--text); font-weight: 500; }

/* Callouts */
.guide-callout,
.highlight-notice {
    margin-top: 20px;
    padding: 14px 18px;
    border-inline-start: 2px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface);
    font-size: 0.94rem;
    line-height: 1.65;
    color: #cfcfd4;
}
[dir="rtl"] .guide-callout,
[dir="rtl"] .highlight-notice { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.guide-callout strong, .highlight-notice strong { color: var(--text); font-weight: 500; }
.guide-callout-lead { margin: 0 0 16px; }

/* Guide: help footer */
.guide-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.guide-help p { color: var(--text-muted); }
.guide-help-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Terms */
.terms-meta { margin-top: 12px; font-size: 0.88rem; color: var(--text-dim); }
.terms-section + .terms-section { margin-top: 44px; }
.terms-section h3 { margin-bottom: 12px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.terms-section p { color: var(--text-muted); line-height: 1.8; }
.terms-section p + p, .terms-section .highlight-notice + p { margin-top: 12px; }
.terms-section .highlight-notice { margin: 0 0 14px; }
.terms-section strong { color: var(--text); font-weight: 500; }
.terms-section ul { display: grid; gap: 10px; margin-top: 14px; }
.terms-section li { position: relative; padding-inline-start: 18px; color: var(--text-muted); line-height: 1.75; }
.terms-section li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.75em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-dim);
}

/* ---------- Phone visitors (emailed download link) ---------- */
.phone-note { display: none; }
.is-phone .phone-note { display: block; margin-top: 14px; font-size: 0.9rem; color: var(--text-muted); }
.is-phone #btnHeroDownloadMac,
.is-phone #btnCardDownloadMac,
.is-phone .download-alt,
.is-phone .os-pill-badge,
.is-phone #leadTargetBadge,
.is-phone .lead-manual { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .header-inner { justify-content: space-between; }
    .download-card { grid-template-columns: 1fr; }
    .download-reqs { border-inline-start: 0; border-top: 1px solid var(--line); padding: 32px; }
    .h-hero-grid, .h-feat { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .h-feat-rev .h-feat-media { order: 0; }
    .h-glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .h-steps { grid-template-columns: minmax(0, 1fr); }
    .h-feats { gap: 80px; }
    .footer-top { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    :root { --gutter: 16px; }
    .section { padding: 72px 0; }
    .section-tight { padding: 24px 0 72px; }
    .section-head { margin-bottom: 36px; }
    .hero-cta .btn { flex: 1 1 100%; }
    .h-hero { padding: 48px 0 64px; }
    .h-glance-grid { grid-template-columns: minmax(0, 1fr); }
    .h-window-body { grid-template-columns: minmax(0, 1fr); }
    .h-panel { display: none; }
    .h-monitor { height: 160px; }
    .h-feat-media.h-card { padding: 22px; }
    .h-fx { height: 130px; }
    .h-fx-word { font-size: 1.5rem; }
    .h-chunk { font-size: 1.4rem; }
    .download-reqs { padding: 24px 20px; }
    .h-table { min-width: 0; }
    .h-table thead { display: none; }
    .h-table tr { display: block; padding: 16px 18px; border-bottom: 1px solid var(--line); }
    .h-table tbody tr:last-child { border-bottom: 0; }
    .h-table th, .h-table td { display: block; padding: 0; border: 0; }
    .h-table tbody th { margin-bottom: 8px; font-weight: 700; }
    .h-table td { display: flex; gap: 8px; font-size: 0.93rem; }
    .h-table td + td { margin-top: 4px; }
    .h-table td::before { content: attr(data-label) ":"; flex: 0 0 auto; color: var(--text-dim); }
    .download-main { padding: 28px 20px; }
    .download-buttons .btn { flex: 1 1 100%; }
    .suggest-card { padding: 20px; }
    .suggest-grid { grid-template-columns: 1fr; }
    .suggest-form .btn { justify-self: stretch; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .page { padding: 28px 0 72px; }
    .btn-back-home { margin-bottom: 28px; }
    .page-head { padding-bottom: 24px; margin-bottom: 28px; }
    .guide-os-switcher { grid-template-columns: 1fr; }
    .guide-dl-bar { padding: 18px; }
    .guide-dl-bar .btn { flex: 1 1 100%; }
    .guide-step-card { padding: 20px; }
    .step-body { padding-inline-start: 0; }
    .guide-shots-grid { grid-template-columns: 1fr; }
    .guide-help { flex-direction: column; align-items: stretch; text-align: center; }
    .guide-help-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .h-chunk:first-child { opacity: 1; }
}

/* ---------- Interactive layer (js/fx.js) ---------- */
.fx-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 2px; pointer-events: none; }
.fx-progress i { display: block; height: 100%; transform-origin: right; transform: scaleX(0); background: linear-gradient(270deg, var(--accent), #8db8ff 60%, var(--marker)); box-shadow: 0 0 10px rgba(47, 124, 246, 0.6); }

/* Hero backdrop: drifting glows + a grid lit around the cursor */
.h-hero { position: relative; overflow: hidden; isolation: isolate; }
.fx-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; --mx: 70%; --my: 30%; }
.fx-blob { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: 0.35; }
.fx-blob-a { top: -180px; left: -120px; background: var(--accent); animation: fx-drift 18s ease-in-out infinite alternate; }
.fx-blob-b { bottom: -260px; right: 8%; background: #7c5cff; opacity: 0.22; animation: fx-drift 22s ease-in-out -6s infinite alternate-reverse; }
@keyframes fx-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(120px, 60px) scale(1.15); } }
.fx-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(360px circle at var(--mx) var(--my), #000, transparent 70%);
    mask-image: radial-gradient(360px circle at var(--mx) var(--my), #000, transparent 70%);
}

/* 3D tilt on the hero window */
.h-window-wrap { perspective: 1200px; }
.h-window { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease; transform-style: preserve-3d; }
.h-window.is-tilting { transition: transform 0.08s linear; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(47, 124, 246, 0.18); }

/* Cursor spotlight on cards */
.h-card, .download-card, .suggest-card { position: relative; }
.h-card::after, .download-card::after, .suggest-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(141, 184, 255, 0.09), transparent 45%);
    opacity: 0; transition: opacity 0.3s ease;
}
.h-card::before, .download-card::before, .suggest-card::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(141, 184, 255, 0.55), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.3s ease;
}
.h-card:hover::before, .h-card:hover::after,
.download-card:hover::before, .download-card:hover::after,
.suggest-card:hover::before, .suggest-card:hover::after { opacity: 1; }
.h-glance-grid .h-card, .h-step { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s ease; }
.h-glance-grid .h-card.is-visible:hover, .h-step.is-visible:hover { transform: translateY(-4px); }

/* Buttons: magnetic pull + shine sweep */
.btn-lg { transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); }
.btn-lg:hover { transform: translate3d(var(--tx, 0px), calc(var(--ty, 0px) - 1px), 0); }
.btn-primary { overflow: hidden; }
.btn-primary::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
    transform: translateX(-120%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform 0.7s ease; }
.btn-primary { box-shadow: 0 0 0 0 rgba(47, 124, 246, 0); transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.3s ease; }
.btn-primary:hover { box-shadow: 0 8px 28px rgba(47, 124, 246, 0.4); }

/* Nav: active section */
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.25s ease; }
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after, .nav-links a:hover::after { transform: scaleX(1); }

/* Live caption demo (words-per-caption picker) */
.h-pills button { padding: 4px 10px; border: 0; border-radius: 6px; background: var(--surface-2); color: var(--text-muted); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.h-pills button:hover { color: var(--text); transform: translateY(-1px); }
.h-pills button.is-on { background: var(--accent); color: #fff; }
.h-pills i { background: none; padding: 4px 2px; color: var(--text-dim); }
.h-screen.is-live .h-chunk { animation: none; opacity: 1; flex-wrap: wrap; padding: 0 16px; line-height: 1.35; }
.h-screen.is-live .h-chunk.is-entering { animation: fx-chunk-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.h-screen.is-live .h-w6 { animation: none; transition: background-color 0.12s ease, color 0.12s ease; }
.h-screen.is-live .h-w6.is-said { background: var(--marker); color: #111; }
@keyframes fx-chunk-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
.h-screen.is-live.is-long .h-chunk { font-size: 1.25rem; }

/* Text-animation playground */
.fx-try { display: block; margin-top: 16px; }
.fx-try input {
    width: 100%; max-width: 320px; padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong); background: var(--surface); outline: none; font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fx-try input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.h-fx { cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease; }
.h-fx:hover { border-color: var(--line-strong); }
.h-fx:active { transform: scale(0.98); }
.h-fx-word { max-width: 100%; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* FAQ open/close */
.h-faq summary { transition: color 0.15s ease; }
.h-faq summary:hover { color: #fff; }
.h-faq summary:hover .h-plus::before, .h-faq summary:hover .h-plus::after { background: var(--text); }
.h-faq details[open] .h-plus::before { background: var(--accent-hover); }

/* Confetti when a download starts */
.fx-confetti { position: fixed; inset: 0; z-index: 1200; pointer-events: none; }

@media (hover: none) {
    .h-card::before, .h-card::after, .download-card::before, .download-card::after, .suggest-card::before, .suggest-card::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .fx-blob, .fx-grid { display: none; }
    .h-window { transform: none; }
}

/* ---------- Logo presence ---------- */
.hero-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; direction: ltr; justify-content: flex-end; }
.hero-logo img { width: 72px; height: 72px; filter: drop-shadow(0 10px 24px rgba(37, 99, 235, 0.45)); animation: logo-float 5s ease-in-out infinite; }
.hero-logo span { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.02em; }
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.h-panel-name { display: flex; align-items: center; gap: 6px; direction: ltr; }
.h-panel-name img { width: 18px; height: 18px; }
.download-card { position: relative; }
.download-watermark { position: absolute; inset-inline-start: -30px; bottom: -60px; width: 300px; height: 300px; opacity: 0.12; pointer-events: none; transform: rotate(8deg); }
.download-main, .download-reqs { position: relative; z-index: 1; }
.site-footer { position: relative; overflow: hidden; }
.footer-watermark { position: absolute; inset-inline-end: -30px; bottom: -80px; width: 320px; height: 320px; opacity: 0.08; pointer-events: none; }
.site-footer > .container { position: relative; z-index: 1; }
.footer-brand .brand img { width: 52px; height: 52px; }
@media (max-width: 880px) { .hero-logo { justify-content: flex-start; } .hero-logo img { width: 56px; height: 56px; } .download-watermark, .footer-watermark { width: 200px; height: 200px; } }
@media (prefers-reduced-motion: reduce) { .hero-logo img { animation: none; } }

a[data-href]{cursor:pointer;-webkit-user-drag:none;user-select:none}
