/* Homepage sections added for 0.1.4: what's in it, Share, getting started. */

.new-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-right: 10px;
  padding: 4px 12px 4px 4px; border-radius: 99px; text-decoration: none;
  background: var(--ember-soft); border: 1px solid color-mix(in srgb, var(--ember) 35%, var(--line));
  color: var(--ink); font-weight: 600;
}
.new-tag span { background: var(--ember); color: var(--on-ember); padding: 3px 8px; border-radius: 99px; font-size: 12px; }
.new-tag:hover { text-decoration: none; border-color: var(--ember); }
.chip-new { background: var(--moss-soft); color: var(--moss); }

/* What's in it */
.ft-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ft-grid { grid-template-columns: 1fr; } }
.ft { padding: 24px; position: relative; overflow: hidden; }
.ft::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 60% at 0% 0%, var(--ember-soft), transparent 70%);
}
.ft-share::before { background: radial-gradient(90% 60% at 0% 0%, color-mix(in srgb, #D6336C 16%, transparent), transparent 70%); }
.ft > * { position: relative; }
.ft-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--ember-soft); color: var(--ember-text); margin-bottom: 16px; }
.ft-share .ft-ico { background: color-mix(in srgb, #D6336C 16%, transparent); color: color-mix(in srgb, #D6336C 75%, var(--ink)); }
.ft-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ft h3 { font-size: 21px; margin-bottom: 8px; }
.ft p { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }

/* Share */
.sh-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .sh-grid { grid-template-columns: 1fr; } }
.sh-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.sh-points li { padding-left: 22px; position: relative; color: var(--text-2); }
.sh-points li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 3px; background: #D6336C; transform: skewX(-10deg); }
.sh-points b { color: var(--ink); }
.sh-card {
  margin: 0; padding: 22px; border-radius: 22px;
  background:
    radial-gradient(100% 70% at 100% 0%, color-mix(in srgb, #D6336C 18%, transparent), transparent 70%),
    var(--surface);
}
.sh-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid color-mix(in srgb, #D6336C 30%, var(--line)); }
.sh-live { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--f-text); color: color-mix(in srgb, #D6336C 75%, var(--ink)); }
.sh-live i { width: 8px; height: 8px; border-radius: 50%; background: #D6336C; animation: ty-blink 1.6s ease-in-out infinite; }
.sh-url { flex: 1; min-width: 0; font: 500 14px/1 var(--f-mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-btn { font: 600 13px/1 var(--f-text); color: #fff; background: linear-gradient(180deg, #8A1A48, #6A1238); padding: 8px 12px; border-radius: 8px; }
.sh-list { list-style: none; margin: 16px 0 0; padding: 0; }
.sh-list li { display: flex; align-items: center; gap: 10px; padding: 12px 6px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.sh-list li:first-child { border-top: 0; }
.sh-list b { color: var(--ink); font-weight: 600; min-width: 46px; }
.sh-list span:not(.sh-dot) { flex: 1; font-family: var(--f-mono); font-size: 12.5px; }
.sh-list em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--m, var(--muted)); }
.sh-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--m); box-shadow: 0 0 0 4px color-mix(in srgb, var(--m) 18%, transparent); }
.sh-list li:nth-child(1) em, .sh-list li:nth-child(2) em { --m: var(--ember-text); }
.sh-list li:nth-child(3) em { --m: #9A80C6; }
.sh-foot { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.sh-off { font-weight: 600; color: var(--ink); border: 1px solid var(--line-strong); padding: 7px 11px; border-radius: 8px; }

/* Getting started: the thanks page's cards, without the pictures. */
#start .ty-step { grid-row: span 4; }
#start .ty-step .ty-text > :nth-child(4) { margin-bottom: 26px; }
.ty-step .ty-text > .ty-h { font-size: 26px; font-weight: 700; margin: 0 26px 12px; align-self: start; }
.eyebrow .new-tag { white-space: nowrap; font-family: var(--f-text); font-size: 13px; }
#start .ty-cmd { font-size: 12px; }

/* OS badges in the app section's platform list: the platform pages' badge, small. */
ul.ap-plats > li > a { grid-template-columns: 9.3em minmax(0, 1fr) auto; align-items: center; }
ul.ap-plats > li b { display: inline-flex; align-items: center; gap: 12px; }
.ap-badge {
  position: relative; flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: radial-gradient(70% 70% at 35% 30%, color-mix(in srgb, var(--ember) 22%, transparent), transparent 75%), var(--surface-2);
  border: 1px solid var(--line-strong);
}
.ap-badge-os { width: 26px; height: 26px; fill: var(--ink); opacity: .9; margin: -8px 8px 0 0; }
.ap-badge-k { position: absolute; right: 2px; bottom: 2px; width: 26px; height: 26px; color: var(--ink); }
.sp-view { display: inline-block; margin-top: 8px; font-weight: 600; color: color-mix(in srgb, #D6336C 70%, var(--ink)); }

/* Hero art: an illustrated Kiri window with live numbers, a share link and a
   start-time note floating off it, and the mascot running in. */
.hx { position: relative; margin: 0; padding: 34px 26px 46px 10px; min-width: 0; }
.hx-glow { position: absolute; inset: -10% -14% -6% 4%; z-index: 0; pointer-events: none;
  background: radial-gradient(45% 50% at 55% 40%, color-mix(in srgb, var(--ember) 30%, transparent), transparent 70%),
              radial-gradient(35% 40% at 20% 85%, color-mix(in srgb, #D6336C 26%, transparent), transparent 70%); filter: blur(10px); }
.hx-win {
  --w-bg: #0F1419; --w-side: #121920; --w-panel: #171D24; --w-line: #2A313A; --w-text: #F2F0EB; --w-muted: #98A1AC; --w-moss: #3FB68B;
  position: relative; z-index: 1; border-radius: 16px; overflow: hidden; background: var(--w-bg); color: var(--w-text);
  font: 13px/1.35 -apple-system, BlinkMacSystemFont, var(--f-text);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1) inset;
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg); transform-origin: 40% 50%;
}
.hx-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: var(--w-side); border-bottom: 1px solid var(--w-line); }
.hx-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.hx-bar i:nth-child(2) { background: #FEBC2E; } .hx-bar i:nth-child(3) { background: #28C840; }
.hx-bar span { margin-left: 10px; font-size: 12px; color: var(--w-muted); font-weight: 600; }
.hx-body { display: grid; grid-template-columns: 52px minmax(0, 1fr); }
.hx-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; background: var(--w-side); border-right: 1px solid var(--w-line); }
.hx-rail svg { width: 34px; height: 34px; padding: 9px; border-radius: 9px; fill: var(--w-muted); }
.hx-rail svg.on { fill: #4D8DFF; background: rgba(77, 141, 255, .14); }
.hx-rail svg.sh { fill: #F06595; margin-top: auto; }
.hx-main { padding: 16px; display: grid; gap: 14px; min-width: 0; }
.hx-head { display: flex; align-items: center; justify-content: space-between; }
.hx-head b { font-size: 16px; }
.hx-vm { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--w-muted); }
.hx-vm i { width: 7px; height: 7px; border-radius: 50%; background: var(--w-moss); box-shadow: 0 0 0 3px rgba(63, 182, 139, .2); }
.hx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hx-stat { position: relative; padding: 11px 12px; border-radius: 12px; background: var(--w-panel); border: 1px solid var(--w-line); display: grid; gap: 4px; overflow: hidden; }
.hx-stat .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--w-muted); }
.hx-stat b { font: 700 24px/1 var(--f-display); letter-spacing: -.02em; }
.hx-stat small { font-size: 12px; color: var(--w-muted); font-weight: 600; }
.hx-bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.hx-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 2px; background: linear-gradient(180deg, #F2CF5B, #C99A0E); }
.hx-ring { position: absolute; right: 9px; bottom: 9px; width: 26px; height: 26px; transform: rotate(-90deg); }
.hx-ring circle { fill: none; stroke: var(--w-line); stroke-width: 4; }
.hx-ring .v { stroke: #4D8DFF; stroke-linecap: round; }
.hx-spark { width: 100%; height: 20px; }
.hx-spark path { fill: none; stroke: var(--w-moss); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.hx-spark path.a { fill: rgba(63, 182, 139, .16); stroke: none; }
.hx-list { list-style: none; margin: 0; padding: 0; border-radius: 12px; border: 1px solid var(--w-line); background: var(--w-panel); }
.hx-list li { display: grid; grid-template-columns: 26px 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; }
.hx-list li + li { border-top: 1px solid var(--w-line); }
.hx-list li.off { opacity: .6; }
.hx-list .t { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 24%, #1E252D); color: color-mix(in srgb, var(--c) 55%, #FFFFFF); }
.hx-list .t svg { width: 17px; height: 17px; fill: currentColor; }
.hx-list li { grid-template-columns: 28px 56px minmax(0, 1fr) auto !important; }
.hx-list .img { color: var(--w-muted); font: 12px/1 var(--f-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-list .up { font-size: 11.5px; color: var(--w-moss); }
.hx-list .ex { font-size: 11.5px; color: var(--w-muted); }
.hx-live { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; color: #F39BBE; background: rgba(214, 51, 108, .16); border: 1px solid rgba(214, 51, 108, .4); }
.hx-live i { width: 6px; height: 6px; border-radius: 50%; background: #F06595; animation: ty-blink 1.6s ease-in-out infinite; }

.hx-toast, .hx-share { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; border-radius: 14px;
  background: rgba(23, 29, 36, .92); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .12); color: #F2F0EB;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); font-size: 12.5px; }
.hx-toast { right: 0; top: 0; padding: 10px 14px 10px 10px; animation: hx-float 6s ease-in-out infinite; }
.hx-toast b { display: block; font-size: 12.5px; }
.hx-toast em { font-style: normal; color: #E8C04A; font: 600 12px/1.3 var(--f-mono); }
.hx-bolt { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(160deg, #F2CF5B, #C99A0E); font-size: 14px; }
.hx-share { left: -8px; bottom: 6px; padding: 9px 10px; animation: hx-float 6s ease-in-out -3s infinite; }
.hx-share .u { font: 500 12.5px/1 var(--f-mono); }
.hx-share .c { padding: 5px 9px; border-radius: 7px; background: linear-gradient(180deg, #8A1A48, #6A1238); font-weight: 600; font-size: 11.5px; }
.hx-kiri { position: absolute; z-index: 3; right: 6px; bottom: -6px; width: 84px; height: 84px; color: var(--ink); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); animation: hx-float 5s ease-in-out -1s infinite; }
@keyframes hx-float { 50% { transform: translateY(-6px); } }

@media (max-width: 900px) { .hx-win { transform: perspective(1000px) rotateY(-7deg) rotateX(3deg); } .hx { padding: 30px 6px 44px 0; } }
@media (max-width: 520px) {
  .hx-stats { grid-template-columns: 1fr 1fr; } .hx-stat:nth-child(3) { display: none; }
  .hx-list li { grid-template-columns: 26px minmax(0, 1fr) auto; } .hx-list .img { display: none; }
  .hx-kiri { width: 60px; height: 60px; } .hx-share { left: 0; }
}
@media (prefers-reduced-motion: reduce) { .hx-toast, .hx-share, .hx-kiri, .hx-live i { animation: none; } }

/* The terminal, now in its own section. */
.cli-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .cli-grid { grid-template-columns: 1fr; } }
.cli-grid .sh-points li::before { background: var(--ember); }

.hx-banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 12px;
  background: linear-gradient(90deg, rgba(214, 51, 108, .16), rgba(214, 51, 108, .04)); border: 1px solid rgba(214, 51, 108, .3); }
.hx-banner .u { font: 500 12.5px/1 var(--f-mono); }
.hx-banner .m { flex: 1; min-width: 0; color: var(--w-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-banner .c { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--w-line); font-weight: 600; font-size: 11.5px; }
.hx-bolt svg { width: 14px; height: 14px; fill: #1A1400; margin-left: 2px; }
@media (max-width: 520px) { .hx-banner .m { display: none; } }
.hx-k8s { padding: 10px 14px 10px 10px; }
.hx-wheel { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #326CE5; }
.hx-wheel svg { width: 20px; height: 20px; fill: #fff; }
.hx-k8s b { display: block; font-size: 12.5px; }
.hx-k8s em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; color: #7DD3AE; font-size: 12px; }
.hx-k8s em i { width: 6px; height: 6px; border-radius: 50%; background: #3FB68B; }

/* Keep everything inside the window: the grid's one column may shrink, and
   the banner's address gives way before the list is pushed out. */
.hx-main { grid-template-columns: minmax(0, 1fr); }
.hx-main > * { min-width: 0; }
.hx-banner .u { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-banner .c, .hx-banner .hx-live { flex: none; }

/* Phones and narrow tablets: the picture comes straight after the headline. */
@media (max-width: 900px) {
  .hero-grid { row-gap: 0; }
  .hero-copy { display: contents; }
  .hero-grid > .hx { order: 1; margin: 4px 0 28px; }
  .hero-copy > :nth-child(n+3) { order: 2; }
}
.hx-list li { } @media (max-width: 520px) { .hx-list li { grid-template-columns: 28px minmax(0, 1fr) auto !important; } }
@media (max-width: 900px) { .hx-glow { inset: 0; } }
.hero { overflow-x: clip; }

/* Phones: grids that hold a nowrap card must be allowed to shrink. */
@media (max-width: 900px) { .sh-grid, .cli-grid { grid-template-columns: minmax(0, 1fr); } }
.sh-grid > *, .cli-grid > * { min-width: 0; }

/* Size column in the hero list. */
.hx-list li { grid-template-columns: 28px 52px minmax(0, 1fr) 54px auto !important; }
.hx-list .sz { color: var(--w-muted); font: 12px/1 var(--f-mono); text-align: right; }
@media (max-width: 520px) { .hx-list li { grid-template-columns: 28px minmax(0, 1fr) 52px auto !important; } }

/* Phones: grids that hold a nowrap card must be allowed to shrink. */
@media (max-width: 900px) { .sh-grid, .cli-grid { grid-template-columns: minmax(0, 1fr); } }
.sh-grid > *, .cli-grid > * { min-width: 0; }

/* Size column in the hero list. */
.hx-list li { grid-template-columns: 28px 52px minmax(0, 1fr) 54px auto !important; }
.hx-list .sz { color: var(--w-muted); font: 12px/1 var(--f-mono); text-align: right; }
@media (max-width: 520px) { .hx-list li { grid-template-columns: 28px minmax(0, 1fr) 52px auto !important; } }

/* Logos in the Works with strip. */
.works-list li { display: inline-flex; align-items: center; gap: 9px; }
.works-list .wl { width: 20px; height: 20px; flex: none; fill: currentColor; }
