/* The landing page (index.html). The header and footer come from site.css. */
@font-face { font-family: 'ProggyClean'; src: url('../assets/fonts/ProggyClean.ttf') format('truetype'); font-display: swap; }

.home {
  --display: 'Bahnschrift', 'DIN Alternate', 'DIN Next', 'Barlow', 'Inter', sans-serif;
  --paper: #f7f5ee;
  --paper-ink: #1d1f24;
  --paper-line: #d7e0ee;
}
.home h1, .home h2, .home h3 { font-family: var(--display); font-weight: 650; font-stretch: 92%; letter-spacing: -.01em; }
.home .kbd { font-family: 'ProggyClean', var(--mono); font-size: 16px; height: 22px; padding: 0 6px; }

/* ---- hero */
.h-hero { padding: 56px 0 0; }
.h-hero-text { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; }
.h-hero h1 { font-size: clamp(40px, 5.4vw, 74px); line-height: 1; }
.h-hero-text p { font-size: 17.5px; line-height: 1.6; color: var(--text-2); }
/* the live window, on the page itself: nothing behind Kavro Bot */
.h-stage { position: relative; width: min(100% - 40px, 1240px); margin: 40px auto 0; padding-top: 150px; }
.h-stage .demo-stage { position: relative; display: grid; justify-items: center; min-height: 0; padding: 0; background: none; overflow: visible; }
.h-stage canvas { display: block; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -30px rgba(0, 0, 0, .9); outline: none; }
.h-stage .kbot-perch { left: calc(50% - 300px); top: -150px; }
.h-stage .kbot canvas { filter: none; box-shadow: none; border-radius: 0; }
.h-stage .demo-hint { bottom: 14px; }
.h-stage-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; padding-top: 22px; color: var(--muted); font-size: 14px; }
.h-stage-bar .h-note { width: 100%; text-align: center; }
.h-stage .demo-tabs { display: flex; gap: 18px; margin: 0; padding: 0; border: 0; background: none; }
.h-stage .demo-tabs button { height: auto; padding: 4px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--text-2); font-size: 14.5px; }
.h-stage .demo-tabs button:hover { color: var(--text); }
.h-stage .demo-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.h-stage .themes button { width: 18px; height: 18px; }
.h-stage #demo-restart { height: auto; padding: 4px 0; border: 0; background: none; color: var(--text-2); font-size: 14.5px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-3); }
.h-stage #demo-restart:hover { color: var(--text); }
@media (max-width: 900px) { .h-hero-text { grid-template-columns: 1fr; } .h-stage { padding-top: 120px; } .h-stage .kbot-perch { left: 16px; top: -120px; } }

.h-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.h-small { margin-top: 14px; font-size: 13.5px !important; color: var(--muted) !important; }

/* ---- sections */
.h-sec { padding: 120px 0 0; }
.h-head { max-width: 720px; margin-bottom: 32px; }
.h-head h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; }
.h-head p { margin-top: 12px; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.h-link { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.h-sub { margin-top: 64px; font-size: 26px; }
.h-sub-text { margin-top: 6px; color: var(--text-2); }
@media (max-width: 860px) { .h-sec { padding-top: 88px; } }

/* default ImGui vs Kavro */
.h-compare { position: relative; width: min(100%, 980px); margin: 0 auto; aspect-ratio: 820 / 520; border-radius: 12px; overflow: hidden; background: #0d0d10; user-select: none; touch-action: pan-y; }
.h-compare canvas { position: absolute; left: 0; top: 0; max-width: none; }
.h-compare-a { width: 100%; height: 100%; }
.h-compare-a { image-rendering: pixelated; }
.h-compare-b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut, 50%)); }
.h-compare-line { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.h-compare-line span { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.h-compare-line span::before { content: '‹ ›'; position: absolute; inset: 0; display: grid; place-items: center; color: #111; font: 700 16px/1 var(--font); letter-spacing: 2px; }
.h-compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.h-compare-range:focus-visible + .h-tag, .h-compare:has(.h-compare-range:focus-visible) .h-compare-line span { outline: 3px solid var(--accent); }
.h-tag { position: absolute; bottom: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 13px; pointer-events: none; }
.h-tag.left { left: 12px; font-family: 'ProggyClean', var(--mono); font-size: 16px; } .h-tag.right { right: 12px; }

/* editor footage */
.h-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 48px; align-items: center; }
.h-split.reverse { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.h-split h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; }
.h-split-text p { margin-top: 16px; color: var(--text-2); font-size: 16.5px; line-height: 1.65; }
.h-video { margin: 0; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.h-video video { display: block; width: 100%; height: auto; }
.h-shots { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin-top: 56px; align-items: start; }
.h-shots figure { margin: 0; }
.h-shots figure:nth-child(2) { margin-top: 64px; }
.h-shots img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); }
.h-shots figcaption, .h-sketch figcaption { margin-top: 12px; font-size: 14px; color: var(--text-2); max-width: 440px; }
@media (max-width: 960px) { .h-split, .h-split.reverse { grid-template-columns: 1fr; gap: 28px; } .h-split.reverse .h-video { order: 2; } .h-shots { grid-template-columns: 1fr; } .h-shots figure:nth-child(2) { margin-top: 0; } }

/* every widget */
.h-wall { display: grid; justify-items: center; }
.h-wall canvas { display: block; outline: none; border-radius: 12px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); }
.h-wall-bar { display: flex; align-items: center; gap: 12px; padding: 18px 0 0; color: var(--text-2); font-size: 14px; }
.h-wall .themes button { width: 22px; height: 22px; }
/* backgrounds: a list on the left, one window on the right */
.h-bg { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 96px; }
.h-bg h3 { font-size: 26px; }
.h-bg p { margin-top: 8px; color: var(--text-2); }
.h-bg-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.h-bg-list button { height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--text-2); font-size: 13.5px; }
.h-bg-list button:hover { color: var(--text); border-color: var(--line-3); }
.h-bg-list button[aria-checked="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }
.h-bg-view { display: grid; place-items: center; min-height: 300px; }
.h-bg-view canvas { display: block; border-radius: 12px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); outline: none; }
@media (max-width: 900px) { .h-bg { grid-template-columns: 1fr; gap: 20px; } }

/* custom widgets */
.h-dark { margin-top: 120px; padding: 96px 0; background: #050608; border-block: 1px solid var(--line); }
.h-dark + .h-paper { margin-top: 0; }

/* AI: on paper, like the sketch */
.h-paper { margin-top: 120px; padding: 96px 0 104px; color: var(--paper-ink); background-color: var(--paper); background-image: linear-gradient(transparent 31px, var(--paper-line) 32px); background-size: 100% 32px; }
.h-paper .h-head p, .h-paper p { color: #474b55; }
.h-paper h2 { color: var(--paper-ink); }
.h-sketch { display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr); gap: 28px; align-items: center; }
.h-sketch figure { margin: 0; }
.h-sketch figure:first-child img { transform: rotate(-1.4deg); box-shadow: 0 18px 40px -18px rgba(30, 30, 40, .45); border-radius: 4px; }
.h-sketch figure:last-child img { border-radius: 10px; box-shadow: 0 24px 50px -20px rgba(10, 12, 20, .6); }
.h-sketch img { width: 100%; height: auto; display: block; }
.h-sketch figcaption { color: #474b55; font-family: 'Ink Free', 'Segoe Print', 'Bradley Hand', cursive; font-size: 18px; }
.h-arrow { font: 400 54px/1 'Ink Free', 'Segoe Print', cursive; color: #3c5bd8; }
.h-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; margin-top: 56px; font-size: 16.5px; line-height: 1.65; }
@media (max-width: 860px) { .h-sketch { grid-template-columns: 1fr; } .h-arrow { transform: rotate(90deg); justify-self: center; } .h-cols { grid-template-columns: 1fr; } }

/* the code */
.h-code { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.h-langs { display: flex; flex-direction: column; gap: 4px; }
.h-langs .lang { display: block; padding: 12px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); text-align: left; font: 600 18px var(--display); }
.h-langs .lang small { display: block; margin-top: 2px; font: 400 13px var(--font); color: var(--muted); }
.h-langs .lang:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.h-langs .lang.on { background: var(--surface-2); color: var(--text); }
.home .codebox { border-radius: 12px; }
.home .codebox-head { font-family: 'ProggyClean', var(--mono); font-size: 16px; }
@media (max-width: 860px) { .h-code { grid-template-columns: 1fr; } .h-langs { flex-direction: row; overflow-x: auto; } .h-langs .lang small { display: none; } }

/* price */
.h-price { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.h-plan { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px 40px 36px 0; }
.h-plan + .h-plan { padding: 32px 0 36px 40px; border-left: 1px solid var(--line-2); }
.h-plan h3 { font-size: 26px; }
.h-plan .price { display: flex; align-items: baseline; gap: 8px; }
.h-plan .price b { font: 650 52px/1 var(--display); letter-spacing: -.02em; }
.h-plan .price span { color: var(--muted); }
.h-plan p { color: var(--text-2); font-size: 15.5px; line-height: 1.65; max-width: 520px; }
.h-plan .bill-toggle { margin: 0; }
.h-plan .bill-note { margin: -8px 0 0; min-height: 0; font-size: 13px; color: var(--muted); }
.h-plan .btn { margin-top: auto; }
@media (max-width: 760px) { .h-price { grid-template-columns: 1fr; } .h-plan, .h-plan + .h-plan { padding: 28px 0; border-left: 0; } .h-plan + .h-plan { border-top: 1px solid var(--line-2); } }

/* questions */
.h-faq { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.h-faq-head { position: sticky; top: 100px; }
.h-faq-head h2 { font-size: clamp(28px, 3.2vw, 42px); }
.h-faq-head p { margin-top: 12px; color: var(--text-2); line-height: 1.6; }
.h-faq-list { border-top: 1px solid var(--line-2); }
.h-faq-list details { border-bottom: 1px solid var(--line-2); }
.h-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 2px; cursor: pointer; list-style: none; font-size: 16.5px; font-weight: 550; }
.h-faq-list summary::-webkit-details-marker { display: none; }
.h-faq-list summary::after { content: '+'; flex: none; width: 24px; text-align: center; color: var(--muted); font: 400 24px/1 var(--font); }
.h-faq-list details[open] summary::after { content: '−'; }
.h-faq-list summary:hover { color: var(--text); } .h-faq-list summary:hover::after { color: var(--text); }
.h-faq-list p { margin: -4px 0 0; padding: 0 44px 20px 2px; color: var(--text-2); font-size: 15.5px; line-height: 1.65; }
@media (max-width: 860px) { .h-faq { grid-template-columns: 1fr; } .h-faq-head { position: static; } }

/* end */
.h-end { margin: 120px 0 96px; border-top: 1px solid var(--line); }
.h-end-in { display: flex; align-items: center; gap: 40px; padding-top: 56px; }
.h-end .kbot-cta { position: relative; flex: none; width: 170px; height: 200px; margin: 0; }
.h-end h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.06; }
.h-end p { margin-top: 12px; font-size: 17px; color: var(--text-2); }
@media (max-width: 760px) { .h-end-in { flex-direction: column; align-items: flex-start; gap: 0; } }
@media (prefers-reduced-motion: reduce) { .h-video video { display: none; } .h-video { background: center / cover no-repeat; } }
