/* Lower half of the page: feature bento grid, boarding-pass install card, FAQ and footer. */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.tile {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s;
}
.tile:hover { border-color: rgba(255, 107, 26, 0.45); transform: translateY(-3px); }
.tile p { font-size: 15.5px; }
.tile-ai { grid-column: span 2; grid-row: span 2; background: radial-gradient(600px 300px at 100% 100%, var(--orange-soft), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.tile-ai h3 { font-size: 32px; max-width: 12ch; }
.tile-data { grid-column: span 2; }
.tile-ci { grid-column: span 2; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.tile-ci h3 { font-size: 24px; }

/* AI pilot mini chat */
.ai-demo { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.bubble { align-self: flex-end; max-width: 85%; background: var(--orange); color: #140700; font-weight: 500; font-size: 15px; padding: 12px 16px; border-radius: 16px 16px 4px 16px; }
.ai-log { list-style: none; margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7, 9, 13, 0.6); font: 13px/2 var(--mono); color: var(--muted); }
.ai-log li::before { content: "↳ "; color: var(--cyan); }
.ai-log li { opacity: 0; animation: log-in 0.4s ease forwards; }
.ai-log li:nth-child(2) { animation-delay: 0.6s; }
.ai-log li:nth-child(3) { animation-delay: 1.2s; }
.ai-log li:nth-child(4) { animation-delay: 1.8s; }
.ai-log .done { color: var(--green); }
.ai-log .done::before { content: "✓ "; color: var(--green); }

.vars { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.vars span { font: 13px var(--mono); color: var(--cyan); background: rgba(90, 209, 255, 0.08); border: 1px solid rgba(90, 209, 255, 0.25); border-radius: 8px; padding: 6px 10px; }

.runs { display: flex; align-items: center; gap: 4px; margin-top: 20px; }
.runs i { width: 10px; height: 26px; border-radius: 3px; background: var(--green); }
.runs i.f { background: var(--red); }
.runs b { margin-left: 10px; font: 600 11px var(--mono); letter-spacing: 0.1em; color: #ffb020; border: 1px solid rgba(255, 176, 32, 0.4); border-radius: 6px; padding: 3px 7px; }

.tile-ci pre { margin: 0; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--line); background: rgba(7, 9, 13, 0.7); font-size: 13.5px; line-height: 1.8; color: var(--muted); overflow-x: auto; }

.providers { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; font-size: 14px; }
.providers b { font: 500 13px var(--mono); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

/* Boarding pass */
.pass { display: grid; grid-template-columns: 1.5fr 1fr; margin-top: 56px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.pass-steps { list-style: none; counter-reset: s; margin: 0; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.pass-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; color: var(--muted); }
.pass-steps li::before { content: "0" counter(s); font: 600 14px var(--mono); color: var(--orange); padding-top: 2px; }
.stub { position: relative; padding: 36px; background: linear-gradient(160deg, rgba(255, 107, 26, 0.16), transparent 60%), var(--panel-2); border-left: 2px dashed var(--line); display: flex; flex-direction: column; gap: 24px; }
.stub::before, .stub::after { content: ""; position: absolute; left: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); }
.stub::before { top: -14px; }
.stub::after { bottom: -14px; }
.stub dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; }
.stub dt { font: 600 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stub dd { margin: 4px 0 0; font: 700 19px var(--display); }
.stub .btn { justify-content: center; }
.barcode { height: 44px; opacity: 0.5; background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 5px, var(--text) 5px 6px, transparent 6px 10px, var(--text) 10px 13px, transparent 13px 15px); }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font: 700 20px var(--display); letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--orange); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; max-width: 46em; }

/* Footer */
.footer { margin-top: 160px; padding-bottom: 32px; }
.wordmark { font: 800 clamp(72px, 19vw, 260px)/0.8 var(--display); letter-spacing: -0.06em; margin: 0 0 28px; color: transparent; -webkit-text-stroke: 1px #2a3442; text-align: center; user-select: none; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--muted); }

@keyframes log-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .tile-ai, .tile-data, .tile-ci { grid-column: auto; grid-row: auto; }
  .tile-ci, .pass, .faq { grid-template-columns: 1fr; }
  .stub { border-left: 0; border-top: 2px dashed var(--line); }
  .stub::before, .stub::after { display: none; }
  .pass-steps, .stub { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-log li { opacity: 1; }
}
