/* littlebigtool.dev front page. Same palette and monospace voice as the tools themselves (#1a1e24 slate, #60a8e0 blue, #e0a040 amber). */
:root {
  --bg: #12161c; --bg2: #161b22; --panel: #1a2029; --panel2: #202733; --line: #2a3340; --line2: #3a4658;
  --text: #c8d0d8; --bright: #eef2f6; --muted: #8e9aab; --blue: #60a8e0; --blue2: #80c0f0; --amber: #e0a040; --green: #7ac08a;
  --mono: 'Consolas', 'SF Mono', 'Menlo', 'Liberation Mono', 'Courier New', monospace;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.65 var(--mono); -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(rgba(96, 168, 224, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 168, 224, .035) 1px, transparent 1px);
  background-size: 32px 32px; }
a { color: var(--blue2); }
a:hover { color: var(--bright); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--amber); color: #12161c; padding: 8px 14px; z-index: 50; border-radius: 4px; text-decoration: none; font-weight: bold; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---- top bar ---- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px;
  background: rgba(18, 22, 28, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--bright); text-decoration: none; font-weight: bold; font-size: 16px; }
.brand .dot { color: var(--blue); }
.caret { color: var(--amber); margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
.mark { width: 30px; height: 30px; color: var(--blue); overflow: visible; }
.mark-gear { transform-origin: 16px 16px; animation: spin 24s linear infinite reverse; }
.mark-orbit { transform-origin: 16px 16px; animation: spin 9s linear infinite; color: var(--amber); }
.mark-dot { fill: var(--amber); }
.brand:hover .mark-gear { animation-duration: 3s; }
.brand:hover .mark-orbit { animation-duration: 1.2s; }
.bar nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.bar nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 4px; font-size: 13px; }
.bar nav a:hover { color: var(--bright); background: var(--panel); }
.bar nav .nav-hi { color: var(--amber); }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); min-height: min(86vh, 760px); display: flex; align-items: center;
  background: radial-gradient(ellipse at 76% 42%, rgba(96, 168, 224, .10), transparent 60%); }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; padding-top: 56px; padding-bottom: 56px; width: 100%; min-height: 560px; }
.hero-copy { align-self: center; }
.eyebrow { color: var(--amber); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
h1 { margin: 0 0 18px; font-size: clamp(34px, 6vw, 62px); line-height: 1.05; color: var(--bright); letter-spacing: -.02em; }
h1 .little { font-size: .74em; color: var(--blue2); }
h1 .big { font-size: 1.3em; color: var(--amber); display: inline-block; transform-origin: 50% 80%; animation: bigpulse 5s ease-in-out infinite; }
.lede { font-size: 17px; max-width: 560px; margin: 0 0 24px; color: var(--text); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.btn { display: inline-block; font: inherit; font-size: 14px; color: var(--blue2); background: transparent; border: 1px solid var(--line2); border-radius: 5px; padding: 11px 18px; min-height: 44px;
  text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .15s; }
.btn:hover { border-color: var(--blue); background: rgba(96, 168, 224, .1); color: var(--bright); }
.btn.primary { background: var(--blue); color: #0b1220; border-color: var(--blue); font-weight: bold; }
.btn.primary:hover { background: var(--blue2); color: #0b1220; transform: translateY(-1px); }

.term { align-self: end; justify-self: end; width: 100%; max-width: 470px; background: rgba(14, 18, 24, .88); border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); overflow: hidden; backdrop-filter: blur(4px); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4658; display: block; }
.term-bar i:nth-child(1) { background: #c0605a; } .term-bar i:nth-child(2) { background: var(--amber); } .term-bar i:nth-child(3) { background: var(--green); }
.term-bar span { margin-left: 8px; }
.term-body { margin: 0; padding: 16px 18px 20px; font: 13px/1.7 var(--mono); color: var(--text); min-height: 11.5em; white-space: pre-wrap; word-break: break-word; }
.term-body .cmd { color: var(--blue2); }
.term-body .out { color: var(--text); }
.cur { color: var(--amber); animation: blink 1s steps(1) infinite; }

/* ---- sections ---- */
.section { padding: 76px 0; }
h2 { font-size: clamp(24px, 3.4vw, 34px); color: var(--bright); margin: 0 0 8px; letter-spacing: -.01em; }
h2 .num { color: var(--amber); font-size: .6em; margin-right: 12px; vertical-align: .25em; }
h2 small { font-size: 13px; color: var(--muted); font-weight: normal; margin-left: 12px; letter-spacing: 0; }
.sub { color: var(--muted); max-width: 720px; margin: 0 0 32px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover, .card:focus-within { transform: translateY(-5px); border-color: var(--blue); box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(96, 168, 224, .35), 0 0 36px rgba(96, 168, 224, .12); }
.card .art { display: block; width: 100%; height: 190px; background: radial-gradient(ellipse at 50% 120%, #1d2a3c, #141922 70%); border-bottom: 1px solid var(--line); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.kicker { margin: 0 0 6px; font-size: 11px; color: var(--amber); text-transform: uppercase; letter-spacing: .09em; }
.card h3 { margin: 0 0 2px; font-size: 21px; color: var(--bright); }
.stretch { color: inherit; text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 2px solid var(--amber); outline-offset: -3px; border-radius: 10px; }
.tagline { margin: 0 0 10px; color: var(--blue2); font-size: 15px; }
.blurb { margin: 0 0 12px; font-size: 14px; color: var(--text); }
.facts { list-style: none; margin: 0 0 14px; padding: 0; font-size: 13px; color: var(--muted); }
.facts li { padding-left: 18px; position: relative; margin: 3px 0; }
.facts li::before { content: ">"; position: absolute; left: 0; color: var(--blue); }
.meta { margin: auto 0 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12px; color: var(--muted); }
.live { color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(122, 192, 138, .6); animation: ping 2.2s ease-out infinite; }
.cta { margin: 0; color: var(--blue2); font-size: 13px; }
.cta .arrow { display: inline-block; transition: transform .2s; }
.card:hover .cta .arrow { transform: translateX(6px); }

/* ---- the lab ---- */
.lab { background: linear-gradient(180deg, transparent, rgba(96, 168, 224, .035) 30%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lab-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lab-card { position: relative; padding: 18px 18px 16px; border: 1px dashed var(--line2); border-radius: 6px; background: rgba(26, 32, 41, .5); overflow: hidden; }
.lab-card::before, .lab-card::after { content: ""; position: absolute; width: 10px; height: 10px; border: 2px solid var(--blue); opacity: .55; }
.lab-card::before { top: 5px; left: 5px; border-right: 0; border-bottom: 0; }
.lab-card::after { bottom: 5px; right: 5px; border-left: 0; border-top: 0; }
.lab-card { --d: 0s; }
.lab-card h3 { margin: 6px 0 6px; font-size: 16px; color: var(--bright); }
.lab-card p { margin: 0 0 12px; font-size: 13px; color: #a2aebd; }
.code { font-size: 11px; color: var(--amber); letter-spacing: .1em; }
.chip { display: inline-block; font-size: 11px; color: var(--muted); border: 1px solid var(--line2); border-radius: 20px; padding: 1px 10px; }
.lab-card > .code::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--amber); vertical-align: middle; animation: blink 2.4s steps(1) infinite; animation-delay: var(--d); }
.lab-cta { margin: 28px 0 0; color: var(--muted); }
.linkish { font: inherit; color: var(--amber); background: none; border: 0; border-bottom: 1px dashed var(--amber); padding: 0 1px; cursor: pointer; }
.linkish:hover { color: var(--bright); }
@media (prefers-reduced-motion: no-preference) {
  .lab-card { background-image: linear-gradient(180deg, transparent 0, rgba(96, 168, 224, .09) 50%, transparent 100%); background-size: 100% 60px; background-repeat: no-repeat;
    animation: scan 5.5s linear infinite; animation-delay: var(--d); }
}

/* ---- principles ---- */
.rules { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rules li { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.rules svg { width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; transition: transform .3s; }
.rules li:hover svg { transform: rotate(-8deg) scale(1.1); stroke: var(--amber); }
.rules h3 { margin: 0 0 6px; font-size: 16px; color: var(--bright); }
.rules p { margin: 0; font-size: 13px; color: #a2aebd; }

.hi-box { text-align: center; padding: 44px 20px; border: 1px solid var(--line2); border-radius: 12px; background: radial-gradient(ellipse at 50% 0, rgba(224, 160, 64, .09), transparent 70%), var(--panel); }
.hi-box h2 { font-size: clamp(22px, 3vw, 30px); }
.hi-box p { color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 13px; }
.foot p { margin: 6px 0; }
.foot-links a { margin-right: 16px; }
.foot-links span { color: var(--muted); }
.foot-egg { color: #4a5668; font-size: 11px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; background: var(--panel2); color: var(--bright); border: 1px solid var(--amber); border-radius: 6px;
  padding: 10px 18px; z-index: 60; pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---- report dialog (base styles from /static/core/billing-ui.css) ---- */
.ex-dialog { --bu-bg: #1c222c; font-family: var(--mono); font-size: 13px; max-width: 440px; width: calc(100vw - 32px); }
.ex-row { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.ex-row > label { color: var(--bu-muted); }
.ex-row input, .ex-row select, .ex-row textarea { font: inherit; color: var(--bright); background: #12161c; border: 1px solid var(--line2); border-radius: 4px; padding: 8px; }
.hp-wrap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- motion ---- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bigpulse { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.06) rotate(-1.5deg); } }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(122, 192, 138, 0); } }
@keyframes scan { from { background-position: 0 -60px; } to { background-position: 0 calc(100% + 60px); } }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .grid .reveal:nth-child(2), .rules .reveal:nth-child(2) { transition-delay: .08s; }
  .grid .reveal:nth-child(3), .rules .reveal:nth-child(3) { transition-delay: .16s; }
  .rules .reveal:nth-child(4) { transition-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- small screens ---- */
@media (max-width: 960px) {
  .grid, .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .term { justify-self: stretch; max-width: none; }
  .hero { min-height: 0; }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .grid, .lab-grid, .rules { grid-template-columns: 1fr; }
  .bar { padding: 8px 12px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .bar nav { flex-wrap: nowrap; width: 100%; justify-content: space-between; margin: 0 -8px; }
  .bar nav a { padding: 13px 8px; white-space: nowrap; }
  .brand { min-height: 44px; }
  .brand-text .caret { display: none; }
  .section { padding: 52px 0; }
  .hero-grid { padding-top: 36px; padding-bottom: 36px; }
  h2 small { display: block; margin: 4px 0 0; }
}
@media (forced-colors: active) {
  .btn.primary { border: 2px solid ButtonText; }
  .card, .lab-card, .rules li { border: 1px solid CanvasText; }
}
