/* Cosmica product showcase (homepage) and products.html. Generated markup: tools/make_products.py */

/* ---------- homepage showcase ---------- */
.pshow { position: relative; overflow: hidden; padding: clamp(72px, 8vw, 112px) 0 clamp(150px, 15vw, 210px); background: linear-gradient(180deg, #F2F8FB 0%, #FAFCFD 55%, #fff 100%); }
.pshow-wave { position: absolute; left: 0; top: -1px; width: 100%; height: clamp(34px, 5vw, 64px); display: block; z-index: 0; }
.pshow .container { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 44px); align-items: center; }
.pshow-intro { max-width: 640px; }
.pshow-label { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border: 1px solid #D5E4EC; border-radius: 999px; background: #fff; font: 700 .8rem/1 var(--font-h); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 22px; }
.pshow-label svg { width: 20px; height: 20px; color: var(--cyan); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pshow h2 { font-size: clamp(2.1rem, 3.1vw, 2.9rem); line-height: 1.06; margin-bottom: 20px; }
.pshow h2 .accent { color: var(--cyan); }
.pshow-intro p { color: var(--muted); font-size: 1.03rem; max-width: 46ch; margin: 0 0 28px; }
.pshow-intro .btn { gap: 12px; }

.pcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pc { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 20px 18px 0; border: 1px solid var(--pc-line, #DCE6EE); border-radius: 22px; background: linear-gradient(180deg, var(--pc-a) 0%, var(--pc-b) 100%); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.pc:hover, .pc:focus-within { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(15,27,45,.12); border-color: var(--cyan); }
.pc--school { --pc-a: #E6F5FA; --pc-b: #F6FBFD; }
.pc--shuttle { --pc-a: #E4F4EA; --pc-b: #F6FBF8; }
.pc--duty { --pc-a: #FFF1DD; --pc-b: #FFFAF2; }
.pc--track { --pc-a: #E8ECFB; --pc-b: #F6F7FD; }
.pc-brand { display: flex; align-items: center; gap: 9px; min-height: 36px; margin-bottom: 14px; font: 800 1.32rem/1 var(--font-h); color: var(--navy); letter-spacing: -.02em; }
.pc-brand img { display: block; height: 30px; width: auto; max-width: 100%; }
.pc-brand .pc-mark { width: 34px; height: 34px; flex: none; }
.pc-brand img.pc-word { height: 21px; }
.pc p { margin: 0 0 14px; font-size: .92rem; line-height: 1.5; color: var(--char); }
.pc-link { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font: 700 .94rem var(--font-h); color: var(--teal); text-decoration: none; margin-bottom: 14px; }
.pc-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pc-link .icon { width: 1em; height: 1em; transition: transform .25s; }
.pc:hover .pc-link .icon { transform: translateX(4px); }
.pc-link:focus-visible { outline: none; }
.pc:focus-within { outline: 3px solid var(--cyan); outline-offset: 2px; }
.pc-art { display: block; max-width: none; width: calc(100% + 36px); margin: auto -18px 0; height: 132px; }
.pc-art .veh { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.pc:hover .pc-art .veh { transform: translateX(5px); }
.pc-art--device { position: relative; height: 132px; width: calc(100% + 36px); margin: auto -18px 0; }
.pc .pc-art--device > .pc-art { width: 100%; height: 100%; margin: 0; }
.pc-art--device svg { max-width: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.pc-art--device img { position: absolute; left: 50%; bottom: 20px; width: min(72%, 190px); height: auto; max-height: 96px; object-fit: contain; transform: translateX(-50%); mix-blend-mode: multiply; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.pc:hover .pc-art--device img { transform: translateX(-50%) translateY(-4px) scale(1.04); }

/* align brand / text / link / art rows across neighbouring cards */
@supports (grid-template-rows: subgrid) {
  .pcards { row-gap: 0; }
  .pc { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 16px; min-height: 0; }
  .pc > .pc-art, .pc > .pc-art--device { align-self: end; margin-top: 0; }
  .pc > .pc-link { align-self: start; justify-self: start; }
}

/* decorative road */
.pshow-road { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; width: 100%; height: clamp(120px, 14vw, 190px); pointer-events: none; display: block; }
.pshow-road .dash { animation: pshow-dash 14s linear infinite; }
.pshow-road .pin { animation: pshow-bob 3.4s ease-in-out infinite; }
@keyframes pshow-dash { to { stroke-dashoffset: -120; } }
@keyframes pshow-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (min-width: 560px) { .pcards { gap: 18px; } }
@media (min-width: 940px) { .pcards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } .pc { padding: 20px 16px 0; } .pc-art, .pc-art--device { width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; } }
@media (min-width: 1100px) {
  .pshow .container { grid-template-columns: clamp(300px, 29%, 430px) minmax(0, 1fr); gap: clamp(28px, 3.4vw, 56px); }
  .pshow-intro { max-width: none; }
}
@media (max-width: 479px) { .pcards { grid-template-columns: 1fr; } .pc-art, .pc-art--device { height: 140px; } .pshow-intro .btn { width: 100%; justify-content: center; } }

/* ---------- products.html ---------- */
.prod-hero .container { grid-template-columns: minmax(0, 1fr); }
.prod-hero h1 { max-width: 18ch; }
.prod-hero .lead { max-width: 60ch; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: #fff; font-weight: 600; text-decoration: none; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .7rem 1.2rem; transition: background .2s, border-color .2s; }
.back-link:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.back-link .icon { width: 1.05em; height: 1.05em; transform: rotate(180deg); }

.prod-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.pp { display: flex; flex-direction: column; border: 1px solid #DCE6EE; border-radius: 26px; background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s; }
.pp:hover { box-shadow: 0 18px 38px rgba(15,27,45,.1); transform: translateY(-4px); border-color: #BFD8E4; }
.pp-art { display: block; position: relative; background: linear-gradient(180deg, var(--pc-a), var(--pc-b)); aspect-ratio: 3 / 2; border-bottom: 1px solid #E7EEF3; overflow: hidden; }
.pp-art--shot { background: linear-gradient(180deg, #fff, #F4F9FC); }
.pp-art--shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pp-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pp-art img.dev { position: absolute; left: 50%; bottom: 10%; height: 68%; width: auto; max-width: 72%; object-fit: contain; transform: translateX(-50%); mix-blend-mode: multiply; }
.pp-art .pc-art { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.pp-body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.pp-brand { display: flex; align-items: center; gap: 12px; min-height: 40px; margin-bottom: 14px; font: 800 1.6rem/1 var(--font-h); color: var(--navy); letter-spacing: -.02em; }
.pp-brand img { display: block; height: 38px; width: auto; max-width: 100%; }
.pp-brand img.pc-word { height: 32px; }
.pp-brand .pc-mark { width: 40px; height: 40px; flex: none; }
.pp h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pp-desc { color: var(--char); margin: 0 0 16px; }
.pp-benefits { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.pp-benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; color: var(--char); }
.pp-benefits .icon { color: var(--teal); width: 1.15em; height: 1.15em; margin-top: .15em; stroke-width: 2.4; }
.pp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
.pp--wide { grid-column: 1 / -1; }
.pp--wide .pp-art { aspect-ratio: auto; height: 160px; }
.pp--co .pp-art { background: linear-gradient(180deg, #EEF5F9, #F8FBFD); }
.pp--co .co-logo { position: absolute; left: 50%; top: 50%; width: min(70%, 300px); height: auto; transform: translate(-50%, -50%); }

.store { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 16px 7px 12px; border-radius: 12px; background: var(--navy); color: #fff; text-decoration: none; border: 1px solid var(--navy); transition: background .2s, transform .2s, box-shadow .2s; }
.store:hover { background: var(--navy-3); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,27,45,.2); }
.store svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.store b { font: 700 1.05rem var(--font-h); letter-spacing: -.01em; }

@media (min-width: 900px) {
  .prod-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .pp--wide { flex-direction: row; }
  .pp--wide .pp-art { width: 38%; height: auto; min-height: 220px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid #E7EEF3; }
}
@media (max-width: 479px) { .pp-body { padding: 22px 20px 24px; } .store { flex: 1 1 100%; } .pp-actions .btn { width: 100%; justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
  .pshow-road .dash, .pshow-road .pin { animation: none; }
  .pc, .pp, .pc-art .veh, .pc-art--device img { transition: none; }
  .pc:hover, .pc:focus-within, .pp:hover { transform: none; }
  .pc:hover .pc-art .veh, .pc:hover .pc-art--device img { transform: none; }
  .pc:hover .pc-art--device img { transform: translateX(-50%); }
}
