/* Landing page (easyble.io). Tokens come from style.css. */
.landing { overflow-x: hidden; }
html:has(body.landing) { overflow-x: hidden; }
.nav .btn { white-space: nowrap; }
.landing a:not(.btn) { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; }
.nav .links { display: flex; gap: 22px; margin-left: 12px; }
.nav .links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav .links a:hover { color: var(--text); }
.nav .spacer { flex: 1; }
.nav .lang { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 5px 9px; font-size: 13px; color: var(--muted); cursor: pointer; }
@media (max-width: 860px) { .nav .links { display: none; } }

.hero { padding: 88px 0 56px; text-align: center; position: relative; }
.hero::before { content: ""; position: absolute; inset: -200px 0 auto 0; height: 620px; background: radial-gradient(600px 300px at 50% 30%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--muted); font-weight: 600; }
.eyebrow b { color: var(--accent); }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.04; letter-spacing: -0.035em; margin: 22px auto 18px; max-width: 900px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 720px; margin: 0 auto; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.ctas .btn { text-decoration: none; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* hero visual: flow + console mock */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 56px auto 0; max-width: 980px; position: relative; }
.flow .node { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 12px; box-shadow: var(--shadow); margin: 0 14px; position: relative; text-align: center; }
.flow .node .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin: 0 auto 8px; background: var(--surface-2); color: var(--primary); }
.flow .node b { display: block; font-size: 14px; }
.flow .node span { font-size: 12px; color: var(--muted); }
.flow .node:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -29px; width: 30px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 10px); background-size: 20px 2px; animation: dash 1s linear infinite; }
@keyframes dash { to { background-position: 20px 0; } }
@media (prefers-reduced-motion: reduce) { .flow .node::after { animation: none !important; } }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .flow .node { margin: 0 7px; }
  .flow .node::after { display: none; }
}

.mock { max-width: 980px; margin: 28px auto 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 30px 80px rgba(20, 26, 43, .12); overflow: hidden; text-align: left; }
.mock .bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 12px; color: var(--muted); }
.mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: inline-block; }
.mock .bar .url { margin-left: 10px; font-family: ui-monospace, Menlo, monospace; }
.mock .body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; }
.mock .pane { padding: 18px; min-width: 0; }
.mock .pane + .pane { border-left: 1px solid var(--border); }
.mock .dev { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mock .dev .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; color: var(--primary); }
.mock .kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mock .kv div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.mock .kv small { display: block; color: var(--muted); font-size: 11px; }
.mock .kv b { font-size: 14px; }
.mock .rows { margin-top: 12px; font-size: 13px; }
.mock .rows div { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--border); gap: 10px; }
.mock .rows span:last-child { font-family: ui-monospace, Menlo, monospace; }
.mock .finding { margin-top: 12px; font-size: 13px; padding: 9px 11px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--text); }
.mock .mchat .msg { max-width: 92%; font-size: 13px; margin-bottom: 8px; }
.mock .live { color: var(--ok); font-weight: 700; font-size: 12px; }
@media (max-width: 760px) { .mock .body { grid-template-columns: 1fr; } .mock .pane + .pane { border-left: 0; border-top: 1px solid var(--border); } .mock .kv { grid-template-columns: 1fr 1fr; } }

section.block { padding: 84px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.block h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.025em; line-height: 1.12; margin: 10px 0 14px; max-width: 760px; }
.block .lead { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0; }
.center { text-align: center; }
.center h2, .center .lead { margin-left: auto; margin-right: auto; }

.trust { padding: 26px 0; border-bottom: 1px solid var(--border); }
.trust .wrap { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust .wrap span { display: inline-flex; gap: 8px; align-items: center; }
.trust .wrap span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.pain { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); }
.pain .q { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.pain p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 1000px) { .pains { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pains { grid-template-columns: 1fr; } }

.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; counter-reset: s; }
.step { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -14px; left: 22px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-text); font-weight: 800; font-size: 14px; }
.step h3 { margin: 6px 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step .code6 { font: 700 26px/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; margin-top: 14px; padding: 10px; text-align: center; border-radius: 10px; background: var(--surface-2); }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; gap: 28px; } }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.tile { grid-column: span 2; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.tile.wide { grid-column: span 3; }
.tile h3 { margin: 0; font-size: 18px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile .tag { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tile .tag.soon { color: var(--warn); }
.tile .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
@media (max-width: 960px) { .tile, .tile.wide { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide { grid-column: auto; } }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); margin-top: 2px; }
.checks li.soon::before { content: "…"; background: var(--surface-2); color: var(--muted); }
.checks li span { color: var(--muted); }

.code { text-align: left; white-space: pre; max-width: 100%; margin: 0; background: #0d1220; color: #d7deef; border-radius: 14px; padding: 20px 22px; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; border: 1px solid #222b45; box-shadow: var(--shadow); }
.code .c { color: #6f7a99; }
.code .k { color: #8fb1ff; }
.code .s { color: #7ee0c3; }
.code .t { color: #f5c97b; }
.code .label { display: block; color: #6f7a99; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }

.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.service-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.service-card h3 { margin: 0 0 8px; font-size: 17px; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; }
.service-card .when { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--accent); }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.faq { max-width: 800px; margin: 32px auto 0; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.final { margin: 0 auto; max-width: 1120px; padding: 0 24px 90px; }
.final .box { border-radius: 22px; padding: 56px 32px; text-align: center; background: linear-gradient(135deg, var(--brand-primary, #2f5bea), color-mix(in srgb, var(--brand-accent, #14b8a6) 70%, var(--brand-primary, #2f5bea))); color: #fff; }
.final h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 12px; letter-spacing: -0.02em; }
.final p { margin: 0 auto; max-width: 620px; opacity: .9; font-size: 17px; }
.final .btn { background: #fff; color: #10204a; margin-top: 26px; text-decoration: none; }
.final .btn.ghostw { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

footer.foot { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer.foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer.foot .spacer { flex: 1; }
footer.foot a { text-decoration: none; }

/* try it: two windows side by side */
.trywin { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 40px; }
.trywin .win { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.trywin .bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.trywin .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); display: inline-block; }
.trywin .bar .url { margin-left: 8px; font-family: ui-monospace, Menlo, monospace; }
.trywin .bar .who { margin-left: auto; font-weight: 700; color: var(--accent); }
.trywin .inner { padding: 22px; position: relative; }
.trywin .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-text); font-weight: 800; margin-bottom: 10px; }
.trywin h3 { margin: 0 0 10px; font-size: 18px; }
.trywin ol { margin: 0 0 18px; padding-left: 20px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }
.trywin ol b { color: var(--text); }
.trywin .btn { text-decoration: none; }
.trywin .arrow { font-size: 28px; color: var(--accent); font-weight: 800; }
@media (max-width: 860px) { .trywin { grid-template-columns: 1fr; } .trywin .arrow { text-align: center; transform: rotate(90deg); } }
#try .note.center { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
