/*
 * Lime Tilt: components
 * Built only from tokens.css. Load tokens.css first.
 */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.lt {
  margin: 0;
  background: var(--lt-rails), var(--lt-black);
  color: var(--lt-text);
  font-family: var(--lt-sans);
  font-size: var(--lt-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.lt a { color: inherit; }
.lt svg { display: block; max-width: 100%; }
.lt ::selection { background: var(--lt-lime); color: var(--lt-lime-ink); }

.lt-container { width: 100%; max-width: var(--lt-container); margin: 0 auto; padding: 0 var(--lt-gutter); }
.lt-section { padding: var(--lt-space-8) 0; }
.lt-center { text-align: center; }
.lt-center .lt-lead { margin-left: auto; margin-right: auto; }

/* ---------- Type ---------- */
.lt-hero-title, .lt-h1, .lt-h2 {
  font-family: var(--lt-display);
  font-weight: 700;
  letter-spacing: var(--lt-track-display);
  margin: 0;
  text-wrap: balance;
}
.lt-hero-title { font-size: var(--lt-text-hero); line-height: 1.04; }
.lt-h1 { font-size: var(--lt-text-h1); line-height: 1.08; }
.lt-h2 { font-size: var(--lt-text-h2); line-height: 1.1; }
.lt-h3 { font-family: var(--lt-display); font-size: var(--lt-text-h3); font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; margin: 0; }
.lt-lead { font-size: var(--lt-text-lead); color: var(--lt-dim); margin: 0; max-width: 580px; line-height: 1.6; }
.lt-body { color: var(--lt-dim); margin: 0; }
.lt-mute { color: var(--lt-faint); }
.lt-hl { color: var(--lt-lime); }
.lt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--lt-space-2);
  font-family: var(--lt-mono);
  font-size: var(--lt-text-micro);
  color: var(--lt-lime);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 var(--lt-space-4);
}
.lt-eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--lt-lime); border-radius: 1px; }

/* ---------- Buttons ---------- */
.lt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--lt-space-2);
  height: 44px;
  padding: 0 var(--lt-space-5);
  border-radius: var(--lt-radius);
  border: 0;
  font-family: var(--lt-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.lt-btn--lime, .lt a.lt-btn--lime { background: var(--lt-lime); color: var(--lt-lime-ink); box-shadow: var(--lt-shadow-lime); }
.lt-btn--lime:hover, .lt a.lt-btn--lime:hover { background: var(--lt-lime-deep); }
.lt-btn--line { background: var(--lt-panel); color: var(--lt-text); box-shadow: 0 0 0 1px var(--lt-line-bright) inset; }
.lt-btn--line:hover { background: var(--lt-hover); }
.lt-btn--sm { height: 32px; padding: 0 var(--lt-space-3); font-size: 13px; }
.lt-btn--block { width: 100%; }
.lt-btn__chev { font-family: var(--lt-mono); font-weight: 500; }
.lt-btn__icon { color: var(--lt-violet); }
.lt-actions { display: flex; flex-wrap: wrap; gap: var(--lt-space-3); }
.lt-center .lt-actions { justify-content: center; }

/* ---------- Nav ---------- */
.lt-nav { position: relative; z-index: 5; border-bottom: 1px solid transparent; }
.lt-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--lt-space-4); height: 60px; }
.lt-nav__left { display: flex; align-items: center; gap: var(--lt-space-6); }
.lt-brand { display: inline-flex; align-items: center; gap: var(--lt-space-2); font-family: var(--lt-display); font-weight: 800; font-size: 18px; letter-spacing: -0.03em; text-decoration: none; }
.lt-brand__mark { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 17px solid var(--lt-lime); }
.lt-nav__links { display: flex; gap: var(--lt-space-5); font-size: 14px; font-weight: 500; }
.lt-nav__links a { text-decoration: none; color: var(--lt-text); opacity: .85; }
.lt-nav__links a:hover { opacity: 1; }
.lt-nav__right { display: flex; align-items: center; gap: var(--lt-space-4); font-size: 14px; font-weight: 500; }
.lt-nav__right a:not(.lt-btn) { text-decoration: none; }
@media (max-width: 860px) { .lt-nav__links, .lt-nav__hide { display: none; } }

/* ---------- Hero with the tilted log ---------- */
.lt-hero { position: relative; overflow: hidden; padding: var(--lt-space-8) 0 var(--lt-space-7); background: var(--lt-glow); }
.lt-hero__content { position: relative; z-index: 2; text-align: center; padding-top: var(--lt-space-7); }
.lt-hero__content .lt-lead { margin: var(--lt-space-5) auto var(--lt-space-6); }
.lt-hero__content .lt-actions { justify-content: center; }
.lt-tilt {
  position: absolute;
  z-index: 1;
  top: 40px;
  left: -4%;
  width: 880px;
  transform: var(--lt-tilt);
  transform-origin: center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 10%, transparent 78%);
  opacity: .75;
}
.lt-tilt__tabs { display: flex; gap: var(--lt-space-6); padding: var(--lt-space-3) var(--lt-space-5); border: var(--lt-border); border-bottom: 0; border-radius: var(--lt-radius-lg) var(--lt-radius-lg) 0 0; font-family: var(--lt-mono); font-size: 22px; color: var(--lt-faint); }
.lt-tilt__tabs b { color: var(--lt-text); font-weight: 500; }
.lt-tilt__body { border: var(--lt-border); padding: var(--lt-space-5); font-family: var(--lt-mono); font-size: 26px; line-height: 1.75; color: var(--lt-dim); background: rgba(20, 21, 24, .6); }
.lt-tilt__body .lt-hl { color: var(--lt-lime); }
.lt-tilt__body .lt-v { color: var(--lt-violet); }
.lt-tilt__body .lt-a { color: var(--lt-amber); }
@media (max-width: 760px) { .lt-tilt { width: 560px; left: -50%; top: 10px; opacity: .5; } }

/* ---------- Chips row ---------- */
.lt-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--lt-space-2); }
.lt-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--lt-space-2);
  height: 36px;
  padding: 0 14px;
  border-radius: var(--lt-radius);
  background: var(--lt-panel);
  box-shadow: 0 0 0 1px var(--lt-line) inset;
  font-size: 14px;
  white-space: nowrap;
}
.lt-chip__icon { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.lt-i-lime { background: var(--lt-lime); }
.lt-i-violet { background: var(--lt-violet); }
.lt-i-sky { background: var(--lt-sky); }
.lt-i-amber { background: var(--lt-amber); }
.lt-i-rose { background: var(--lt-rose); }
.lt-i-round { border-radius: 50%; }
.lt-marquee { overflow-x: clip; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lt-marquee__track { display: flex; gap: var(--lt-space-2); width: max-content; animation: lt-slide 40s linear infinite; }
@keyframes lt-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lt-marquee__track { animation: none; } }

/* ---------- Badges ---------- */
.lt-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--lt-radius-sm); background: var(--lt-lime-soft); color: var(--lt-lime); font-family: var(--lt-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.lt-badge--quiet { background: var(--lt-raised); color: var(--lt-dim); }
.lt-announce { display: inline-flex; align-items: center; gap: var(--lt-space-3); padding: 4px 12px 4px 4px; border-radius: var(--lt-radius-pill); box-shadow: 0 0 0 1px var(--lt-line-bright) inset; background: var(--lt-panel); font-size: 13px; color: var(--lt-dim); text-decoration: none; margin-bottom: var(--lt-space-5); }
.lt-announce .lt-badge { border-radius: var(--lt-radius-pill); }

/* ---------- Cards ---------- */
.lt-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lt-space-4); }
.lt-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--lt-space-4); }
@media (max-width: 900px) { .lt-grid-3, .lt-grid-2 { grid-template-columns: 1fr; } }
.lt-card {
  background: var(--lt-panel);
  border: var(--lt-border);
  border-radius: var(--lt-radius-lg);
  padding: var(--lt-space-5);
  box-shadow: var(--lt-shadow-card);
}
.lt-card .lt-h3 { margin-bottom: var(--lt-space-2); }
.lt-card__screen { border: var(--lt-border); border-radius: var(--lt-radius); background: var(--lt-black); margin-bottom: var(--lt-space-5); overflow: hidden; }
.lt-card--lime { border-color: var(--lt-lime-line); }

/* Code and logs */
.lt-log { font-family: var(--lt-mono); font-size: 12.5px; line-height: 1.9; color: var(--lt-dim); padding: var(--lt-space-3) var(--lt-space-4); white-space: pre; overflow-x: auto; }
.lt-log .ok { color: var(--lt-lime); }
.lt-log .run { color: var(--lt-sky); }
.lt-log .wait { color: var(--lt-amber); }
.lt-log .fail { color: var(--lt-rose); }
.lt-log .key { color: var(--lt-violet); }
.lt-screen__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: var(--lt-border); font-family: var(--lt-mono); font-size: 11px; color: var(--lt-faint); }
.lt-screen__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--lt-line-bright); }

/* Run rows: a list of jobs with status */
.lt-runs { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.lt-runs li { display: grid; grid-template-columns: 14px 1fr auto; gap: var(--lt-space-3); align-items: center; padding: 10px 14px; border-bottom: var(--lt-border); }
.lt-runs li:last-child { border-bottom: 0; }
.lt-runs span:last-child { font-family: var(--lt-mono); font-size: 12px; color: var(--lt-faint); }
.lt-status { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Stats ---------- */
.lt-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--lt-border); border-bottom: var(--lt-border); }
.lt-stat { padding: var(--lt-space-6) var(--lt-space-5); border-right: var(--lt-border); }
.lt-stat:last-child { border-right: 0; }
.lt-stat__num { font-family: var(--lt-display); font-size: 40px; font-weight: 700; letter-spacing: var(--lt-track-display); line-height: 1.05; }
.lt-stat__label { color: var(--lt-dim); font-size: 14px; }
@media (max-width: 760px) {
  .lt-stats { grid-template-columns: 1fr 1fr; }
  .lt-stat:nth-child(2) { border-right: 0; }
  .lt-stat:nth-child(-n+2) { border-bottom: var(--lt-border); }
}

/* ---------- Quote ---------- */
.lt-quote { font-family: var(--lt-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; line-height: 1.3; margin: 0 0 var(--lt-space-5); }
.lt-person { display: flex; align-items: center; gap: var(--lt-space-3); font-size: 14px; color: var(--lt-dim); }
.lt-person b { display: block; color: var(--lt-text); font-weight: 600; }
.lt-avatar { width: 40px; height: 40px; border-radius: var(--lt-radius); background: linear-gradient(135deg, var(--lt-lime), var(--lt-sky)); flex: none; }

/* ---------- Forms ---------- */
.lt-field { display: grid; gap: 6px; margin-bottom: var(--lt-space-4); }
.lt-label { font-size: 14px; font-weight: 600; }
.lt-hint { font-size: 13px; color: var(--lt-faint); }
.lt-input, .lt-select {
  width: 100%;
  height: 44px;
  padding: 0 var(--lt-space-4);
  background: var(--lt-black);
  border: 1px solid var(--lt-line-bright);
  border-radius: var(--lt-radius);
  color: var(--lt-text);
  font-family: var(--lt-sans);
  font-size: 15px;
}
.lt-input::placeholder { color: var(--lt-faint); }
.lt-input:focus, .lt-select:focus { outline: none; border-color: var(--lt-lime); box-shadow: var(--lt-ring); }
.lt-check { display: flex; gap: var(--lt-space-3); align-items: flex-start; font-size: 14px; color: var(--lt-dim); }
.lt-check input { accent-color: var(--lt-lime); width: 17px; height: 17px; margin: 2px 0 0; flex: none; }
.lt-choice { display: flex; flex-wrap: wrap; gap: var(--lt-space-2); }
.lt-choice label { cursor: pointer; }
.lt-choice input { position: absolute; opacity: 0; pointer-events: none; }
.lt-choice label:has(input:checked) .lt-chip { box-shadow: 0 0 0 1px var(--lt-lime) inset; background: var(--lt-lime-soft); }
.lt-divider { display: flex; align-items: center; gap: var(--lt-space-3); color: var(--lt-faint); font-family: var(--lt-mono); font-size: 12px; text-transform: uppercase; margin: var(--lt-space-5) 0; }
.lt-divider::before, .lt-divider::after { content: ""; flex: 1; border-top: var(--lt-border); }

/* ---------- Pricing ---------- */
.lt-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--lt-radius-lg); background: var(--lt-panel); box-shadow: 0 0 0 1px var(--lt-line) inset; }
.lt-toggle button { height: 32px; padding: 0 14px; border: 0; border-radius: var(--lt-radius); background: transparent; color: var(--lt-dim); font: 600 14px var(--lt-sans); cursor: pointer; white-space: nowrap; }
.lt-toggle button[aria-pressed="true"] { background: var(--lt-hover); color: var(--lt-text); }
.lt-plan { display: flex; flex-direction: column; gap: var(--lt-space-4); background: var(--lt-panel); border: var(--lt-border); border-radius: var(--lt-radius-lg); padding: var(--lt-space-6) var(--lt-space-5); }
.lt-plan--featured { border-color: var(--lt-lime-line); box-shadow: 0 0 0 4px var(--lt-lime-soft), var(--lt-shadow-card); }
.lt-plan__name { display: flex; align-items: center; justify-content: space-between; font-family: var(--lt-display); font-weight: 700; font-size: 18px; }
.lt-plan__price { font-family: var(--lt-display); font-size: 46px; font-weight: 700; letter-spacing: var(--lt-track-display); line-height: 1; }
.lt-plan__price small { font-family: var(--lt-sans); font-size: 14px; font-weight: 500; color: var(--lt-dim); letter-spacing: 0; }
.lt-plan ul { list-style: none; margin: 0; padding: var(--lt-space-4) 0 0; border-top: var(--lt-border); display: grid; gap: 10px; font-size: 14px; color: var(--lt-dim); flex: 1; }
.lt-plan li { display: flex; gap: var(--lt-space-2); }
.lt-plan li::before { content: "+"; font-family: var(--lt-mono); color: var(--lt-lime); flex: none; }
.lt-table-wrap { overflow-x: auto; }
.lt-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.lt-table th, .lt-table td { padding: 14px var(--lt-space-3); border-bottom: var(--lt-border); text-align: left; }
.lt-table th { font-family: var(--lt-mono); font-size: 12px; font-weight: 500; color: var(--lt-faint); text-transform: uppercase; letter-spacing: .05em; }
.lt-table td:not(:first-child) { color: var(--lt-dim); }
.lt-faq details { border-bottom: var(--lt-border); padding: var(--lt-space-4) 0; }
.lt-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--lt-space-4); font-weight: 600; }
.lt-faq summary::after { content: "+"; font-family: var(--lt-mono); color: var(--lt-lime); }
.lt-faq details[open] summary::after { content: "-"; }
.lt-faq p { color: var(--lt-dim); margin: var(--lt-space-3) 0 0; }

/* ---------- Article ---------- */
.lt-article { max-width: var(--lt-read); margin: 0 auto; }
.lt-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lt-space-3); font-size: 14px; color: var(--lt-dim); margin-top: var(--lt-space-5); }
.lt-prose { font-size: var(--lt-text-read); line-height: 1.75; color: #D4D4DA; }
.lt-prose h2 { font-family: var(--lt-display); font-weight: 700; font-size: 26px; letter-spacing: -0.025em; line-height: 1.25; color: var(--lt-text); margin: var(--lt-space-7) 0 var(--lt-space-3); }
.lt-prose p { margin: 0 0 var(--lt-space-5); }
.lt-prose a { color: var(--lt-lime); text-underline-offset: 3px; }
.lt-prose ul { padding-left: 1.2em; margin: 0 0 var(--lt-space-5); }
.lt-prose li { margin-bottom: var(--lt-space-2); }
.lt-prose li::marker { color: var(--lt-lime); }
.lt-prose code { font-family: var(--lt-mono); font-size: .85em; padding: 2px 6px; border-radius: var(--lt-radius-sm); background: var(--lt-raised); color: var(--lt-lime); }
.lt-prose blockquote { margin: var(--lt-space-6) 0; padding: var(--lt-space-4) var(--lt-space-5); border-left: 3px solid var(--lt-lime); background: var(--lt-panel); font-family: var(--lt-display); font-weight: 600; font-size: 21px; line-height: 1.4; color: var(--lt-text); }
.lt-figure { margin: var(--lt-space-6) 0; }
.lt-figure figcaption { font-size: 14px; color: var(--lt-faint); margin-top: var(--lt-space-3); }

/* ---------- CTA and footer ---------- */
.lt-cta { position: relative; overflow: hidden; text-align: center; padding: var(--lt-space-8) var(--lt-gutter); border: var(--lt-border); border-radius: var(--lt-radius-xl); background: var(--lt-glow), var(--lt-panel); }
.lt-cta .lt-lead { margin: var(--lt-space-4) auto var(--lt-space-6); }
.lt-cta .lt-actions { justify-content: center; }
.lt-footer { border-top: var(--lt-border); padding: var(--lt-space-7) 0 var(--lt-space-6); margin-top: var(--lt-space-8); font-size: 14px; color: var(--lt-dim); }
.lt-footer__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--lt-space-6); }
.lt-footer h4 { color: var(--lt-text); font-size: 13px; font-family: var(--lt-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 var(--lt-space-3); }
.lt-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--lt-space-2); }
.lt-footer a { text-decoration: none; }
.lt-footer a:hover { color: var(--lt-text); }
.lt-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--lt-space-3); margin-top: var(--lt-space-7); padding-top: var(--lt-space-5); border-top: var(--lt-border); font-size: 13px; color: var(--lt-faint); }
.lt-footer__status { display: inline-flex; align-items: center; gap: var(--lt-space-2); font-family: var(--lt-mono); font-size: 12px; }
.lt-footer__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lt-lime); }
@media (max-width: 760px) { .lt-footer__cols { grid-template-columns: 1fr 1fr; } .lt-footer__cols > :first-child { grid-column: 1 / -1; } }
