/* Public home page. Uses the color tokens from app.css, so light and dark mode follow the visitor's setting. */
.home { background: var(--surface); }
.home h1, .home h2, .home h3 { letter-spacing: -.02em; color: var(--text); }
.home h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
.home h3 { font-size: 1.5rem; font-weight: 700; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: .85rem; letter-spacing: .02em; margin-bottom: .5rem; }
.lead-sub { color: var(--text-2); font-size: 1.1rem; max-width: 620px; margin: .5rem auto 0; }

.home-nav { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); padding: 10px 0; }
.home-links { gap: 22px; margin-left: 18px; }
.home-links a { color: var(--text-2); text-decoration: none; font-size: .92rem; font-weight: 500; }
.home-links a:hover { color: var(--text); }

.hero { padding: 64px 0 56px; background: radial-gradient(1100px 500px at 85% -10%, var(--brand-soft), transparent 70%), var(--surface); overflow: hidden; }
.hero-title { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.07; letter-spacing: -.03em; }
.hero-sub { color: var(--text-2); font-size: 1.15rem; margin-top: 1.1rem; max-width: 560px; }
.hero-note { color: var(--text-3); font-size: .88rem; margin-top: .9rem; }
.hero-shots { position: relative; padding-bottom: 40px; }
.frame { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 24px 60px -20px rgba(16, 24, 40, .28), 0 2px 6px rgba(16, 24, 40, .06); }
.frame img { display: block; width: 100%; height: auto; }
.frame-phone { position: absolute; right: -6px; bottom: 0; width: 26%; border-radius: 20px; border: 5px solid #1a1d23; }

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.strip p { margin: 0; padding: 18px 0; text-align: center; color: var(--text-2); }
.strip b { color: var(--text); }

.section { padding: 80px 0; }
.section-alt { background: var(--bg); }
.section-head { margin-bottom: 40px; }

.video-frame { border-radius: 16px; overflow: hidden; background: #0b1220; box-shadow: 0 30px 70px -25px rgba(16, 24, 40, .45); aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; background: #0b1220; }
.video-soon { height: 100%; display: grid; place-content: center; justify-items: center; color: #cbd5e1; gap: 10px; }
.chapters { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px; height: 100%; }
.chapters h3 { font-size: 1rem; margin-bottom: 10px; }
.chapters ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.chapters button { width: 100%; display: flex; gap: 12px; align-items: baseline; text-align: left; background: none; border: 0; border-radius: 8px; padding: 7px 8px; color: var(--text); font-size: .92rem; }
.chapters button:hover { background: var(--surface-2); }
.chapters button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.chapters .t { color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 2.6em; font-size: .85rem; }

.ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex: none; }
.ico-lg { width: 56px; height: 56px; border-radius: 16px; }
.track-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.track { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.track b { display: block; margin-bottom: 2px; }
.track p { margin: 0; color: var(--text-2); font-size: .92rem; }

.feature { margin-bottom: 72px; }
.feature h3 { margin-bottom: .6rem; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--good-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230a7a34' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }

.more-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.more { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--surface); }
.more .ico { width: 38px; height: 38px; margin-bottom: 10px; }
.more b { display: block; margin-bottom: 4px; }
.more p { margin: 0; color: var(--text-2); font-size: .88rem; }
.more.soon { background: var(--bg); border-style: dashed; }
.badge-soon { display: inline-block; font-size: .68rem; font-weight: 600; color: var(--text-2); background: var(--surface-2); border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }

.how-steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.how-steps .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.how-steps b { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.how-steps p { margin: 0; color: var(--text-2); }
.snippet-demo { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 16px 18px; max-width: 760px; margin: 0 auto; overflow-x: auto; }
.snippet-demo code { background: none; color: inherit; padding: 0; white-space: nowrap; font-size: .86rem; }

.faq-wrap { max-width: 760px; }
.faq { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--text-2); margin: 10px 0 0; }

.cta { background: radial-gradient(800px 300px at 50% 0%, var(--brand-soft), transparent 75%), var(--surface); }
.home-foot { border-top: 1px solid var(--line); padding: 28px 0; background: var(--surface); }
.home-foot a { color: var(--text-2); text-decoration: none; }
.home-foot a:hover { color: var(--text); }

@media (max-width: 991.98px) {
  .track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { margin-bottom: 56px; }
}
@media (max-width: 767.98px) {
  .hero { padding: 40px 0 36px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .track-grid, .how-steps, .ticks-2 { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .hero-shots { padding-bottom: 0; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .frame { box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); }
  :root:not([data-theme="light"]) .frame-phone { border-color: #3a3f4b; }
}
