/* Weblysoft Platforms (/platforms/) — page-scoped. Every selector is under
   body.plt-page or uses the plt- prefix. Uses existing public-site tokens. */

body.plt-page { --plt-gap: clamp(16px, 2vw, 24px); }
html.plt-lock, html.plt-lock body { overflow: hidden; }

/* hero: compact, two columns on desktop */
.plt-page .plt-hero { padding: clamp(40px, 5.5vw, 80px) 0 clamp(32px, 4vw, 56px); }
.plt-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.plt-page .plt-hero .ws-h1 { max-width: 13ch; }
.plt-page .plt-hero-side .ws-lead { margin-top: 0; font-size: clamp(17px, 1.35vw, 19px); }
.plt-owned { margin-top: 18px; font-size: 14.5px; line-height: 1.55; color: var(--ws-text-2); padding-top: 16px; border-top: 1px solid var(--ws-line); }
.plt-hero-btns { margin-top: 24px; }
.plt-inline { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; font-weight: 600; color: var(--ws-navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.plt-inline:hover { text-decoration-thickness: 2px; }

/* section head */
.plt-products:focus { outline: none; }
.plt-products { scroll-margin-top: var(--ws-header); }
.plt-sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.plt-sec-note { font-size: 14.5px; line-height: 1.55; color: var(--ws-text-2); max-width: 56ch; justify-self: end; }

/* grid: 2 featured + 3 supporting */
.plt-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--plt-gap); }
.plt-card { grid-column: span 2; display: flex; flex-direction: column; background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: var(--ws-radius-lg); overflow: hidden; scroll-margin-top: calc(var(--ws-header) + 16px); }
.plt-card.is-featured { grid-column: span 3; }

.plt-shot-fig { margin: 0; border-bottom: 1px solid var(--ws-line); background: var(--ws-paper); }
.plt-shot { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.plt-shot img { display: block; width: 100%; height: auto; }
.plt-shot-hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(11,22,40,.86); color: #fff; font-size: 12.5px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .25s var(--ws-ease); }
.plt-shot:hover .plt-shot-hint, .plt-shot:focus-visible .plt-shot-hint { opacity: 1; transform: none; }
.plt-shot:focus-visible { outline-offset: -4px; }
@media (hover: none) { .plt-shot-hint { opacity: 1; transform: none; } }
.plt-cap { padding: 10px 18px 12px; font-size: 13px; line-height: 1.45; color: var(--ws-text-2); border-top: 1px solid var(--ws-line); background: var(--ws-card); }

.plt-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.plt-card.is-featured .plt-body { padding: 26px 30px 30px; }
.plt-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--ws-navy); }
.plt-name { font-size: 22px; line-height: 1.15; color: var(--ws-ink); }
.plt-card.is-featured .plt-name { font-size: clamp(24px, 2.2vw, 30px); }
.plt-value { font-size: 16.5px; line-height: 1.4; font-weight: 560; color: var(--ws-ink); letter-spacing: -.01em; }
.plt-card.is-featured .plt-value { font-size: 18px; }

.plt-facts { display: grid; gap: 0; margin-top: 4px; border-top: 1px solid var(--ws-line); }
.plt-facts > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ws-line); }
.plt-facts dt, .plt-label { font-size: 11.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ws-text-2); padding-top: 2px; }
.plt-facts dd { font-size: 14.5px; line-height: 1.5; color: var(--ws-text-2); margin: 0; }
.plt-card:not(.is-featured) .plt-facts > div { grid-template-columns: 1fr; gap: 3px; }

.plt-adopt { margin-top: 4px; padding: 12px 14px; border-left: 3px solid var(--ws-navy); background: var(--ws-ice); border-radius: 0 8px 8px 0; display: grid; gap: 4px; }
.plt-adopt p { font-size: 14.5px; line-height: 1.5; color: var(--ws-text); }
.plt-adopt .plt-label { color: var(--ws-navy); }

.plt-actions { margin-top: auto; padding-top: 12px; display: grid; gap: 12px; justify-items: start; }
.plt-explore { min-height: 46px; }
.plt-options { font-size: 13.5px; line-height: 1.5; color: var(--ws-text-2); }
.plt-options .plt-inline { min-height: 44px; }

/* engineering ownership: light ice band */
.plt-own { background: var(--ws-ice); border-top: 1px solid var(--ws-line); }
.plt-own-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(24px, 5vw, 88px); align-items: start; }
.plt-own .ws-eyebrow { margin-bottom: 14px; }
.plt-own-lead { margin-top: 14px; font-size: 16.5px; line-height: 1.6; color: var(--ws-text-2); max-width: 46ch; }
.plt-own-list { counter-reset: o; border-top: 1px solid rgba(24,70,132,.22); }
.plt-own-list li { counter-increment: o; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 4px; padding: 16px 0; border-bottom: 1px solid rgba(24,70,132,.22); }
.plt-own-list li::before { content: "0" counter(o); grid-row: span 2; font: 500 13px/1.6 ui-monospace, Menlo, monospace; color: var(--ws-navy); }
.plt-own-list b { font-size: 17px; letter-spacing: -.012em; color: var(--ws-ink); font-weight: 620; }
.plt-own-list span { font-size: 15px; line-height: 1.55; color: var(--ws-text-2); }

/* closing dark area: comparison + CTA share one band */
.plt-close { padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 88px); position: relative; overflow: hidden; }
.plt-close::after { content: ""; position: absolute; right: -12%; bottom: -30%; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(157,189,240,.16); box-shadow: 0 0 0 70px rgba(157,189,240,.025); pointer-events: none; }
.plt-close > .ws-wrap { position: relative; z-index: 1; }
.plt-vs-head .ws-h2 { color: #fff; max-width: 22ch; }
.plt-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: clamp(28px, 3.5vw, 44px); background: var(--ws-line-dark); border: 1px solid var(--ws-line-dark); border-radius: var(--ws-radius-lg); overflow: hidden; }
.plt-vs-col { background: var(--ws-ink-2); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.plt-vs-col h3 { font-size: 20px; letter-spacing: -.015em; color: #fff; }
.plt-vs-col ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.plt-vs-col li { position: relative; padding: 11px 0 11px 22px; border-top: 1px solid var(--ws-line-dark); font-size: 15.5px; line-height: 1.5; color: var(--ws-on-dark); }
.plt-vs-col li::before { content: ""; position: absolute; left: 0; top: 20px; width: 10px; height: 1.5px; background: #9DBDF0; }
.plt-vs-col .ws-btn { align-self: flex-start; margin-top: auto; }
.plt-vs-note { margin-top: 18px; color: var(--ws-on-dark); font-size: 14px; line-height: 1.55; max-width: 90ch; }

.plt-cta { margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--ws-line-dark); align-items: start; }
.plt-cta .ws-eyebrow { color: #9DBDF0; margin-bottom: 14px; }
.plt-cta .ws-h3 { color: #fff; }
.plt-cta-p { margin-top: 14px; font-size: 16.5px; line-height: 1.6; color: var(--ws-on-dark); opacity: .86; max-width: 52ch; }
.plt-close .ws-cta-paths span { color: rgba(237,242,250,.8); }
.plt-close :focus-visible { outline-color: #9DBDF0; }

/* dialog */
.plt-dialog { position: fixed; inset: 0; height: fit-content; border: 0; padding: 0; margin: auto; background: transparent; width: min(1440px, 96vw); max-width: 96vw; max-height: calc(100dvh - 24px); overflow: hidden; color: var(--ws-on-dark); }
.plt-dialog::backdrop { background: rgba(11,22,40,.9); }
.plt-dialog-in { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; max-height: calc(100dvh - 24px); }
.plt-dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.plt-dialog-title { font-size: clamp(16px, 1.6vw, 20px) !important; line-height: 1.3; color: #fff; letter-spacing: -.012em; }
.plt-dialog-close { min-height: 44px; min-width: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; font: 600 14px 'Inter', sans-serif; cursor: pointer; flex: none; }
.plt-dialog-close:hover { background: #fff; color: var(--ws-ink); }
.plt-dialog-close:focus-visible { outline: 2.5px solid #9DBDF0; outline-offset: 3px; }
.plt-dialog-stage { display: grid; place-items: center; min-height: 0; overflow: hidden; }
.plt-dialog-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(100%, calc(100dvh - 170px)); object-fit: contain; background: transparent; }
.plt-dialog-stage img[hidden] { display: none; }
.plt-dialog-status:empty { display: none; }
.plt-dialog-status { font-size: 15px; color: var(--ws-on-dark); padding: 24px; text-align: center; max-width: 52ch; }
.plt-dialog.is-error .plt-dialog-status { border: 1px solid rgba(255,180,170,.5); border-radius: 10px; color: #FFD9D3; }
.plt-dialog-cap { font-size: 14.5px; line-height: 1.5; color: var(--ws-on-dark); max-width: 90ch; }

/* responsive */
@media (max-width: 1100px) {
  .plt-grid { grid-template-columns: repeat(2, 1fr); }
  .plt-card, .plt-card.is-featured { grid-column: span 1; }
  .plt-card:last-child { grid-column: 1 / -1; }
  .plt-card:last-child .plt-shot-fig { max-width: 720px; }
  .plt-facts > div { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 900px) {
  .plt-hero-grid, .plt-sec-head, .plt-own-grid, .plt-vs { grid-template-columns: 1fr; }
  .plt-sec-note { justify-self: start; }
  .plt-cta.ws-cta-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 767px) {
  .plt-grid { grid-template-columns: 1fr; }
  .plt-card:last-child .plt-shot-fig { max-width: none; }
  .plt-body, .plt-card.is-featured .plt-body { padding: 20px 18px 22px; }
  .plt-cap { padding: 10px 14px 12px; }
  .plt-hero-btns .ws-btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .plt-explore { width: 100%; white-space: normal; }
  .plt-dialog-title { font-size: 15px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .plt-page *, .plt-page *::before, .plt-page *::after { transition: none !important; animation: none !important; }
}
