/* Levitate Book — marketing, auth and management app. */
:root {
  --ink: #0b0d17; --ink-2: #2a2f3e; --muted: #667085; --line: #e7e8ee; --line-2: #f1f2f6; --bg: #f7f7fb; --card: #fff;
  --pri: #5b5bf0; --pri-2: #4338ca; --pri-soft: #eef0ff; --vio: #a855f7; --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #c026d3 100%);
  --ok: #059669; --ok-soft: #e7f8f1; --warn: #b45309; --warn-soft: #fff6e5; --err: #dc2626; --err-soft: #fdecec;
  --r: 14px; --r-sm: 10px; --r-lg: 22px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .05); --sh-2: 0 1px 3px rgba(16, 24, 40, .06), 0 12px 32px -14px rgba(16, 24, 40, .18);
  --sh-3: 0 30px 80px -24px rgba(30, 27, 75, .45), 0 10px 30px -10px rgba(30, 27, 75, .25);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --display: "Inter Tight", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--pri); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.022em; line-height: 1.12; margin: 0; }
p { margin: 0 0 12px; }
small { font-size: 12.5px; }
.muted { color: var(--muted); }
code, pre { font: 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
:focus-visible { outline: 2.5px solid var(--pri); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; transition: transform .12s, box-shadow .15s, background .15s, border-color .15s; text-decoration: none !important; box-shadow: var(--sh-1); }
.btn:hover { border-color: #d0d3de; background: #fcfcfe; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1); }
.btn-primary:hover { background: #1c2033; border-color: #1c2033; }
.btn-grad { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 24px -8px rgba(99, 102, 241, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-grad:hover { filter: brightness(1.06); background: var(--grad); }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 13px; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn-danger { color: var(--err); }
.btn-danger:hover { background: var(--err-soft); border-color: #f5c2c2; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--line-2); }
.btn-block { width: 100%; }
button.link { background: none; border: 0; padding: 0; color: var(--pri); font: inherit; font-weight: 600; cursor: pointer; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: 15px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid #d9dbe4; border-radius: 10px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 4px rgba(91, 91, 240, .14); }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--pri); padding: 0; }
input[type=color] { padding: 3px; height: 42px; width: 64px; cursor: pointer; }
textarea { min-height: 88px; resize: vertical; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.form { display: grid; gap: 16px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.err { background: var(--err-soft); color: #991b1b; border: 1px solid #f7caca; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.input-affix { display: flex; align-items: stretch; border: 1px solid #d9dbe4; border-radius: 10px; overflow: hidden; background: #fff; }
.input-affix span { padding: 10px 0 10px 12px; color: var(--muted); white-space: nowrap; font-weight: 500; }
.input-affix input { border: 0; box-shadow: none !important; padding-left: 2px; }
.input-affix:focus-within { border-color: var(--pri); box-shadow: 0 0 0 4px rgba(91, 91, 240, .14); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 600 17px/1 var(--display); letter-spacing: -.02em; text-decoration: none !important; }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--font); text-transform: uppercase; letter-spacing: .12em; color: var(--pri); margin: 0 0 16px; }
.eyebrow.light { color: #c4b5fd; }

/* ---------- Marketing ---------- */
.mk { background: #fff; }
.mk-wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.mk-nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(231, 232, 238, .7); }
.mk-nav-row { display: flex; align-items: center; gap: 28px; height: 66px; }
.mk-links { display: flex; gap: 4px; flex: 1; }
.mk-links a { color: var(--ink-2); font-weight: 500; padding: 8px 12px; border-radius: 9px; }
.mk-links a:hover { background: var(--line-2); text-decoration: none; }
.mk-cta { display: flex; align-items: center; gap: 14px; }
.mk-signin { color: var(--ink); font-weight: 600; }

.hero { position: relative; overflow: hidden; background: #070815; color: #fff; padding: 88px 0 120px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 140%; z-index: -1;
  background: radial-gradient(40% 50% at 20% 30%, rgba(99, 102, 241, .55), transparent 70%), radial-gradient(35% 45% at 80% 20%, rgba(192, 38, 211, .38), transparent 70%), radial-gradient(40% 40% at 60% 80%, rgba(14, 165, 233, .25), transparent 70%); filter: blur(10px); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(60% 60% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13.5px; color: #e0e7ff; margin-bottom: 26px; }
.pill b { background: var(--grad); color: #fff; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #a5b4fc, #f0abfc 60%, #fbcfe8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 19px; line-height: 1.55; color: #c7cbe0; max-width: 560px; margin: 22px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .btn:not(.btn-grad) { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); box-shadow: none; }
.hero .btn:not(.btn-grad):hover { background: rgba(255,255,255,.14); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: #a9afc8; font-size: 14px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .ic { color: #86efac; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.hero-visual .mock { transform: rotate(-2deg); }
.float { position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 14px; padding: 10px 14px; box-shadow: var(--sh-3); font-size: 13.5px; animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-size: 13.5px; }
.float small { color: var(--muted); }
.float .fi { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; }
.float-1 { top: 18px; right: -6px; } .float-1 .fi { background: #10b981; }
.float-2 { bottom: -14px; left: -18px; animation-delay: -3s; } .float-2 .fi { background: #6366f1; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.mock { --brand: #6366f1; width: min(360px, 100%); background: #fff; color: var(--ink); border-radius: 22px; padding: 18px; box-shadow: var(--sh-3); border: 1px solid rgba(255,255,255,.6); font-size: 14px; }
.mock-head { display: flex; align-items: center; gap: 9px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.mock-dot { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }
.mock-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: #047857; background: var(--ok-soft); padding: 3px 8px; border-radius: 999px; }
.mock-svc { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; padding: 12px; border: 1.5px solid var(--brand); border-radius: 13px; background: color-mix(in srgb, var(--brand) 6%, #fff); }
.mock-svc small { display: block; color: var(--muted); }
.mock-svc span { font-weight: 700; }
.mock-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.mock-days span { display: grid; place-items: center; padding: 8px 0; border-radius: 11px; border: 1px solid var(--line); }
.mock-days small { color: var(--muted); font-size: 11px; }
.mock-days .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mock-days .on small { color: #c7cbe0; }
.mock-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 14px; }
.mock-times span { text-align: center; padding: 9px 0; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; }
.mock-times .on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px var(--brand); }
.mock-btn { text-align: center; padding: 12px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; }

.trades { border-bottom: 1px solid var(--line); background: #fff; }
.trades-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding: 26px 0; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.trades-row span { display: inline-flex; align-items: center; gap: 8px; }
.trades-row .ic { color: #a5b4fc; }

.sec { padding: 104px 0; }
.sec-alt { background: var(--bg); }
.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
.sec-head p { font-size: 18px; color: var(--muted); margin-top: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-1); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; font: 700 16px/1 var(--display); margin-bottom: 18px; box-shadow: 0 8px 20px -8px rgba(99,102,241,.8); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
.step em { position: absolute; top: 28px; right: 26px; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--pri); background: var(--pri-soft); padding: 4px 9px; border-radius: 999px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.feature .fi { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--pri-soft); color: var(--pri); margin-bottom: 18px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-bottom: 18px; }
.split p.lead { font-size: 17.5px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; }
.ticks .ic { color: #fff; background: var(--ok); border-radius: 999px; padding: 3px; margin-top: 2px; width: 20px; height: 20px; }
.codecard { background: #0d1022; border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; border: 1px solid #1f2440; }
.codecard-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid #1f2440; color: #8b91b0; font-size: 12.5px; }
.codecard-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2f4d; }
.codecard-bar span { margin-left: 8px; }
.codecard pre { margin: 0; padding: 20px; color: #d6dafc; overflow-x: auto; }
.codecard .k { color: #c792ea; } .codecard .s { color: #a5e8a0; } .codecard .a { color: #82aaff; } .codecard .c { color: #6b7194; }
.tabs-mini { display: flex; gap: 6px; padding: 10px 12px 0; }
.tabs-mini span { font-size: 12.5px; color: #8b91b0; padding: 6px 10px; border-radius: 8px; }
.tabs-mini .on { background: #1b2040; color: #fff; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh-1); }
.price.hot { border: 0; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: 0 30px 60px -30px rgba(99, 102, 241, .55); }
.price .tag { position: absolute; top: -12px; left: 30px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; }
.price h3 { font-size: 19px; }
.price .amt { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 6px; }
.price .amt b { font: 800 48px/1 var(--display); letter-spacing: -.03em; }
.price .amt span { color: var(--muted); }
.price p { color: var(--muted); min-height: 46px; }
.price ul { list-style: none; padding: 0; margin: 10px 0 26px; display: grid; gap: 11px; flex: 1; }
.price li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.price li .ic { color: var(--ok); margin-top: 2px; }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 8px; }
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 40px; text-align: center; color: #fff; background: #0b0d1f; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 20% 0%, rgba(99,102,241,.6), transparent 70%), radial-gradient(50% 80% at 90% 100%, rgba(192,38,211,.45), transparent 70%); }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.cta-band p { color: #c7cbe0; font-size: 18px; margin: 14px 0 28px; }
.mk-foot { border-top: 1px solid var(--line); padding: 56px 0 28px; background: #fff; }
.mk-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.mk-foot p { margin-top: 14px; font-size: 14px; }
.mk-foot-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.mk-foot-cols div { display: grid; gap: 10px; align-content: start; }
.mk-foot h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mk-foot-cols a { color: var(--ink-2); font-size: 14.5px; }
.mk-legal { margin-top: 40px; font-size: 13px; }

/* Docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 48px 0 96px; }
.docs-nav { position: sticky; top: 90px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.docs-nav h4 { margin: 18px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.docs-nav a { color: var(--ink-2); padding: 6px 10px; border-radius: 8px; }
.docs-nav a:hover { background: var(--line-2); text-decoration: none; }
.docs-body { min-width: 0; max-width: 820px; }
.docs-body h1 { font-size: 40px; font-weight: 800; margin-bottom: 14px; }
.docs-body h2 { font-size: 26px; margin: 56px 0 14px; padding-top: 12px; scroll-margin-top: 80px; }
.docs-body h3 { font-size: 17px; margin: 30px 0 10px; font-family: var(--font); letter-spacing: -.01em; scroll-margin-top: 80px; }
.docs-body p, .docs-body li { color: var(--ink-2); }
.docs-body pre { background: #0d1022; color: #d6dafc; padding: 16px 18px; border-radius: 12px; overflow-x: auto; margin: 0 0 18px; }
.docs-body :not(pre) > code { background: var(--line-2); padding: 2px 6px; border-radius: 6px; font-size: 13px; color: #3730a3; }
.endpoint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 14px/1.4 ui-monospace, Menlo, monospace; margin: 26px 0 10px; scroll-margin-top: 80px; }
.verb { font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 7px; letter-spacing: .04em; }
.verb.get { background: #e0f2fe; color: #075985; } .verb.post { background: #dcfce7; color: #166534; } .verb.patch, .verb.put { background: #fef3c7; color: #92400e; } .verb.delete { background: #fee2e2; color: #991b1b; }
.ptable { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 14px; }
.ptable th, .ptable td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ptable td:first-child { font-family: ui-monospace, Menlo, monospace; font-size: 13px; white-space: nowrap; }
.callout { display: flex; gap: 12px; background: var(--pri-soft); border: 1px solid #dcdfff; border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; color: #312e81; font-size: 14.5px; }

/* ---------- Auth ---------- */
.auth { background: #fff; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-solo { grid-template-columns: 1fr; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; gap: 28px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.auth-sub { margin-bottom: 26px; }
.auth-card .form { margin-top: 24px; }
.auth-alt { margin-top: 22px; text-align: center; font-size: 14.5px; color: var(--muted); }
.auth-trust { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.auth-aside { position: relative; overflow: hidden; background: #080a1a; color: #fff; display: flex; align-items: center; justify-content: center; padding: 48px; isolation: isolate; }
.auth-aside .glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 50% at 30% 20%, rgba(99,102,241,.55), transparent 70%), radial-gradient(45% 45% at 80% 90%, rgba(192,38,211,.4), transparent 70%); }
.auth-aside-inner { max-width: 440px; }
.auth-aside h2 { font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.auth-aside .ticks { margin-bottom: 36px; color: #dfe3f5; }
.auth-aside .mock { margin: 0 auto; }
.ok-box { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 12px 0; }
.ok-box .ok-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }

/* ---------- App shell ---------- */
.app { background: var(--bg); }
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.navtoggle, .sb-scrim { display: none; }
.sb { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px 14px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
.sb-top { padding: 4px 8px 12px; }
.orgsw { position: relative; margin-bottom: 8px; }
.orgsw summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; background: #fff; box-shadow: var(--sh-1); }
.orgsw summary::-webkit-details-marker { display: none; }
.orgsw summary:hover { border-color: #d5d7e1; }
.orgsw-txt { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.orgsw-txt b, .orgsw-menu b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.orgsw-txt small, .orgsw-menu small { color: var(--muted); text-transform: capitalize; }
.orgsw-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--sh-2); padding: 6px; display: grid; gap: 2px; }
.orgsw-menu form { margin: 0; }
.orgsw-menu button, .orgsw-new { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; background: none; border-radius: 9px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.orgsw-menu button span { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.orgsw-menu button:hover, .orgsw-new:hover { background: var(--line-2); text-decoration: none; }
.orgsw-menu button.on { background: var(--pri-soft); }
.orgsw-new { color: var(--pri); font-weight: 600; font-size: 14px; border-top: 1px solid var(--line-2); border-radius: 0 0 9px 9px; padding-top: 10px; }
.sb-nav { display: grid; gap: 1px; }
.sb-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.sb-nav a .ic { color: #8a90a6; }
.sb-nav a:hover { background: var(--line-2); text-decoration: none; }
.sb-nav a.on { background: var(--pri-soft); color: var(--pri-2); font-weight: 600; }
.sb-nav a.on .ic { color: var(--pri); }
.sb-sec { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: #9aa0b4; padding: 18px 11px 6px; }
.sb-trial { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 13px; background: linear-gradient(135deg, #eef0ff, #f6eaff); color: #3730a3; font-size: 13.5px; line-height: 1.35; }
.sb-trial:hover { text-decoration: none; filter: brightness(.98); }
.sb-user { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 12px 6px 2px; border-top: 1px solid var(--line-2); }
.sb-user form { margin: 0; }
.sb-user-txt { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.sb-user-txt b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-txt small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.sb-icon:hover { background: var(--line-2); color: var(--ink); }
.av { display: inline-grid; place-items: center; flex: none; border-radius: 10px; background: var(--c); color: #fff; font-weight: 700; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.main { min-width: 0; }
.mtop { display: none; }
.content { width: min(1160px, 100% - 48px); margin: 0 auto; padding: 32px 0 80px; }
.content.wide { width: min(1500px, 100% - 48px); }
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 24px; }
.ph h1 { font-size: 28px; font-weight: 800; }
.ph-sub { color: var(--muted); margin: 6px 0 0; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.banner, .flash { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; flex-wrap: wrap; }
.banner { background: var(--warn-soft); color: #7c4a03; border: 1px solid #f8e1b3; }
.banner form { margin: 0 0 0 auto; }
.flash-ok { background: var(--ok-soft); color: #065f46; border: 1px solid #bfead7; }
.flash-err { background: var(--err-soft); color: #991b1b; border: 1px solid #f7caca; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); padding: 22px; min-width: 0; }
.card + .card { margin-top: 18px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-h h2 { font-size: 17px; font-family: var(--font); letter-spacing: -.01em; }
.card-h p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid2 > .card + .card, .stack > .card + .card { margin-top: 0; }
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--sh-1); min-width: 0; }
.stat-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--pri-soft); color: var(--pri); flex: none; }
.stat:nth-child(2) .stat-ic { background: #e7f8f1; color: #059669; }
.stat:nth-child(3) .stat-ic { background: #fff3e6; color: #c2410c; }
.stat:nth-child(4) .stat-ic { background: #f6eaff; color: #9333ea; }
.stat small { display: block; color: var(--muted); font-weight: 500; }
.stat b { font: 800 24px/1.15 var(--display); letter-spacing: -.02em; }
.stat em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.empty { text-align: center; padding: 44px 20px; }
.empty-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--pri-soft); color: var(--pri); margin-bottom: 14px; }
.empty h3 { font-size: 18px; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 16px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.b-blue { background: #e8edff; color: #3730a3; } .b-green { background: var(--ok-soft); color: #047857; } .b-red { background: var(--err-soft); color: #b91c1c; } .b-grey { background: #f1f2f6; color: #6b7280; } .b-amber { background: var(--warn-soft); color: #92400e; } .b-violet { background: #f3e8ff; color: #7e22ce; }

/* Lists & tables */
.tbl-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: #fafafd; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who b { display: block; font-weight: 600; }
.who small { color: var(--muted); }
.timeline { display: grid; gap: 10px; }
.tl-item { display: grid; grid-template-columns: 74px 4px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tl-item:hover { border-color: #d5d7e1; box-shadow: var(--sh-2); text-decoration: none; }
.tl-time { font: 700 15px/1.2 var(--display); }
.tl-time small { display: block; color: var(--muted); font: 500 12px/1.3 var(--font); }
.tl-bar { align-self: stretch; border-radius: 4px; background: var(--c, var(--pri)); }
.tl-main b { display: block; }
.tl-main small { color: var(--muted); }
.tl-now { display: flex; align-items: center; gap: 8px; color: #e11d48; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tl-now::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, #e11d48, transparent); border-radius: 2px; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.toolbar input, .toolbar select { width: auto; height: 38px; padding: 7px 11px; }
.seg { display: inline-flex; background: #ecedf3; border-radius: 11px; padding: 3px; }
.seg a { padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.seg a.on { background: #fff; box-shadow: var(--sh-1); color: var(--ink); }
.seg a:hover { text-decoration: none; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Calendar */
.cal { --hour: 64px; position: relative; display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(140px, 1fr)); overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.cal-head { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--line); padding: 10px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; min-height: 54px; }
.cal-head.today { color: var(--pri-2); }
.cal-head small { color: var(--muted); font-weight: 500; display: block; }
.cal-gut { position: relative; border-right: 1px solid var(--line); }
.cal-gut span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11.5px; color: var(--muted); }
.cal-col { position: relative; border-right: 1px solid var(--line-2); background-image: repeating-linear-gradient(to bottom, var(--line-2) 0 1px, transparent 1px var(--hour)); }
.cal-col:last-child { border-right: 0; }
.cal-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #f6f6f9 0 8px, #efeff4 8px 16px); }
.cal-ev { position: absolute; left: 4px; right: 4px; border-radius: 9px; padding: 6px 8px; font-size: 12.5px; line-height: 1.3; overflow: hidden; color: var(--ink);
  background: color-mix(in srgb, var(--c) 12%, #fff); border-left: 3px solid var(--c); box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: transform .12s, box-shadow .12s; }
.cal-ev:hover { text-decoration: none; box-shadow: var(--sh-2); z-index: 2; transform: translateY(-1px); }
.cal-ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev small { color: var(--ink-2); font-size: 11.5px; }
.cal-ev.done { opacity: .62; }
.cal-ev.noshow { background: #fff1f2; border-left-color: #e11d48; }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: #e11d48; z-index: 2; }
.cal-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #e11d48; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav h2 { font-size: 17px; font-family: var(--font); margin: 0 6px; white-space: nowrap; }

/* Services, staff, hours */
.list { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; flex-wrap: wrap; }
.item-main { flex: 1 1 220px; min-width: 0; }
.item-main b { display: block; font-size: 15px; }
.item-main small { color: var(--muted); }
.item-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.item.off { opacity: .6; }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: 13.5px; cursor: pointer; background: #fff; transition: all .12s; }
.chip input:checked + span { background: var(--pri-soft); border-color: #c7cbff; color: var(--pri-2); }
.chip input:focus-visible + span { outline: 2.5px solid var(--pri); outline-offset: 2px; }
.hours { display: grid; gap: 8px; }
.hrow { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.hrow:last-child { border-bottom: 0; }
.hday { display: flex; align-items: center; gap: 9px; font-weight: 600; padding-top: 8px; }
.hranges { display: grid; gap: 8px; }
.hrange { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hrange input { width: 120px; }
.hclosed { color: var(--muted); padding-top: 8px; font-size: 14px; }
details.edit > summary { list-style: none; cursor: pointer; }
details.edit > summary::-webkit-details-marker { display: none; }
details.edit[open] > summary { margin-bottom: 14px; }
.drawer { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 16px; flex-basis: 100%; }
.snip { position: relative; }
.snip pre { background: #0d1022; color: #d6dafc; padding: 16px 18px; padding-right: 92px; border-radius: 12px; overflow-x: auto; margin: 0; white-space: pre-wrap; word-break: break-all; }
.snip .btn { position: absolute; top: 10px; right: 10px; background: #1f2440; border-color: #2c3257; color: #fff; box-shadow: none; }
.snip .btn:hover { background: #2a3052; }
.keybox { display: flex; gap: 10px; align-items: center; background: var(--ok-soft); border: 1px solid #bfead7; padding: 14px; border-radius: 12px; flex-wrap: wrap; }
.keybox code { background: #fff; padding: 8px 10px; border-radius: 8px; flex: 1 1 260px; font-size: 13px; word-break: break-all; }
.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.plan-card.current { border: 2px solid var(--pri); box-shadow: 0 10px 30px -18px rgba(91,91,240,.8); }
.plan-card b.amt { font: 800 28px/1 var(--display); }
.plan-card ul { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); flex: 1; }
.plan-card li { display: flex; gap: 7px; } .plan-card li .ic { color: var(--ok); margin-top: 3px; }
.meter { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.preview-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.share-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 26px; border-radius: var(--r); color: #fff; background: #0b0d1f; position: relative; overflow: hidden; isolation: isolate; margin-bottom: 18px; }
.share-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 0% 0%, rgba(99,102,241,.6), transparent 70%), radial-gradient(50% 120% at 100% 100%, rgba(192,38,211,.45), transparent 70%); }
.share-hero h2 { font-size: 22px; font-family: var(--font); margin-bottom: 6px; }
.share-hero p { color: #c7cbe0; margin: 0; }
.share-url { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 6px 6px 6px 14px; margin-top: 14px; max-width: 560px; }
.share-url code { background: none; color: #fff; flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; }
.share-url .btn { height: 34px; }

/* Setup wizard */
.setup { min-height: 100vh; display: grid; place-items: center; padding: 40px 18px; background: radial-gradient(60% 50% at 50% 0%, #eef0ff, transparent 70%), var(--bg); }
.setup-card { width: min(640px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-2); padding: 36px; }
.setup-card h1 { font-size: 30px; font-weight: 800; margin: 18px 0 8px; }
.progress { display: flex; gap: 6px; margin-top: 22px; }
.progress i { flex: 1; height: 5px; border-radius: 9px; background: var(--line); }
.progress i.on { background: var(--grad); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cats label { display: block; font-weight: 500; }
.cats input { position: absolute; opacity: 0; pointer-events: none; }
.cats span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 14px; transition: all .12s; }
.cats input:checked + span { border: 2px solid var(--pri); background: var(--pri-soft); color: var(--pri-2); font-weight: 600; }
.cats input:focus-visible + span { outline: 2.5px solid var(--pri); outline-offset: 2px; }
.review { display: grid; gap: 8px; margin: 18px 0; }
.review .item { padding: 11px 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 56px 0 80px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 0; padding: 20px 0; }
  .steps, .price-grid, .plan-cards { grid-template-columns: 1fr; }
  .mk-links { display: none; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .docs { grid-template-columns: 1fr; gap: 0; }
  .docs-nav { position: static; display: none; }
  .shell { grid-template-columns: 1fr; }
  .sb { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--sh-3); }
  .navtoggle:checked ~ .sb { transform: none; }
  .navtoggle:checked ~ .sb-scrim { display: block; }
  .sb-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(11, 13, 23, .4); }
  .mtop { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; height: 58px; padding: 0 12px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .mtop .brand { font-size: 16px; min-width: 0; } .mtop .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mtop-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: var(--ink); }
  .content, .content.wide { width: calc(100% - 28px); padding-top: 20px; }
  .share-hero { grid-template-columns: minmax(0, 1fr) !important; padding: 20px; }
  .share-url { flex-wrap: wrap; padding: 10px; }
  .share-url code { flex-basis: 100%; }
  .docs-body .ptable { display: block; overflow-x: auto; }
}
@media (max-width: 600px) {
  .mk-wrap { width: calc(100% - 32px); }
  .mk-signin { display: none; }
  .sec { padding: 72px 0; }
  .features { grid-template-columns: 1fr; }
  .float-1 { right: 0; top: -6px; } .float-2 { left: 0; bottom: -10px; }
  .hero-visual .mock { transform: none; }
  .ph h1 { font-size: 24px; }
  .stats { gap: 10px; }
  .stat { padding: 14px; gap: 10px; }
  .stat-ic { width: 36px; height: 36px; }
  .stat b { font-size: 20px; }
  .card { padding: 18px; }
  .tbl-wrap { margin: 0 -18px; padding: 0 18px; }
  .tl-item { grid-template-columns: 58px 4px minmax(0, 1fr); }
  .tl-item > :last-child { grid-column: 3; justify-self: start; }
  .hrow { grid-template-columns: 1fr; gap: 4px; }
  .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; }
  .setup-card { padding: 24px 20px; }
  .cta-band { padding: 44px 22px; }
  .tbl.stack-sm thead { display: none; }
  .tbl.stack-sm tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .tbl.stack-sm td { padding: 0; border: 0; }
  .tbl.stack-sm td.hide-sm { display: none; }
}

/* Install steps on the Share page */
.steps-list { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 14.5px; }
.steps-list li::marker { color: var(--pri); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
  .feature, .btn, .cal-ev { transition: none; }
}
