/* Eto public pages: pricing, about, contact, API and MCP, docs, product tour,
   roadmap, legal, login and signup. Built on tokens.css and layout.css with
   the same hairline cells, Perfectly Nineties headings and Geist text. */

/* ---------- Nav state, flash messages, page heads ---------- */
.lp-nav-links a[aria-current], .lp-nav-login[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.lp-flash { margin: 20px 0 0; border: 1px solid var(--line); }
.lp-flash-item { display: flex; gap: 10px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--text); }
.lp-flash-item:last-child { border-bottom: 0; }
.lp-flash-item .li { margin-top: 3px; color: var(--ink); }
.lp-flash-item.is-error, .lp-flash-item.is-error .li { color: #a32d1d; }
.lp-page-head { padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.lp-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 7vw, 64px); line-height: 1.02; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; max-width: 18ch; }
.lp-page-head .lp-lede { margin-top: 16px; }
.lp-page-head-row { display: flex; flex-direction: column; gap: 20px; }
.lp-page-note { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--muted); }
.lp-page-note .li { width: 14px; height: 14px; color: var(--accent); }
.lp-page-body { padding: 40px 0 64px; }
.lp-two { display: grid; grid-template-columns: 1fr; gap: 32px; }
.lp-cell.is-on { background: var(--ink); color: #fff; }
.lp-cell.is-on:hover { background: var(--ink); box-shadow: none; }
.lp-cell h3.lp-h3 { margin-top: 16px; }
.lp-cell > p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.lp-cell > p a, .lp-cell-link { color: var(--ink); text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 2px; text-decoration-color: rgba(7, 7, 7, 0.4); text-underline-offset: 4px; }
.lp-cell-foot { margin-top: 20px; }

/* Marketplace row (about): solid brand glyphs, name never wraps, Etsy is live. */
.lp .li-brand { fill: currentColor; stroke: none; }
.lp-markets .lp-cell { padding: 18px 20px; }
.lp-markets .lp-cell-head { gap: 9px; white-space: nowrap; }
.lp-markets .lp-cell-head span { font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }
.lp-markets .lp-cell-head .li { width: 26px; height: 18px; }
.lp-markets .lp-mkt-state { display: block; margin-top: 5px; padding-left: 35px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.lp-markets .lp-cell.is-on .lp-cell-head .li, .lp-markets .lp-cell.is-on .lp-cell-head span { color: #fff; }
.lp-markets .lp-cell.is-on .lp-mkt-state { color: rgba(255, 255, 255, 0.6); }

/* ---------- Prose and legal ---------- */
.lp-prose { max-width: 720px; }
.lp-prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 4vw, 32px); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 14px; }
.lp-prose h3 { font-family: var(--font-body); font-weight: 500; font-size: 17px; line-height: 1.35; color: var(--ink); margin: 24px 0 8px; }
.lp-prose p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.lp-prose ul, .lp-prose ol { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.lp-prose li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.lp-prose li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--ink); }
.lp-prose ol { counter-reset: n; }
.lp-prose ol li { padding-left: 28px; }
.lp-prose ol li::before { counter-increment: n; content: counter(n, decimal-leading-zero); width: auto; height: auto; top: 0.1em; background: none; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.lp-prose a { color: var(--ink); text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 2px; text-decoration-color: rgba(7, 7, 7, 0.4); text-underline-offset: 4px; }
.lp-prose a:hover { text-decoration-style: solid; text-decoration-color: var(--ink); }
.lp-prose code { font-family: var(--font-mono); font-size: 0.86em; background: var(--bg-2); border: 1px solid var(--line); padding: 1px 5px; }
.lp-prose strong { font-weight: 500; color: var(--ink); }
.lp-prose em { font-style: italic; }
.lp-legal { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 40px 0 64px; }
.lp-legal-section { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.lp-legal-section:first-of-type { border-top: 0; padding-top: 0; }
.lp-toc { display: none; }
.lp-toc a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--muted); }
.lp-toc a:hover { color: var(--ink); }

/* ---------- Forms ---------- */
.lp-form { display: grid; gap: 18px; }
.lp-field { display: grid; gap: 8px; }
.lp-label, .lp-field > label { font-family: var(--font-mono); font-size: 12px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--muted); }
.lp-input, .lp-textarea, .lp-select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 0; background: var(--bg); font: inherit; font-size: 15px; color: var(--ink); outline: none; transition: border-color 0.15s; -webkit-appearance: none; appearance: none; }
.lp-input::placeholder, .lp-textarea::placeholder { color: var(--faint); }
.lp-input:focus, .lp-textarea:focus, .lp-select:focus { border-color: var(--ink); }
.lp-textarea { height: auto; min-height: 150px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.lp-select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23070707' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.lp-hint { font-size: 13px; line-height: 1.5; color: var(--muted); }
.lp-field-error { font-size: 13.5px; line-height: 1.5; color: #a32d1d; }
.lp-form-msg { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.lp-form-msg.is-ok { color: var(--ink); }
.lp-form-msg.is-error { color: #a32d1d; }
.lp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text); cursor: pointer; }
.lp-check input { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--line-2); background: var(--bg); flex: none; display: grid; place-items: center; cursor: pointer; }
.lp-check input:checked { background: var(--ink); border-color: var(--ink); }
.lp-check input:checked::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.lp-check a { color: var(--ink); text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lp .lp-btn:disabled, .lp .lp-btn-line:disabled { opacity: 0.45; cursor: not-allowed; }
.lp .lp-btn:disabled::before { display: none; }
.lp .lp-btn-block { width: 100%; }
.lp-inline-form { display: flex; flex-direction: column; gap: 8px; }
.lp-inline-form .lp-input { flex: 1; }
.lp-copy { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line-2); background: var(--bg); font-family: var(--font-mono); font-size: 11px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--ink); transition: background-color 0.15s, color 0.15s; }
.lp-copy:hover { background: var(--ink-5); }
.lp-copy.is-copied { background: var(--ink); color: #fff; border-color: var(--ink); }
.lp-cmd { position: relative; border: 1px solid var(--line); background: var(--bg-2); }
.lp-cmd pre { margin: 0; padding: 16px 92px 16px 16px; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; color: var(--text); }
.lp-cmd .tok { color: var(--muted); }
.lp-cmd .tok-k { color: var(--ink); font-weight: 500; }
.lp-cmd .lp-copy { position: absolute; top: 10px; right: 10px; }

/* ---------- Pricing ---------- */
.lp-period { display: inline-flex; border: 1px solid var(--line); }
.lp-period button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background-color 0.15s, color 0.15s; }
.lp-period button + button { border-left: 1px solid var(--line); }
.lp-period button:hover { color: var(--ink); background: var(--ink-5); }
.lp-period button.is-active { background: var(--ink); color: #fff; }
/* "Save 20%" tag inside the Yearly button: hairline outline, no fill, so it
   reads as a tag on both the plain and the ink-filled state. */
.lp-period small { display: inline-flex; align-items: center; height: 19px; padding: 0 5px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 42%, transparent); font-family: var(--font-mono); font-size: 10.5px; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; color: var(--accent); }
.lp-period button.is-active small { color: var(--on-ink, #fff); }
.lp-period small:empty { display: none; }
.lp-launch { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--ink); }
.lp-launch .li { width: 14px; height: 14px; color: var(--accent); }
.lp-plans { margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.lp-plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; background: var(--bg); }
.lp-plan.is-popular { box-shadow: inset 0 0 0 1px var(--ink); z-index: 1; }
.lp-plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lp-plan-name { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.lp-plan-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.lp-plan-desc { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); min-height: 42px; }
.lp-price { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; min-height: 66px; }
.lp-price-value { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lp-price-value.is-swap { animation: lp-build-in 0.34s ease-out both; }
.lp-price-period { font-size: 14px; color: var(--muted); }
.lp-price-strike { font-family: var(--font-mono); font-size: 13px; color: var(--faint); text-decoration: line-through; }
.lp-price-save { font-family: var(--font-mono); font-size: 11px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line-2); padding: 3px 7px; }
.lp-plan-benefits { margin-top: 20px; display: grid; gap: 10px; }
.lp-plan-benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.lp-plan-benefits .li { width: 16px; height: 16px; margin-top: 3px; color: var(--ink); }
.lp-plan-cta { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }
.lp-plan-cta .lp-btn, .lp-plan-cta .lp-btn-line { width: 100%; }
.lp-plan-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.lp-plan-note .li { width: 14px; height: 14px; color: var(--ink); }
.lp-faq { margin-top: 28px; border-top: 1px solid var(--line); }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--font-display); font-size: 21px; line-height: 1.25; color: var(--ink); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary .li { flex: none; color: var(--ink); transition: transform 0.25s var(--ease-out); }
.lp-faq details[open] summary .li { transform: rotate(45deg); }
.lp-faq details > div { padding: 0 0 20px; max-width: 68ch; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.lp-faq details > div a { color: var(--ink); text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Auth ---------- */
.lp-auth { display: grid; grid-template-columns: 1fr; max-width: var(--container); margin: 0 auto; }
.lp-auth-form { width: 100%; max-width: 560px; margin: 0 auto; padding: 40px var(--gutter) 64px; }
.lp-auth-form .lp-h2 { margin-bottom: 8px; }
.lp-auth-sub { font-size: 15px; line-height: 1.55; color: var(--muted); margin-bottom: 24px; }
.lp-auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--faint); }
.lp-auth-or::before, .lp-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lp-google { width: 100%; }
.lp-google svg { width: 18px; height: 18px; }
.lp-auth-consent { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.lp-auth-foot { margin-top: 24px; font-size: 14px; color: var(--muted); }
.lp-auth-consent a, .lp-auth-foot a, .lp-auth-link { color: var(--ink); text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lp-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--muted); }
.lp-back:hover { color: var(--ink); }
.lp-back .li { width: 14px; height: 14px; }
.lp-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.lp-otp input { width: 100%; height: 56px; text-align: center; font-family: var(--font-mono); font-size: 24px; border: 1px solid var(--line-2); border-radius: 0; background: var(--bg); color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; }
.lp-otp input:focus { border-color: var(--ink); }
.lp-rules { display: grid; gap: 6px; margin-top: 2px; }
.lp-rules li { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.lp-rules li .li { width: 14px; height: 14px; }
.lp-rules li.is-ok { color: var(--ink); }
.lp-rules li .is-on { display: none; }
.lp-rules li.is-ok .is-on { display: block; }
.lp-rules li.is-ok .is-off { display: none; }
.lp-auth-art { display: none; }
.lp-auth-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.lp-auth-note .li { margin-top: 2px; color: var(--ink); }

/* ---------- API and MCP ---------- */
.lp-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.lp-lockup img { width: 40px; height: 40px; object-fit: contain; }
.lp-lockup .x { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--faint); }
.lp-lockup-clients { display: flex; gap: 6px; }
.lp-lockup-clients img { width: 40px; height: 40px; padding: 8px; border: 1px solid var(--line); object-fit: contain; filter: grayscale(1); }
.lp-tabs { display: flex; border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 18px; border-right: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
.lp-tabs button:last-child { border-right: 0; }
.lp-tabs button:hover { color: var(--ink); background: var(--ink-5); }
.lp-tabs button.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.lp-tabs img { width: 18px; height: 18px; object-fit: contain; filter: grayscale(1); }
.lp-tab-panel { display: none; }
.lp-tab-panel.is-active { display: block; }
.lp-ways { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; }
.lp-way { padding: 28px 24px; background: var(--bg); }
.lp-way-head { display: flex; align-items: center; gap: 12px; }
.lp-way-head .li { color: var(--ink); }
.lp-way-head img { width: 22px; height: 22px; object-fit: contain; filter: grayscale(1); }
.lp-way-title { font-family: var(--font-display); font-size: 24px; line-height: 1.15; color: var(--ink); }
.lp-way-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.lp-way-desc { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.lp-steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 10px; margin: 18px 0; }
.lp-steps li { position: relative; padding-left: 36px; font-size: 15px; line-height: 1.55; color: var(--text); }
.lp-steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 3px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.lp-steps strong { font-weight: 500; color: var(--ink); }
.lp-tab-foot { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- Roadmap board (keeps the fb-* markup and its admin tools) ---------- */
.fb-board { display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: 32px; background: var(--line); border: 1px solid var(--line); }
.fb-column { background: var(--bg); min-height: 220px; transition: background-color 0.15s; }
.fb-column.drag-over { background: var(--ink-5); }
.fb-col-header { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--muted); }
.fb-col-header svg { width: 15px; height: 15px; color: var(--ink); }
.fb-col-count { margin-left: auto; color: var(--ink); }
.fb-card { position: relative; padding: 16px 20px; border-bottom: 1px solid var(--line); transition: background-color 0.15s; }
.fb-card:last-child { border-bottom: 0; }
.fb-card:hover { background: var(--ink-5); }
.fb-card[draggable="true"] { cursor: grab; }
.fb-card.dragging { opacity: 0.4; }
.fb-drag-handle { display: none; }
.fb-drop-indicator { height: 2px; margin: 0 20px; background: var(--ink); }
.fb-card-title { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); padding-right: 64px; }
.fb-priority { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--line-2); }
.fb-priority-high { background: var(--accent); }
.fb-priority-medium { background: var(--ink); }
.fb-card-desc { margin: 6px 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.fb-card-meta { margin: 10px 0 0 18px; }
.fb-badge { font-family: var(--font-mono); font-size: 11px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--muted); }
.fb-empty { padding: 24px 20px; font-size: 14px; color: var(--faint); }
.fb-card-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.fb-card:hover .fb-card-actions, .fb-card:focus-within .fb-card-actions { opacity: 1; }
.fb-action-btn { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.fb-action-btn svg { width: 14px; height: 14px; }
.fb-action-btn:hover { background: var(--ink); color: #fff; }
.fb-modal-overlay { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(7, 7, 7, 0.4); }
.fb-modal-overlay.open { display: flex; }
.fb-modal { width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto; background: var(--bg); border: 1px solid var(--line-2); }
.fb-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.fb-modal-header h3 { font-family: var(--font-display); font-size: 24px; color: var(--ink); }
.fb-modal-close { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.fb-modal-close svg { width: 16px; height: 16px; }
.fb-modal-body { padding: 20px; display: grid; gap: 14px; }
.fb-field { display: grid; gap: 6px; }
.fb-field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--muted); }
.fb-field input, .fb-field select, .fb-field textarea { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 0; background: var(--bg); font: inherit; font-size: 14px; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; }
.fb-field textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.fb-field input:focus, .fb-field select:focus, .fb-field textarea:focus { border-color: var(--ink); }
.fb-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fb-field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.fb-toggle-row { display: flex; align-items: center; gap: 10px; height: 44px; }
.fb-toggle-label { font-size: 14px; color: var(--text); }
.fb-toggle { position: relative; width: 40px; height: 22px; border: 1px solid var(--line-2); background: var(--bg); }
.fb-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: var(--line-2); transition: transform 0.2s, background-color 0.2s; }
.fb-toggle.on { background: var(--ink); border-color: var(--ink); }
.fb-toggle.on::after { background: #fff; transform: translateX(18px); }
.fb-modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }

/* ---------- Docs (keeps the d-*, ep and pt markup) ---------- */
.lp-docs { --text-2: var(--muted); --text-3: var(--faint); --border: var(--line); --surface-2: var(--bg-2); --orange: var(--accent); --red: #a32d1d; display: grid; grid-template-columns: 1fr; }
.d-overlay { display: none; position: fixed; inset: 57px 0 0; z-index: 55; background: rgba(7, 7, 7, 0.3); }
.d-overlay.open { display: block; }
.d-side { display: none; position: fixed; top: 57px; left: 0; bottom: 0; z-index: 60; width: 288px; overflow-y: auto; scrollbar-width: none; background: var(--bg); border-right: 1px solid var(--line); }
.d-side.open { display: block; }
.d-side::-webkit-scrollbar { display: none; }
.d-side-head { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.d-side-head img { width: 20px; height: 20px; }
.d-side-head .brand { font-family: var(--font-mark); font-size: 21px; line-height: 1; color: var(--ink); transform: translateY(1px); }
.d-side-head .ver { margin-left: auto; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); }
.d-nav { padding: 8px 0 24px; }
.d-nav-label { padding: 18px 20px 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--muted); }
.d-nav a { display: flex; align-items: center; gap: 8px; padding: 8px 20px; font-size: 14px; color: var(--text); transition: background-color 0.15s, color 0.15s; }
.d-nav a:hover { background: var(--ink-5); color: var(--ink); }
.d-nav a.active { color: var(--ink); box-shadow: inset 1px 0 0 var(--ink); }
.d-nav-count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.d-main { min-width: 0; }
.d-topbar { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--muted); }
.d-burger { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ink); }
.d-burger svg { width: 18px; height: 18px; }
.d-content { padding: 40px var(--gutter) 72px; max-width: 920px; }
.d-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 6vw, 56px); line-height: 1.04; letter-spacing: -0.015em; color: var(--ink); }
.d-hero > p { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.d-hero-pills { display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); }
.d-hero-pill { padding: 16px 20px; background: var(--bg); font-size: 14px; color: var(--muted); }
.d-hero-pill strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1; color: var(--ink); }
.d-section { padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.d-section h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 4vw, 34px); line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 14px; }
.d-section h3, .ep-body h3, .d-guide h3 { font-family: var(--font-body); font-weight: 500; font-size: 16px; line-height: 1.35; color: var(--ink); margin: 22px 0 8px; }
.d-guide h4 { font-weight: 500; font-size: 14px; color: var(--ink); margin: 0 0 4px; }
.d-section p, .ep-body p, .d-guide p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.d-section a, .ep-body a { color: var(--ink); text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 2px; text-decoration-color: rgba(7, 7, 7, 0.4); text-underline-offset: 4px; }
.d-section code, .ep-body code, .d-guide code { font-family: var(--font-mono); font-size: 0.86em; background: var(--bg-2); border: 1px solid var(--line); padding: 1px 5px; }
.d-section ol, .d-section ul, .ep-body ol, .ep-body ul { margin: 0 0 12px 18px; padding: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.d-section li, .ep-body li { margin: 4px 0; }
.d-section pre, .ep-body pre, .d-guide pre { position: relative; margin: 12px 0 16px; padding: 16px 84px 16px 16px; border: 1px solid var(--line); background: var(--bg-2); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; color: var(--text); }
.d-section pre code, .ep-body pre code, .d-guide pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.d-guide { margin-bottom: 24px; padding: 20px 22px; border: 1px solid var(--line); background: var(--bg-2); }
.d-guide h3 { margin-top: 0; font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.d-guide pre { background: var(--bg); padding-right: 16px; }
.cp { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border: 1px solid var(--line-2); background: var(--bg); font-family: var(--font-mono); font-size: 11px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--ink); }
.cp:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 1px; margin: 12px 0 16px; background: var(--line); border: 1px solid var(--line); }
.info-card { padding: 16px 18px; background: var(--bg); font-size: 14px; line-height: 1.5; color: var(--muted); }
.info-card strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.1; color: var(--ink); }
.ep { border: 1px solid var(--line); margin-top: -1px; cursor: pointer; background: var(--bg); }
.ep:first-of-type, .d-section h3 + .ep, .d-section p + .ep, .d-guide + .ep { margin-top: 12px; }
.ep-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.ep-head:hover { background: var(--ink-5); }
.m { font-family: var(--font-mono); font-size: 11px; letter-spacing: -0.02em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--line-2); color: var(--ink); }
.m-post { background: var(--ink); color: #fff; border-color: var(--ink); }
.m-put, .m-patch { border-color: var(--ink); }
.m-delete { color: #a32d1d; border-color: #a32d1d; }
.ep-path { font-family: var(--font-mono); font-size: 13px; color: var(--ink); word-break: break-all; }
.ep-sum { flex: 1; font-size: 14px; color: var(--muted); }
.ep-chev { width: 16px; height: 16px; margin-left: auto; color: var(--faint); transition: transform 0.2s; }
.ep.open .ep-chev { transform: rotate(90deg); }
.ep-body { display: none; padding: 4px 16px 20px; border-top: 1px solid var(--line); cursor: default; }
.ep.open .ep-body { display: block; }
.ep-desc { margin: 12px 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.pt { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
.pt th { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: -0.02em; text-transform: uppercase; font-weight: 400; color: var(--muted); }
.pt td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; color: var(--text); }
.pt tr:last-child td { border-bottom: 0; }
.pn { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.pty { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.pr { font-family: var(--font-mono); font-size: 11px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--ink); }
.err { display: grid; grid-template-columns: 1fr; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.err-code { font-family: var(--font-mono); font-size: 13px; }
.err-st { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.err-msg { font-size: 14px; color: var(--text); }
.err-hint { font-size: 13px; color: var(--muted); }
.d-cb { margin: 12px 0; }
.d-cb-label { margin-bottom: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--muted); }
.d-note { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--text); }
.d-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--ink); }
.eto-b { display: inline-block; margin-left: 10px; padding: 2px 6px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: -0.02em; text-transform: uppercase; color: var(--muted); vertical-align: middle; }
.d-foot { padding: 32px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- About ---------- */
.lp-portrait { max-width: 288px; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--bg-2); }
.lp-portrait img { display: block; width: 100%; height: auto; }
.lp-story { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 40px; }
.lp-story-block { display: grid; grid-template-columns: 1fr; gap: 12px 48px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.lp-story-block .lp-h3 { max-width: 16ch; }
.lp-story-block p { font-size: 16px; line-height: 1.65; color: var(--text); }
.lp-story-block p + p { margin-top: 12px; }
.lp-story-block strong { font-weight: 500; color: var(--ink); }

/* ---------- Contact ----------
   Four routes sit in one hairline row across the top, the form fills the width
   underneath (fields beside the message box). The old two-column split left the
   form column empty below the button once the fourth cell was added. */
.lp-contact-cells .lp-cell { display: flex; flex-direction: column; }
.lp-contact-cells .lp-cell > p { flex: 1 1 auto; }
.lp-contact-cells .lp-cell-foot { margin-top: 20px; }
.lp-contact-form { margin-top: 32px; }
.lp-contact-fields { display: grid; gap: 18px; }
.lp-contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .lp-page-head { padding: 64px 0 44px; }
  .lp-page-head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .lp-page-body { padding: 48px 0 72px; }
  .lp-inline-form { flex-direction: row; }
  .lp-plans { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
  .d-hero-pills { grid-template-columns: repeat(3, 1fr); }
  .err { grid-template-columns: 220px 60px 1fr; }
  .err-hint { grid-column: 3; }
  .lp-story-block { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .lp-contact-form { margin-top: 40px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 40px; }
  .lp-contact-message { grid-column: 2; grid-row: 1; grid-template-rows: auto minmax(150px, 1fr); }
  .lp-contact-message .lp-textarea { height: 100%; min-height: 0; }
  .lp-contact-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .lp-contact-actions .lp-hint { text-align: right; }
}

@media (min-width: 900px) {
  .lp-page-head { padding: 80px 0 48px; }
  .lp-page-body { padding: 56px 0 80px; }
  .lp-two { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .lp-two.is-even { grid-template-columns: 1fr 1fr; }
  .lp-legal { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
  .lp-toc { display: block; position: sticky; top: 76px; align-self: start; }
  .lp-plans[data-count="1"] { grid-template-columns: minmax(0, 480px); }
  .lp-plans[data-count="2"] { grid-template-columns: 1fr 1fr; }
  .lp-plans[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
  .lp-plans[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
  .lp-plans[data-count="5"], .lp-plans[data-count="6"], .lp-plans[data-count="7"], .lp-plans[data-count="8"] { grid-template-columns: repeat(4, 1fr); }
  .lp-plan { padding: 32px 28px; }
  .lp-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 57px); }
  .lp-auth-form { max-width: none; margin: 0; padding: 72px 64px 80px var(--gutter); display: flex; flex-direction: column; justify-content: center; }
  .lp-auth-form > div { max-width: 440px; }
  .lp-auth-art { display: block; position: relative; overflow: hidden; border-left: 1px solid var(--line); }
  .lp-ways { grid-template-columns: 1fr 1fr; }
  .lp-contact-cells .lp-cell { padding: 24px; }
  .lp-contact-cells .lp-h3 { font-size: 24px; }
  .lp-contact-form { column-gap: 64px; }
  /* Four across only once a cell can hold a line of text; 2x2 on small laptops. */
  .lp-cells.lp-contact-cells { grid-template-columns: 1fr 1fr; }
  .lp-cells.lp-contact-cells .lp-cell { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
  .lp-cells.lp-contact-cells .lp-cell:nth-child(2n) { border-right: 0; }
  .lp-cells.lp-contact-cells .lp-cell:nth-last-child(-n + 2) { border-bottom: 0; }
  .fb-board { grid-template-columns: repeat(3, 1fr); }
  .lp-docs { grid-template-columns: 272px minmax(0, 1fr); }
  .d-overlay { display: none !important; }
  .d-side { display: block; position: sticky; top: 57px; bottom: auto; width: auto; height: calc(100vh - 57px); align-self: start; z-index: auto; }
  .d-burger { display: none; }
  .d-content { padding: 48px 48px 88px; }
}

@media (min-width: 1024px) {
  .lp-cells.lp-contact-cells { grid-template-columns: repeat(4, 1fr); }
  .lp-cells.lp-contact-cells .lp-cell { border-bottom: 0; border-right: 1px solid var(--line); }
  .lp-cells.lp-contact-cells .lp-cell:nth-child(2n) { border-right: 1px solid var(--line); }
  .lp-cells.lp-contact-cells .lp-cell:last-child { border-right: 0; }
}
