/*
 * Low Cloud: components
 * Built only from tokens.css. Load tokens.css first.
 */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
.lc { margin: 0; background: var(--lc-night); color: var(--lc-text); font-family: var(--lc-sans); font-size: var(--lc-text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
:where(.lc) a { color: inherit; text-decoration: none; }
:where(.lc) img, :where(.lc) svg { display: block; max-width: 100%; }
.lc ::selection { background: var(--lc-violet-lit); color: var(--lc-deep); }
.lc-container { width: 100%; max-width: var(--lc-container); margin: 0 auto; padding: 0 var(--lc-gutter); }
.lc-narrow { width: 100%; max-width: var(--lc-narrow); margin: 0 auto; padding: 0 var(--lc-gutter); }
.lc-section { position: relative; padding: var(--lc-section) 0; }
.lc-section--flush { padding-top: 0; }
.lc-center { text-align: center; }
.lc-rule { height: 1px; border: 0; margin: 0; background: var(--lc-line); }

/* Type */
.lc-display, .lc-h1, .lc-h2 { margin: 0; font-family: var(--lc-serif); font-weight: var(--lc-weight-bold); letter-spacing: var(--lc-tracking-display); line-height: var(--lc-leading-display); text-wrap: balance; }
.lc-display { font-size: var(--lc-text-display); }
.lc-h1 { font-size: var(--lc-text-h1); }
.lc-h2 { font-size: var(--lc-text-h2); line-height: 1.1; }
.lc-h3 { margin: 0; font-size: var(--lc-text-h3); font-weight: var(--lc-weight-bold); line-height: 1.3; letter-spacing: -.01em; }
.lc-lead { margin: 0; max-width: 620px; color: var(--lc-mist); font-size: var(--lc-text-lead); line-height: 1.5; }
.lc-center .lc-lead { margin-left: auto; margin-right: auto; }
.lc-muted { color: var(--lc-mist); }
.lc-dim { color: var(--lc-dim); }
.lc-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--lc-mono); font-size: var(--lc-text-micro); color: var(--lc-violet-lit); text-transform: uppercase; letter-spacing: .08em; }
.lc-underline { text-decoration: underline; text-decoration-color: var(--lc-line-bright); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lc-underline:hover { text-decoration-color: var(--lc-text); }

/* Buttons */
.lc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--lc-radius); border: 1px solid var(--lc-line-bright); background: var(--lc-deep); color: var(--lc-text); font: var(--lc-weight-medium) 17px/1 var(--lc-sans); white-space: nowrap; cursor: pointer; box-shadow: var(--lc-edge); transition: background var(--lc-fast) var(--lc-ease), border-color var(--lc-fast) var(--lc-ease), transform var(--lc-fast) var(--lc-ease); }
.lc-btn:hover { background: var(--lc-panel); }
.lc-btn:focus-visible { outline: none; box-shadow: var(--lc-ring); }
.lc-btn--violet { background: var(--lc-violet); border-color: var(--lc-violet-lit); box-shadow: var(--lc-shadow-btn); }
.lc-btn--violet:hover { background: var(--lc-violet-lit); transform: translateY(-1px); }
.lc-btn--plain { background: transparent; border-color: transparent; box-shadow: none; color: var(--lc-mist); }
.lc-btn--plain:hover { background: transparent; color: var(--lc-text); }
.lc-btn--sm { height: 38px; padding: 0 14px; font-size: 15px; }
.lc-btn--block { width: 100%; }
.lc-btn svg { width: 16px; height: 16px; }
.lc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lc-center .lc-actions { justify-content: center; }

/* Nav */
.lc-nav { position: relative; z-index: 5; }
.lc-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.lc-wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--lc-sans); font-weight: var(--lc-weight-bold); font-size: 21px; letter-spacing: -.02em; }
.lc-wordmark svg { width: 26px; height: 26px; }
.lc-nav__links { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: var(--lc-weight-medium); color: var(--lc-mist); }
.lc-nav__links a { display: inline-flex; align-items: center; gap: 6px; }
.lc-nav__links a:hover { color: var(--lc-text); }
.lc-nav__links svg { width: 10px; height: 10px; opacity: .6; }
.lc-nav__end { display: flex; align-items: center; gap: 4px; }
@media (max-width: 900px) { .lc-nav__links { display: none; } }
@media (max-width: 480px) { .lc-nav__end .lc-btn--plain { display: none; } }

/* The sky: a framed panel with stars and slow cloud banks */
.lc-sky { position: relative; isolation: isolate; overflow: clip; margin: 0 var(--lc-frame-inset); border-radius: var(--lc-radius-frame); border: 1px solid var(--lc-line); background: var(--lc-sky); }
.lc-sky::before { content: ""; position: absolute; z-index: -2; inset: 0; background: var(--lc-stars); opacity: .85; }
.lc-sky::after { content: ""; position: absolute; z-index: -1; top: -4%; left: -8%; right: -8%; aspect-ratio: 16 / 9; max-height: 108%; background: var(--lc-clouds); filter: blur(3px); animation: lc-drift var(--lc-drift) linear infinite alternate; }
.lc-sky--soft::after { opacity: .6; }
.lc-sky--low::after { top: auto; bottom: -4%; }
.lc-sky--flat { margin: 0; border-radius: var(--lc-radius-lg); }
@keyframes lc-drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
@media (prefers-reduced-motion: reduce) { .lc-sky::after { animation: none; } }
@media (max-width: 600px) { .lc-sky { margin: 0 8px; border-radius: var(--lc-radius-lg); } .lc-sky--flat { margin: 0; } }

/* Hero */
.lc-hero { padding-block: clamp(72px, 11vw, 140px) 0; }
.lc-hero__body { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 820px; margin: 0 auto; text-align: center; }
.lc-hero__stage { position: relative; margin-top: clamp(56px, 8vw, 96px); padding: 0 clamp(0px, 4vw, 56px); }
.lc-hero__stage .lc-window { margin-bottom: -1px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* App window */
.lc-window { position: relative; overflow: hidden; border-radius: var(--lc-radius-lg); background: var(--lc-deep); border: 1px solid var(--lc-line); box-shadow: var(--lc-shadow-window); }
.lc-window__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 48px; padding: 0 16px; border-bottom: var(--lc-border); font-size: 13px; }
.lc-crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; color: var(--lc-text); }
.lc-crumbs span { color: var(--lc-dim); }
.lc-tabs { display: flex; gap: 20px; color: var(--lc-dim); font-size: 12px; white-space: nowrap; }
.lc-tabs .is-on { color: var(--lc-text); box-shadow: 0 15px 0 -13px var(--lc-violet-lit); }
@media (max-width: 760px) { .lc-tabs { display: none; } }
.lc-canvas { position: relative; min-height: 360px; padding: 20px; background-image: var(--lc-dots); background-size: var(--lc-dots-size); }

/* Nodes on the canvas */
.lc-node { width: 220px; padding: 14px; border-radius: var(--lc-radius); background: var(--lc-panel); border: 1px solid var(--lc-line-bright); box-shadow: var(--lc-edge), 0 10px 24px -14px rgba(0, 0, 0, .9); font-size: 13px; }
.lc-node__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: var(--lc-weight-bold); }
.lc-node__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--lc-dim); font-family: var(--lc-mono); font-size: 11px; }
.lc-node.is-active { border-color: var(--lc-violet-lit); box-shadow: var(--lc-ring), 0 10px 24px -14px rgba(0, 0, 0, .9); }
.lc-avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--lc-raise); border: 1px solid var(--lc-line-bright); font-size: 11px; font-weight: var(--lc-weight-bold); color: var(--lc-text); }
.lc-avatar--violet { background: var(--lc-violet-deep); border-color: var(--lc-violet-lit); }
.lc-avatar--rose { background: var(--lc-cloud); border-color: var(--lc-cloud-lit); }

/* Badges */
.lc-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--lc-radius-sm); border: 1px solid var(--lc-line-bright); background: var(--lc-panel); font-family: var(--lc-mono); font-size: 11px; color: var(--lc-mist); white-space: nowrap; }
.lc-badge--mint { color: var(--lc-mint); border-color: rgba(127, 213, 178, .3); background: rgba(127, 213, 178, .07); }
.lc-badge--amber { color: var(--lc-amber); border-color: rgba(232, 180, 103, .3); background: rgba(232, 180, 103, .07); }
.lc-badge--violet { color: var(--lc-violet-lit); border-color: rgba(142, 119, 242, .35); background: rgba(142, 119, 242, .08); }
.lc-badge--rose { color: var(--lc-rose); border-color: rgba(238, 143, 166, .3); background: rgba(238, 143, 166, .07); }
.lc-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }

/* Logos row */
.lc-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px; color: var(--lc-dim); font-family: var(--lc-serif); font-size: 20px; font-weight: var(--lc-weight-medium); }

/* Section header */
.lc-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(40px, 6vw, 64px); }
.lc-head.lc-center { align-items: center; }

/* Cards */
.lc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.lc-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--lc-radius-lg); background: var(--lc-panel); border: var(--lc-border); box-shadow: var(--lc-edge); }
.lc-card p { margin: 0; color: var(--lc-mist); }
.lc-card__art { position: relative; height: 180px; margin: -28px -28px 8px; border-bottom: var(--lc-border); background-image: var(--lc-dots); background-size: var(--lc-dots-size); border-radius: var(--lc-radius-lg) var(--lc-radius-lg) 0 0; overflow: hidden; }
.lc-card__art--sky { background: var(--lc-sky); }
.lc-card__art--sky::before { content: ""; position: absolute; inset: 0; background: var(--lc-stars); }
.lc-card__art--sky::after { content: ""; position: absolute; inset: -10%; background: var(--lc-clouds); filter: blur(2px); }
.lc-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--lc-radius); background: var(--lc-raise); border: 1px solid var(--lc-line-bright); color: var(--lc-violet-lit); }
.lc-icon svg { width: 18px; height: 18px; }

/* Split feature */
.lc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.lc-split__copy { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 860px) { .lc-split { grid-template-columns: minmax(0, 1fr); } }
.lc-checks { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; color: var(--lc-mist); }
.lc-checks li { display: flex; gap: 10px; align-items: flex-start; }
.lc-checks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 4px; background: rgba(142, 119, 242, .15); border: 1px solid var(--lc-violet-lit); box-shadow: inset 0 0 0 3px var(--lc-panel); }

/* Stats */
.lc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: var(--lc-border); border-bottom: var(--lc-border); }
.lc-stat { padding: 32px 24px; border-left: var(--lc-border); }
.lc-stat:first-child { border-left: 0; }
.lc-stat b { display: block; font-family: var(--lc-serif); font-size: clamp(36px, 4vw, 52px); font-weight: var(--lc-weight-bold); letter-spacing: -.02em; line-height: 1.1; }
.lc-stat span { color: var(--lc-mist); font-size: var(--lc-text-small); }

/* Quote */
.lc-quote { margin: 0; font-family: var(--lc-serif); font-size: clamp(24px, 3vw, 36px); font-weight: var(--lc-weight-medium); line-height: 1.3; letter-spacing: -.015em; }
.lc-cite { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; font-size: var(--lc-text-small); color: var(--lc-mist); font-style: normal; }
.lc-cite b { color: var(--lc-text); font-weight: var(--lc-weight-medium); }

/* Pricing */
.lc-toggle { display: inline-flex; padding: 4px; border-radius: var(--lc-radius); background: var(--lc-deep); border: var(--lc-border); }
.lc-toggle button { height: 34px; padding: 0 16px; border: 0; border-radius: var(--lc-radius-sm); background: transparent; color: var(--lc-mist); font: var(--lc-weight-medium) 14px/1 var(--lc-sans); cursor: pointer; white-space: nowrap; }
.lc-toggle button.is-on { background: var(--lc-raise); color: var(--lc-text); box-shadow: var(--lc-edge); }
.lc-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.lc-plan { display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: var(--lc-radius-lg); background: var(--lc-panel); border: var(--lc-border); box-shadow: var(--lc-edge); }
.lc-plan--featured { border-color: var(--lc-violet-lit); background: linear-gradient(180deg, rgba(106, 79, 214, .16) 0%, var(--lc-panel) 45%); box-shadow: var(--lc-ring); }
.lc-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lc-price { display: flex; align-items: baseline; gap: 6px; }
.lc-price b { font-family: var(--lc-serif); font-size: 52px; font-weight: var(--lc-weight-bold); letter-spacing: -.03em; line-height: 1; }
.lc-price span { color: var(--lc-dim); font-size: var(--lc-text-small); }
.lc-plan p { margin: 0; color: var(--lc-mist); font-size: 15px; }
.lc-plan .lc-checks { margin: 0; font-size: 15px; }
.lc-plan .lc-btn { margin-top: auto; }
.lc-table-wrap { overflow-x: auto; border-radius: var(--lc-radius-lg); border: var(--lc-border); background: var(--lc-deep); }
.lc-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.lc-table th, .lc-table td { padding: 14px 20px; text-align: left; border-bottom: var(--lc-border); }
.lc-table thead th { font-family: var(--lc-mono); font-size: 11px; font-weight: var(--lc-weight-regular); text-transform: uppercase; letter-spacing: .08em; color: var(--lc-dim); background: var(--lc-panel); }
.lc-table tbody th { font-weight: var(--lc-weight-regular); color: var(--lc-mist); }
.lc-table tr:last-child th, .lc-table tr:last-child td { border-bottom: 0; }
.lc-yes { color: var(--lc-mint); }
.lc-no { color: var(--lc-dim); }

/* FAQ */
.lc-faq { border-top: var(--lc-border); }
.lc-faq details { border-bottom: var(--lc-border); }
.lc-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: var(--lc-weight-medium); cursor: pointer; list-style: none; }
.lc-faq summary::-webkit-details-marker { display: none; }
.lc-faq summary::after { content: "+"; flex: none; color: var(--lc-violet-lit); font-family: var(--lc-mono); font-size: 20px; }
.lc-faq details[open] summary::after { content: "\2212"; }
.lc-faq p { margin: 0 0 22px; color: var(--lc-mist); max-width: 620px; }

/* Article */
.lc-article-head { display: flex; flex-direction: column; gap: 20px; padding-block: clamp(56px, 9vw, 110px) clamp(40px, 6vw, 64px); }
.lc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--lc-dim); font-size: var(--lc-text-small); }
.lc-byline { display: flex; align-items: center; gap: 12px; font-size: var(--lc-text-small); }
.lc-byline b { display: block; font-weight: var(--lc-weight-medium); }
.lc-byline small { color: var(--lc-dim); font-size: 13px; }
.lc-prose { font-size: 18px; line-height: 1.75; color: var(--lc-mist); }
.lc-prose > * { margin: 0 0 24px; }
.lc-prose h2 { margin: 56px 0 18px; font-family: var(--lc-serif); font-size: 32px; font-weight: var(--lc-weight-bold); line-height: 1.2; letter-spacing: -.02em; color: var(--lc-text); }
.lc-prose h3 { margin: 36px 0 12px; font-size: 20px; color: var(--lc-text); }
.lc-prose strong { color: var(--lc-text); font-weight: var(--lc-weight-bold); }
.lc-prose a { color: var(--lc-text); text-decoration: underline; text-decoration-color: var(--lc-violet-lit); text-underline-offset: 4px; }
.lc-prose ul, .lc-prose ol { padding-left: 22px; }
.lc-prose li { margin-bottom: 8px; }
.lc-prose li::marker { color: var(--lc-violet-lit); }
.lc-prose blockquote { margin: 40px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--lc-violet-lit); font-family: var(--lc-serif); font-size: 26px; line-height: 1.4; color: var(--lc-text); }
.lc-prose code { padding: 2px 6px; border-radius: var(--lc-radius-sm); background: var(--lc-panel); border: var(--lc-border); font-family: var(--lc-mono); font-size: .85em; color: var(--lc-text); }
.lc-figure { margin: 40px 0; }
.lc-figure figcaption { margin-top: 12px; font-family: var(--lc-mono); font-size: var(--lc-text-micro); color: var(--lc-dim); }
.lc-callout { padding: 20px 24px; border-radius: var(--lc-radius-lg); background: var(--lc-panel); border: var(--lc-border); border-left: 2px solid var(--lc-amber); font-size: 16px; }
.lc-callout b { display: block; margin-bottom: 4px; color: var(--lc-text); }

/* Forms */
.lc-form { display: grid; gap: 18px; }
.lc-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.lc-field { display: grid; gap: 8px; }
.lc-label { font-size: var(--lc-text-small); font-weight: var(--lc-weight-medium); color: var(--lc-text); }
.lc-hint { font-size: 13px; color: var(--lc-dim); }
.lc-input, .lc-select { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--lc-radius); border: 1px solid var(--lc-line-bright); background: var(--lc-deep); color: var(--lc-text); font: 400 16px/1 var(--lc-sans); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); transition: border-color var(--lc-fast) var(--lc-ease); }
.lc-input::placeholder { color: var(--lc-dim); }
.lc-input:focus, .lc-select:focus { outline: none; border-color: var(--lc-violet-lit); box-shadow: var(--lc-ring); }
.lc-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--lc-mist) 50%), linear-gradient(135deg, var(--lc-mist) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.lc-check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--lc-text-small); color: var(--lc-mist); }
.lc-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--lc-violet); }
.lc-choice { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.lc-choice label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--lc-radius); border: 1px solid var(--lc-line-bright); background: var(--lc-deep); font-size: 15px; cursor: pointer; }
.lc-choice input { accent-color: var(--lc-violet); }
.lc-choice label:has(input:checked) { border-color: var(--lc-violet-lit); background: rgba(106, 79, 214, .12); }
.lc-divider { display: flex; align-items: center; gap: 14px; color: var(--lc-dim); font-size: 13px; }
.lc-divider::before, .lc-divider::after { content: ""; flex: 1; height: 1px; background: var(--lc-line); }

/* Auth layout */
.lc-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; min-height: calc(100vh - 72px); padding: 0 var(--lc-frame-inset) var(--lc-frame-inset); }
.lc-auth__form { display: flex; flex-direction: column; justify-content: center; gap: 28px; width: 100%; max-width: 440px; margin: 0 auto; padding: 48px 8px; }
.lc-auth__sky { display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; margin: 0; padding: 40px; }
@media (max-width: 900px) { .lc-auth { grid-template-columns: minmax(0, 1fr); padding: 0 8px 8px; } .lc-auth__sky { min-height: 360px; padding: 24px; } }

/* CTA */
.lc-cta { padding: clamp(72px, 10vw, 130px) 24px; text-align: center; }
.lc-cta .lc-h1 { max-width: 760px; margin: 0 auto 20px; }
.lc-cta .lc-lead { margin: 0 auto 32px; }

/* Footer */
.lc-footer { padding: 64px 0 40px; border-top: var(--lc-border); color: var(--lc-mist); font-size: var(--lc-text-small); }
.lc-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.lc-footer h4 { margin: 0 0 14px; font-family: var(--lc-mono); font-size: 11px; font-weight: var(--lc-weight-regular); text-transform: uppercase; letter-spacing: .08em; color: var(--lc-dim); }
.lc-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lc-footer a:hover { color: var(--lc-text); }
.lc-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: var(--lc-border); color: var(--lc-dim); font-size: 13px; }
@media (max-width: 760px) { .lc-footer__grid { grid-template-columns: 1fr 1fr; } .lc-footer__grid > :first-child { grid-column: 1 / -1; } }
