/* Public pages: home, login, register. */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; text-decoration: none !important; }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.hero { padding: 72px 0 40px; background: radial-gradient(900px 380px at 50% -80px, var(--accent-soft), transparent 70%); }
.hero-in { text-align: center; }
.pill-tag { display: inline-block; padding: 5px 13px; border: 1px solid var(--line-2); border-radius: 99px; font-size: .84rem; color: var(--muted); background: var(--raise); }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); margin: 22px auto 18px; max-width: 18ch; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { max-width: 60ch; margin: 0 auto 28px; font-size: 1.12rem; color: var(--muted); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Product mock */
.mock { margin: 52px auto 0; max-width: 940px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--side); box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-bar b { margin-left: 12px; color: var(--text); font-weight: 500; }
.mock { overflow-x: auto; }
.mock table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .92rem; }
.mock th { text-align: left; font-weight: 500; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: .82rem; }
.mock td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.mock tfoot td { color: var(--muted); border-bottom: 0; font-weight: 500; }
.mock .r { text-align: right; font-variant-numeric: tabular-nums; }
.mock i { display: block; font-style: normal; text-align: center; color: #fff; padding: 4px 10px; border-radius: 6px; font-size: .84rem; font-weight: 500; min-width: 84px; }
.mock .tint-red td { background: rgba(226, 68, 92, .10); }
.chip-red, .chip-orange { padding: 3px 9px; border-radius: 6px; font-weight: 500; }
.chip-red { background: rgba(226, 68, 92, .2); color: #ff8da0; }
.chip-orange { background: rgba(253, 171, 61, .2); color: #fdab3d; }
:root[data-theme="light"] .chip-red { color: #b3182f; }
:root[data-theme="light"] .chip-orange { color: #b06d00; }

.section { padding: 80px 0; }
.section.alt { background: var(--side); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 26ch; margin-bottom: 36px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--raise); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card .ic { color: var(--accent); margin-bottom: 14px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps b { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }

.cta { text-align: center; }
.cta h2 { margin-inline: auto; margin-bottom: 12px; }

.foot { border-top: 1px solid var(--line); padding: 26px 0; }
.foot-in { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: space-between; font-size: .9rem; }

/* Login / register */
.auth-page { min-height: calc(100vh - 66px - 80px); display: grid; place-items: center; padding: 40px 16px; background: radial-gradient(700px 320px at 50% 0, var(--accent-soft), transparent 70%); }
.auth-card { width: min(420px, 100%); background: var(--raise); border: 1px solid var(--line-2); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card .form { margin-top: 18px; }
.auth-alt { text-align: center; margin: 18px 0 0; font-size: .92rem; }

@media (max-width: 860px) {
    .grid3, .steps { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero { padding-top: 48px; }
    .section { padding: 56px 0; }
}

/* Guide */
.docs { padding: 48px 0 80px; }
.docs-in { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs-toc { position: sticky; top: 90px; display: grid; gap: 2px; font-size: 14px; }
.docs-toc strong { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; font-weight: 500; }
.docs-toc a { color: var(--muted); padding: 5px 0 5px 12px; border-left: 1px solid var(--line-2); font-weight: 400; }
.docs-toc a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.docs-body { max-width: 760px; }
.docs-body h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.lead-sm { color: var(--muted); font-size: 1.05rem; font-weight: 300; margin-bottom: 8px; }
.docs-body section { padding-top: 38px; scroll-margin-top: 84px; }
.docs-body h2 { font-size: 1.5rem; margin-bottom: 12px; }
.docs-body p, .docs-body li { color: var(--body); }
.docs-body ul { padding-left: 20px; margin: 0 0 1em; display: grid; gap: 6px; }
.docs-body b { color: var(--strong); font-weight: 500; }
.shot { margin: 18px 0 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 13.5px; font-weight: 300; }
.shot.phone img { max-width: 300px; }
@media (max-width: 860px) {
    .docs-in { grid-template-columns: 1fr; gap: 12px; }
    .docs-toc { display: none; }
}

/* ---------- Home page sections ---------- */
.hm-hero { padding-bottom: 20px; }
.hm-window { margin: 48px auto 0; max-width: 1080px; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--side); box-shadow: var(--shadow); }
.hm-chrome { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--raise); }
.hm-dots { display: inline-flex; gap: 7px; flex: none; }
.hm-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); display: block; }
.hm-dots i:nth-child(1) { background: #ff5f57; } .hm-dots i:nth-child(2) { background: #febc2e; } .hm-dots i:nth-child(3) { background: #28c840; }
.hm-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.hm-tab { border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.hm-tab:hover { color: var(--strong); }
.hm-tab.on { background: var(--accent); color: #fff; }
.hm-stage { position: relative; aspect-ratio: 16 / 9; background: var(--bg); }
.hm-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .6s ease; }
.hm-slide.on { opacity: 1; }
.hm-note { text-align: center; font-size: 13px; margin: 14px 0 0; font-weight: 300; }

.hm-steps { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: start; }
.hm-steplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hm-step { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); cursor: pointer; transition: border-color .2s, background .2s; }
.hm-step b { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.hm-step h3 { font-size: 1.08rem; margin-bottom: 4px; }
.hm-step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.hm-step.on { border-color: var(--accent); background: var(--accent-soft); }
.hm-step.on b { background: var(--accent); color: #fff; }
.hm-steppanel { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow); }
.hm-stepimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .45s ease; }
.hm-stepimg.on { opacity: 1; }

.hm-stories { display: grid; gap: 72px; }
.hm-story { display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; align-items: center; }
.hm-story.rev { grid-template-columns: 1.3fr 1fr; }
.hm-story.rev .hm-copy { order: 2; }
.hm-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hm-copy h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; max-width: 18ch; }
.hm-copy p { margin: 0 0 18px; font-size: 1.02rem; }
.hm-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hm-checks li { position: relative; padding-left: 28px; color: var(--body); }
.hm-checks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.hm-fig { margin: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow); }
.hm-fig img { display: block; width: 100%; height: auto; }

.hm-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hm-card { background: var(--raise); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 20px; overflow: hidden; }
.hm-card-img { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); margin-bottom: 14px; background: var(--bg); }
.hm-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hm-card:hover .hm-card-img img { transform: scale(1.04); }
.hm-card h3 { font-size: 1.1rem; margin: 0 6px 6px; }
.hm-card p { margin: 0 6px; color: var(--muted); font-size: 14.5px; }

.hm-own { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: center; }
.hm-for { text-align: center; }
.hm-for h2 { margin-inline: auto; }
.hm-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hm-chips span { padding: 9px 18px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--raise); color: var(--text); font-size: 15px; }
.hm-faq { max-width: 780px; }
.hm-faqs { display: grid; gap: 10px; margin-bottom: 18px; }
.hm-faqs details { border: 1px solid var(--line); border-radius: 13px; background: var(--raise); padding: 0 18px; }
.hm-faqs summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 500; color: var(--strong); display: flex; justify-content: space-between; gap: 12px; }
.hm-faqs summary::-webkit-details-marker { display: none; }
.hm-faqs summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.hm-faqs details[open] summary::after { content: '–'; }
.hm-faqs details p { margin: 0 0 16px; color: var(--muted); }

@media (max-width: 960px) {
    .hm-steps, .hm-story, .hm-story.rev, .hm-own { grid-template-columns: 1fr; gap: 24px; }
    .hm-story.rev .hm-copy { order: 0; }
    .hm-bento { grid-template-columns: 1fr 1fr; }
    .hm-stories { gap: 52px; }
    .hm-window { margin-top: 36px; }
}
@media (max-width: 600px) {
    .hm-bento { grid-template-columns: 1fr; }
    .hm-chrome { padding: 8px 10px; gap: 8px; }
    .hm-dots { display: none; }
    .hm-tab { padding: 6px 11px; font-size: 13px; }
}

/* Small screens: keep the header on one line */
@media (max-width: 600px) {
    .nav-in { gap: 8px; height: 60px; }
    .nav .logo-text { font-size: 12px; letter-spacing: .14em; }
    .nav .logo-mark { height: 24px !important; }
    .nav-actions { gap: 6px; }
    .nav-actions .btn { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
    .nav-actions .icon-btn { width: 32px; height: 32px; }
}

/* ---------- Pricing, plan choice on sign-up ---------- */
.hm-sub { margin: -22px 0 32px; max-width: 60ch; }
.hm-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.hm-plan { position: relative; background: var(--raise); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px 24px; display: grid; gap: 12px; align-content: start; }
.hm-plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.hm-badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 99px; }
.hm-plan h3 { font-size: 1.25rem; }
.plan-price { font-size: 2.3rem; font-weight: 600; color: var(--strong); letter-spacing: -.02em; line-height: 1.1; }
.plan-price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.hm-plan p { margin: 0; }
.hm-plan .btn { margin-top: 6px; }
.plan-pick { display: grid; gap: 8px; margin-top: 4px; }
.plan-opt { display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; background: var(--bg); color: var(--text); font-weight: 400; }
.plan-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.plan-opt input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.plan-opt span { display: grid; gap: 1px; font-size: 14.5px; }
.plan-opt b { font-weight: 500; color: var(--strong); }
.plan-opt em { font-style: normal; color: var(--accent); font-weight: 500; }
.plan-opt small { font-size: 12.5px; }
