/* Appily Twentyfive — Scan Dock track & support (unique AP25 layout) */

.ts25-page { background: var(--pu-light); padding-bottom: 72px; }

/* Hero */
.ts25-hero {
  position: relative;
  background: var(--pu-black);
  color: var(--pu-white);
  padding: 56px 0 88px;
  overflow: hidden;
}
.ts25-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--pu-lime), transparent);
  box-shadow: 0 0 20px var(--pu-lime);
  animation: ts25Scan 3.5s ease-in-out infinite;
  opacity: .7;
  pointer-events: none;
}
@keyframes ts25Scan {
  0%, 100% { top: 15%; opacity: 0; }
  10% { opacity: .85; }
  50% { top: 75%; opacity: .85; }
  90% { opacity: 0; }
}
.ts25-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.ts25-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pu-lime);
}
.ts25-hero h1 {
  font-family: var(--pu-font);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.ts25-hero h1 em { font-style: normal; color: var(--pu-lime); }
.ts25-hero-lede {
  margin: 0 0 18px;
  max-width: 520px;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  font-size: 15px;
}
.ts25-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ts25-chips li {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--pu-radius-pill);
  border: 1px solid rgba(191,255,0,.35);
  color: var(--pu-lime);
}

.ts25-dock-badge {
  width: 120px;
  height: 120px;
  border: 3px solid var(--pu-lime);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(191,255,0,.06);
  font-family: var(--pu-font);
  flex-shrink: 0;
}
.ts25-dock-badge strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--pu-lime);
  line-height: 1;
}
.ts25-dock-badge span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: 6px;
}

/* Stage */
.ts25-stage { margin-top: -48px; position: relative; z-index: 2; }
.ts25-wrap { max-width: 1080px; }

.ts25-deck {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: start;
}

/* Ripeness LED tower */
.ts25-tower-wrap {
  position: sticky;
  top: calc(var(--pu-header-h) + 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}
.ts25-tower-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pu-gray);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 4px;
}
.ts25-tower {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 10px 8px;
  background: var(--pu-black);
  border-radius: 14px;
  border: 2px solid #222;
  min-height: 280px;
  justify-content: flex-start;
}
.ts25-led {
  width: 36px;
  height: 52px;
  border-radius: 8px;
  background: #1a1a1a;
  border: 1px solid #333;
  position: relative;
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.ts25-led::after {
  content: attr(data-floor);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--pu-font);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.2);
}
.ts25-led.is-lit {
  background: var(--pu-lime);
  border-color: var(--pu-lime-dim);
  box-shadow: 0 0 16px rgba(191,255,0,.45);
}
.ts25-led.is-lit::after { color: var(--pu-black); }
.ts25-led.is-live {
  animation: ts25Pulse 1.2s ease-in-out infinite;
}
@keyframes ts25Pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(191,255,0,.4); }
  50% { box-shadow: 0 0 24px rgba(191,255,0,.75); }
}
.ts25-tower-state {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: var(--pu-gray);
  line-height: 1.3;
  max-width: 72px;
}

/* Scanner bay */
.ts25-scanner {
  background: var(--pu-white);
  border: 1px solid var(--pu-border);
  border-radius: 20px;
  box-shadow: var(--pu-shadow);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.ts25-scanner-head {
  padding: 24px 28px 16px;
  background: linear-gradient(135deg, var(--pu-black) 0%, #1a1a1a 100%);
  color: var(--pu-white);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.ts25-scanner-head h2 {
  font-family: var(--pu-font);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 6px;
}
.ts25-scanner-head p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}
.ts25-scanner-code {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--pu-lime);
  letter-spacing: .08em;
  white-space: nowrap;
}
.ts25-scanner-body { padding: 28px; }
.ts25-form { display: flex; flex-direction: column; gap: 18px; }
.ts25-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pu-gray);
  margin-bottom: 8px;
}
.ts25-field input {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--pu-border);
  border-radius: 12px;
  font: inherit;
  background: var(--pu-light);
  transition: border-color .15s, box-shadow .15s;
}
.ts25-field input:focus {
  outline: none;
  border-color: var(--pu-black);
  box-shadow: 0 0 0 3px rgba(191,255,0,.3);
  background: var(--pu-white);
}
.ts25-input-mono { font-family: ui-monospace, monospace; font-size: 14px; letter-spacing: .04em; }
.ts25-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.ts25-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--pu-radius-pill);
  font-family: var(--pu-font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, opacity .12s;
}
.ts25-btn:hover { transform: translateY(-1px); }
.ts25-btn-scan {
  background: var(--pu-lime);
  color: var(--pu-black);
}
.ts25-btn-scan:hover { background: var(--pu-lime-dim); }
.ts25-btn-ghost {
  background: transparent;
  color: var(--pu-black);
  border: 1px solid var(--pu-border);
}

/* Side dock */
.ts25-side-dock {
  background: var(--pu-white);
  border: 1px solid var(--pu-border);
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  position: sticky;
  top: calc(var(--pu-header-h) + 16px);
}
.ts25-side-dock h3 {
  font-family: var(--pu-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--pu-gray);
}
.ts25-dock-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ts25-dock-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--pu-light);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
}
.ts25-dock-link:hover {
  border-color: var(--pu-lime);
  background: rgba(191,255,0,.08);
}
.ts25-dock-link strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}
.ts25-dock-link small {
  font-size: 11px;
  color: var(--pu-gray);
}

/* Readout — thermal receipt */
.ts25-readout { margin-top: 28px; }
.ts25-receipt {
  max-width: 640px;
  margin: 0 auto;
  background: var(--pu-white);
  border: 1px dashed var(--pu-border);
  border-radius: 4px 4px 12px 12px;
  padding: 28px 32px 32px;
  box-shadow: var(--pu-shadow);
  position: relative;
}
.ts25-receipt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--pu-light) 0,
    var(--pu-light) 8px,
    var(--pu-border) 8px,
    var(--pu-border) 16px
  );
}
.ts25-receipt-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--pu-border);
}
.ts25-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--pu-radius-pill);
}
.ts25-tag-ok { background: rgba(191,255,0,.25); color: var(--pu-black); }
.ts25-tag-warn { background: #fff3e0; color: #e65100; }
.ts25-tag-live { background: var(--pu-black); color: var(--pu-lime); }
.ts25-order-id {
  font-family: ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: .02em;
}
.ts25-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}
.ts25-stats div {
  padding: 12px;
  background: var(--pu-light);
  border-radius: 10px;
  text-align: center;
}
.ts25-stats dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pu-gray);
  margin-bottom: 4px;
}
.ts25-stats dd {
  margin: 0;
  font-family: var(--pu-font);
  font-weight: 800;
  font-size: 14px;
}

.ts25-ladder {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ts25-ladder li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dotted var(--pu-border);
  position: relative;
}
.ts25-ladder li:last-child { border-bottom: 0; }
.ts25-ladder li::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 100%;
  width: 2px;
  height: 12px;
  background: var(--pu-border);
}
.ts25-ladder li:last-child::before { display: none; }
.ts25-rung {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pu-light);
  border: 2px solid var(--pu-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pu-font);
  font-size: 12px;
  font-weight: 800;
  color: var(--pu-gray);
}
.ts25-ladder li.is-done .ts25-rung {
  background: var(--pu-black);
  border-color: var(--pu-black);
  color: var(--pu-lime);
}
.ts25-ladder li.is-live .ts25-rung {
  background: var(--pu-lime);
  border-color: var(--pu-lime);
  color: var(--pu-black);
  box-shadow: 0 0 16px rgba(191,255,0,.4);
}
.ts25-ladder-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.ts25-ladder-copy span {
  font-size: 12px;
  color: var(--pu-gray);
}
.ts25-btn-wide { width: 100%; }

.ts25-receipt-miss { text-align: center; padding: 40px 24px; }
.ts25-receipt-miss h3 {
  font-family: var(--pu-font);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 12px 0 8px;
}
.ts25-receipt-miss p {
  color: var(--pu-gray);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 20px;
}
.ts25-miss-icon {
  font-size: 2rem;
  opacity: .5;
}

.ts25-idle {
  text-align: center;
  padding: 48px 24px;
  background: var(--pu-white);
  border: 1px dashed var(--pu-border);
  border-radius: 16px;
  color: var(--pu-gray);
  font-size: 14px;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto;
}
.ts25-idle-bars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}
.ts25-idle-bars span {
  width: 4px;
  height: 24px;
  background: var(--pu-border);
  border-radius: 2px;
  animation: ts25IdleBar 1.2s ease-in-out infinite;
}
.ts25-idle-bars span:nth-child(2) { animation-delay: .15s; }
.ts25-idle-bars span:nth-child(3) { animation-delay: .3s; }
.ts25-idle-bars span:nth-child(4) { animation-delay: .45s; }
.ts25-idle-bars span:nth-child(5) { animation-delay: .6s; }
@keyframes ts25IdleBar {
  0%, 100% { background: var(--pu-border); transform: scaleY(.6); }
  50% { background: var(--pu-lime); transform: scaleY(1); }
}

@media (max-width: 900px) {
  .ts25-deck { grid-template-columns: 1fr; }
  .ts25-tower-wrap { display: none; }
  .ts25-side-dock { position: static; }
  .ts25-hero-grid { grid-template-columns: 1fr; }
  .ts25-dock-badge { display: none; }
  .ts25-stats { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .ts25-scanner-body { padding: 20px; }
  .ts25-receipt { padding: 24px 20px; }
}
