/*
 * Line Out: components
 * Needs tokens.css first. Every class starts with "lo-" so it can sit next to any other CSS.
 */

/* Base */
.lo { margin: 0; background: var(--lo-black); color: var(--lo-paper); font-family: var(--lo-sans); font-size: var(--lo-text-body); font-weight: var(--lo-weight-regular); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.lo *, .lo *::before, .lo *::after { box-sizing: border-box; }
.lo a { color: inherit; }
.lo-container { width: min(100% - 2 * var(--lo-gutter), var(--lo-container)); margin-inline: auto; }
.lo-narrow { width: min(100% - 2 * var(--lo-gutter), var(--lo-narrow)); margin-inline: auto; }
.lo-center { text-align: center; }
.lo-center .lo-lead { margin-inline: auto; }

/* Sections */
.lo-section { padding-block: var(--lo-section); }
.lo-section--panel { background: var(--lo-panel); }
.lo-section--rule { border-top: var(--lo-border); }
.lo-hr { height: 1px; margin: 0; border: 0; background: var(--lo-line); }

/* Type: light geometric sans, sentence or lower case, never bold */
.lo-hero-title, .lo-h2, .lo-h3 { margin: 0; font-family: var(--lo-sans); font-weight: var(--lo-weight-light); color: inherit; }
.lo-hero-title { font-size: var(--lo-text-hero); letter-spacing: var(--lo-tracking-hero); line-height: 1; }
.lo-h2 { font-size: var(--lo-text-h2); letter-spacing: -.015em; line-height: 1.08; }
.lo-h3 { font-size: var(--lo-text-h3); font-weight: var(--lo-weight-regular); line-height: 1.25; }
.lo-lead { max-width: 600px; margin: 20px 0 0; color: var(--lo-dim); font-size: var(--lo-text-lead); font-weight: var(--lo-weight-light); line-height: 1.5; }
.lo-micro { font-family: var(--lo-mono); font-size: var(--lo-text-micro); letter-spacing: var(--lo-tracking-micro); text-transform: uppercase; color: var(--lo-dim); }
.lo-signal { color: var(--lo-signal); }

/* Lockup: words stacked between hairline rules. The signature move */
.lo-lockup { display: inline-flex; flex-direction: column; min-width: min(100%, 300px); max-width: 100%; }
.lo-lockup > * { margin: 0; padding: 2px 0 1px; border-bottom: var(--lo-rule); font-family: var(--lo-sans); font-weight: var(--lo-weight-light); font-size: clamp(26px, 3vw, 36px); line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.lo-lockup > *:first-child strong { font-weight: var(--lo-weight-medium); }
.lo-lockup--hero > * { font-size: var(--lo-text-hero); letter-spacing: var(--lo-tracking-hero); }
.lo-lockup__note { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 0 !important; }
.lo-lockup__note small { font-family: var(--lo-mono); font-size: var(--lo-text-micro); letter-spacing: .04em; line-height: 1.3; text-align: right; text-transform: uppercase; }

/* Nav: wordmark left, items with a line icon and a stack of sub-links */
.lo-nav { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding-block: 18px 22px; }
.lo-wordmark { font-size: 24px; font-weight: var(--lo-weight-light); line-height: 1.1; text-decoration: none; letter-spacing: -.01em; }
.lo-nav__items { display: flex; gap: 36px; }
.lo-nav__item { display: flex; gap: 10px; text-decoration: none; }
.lo-nav__item svg { width: 38px; height: 38px; flex: none; }
.lo-nav__item b { display: block; font-size: 22px; font-weight: var(--lo-weight-light); line-height: 1.1; }
.lo-nav__item span { display: block; color: var(--lo-dim); font-size: 13px; line-height: 1.35; }
.lo-nav__item:hover b { color: var(--lo-signal); }
@media (max-width: 900px) { .lo-nav__items .lo-nav__item:nth-child(n+3) { display: none; } }
@media (max-width: 600px) { .lo-nav__items { display: none; } }

/* Line icons: inline SVG, no fill, 1.25px strokes in currentColor */
.lo-icon { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: var(--lo-stroke); stroke-linecap: square; }

/* Buttons: square, thin outline. Signal red only for the one main action */
.lo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--lo-paper); border-radius: var(--lo-radius); background: transparent; color: var(--lo-paper); font-family: var(--lo-mono); font-size: 12px; letter-spacing: var(--lo-tracking-micro); line-height: 1.2; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--lo-fast) var(--lo-ease), color var(--lo-fast) var(--lo-ease); }
.lo-btn:hover { background: var(--lo-paper); color: var(--lo-black); }
.lo-btn--signal { border-color: var(--lo-signal); background: var(--lo-signal); color: var(--lo-black); }
.lo-btn--signal:hover { border-color: var(--lo-signal-dark); background: var(--lo-signal-dark); color: var(--lo-black); }
.lo-btn--ghost { border-color: var(--lo-line-bright); color: var(--lo-dim); }
.lo-btn--block { width: 100%; }
.lo-btn:active { transform: translateY(1px); }
.lo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lo-center .lo-actions { justify-content: center; }

/* LED readout: a small black window with red dot-matrix digits */
.lo-readout { display: inline-flex; flex-direction: column; gap: 4px; padding: 10px 14px 8px; border: 1px solid #000; border-radius: var(--lo-radius); background: #000; box-shadow: inset 0 0 0 1px #1c1c1c; }
.lo-readout__value { position: relative; isolation: isolate; font-family: var(--lo-dot); font-weight: 700; font-size: var(--lo-text-readout); line-height: .9; color: var(--lo-signal); text-shadow: var(--lo-glow); letter-spacing: .02em; }
.lo-readout__value::before { content: attr(data-off); position: absolute; inset: 0; color: var(--lo-signal-off); text-shadow: none; z-index: -1; }
.lo-readout__label { font-family: var(--lo-mono); font-size: 10px; letter-spacing: var(--lo-tracking-micro); text-transform: uppercase; color: var(--lo-faint); }
.lo-readout--sm .lo-readout__value { font-size: 26px; }
.lo-led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lo-signal); box-shadow: var(--lo-glow); }
.lo-led--off { background: var(--lo-signal-off); box-shadow: none; }

/* Device: a brushed-aluminium slab drawn in CSS, with keys and a readout */
.lo-device { position: relative; padding: 28px; border-radius: 10px; background: var(--lo-alu-gradient); color: #2a2b2d; box-shadow: var(--lo-device-shadow), inset 0 1px 0 rgba(255, 255, 255, .7); }
.lo-device__label { font-family: var(--lo-mono); font-size: 10px; letter-spacing: var(--lo-tracking-micro); text-transform: uppercase; color: #4c4e52; }
.lo-device__keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lo-key { aspect-ratio: 1; border-radius: var(--lo-radius-key); background: var(--lo-key); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12); }
.lo-key--light { background: #e9e9ea; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.lo-key--signal { background: var(--lo-signal); }
.lo-key--cue { background: var(--lo-cue); box-shadow: var(--lo-glow-cue), inset 0 -3px 0 rgba(0, 0, 0, .3); }
.lo-knob { width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a4b4e, #161617 70%); box-shadow: 0 6px 10px rgba(0, 0, 0, .4); position: relative; }
.lo-knob::after { content: ""; position: absolute; left: 50%; top: 6px; width: 2px; height: 14px; background: var(--lo-paper); transform: translateX(-50%); }

/* Spec grid: hairline table of numbers, the way a datasheet reads */
.lo-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: var(--lo-border); border-left: var(--lo-border); }
.lo-spec { padding: 20px; border-right: var(--lo-border); border-bottom: var(--lo-border); }
.lo-spec strong { display: block; font-size: 34px; font-weight: var(--lo-weight-light); line-height: 1.1; }
.lo-spec span { display: block; margin-top: 6px; color: var(--lo-dim); font-size: var(--lo-text-small); }

/* Feature tiles: hairline boxes with a line icon on top */
.lo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--lo-gap); }
.lo-tile { padding: 24px; border: var(--lo-border); border-radius: var(--lo-radius); background: var(--lo-black); }
.lo-tile .lo-icon { margin-bottom: 48px; color: var(--lo-paper); }
.lo-tile__title { margin: 0 0 6px; font-size: 20px; font-weight: var(--lo-weight-regular); line-height: 1.25; }
.lo-tile__text { margin: 0; color: var(--lo-dim); font-size: 15px; }

/* Micro column: tiny uppercase text block, like a printed spec note */
.lo-note { max-width: 180px; font-family: var(--lo-mono); font-size: 10px; line-height: 1.45; letter-spacing: .04em; text-transform: uppercase; color: var(--lo-dim); }

/* Badge */
.lo-badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: var(--lo-border); border-radius: var(--lo-radius); font-family: var(--lo-mono); font-size: 10px; letter-spacing: var(--lo-tracking-micro); text-transform: uppercase; color: var(--lo-dim); white-space: nowrap; }
.lo-badge--signal { border-color: var(--lo-signal); color: var(--lo-signal); }

/* Marquee: a slow single-line ticker of micro text inside a clipped band */
.lo-ticker { overflow-x: clip; border-block: var(--lo-border); padding-block: 12px; }
.lo-ticker__track { display: flex; gap: 48px; width: max-content; animation: lo-tick 40s linear infinite; }
.lo-ticker__track span { font-family: var(--lo-mono); font-size: 12px; letter-spacing: var(--lo-tracking-micro); text-transform: uppercase; color: var(--lo-dim); white-space: nowrap; }
@keyframes lo-tick { to { transform: translateX(-50%); } }

/* Quote */
.lo-quote { margin: 0; }
.lo-quote blockquote { margin: 0; font-size: clamp(24px, 3vw, 36px); font-weight: var(--lo-weight-light); line-height: 1.25; }
.lo-quote figcaption { margin-top: 20px; }

/* Pricing: hairline columns, the featured plan outlined in signal red */
.lo-plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--lo-border); border-left: var(--lo-border); }
.lo-plan { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-right: var(--lo-border); border-bottom: var(--lo-border); }
.lo-plan--featured { outline: 1px solid var(--lo-signal); outline-offset: -1px; background: var(--lo-panel); }
.lo-plan__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lo-plan__price { font-size: 56px; font-weight: var(--lo-weight-light); line-height: 1; letter-spacing: -.02em; }
.lo-plan__price small { font-size: 15px; color: var(--lo-dim); letter-spacing: 0; }
.lo-plan__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--lo-dim); font-size: 15px; }
.lo-plan__list li { display: flex; gap: 10px; }
.lo-plan__list li::before { content: ""; flex: none; width: 10px; height: 1px; margin-top: 12px; background: var(--lo-paper); }
.lo-plan .lo-btn { margin-top: auto; }
@media (max-width: 860px) { .lo-plans { grid-template-columns: 1fr; } }

/* Toggle: two square segments */
.lo-toggle { display: inline-flex; border: var(--lo-border); }
.lo-toggle button { padding: 9px 16px; border: 0; background: transparent; color: var(--lo-dim); font-family: var(--lo-mono); font-size: 11px; letter-spacing: var(--lo-tracking-micro); text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.lo-toggle button[aria-pressed="true"] { background: var(--lo-paper); color: var(--lo-black); }

/* FAQ */
.lo-faq { border-top: var(--lo-border); }
.lo-faq details { border-bottom: var(--lo-border); padding-block: 18px; }
.lo-faq summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-size: 19px; font-weight: var(--lo-weight-light); }
.lo-faq summary::-webkit-details-marker { display: none; }
.lo-faq summary::after { content: "+"; font-family: var(--lo-mono); color: var(--lo-dim); }
.lo-faq details[open] summary::after { content: "-"; }
.lo-faq p { margin: 12px 0 0; color: var(--lo-dim); max-width: 640px; }

/* Article */
.lo-article { font-size: 18px; line-height: 1.7; }
.lo-article h2 { margin: 56px 0 12px; font-size: 30px; font-weight: var(--lo-weight-light); line-height: 1.2; }
.lo-article p { margin: 0 0 20px; color: #cfceca; }
.lo-article a { color: var(--lo-paper); text-decoration-color: var(--lo-signal); text-underline-offset: 4px; }
.lo-article ul { margin: 0 0 20px; padding-left: 20px; color: #cfceca; }
.lo-article blockquote { margin: 36px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--lo-signal); font-size: 24px; font-weight: var(--lo-weight-light); line-height: 1.35; color: var(--lo-paper); }
.lo-article code { padding: 2px 6px; border: var(--lo-border); font-family: var(--lo-mono); font-size: 14px; font-variant-ligatures: none; }
.lo-figure { margin: 40px 0; }
.lo-figure figcaption { margin-top: 10px; }
.lo-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Forms: square fields, hairline borders, micro labels */
.lo-form { display: grid; gap: 18px; }
.lo-field { display: grid; gap: 8px; }
.lo-label { font-family: var(--lo-mono); font-size: 11px; letter-spacing: var(--lo-tracking-micro); text-transform: uppercase; color: var(--lo-dim); }
.lo-input, .lo-select { width: 100%; padding: 13px 14px; border: var(--lo-border); border-radius: var(--lo-radius); background: var(--lo-black); color: var(--lo-paper); font-family: var(--lo-sans); font-size: 16px; }
.lo-input::placeholder { color: var(--lo-faint); }
.lo-input:focus, .lo-select:focus { outline: none; border-color: var(--lo-paper); }
.lo-check { display: flex; gap: 10px; align-items: flex-start; color: var(--lo-dim); font-size: 14px; }
.lo-check input { margin-top: 4px; accent-color: var(--lo-signal); }
.lo-hint { color: var(--lo-faint); font-size: 13px; }

/* Footer: columns of small links over a hairline, a micro line at the bottom */
.lo-footer { padding-block: 64px 32px; border-top: var(--lo-border); }
.lo-footer__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.lo-footer h4 { margin: 0 0 12px; font-family: var(--lo-mono); font-size: 11px; font-weight: 400; letter-spacing: var(--lo-tracking-micro); text-transform: uppercase; color: var(--lo-dim); }
.lo-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.lo-footer a { text-decoration: none; font-weight: var(--lo-weight-light); }
.lo-footer a:hover { color: var(--lo-signal); }
.lo-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: var(--lo-border); }
@media (max-width: 720px) { .lo-footer__cols { grid-template-columns: 1fr 1fr; } }

/* Motion */
.lo-boot { animation: lo-boot .6s steps(6) backwards; }
@keyframes lo-boot { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .lo-boot, .lo-ticker__track { animation: none; }
  .lo-btn { transition: none; }
}
