/* Managed WordPress page — page-local component styles.
   Base classes (.tiers/.tier/.fgrid/.ftile/.compare/.cta-band/.hero/.hero-meta)
   come from kepler.css. This file only adds the new components:
   .win/.lp-tile, .kt*, .logbox, .wpm*, and the hero-scrim/compact overrides. */

/* ── Launchpad window mockup ── */
.win { margin-top:56px; background:var(--paper); border:1px solid var(--rule); border-radius:16px; overflow:hidden; box-shadow:0 30px 70px -40px rgba(20,30,80,0.28); }
.win-bar { display:flex; align-items:center; gap:8px; padding:13px 18px; background:var(--paper-2); border-bottom:1px solid var(--rule); }
.win-bar .d { width:10px; height:10px; border-radius:50%; background:var(--rule-strong); }
.win-bar .ttl { margin-left:8px; font-family:"IBM Plex Mono",monospace; font-size:11.5px; color:var(--ink-3); letter-spacing:0.03em; }
.lp-tiles { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--rule); }
.lp-tile { background:var(--paper); padding:22px 22px 20px; display:flex; flex-direction:column; gap:10px; }
.lp-tile .ic { width:34px; height:34px; border-radius:9px; background:var(--blue-soft); color:var(--blue-deep); display:flex; align-items:center; justify-content:center; }
.lp-tile .nm { font-weight:600; font-size:14.5px; letter-spacing:-0.01em; }
.lp-tile .meta { font-family:"IBM Plex Mono",monospace; font-size:11.5px; color:var(--ink-4); line-height:1.5; }
.lp-tile .chip { align-self:flex-start; margin-top:auto; font-family:"IBM Plex Mono",monospace; font-size:10px; letter-spacing:0.08em; text-transform:uppercase; padding:3px 9px; border-radius:5px; background:var(--ok-soft); color:var(--ok); }

/* ── Kepler Tools (dark differentiator panel) ── */
.kt { background:var(--ink); border-radius:22px; padding:52px; margin-top:52px; }
.kt-head { max-width:640px; }
.kt-head .eyebrow { color:var(--blue-bright); }
.kt-head h2 { color:#fff; }
.kt-head p { color:rgba(255,255,255,0.62); margin-top:14px; font-size:16px; line-height:1.6; }
.kt-grid { margin-top:40px; display:grid; grid-template-columns:1fr 1fr; gap:1px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.08); border-radius:16px; overflow:hidden; }
.kt-row { background:#0d1424; padding:22px 26px; display:flex; align-items:center; gap:16px; }
.kt-row .ic { flex-shrink:0; width:38px; height:38px; border-radius:10px; background:rgba(79,131,255,0.14); color:var(--blue-bright); display:flex; align-items:center; justify-content:center; }
.kt-row .tx { flex:1; min-width:0; }
.kt-row .tx .nm { color:#fff; font-weight:600; font-size:14.5px; letter-spacing:-0.01em; }
.kt-row .tx .ds { color:rgba(255,255,255,0.5); font-size:12.5px; line-height:1.5; margin-top:3px; }
.kt-row .ctl { flex-shrink:0; display:flex; align-items:center; }

.tsw { width:42px; height:24px; border-radius:99px; background:rgba(255,255,255,0.14); border:none; position:relative; cursor:pointer; flex-shrink:0; transition:background .15s; }
.tsw::after { content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition:transform .15s; }
.tsw.on { background:var(--blue); }
.tsw.on::after { transform:translateX(18px); }

.kt-sel { background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14); color:#fff; font:inherit; font-size:13px;
  font-family:"IBM Plex Mono",monospace; border-radius:8px; padding:8px 12px; cursor:pointer; }
.kt-sel option { background:#0d1424; color:#fff; }
.kt-inp { background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14); color:#fff; font:inherit; font-size:12.5px;
  font-family:"IBM Plex Mono",monospace; border-radius:8px; padding:8px 12px; width:150px; }
.kt-btn { background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.18); color:#fff; font:inherit; font-size:12.5px; font-weight:500;
  border-radius:8px; padding:9px 14px; cursor:pointer; transition:background .14s; white-space:nowrap; }
.kt-btn:hover { background:rgba(255,255,255,0.18); }
.kt-btn.done { background:rgba(30,158,106,0.2); border-color:rgba(30,158,106,0.4); color:#7FE3B4; }

/* ── log viewer ── */
.logbox { margin-top:40px; background:#0B1020; border-radius:14px; overflow:hidden; }
.logbox .bar { display:flex; align-items:center; gap:8px; padding:13px 18px; background:rgba(255,255,255,0.04); }
.logbox .bar .d { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,0.14); }
.logbox .bar .ttl { margin-left:8px; font-family:"IBM Plex Mono",monospace; font-size:11.5px; color:rgba(255,255,255,0.4); }
.logbox .bar .live { margin-left:auto; display:flex; align-items:center; gap:6px; font-family:"IBM Plex Mono",monospace; font-size:10.5px; letter-spacing:0.08em; text-transform:uppercase; color:#7FE3B4; }
.logbox .bar .live .pulse { width:6px; height:6px; border-radius:50%; background:#7FE3B4; animation:lpulse 1.4s infinite; }
@keyframes lpulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }
.logbox .lines { padding:18px 24px 24px; font-family:"IBM Plex Mono",monospace; font-size:12.5px; line-height:2; }
.logbox .lines .ln { color:rgba(232,238,255,0.4); white-space:nowrap; overflow-x:auto; }
.logbox .lines .lv { display:inline-block; width:52px; font-weight:600; }
.logbox .lines .lv.info { color:#82C7F5; } .logbox .lines .lv.ok { color:#7FE3B4; }
.logbox .lines .lv.warn { color:#F0B25A; } .logbox .lines .lv.err { color:#F5768B; }
.logbox .lines .msg { color:#E8EEFF; }

/* small section spacing helpers */
.sec-tight { padding-top:0; }
@media (max-width:1024px){ .lp-tiles { grid-template-columns:1fr 1fr; } .kt-grid { grid-template-columns:1fr; } .kt { padding:36px 26px; } }
@media (max-width:640px){ .lp-tiles { grid-template-columns:1fr; } }

/* ── hero: block-editor inspired mock ── */
.hero-card.compact { min-height:600px; }
.hero-card.compact .hero-inner.left { max-width:640px; padding-top:100px; padding-bottom:100px; margin-left:0; margin-right:auto; }
.hero-card.compact .hero-space { display:flex; align-items:center; justify-content:flex-end; padding-right:6%; }
/* Let the headline use the empty space next to the mock card — widen the text
   column progressively as the card moves further right on larger screens
   (values verified card-safe at each breakpoint's tight end). The sub-paragraph
   stays capped for readability. */
@media (min-width:1440px){ .hero-card.compact .hero-inner.left { max-width:780px; } }
@media (min-width:1680px){ .hero-card.compact .hero-inner.left { max-width:960px; } }
.hero-card.compact .hero-inner.left .hero-sub { max-width:600px; }
.hero-scrim { position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(100deg, rgba(6,10,30,0.6) 0%, rgba(6,10,30,0.4) 30%, rgba(6,10,30,0) 58%); }
.wpm-wrap { position:relative; display:inline-block; }
.wpm-card { position:relative; width:400px; background:#fff; border-radius:16px; transform:rotate(-3deg);
  box-shadow:0 44px 90px -28px rgba(6,12,40,0.55), 0 1px 0 rgba(255,255,255,0.5) inset; overflow:visible;
  animation:wpmFloat 6.5s ease-in-out infinite alternate; }
@keyframes wpmFloat { from { transform:rotate(-3deg) translateY(0); } to { transform:rotate(-1.4deg) translateY(-14px); } }
.wpm-bar { display:flex; align-items:center; gap:6px; padding:12px 15px; border-bottom:1px solid var(--rule); border-radius:16px 16px 0 0; background:var(--paper); overflow:hidden; }
.wpm-bar .d { width:8px; height:8px; border-radius:50%; background:var(--rule-strong); }
.wpm-ttl { margin-left:7px; font-family:"IBM Plex Mono",monospace; font-size:10.5px; color:var(--ink-4); letter-spacing:0.02em; }
.wpm-pub { margin-left:auto; font-family:"IBM Plex Mono",monospace; font-size:9px; text-transform:uppercase; letter-spacing:0.08em; background:var(--ok-soft); color:var(--ok); padding:3px 8px; border-radius:5px; font-weight:600; }
.wpm-body { padding:24px 24px 28px; display:flex; flex-direction:column; gap:15px; border-radius:0 0 16px 16px; background:#fff; }
.wpm-h { font-family:"Space Grotesk",sans-serif; font-weight:600; font-size:19px; color:var(--ink); letter-spacing:-0.015em; }
.wpm-caret { display:inline-block; width:2px; height:16px; background:var(--blue); margin-left:2px; vertical-align:-3px; animation:wpblink 1s step-end infinite; }
@keyframes wpblink { 50%{ opacity:0; } }
.wpm-p { display:flex; flex-direction:column; gap:7px; }
.wpm-p i { display:block; height:7px; border-radius:4px; background:var(--paper-3); }
.wpm-block { position:relative; margin:6px 0; }
.wpm-block.sel { outline:1.5px dashed var(--blue); outline-offset:5px; border-radius:8px; }
.wpm-img { height:104px; border-radius:9px; background:linear-gradient(135deg,#E4ECFE,#F0F5FF); display:flex; align-items:center; justify-content:center; }
.wpm-img svg { color:var(--blue); opacity:0.55; }
.wpm-toolbar { position:absolute; top:-32px; left:0; display:flex; gap:2px; background:var(--ink); border-radius:8px; padding:4px; box-shadow:0 10px 22px -10px rgba(0,0,0,0.5); }
.wpm-toolbar span { width:21px; height:21px; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,0.85); font-size:11px; border-radius:5px; }
.wpm-btn { align-self:flex-start; background:var(--blue); color:#fff; font-size:12.5px; font-weight:600; padding:9px 17px; border-radius:8px; letter-spacing:-0.005em; }
.wpm-chip { position:absolute; font-family:"IBM Plex Mono",monospace; font-size:11px; font-weight:500; background:#fff; color:var(--ink-2); padding:9px 14px; border-radius:11px;
  box-shadow:0 16px 34px -14px rgba(6,12,40,0.4); display:flex; align-items:center; gap:7px; white-space:nowrap; }
.wpm-chip .gd { width:6px; height:6px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 3px var(--ok-soft); flex-shrink:0; }
.wpm-chip.a { top:10%; left:-6%; animation:wpmChipA 5.5s ease-in-out infinite alternate; }
.wpm-chip.b { bottom:6%; right:-8%; animation:wpmChipB 7s ease-in-out infinite alternate; animation-delay:-1.4s; }
@keyframes wpmChipA { from { transform:rotate(-4deg) translateY(0); } to { transform:rotate(-7deg) translateY(-9px); } }
@keyframes wpmChipB { from { transform:rotate(3deg) translateY(0); } to { transform:rotate(6deg) translateY(8px); } }
@media (prefers-reduced-motion: reduce){ .wpm-card, .wpm-chip.a, .wpm-chip.b, .wpm-caret { animation:none; } }
@media (max-width:1180px) and (min-width:761px){
  .wpm-card { width:320px; }
  .wpm-chip { font-size:10px; padding:7px 11px; }
  .hero-card.compact .hero-inner.left { max-width:400px; margin-left:0; margin-right:auto; }
  .hero-card.compact .hero-space { padding-right:3%; }
}
@media (max-width:760px){
  .hero-card.compact .hero-space { display:none; }
  .hero-card.compact .hero-inner.left { max-width:640px; margin:0 auto; align-items:center; text-align:center; }
  .hero-card.compact .hero-inner.left .hero-ctas { justify-content:center; }
}
