/* PlainSail 2.0 launch page. Every rule is scoped under .ps2.
   Palette mirrors the PlainSail 2.0 shell (ShellColors.Light/Dark.xaml). */

.ps2 {
  --ps2-chrome: #15273B;
  --ps2-chrome-dark: #0C1827;
  --ps2-sidebar: #20384F;
  --ps2-canvas: #F1F2F4;
  --ps2-subtle: #F7F9FB;
  --ps2-stroke: #DDE4EA;
  --ps2-ink: #15273B;
  --ps2-ink-2: #63758B;
  --ps2-ink-3: #8A97A6;
  --ps2-accent: #0C6DBF;
  --ps2-accent-dark: #67B3F7;
  --ps2-night-ink: #EEF4FA;
  --ps2-night-ink-2: #B6C4D4;
  --ps2-ease: cubic-bezier(.2,.7,.2,1);
  --ps2-radius: 14px;
  --ps2-shadow:
    0 1px 2px rgba(12,24,39,.06),
    0 12px 32px -8px rgba(12,24,39,.18),
    0 48px 96px -24px rgba(12,24,39,.28);
  --ps2-section-py: clamp(96px, 12vw, 176px);
  color: var(--ps2-ink);
  font-family: var(--font-body);
  overflow-x: clip;
}

:where(.ps2) *, :where(.ps2) *::before, :where(.ps2) *::after { box-sizing: border-box; }
:where(.ps2) img { display: block; max-width: 100%; }
:where(.ps2) figure { margin: 0; }
:where(.ps2) :is(h1, h2, h3, p) { margin: 0; }
:where(.ps2) :is(ul, ol) { list-style: none; margin: 0; padding: 0; }

/* ─── Type ─── */
.ps2-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ps2-accent); margin-bottom: 20px;
}
.ps2-display {
  font-size: clamp(46px, 7vw, 96px); line-height: .98; font-weight: 700;
  letter-spacing: -.035em; color: #fff; text-wrap: balance;
}
.ps2-display .ps2-soft {
  display: block;
  background: linear-gradient(100deg, #C9DDF0 0%, #8EC4F5 45%, #67B3F7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.ps2-h2 {
  font-size: clamp(36px, 5vw, 64px); line-height: 1.04; font-weight: 700;
  letter-spacing: -.03em; color: var(--ps2-ink); text-wrap: balance;
}
.ps2-h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; font-weight: 700; letter-spacing: -.022em; color: var(--ps2-ink); }
.ps2-h4 { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.012em; color: var(--ps2-ink); }
.ps2-sub, .ps2-body, .ps2-lede {
  font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--ps2-ink-2); text-wrap: pretty;
}
.ps2-head { max-width: 820px; margin: 0 auto 72px; text-align: center; }
.ps2-head .ps2-sub { max-width: 640px; margin: 24px auto 0; }

/* ─── Buttons ─── */
.ps2-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.ps2-when { margin-top: 20px; font-size: 14px; line-height: 1.5; font-weight: 500; letter-spacing: .01em; color: var(--ps2-night-ink-2); }
.ps2-closing .ps2-when { margin-top: 24px; }
.ps2-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ps2-ease), box-shadow .25s var(--ps2-ease), background-color .25s, color .25s, border-color .25s;
}
.ps2-btn-lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.ps2-btn-icon { transition: transform .25s var(--ps2-ease); }
.ps2-btn:hover .ps2-btn-icon { transform: translateX(3px); }
.ps2-btn-light { background: #fff; color: var(--ps2-chrome-dark); box-shadow: 0 8px 24px -8px rgba(103,179,247,.55); }
.ps2-btn-light:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(103,179,247,.75); }
.ps2-btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.ps2-btn-ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.ps2-btn:focus-visible, .ps2 button:focus-visible, .ps2-module:focus-visible, .ps2-compare-handle:focus-visible {
  outline: 2px solid var(--ps2-accent-dark); outline-offset: 3px;
}

/* ─── Window frame ─── */
.ps2-window {
  position: relative; overflow: hidden; border-radius: var(--ps2-radius);
  background: #fff; box-shadow: 0 0 0 1px rgba(21,39,59,.08), var(--ps2-shadow);
  aspect-ratio: 16 / 10;
}
.ps2-window > img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.ps2-window-sm { border-radius: 10px; }
.ps2-window-dark { background: #101B29; box-shadow: 0 0 0 1px rgba(255,255,255,.08), var(--ps2-shadow); }
.ps2-window.ps2-window-fit { aspect-ratio: auto; }
.ps2-window-fit > img { height: auto; }

/* ─── 1. Hero ─── */
.ps2-hero { position: relative; color: #fff; padding-top: clamp(128px, 12vw, 168px); isolation: isolate; }
.ps2-hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(103,179,247,.22), transparent 70%),
    radial-gradient(40% 40% at 85% 30%, rgba(0,255,255,.07), transparent 70%),
    linear-gradient(180deg, #0C1827 0%, #12233A 62%, var(--ps2-canvas) 62%, var(--ps2-canvas) 100%);
}
.ps2-hero-bg::before {
  content: ''; position: absolute; inset: 0 0 38% 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 20%, transparent 75%);
}
.ps2-hero-inner { text-align: center; max-width: 1040px; }
.ps2-eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  color: #CFE4F7; background: rgba(103,179,247,.1); border: 1px solid rgba(103,179,247,.28); margin-bottom: 32px;
}
.ps2-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ps2-accent-dark); box-shadow: 0 0 0 4px rgba(103,179,247,.2); }
.ps2-hero .ps2-lede { max-width: 640px; margin: 28px auto 0; color: #B6C4D4; }

.ps2-stage-wrap { margin-top: clamp(48px, 5vw, 64px); padding-bottom: clamp(72px, 9vw, 120px); }
.ps2-stage { position: relative; max-width: 1180px; margin: 0 auto; perspective: 2000px; }
.ps2-stage-glow {
  position: absolute; inset: 8% 6% -4%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(103,179,247,.45), rgba(12,109,191,.12) 60%, transparent);
  filter: blur(40px);
}
.ps2-hero-shot {
  aspect-ratio: 16 / 9; border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 2px 4px rgba(0,0,0,.2), 0 30px 60px -20px rgba(0,0,0,.5), 0 80px 140px -40px rgba(12,24,39,.6);
  transform-origin: 50% 0%;
}
.ps2-chips { position: absolute; inset: 0; pointer-events: none; }
.ps2-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ps2-ink); white-space: nowrap;
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(21,39,59,.06), 0 12px 32px -10px rgba(12,24,39,.35);
}
.ps2-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ps2-accent); }
.ps2-chip-dot-moon { background: linear-gradient(90deg, var(--ps2-chrome-dark) 50%, #fff 50%); box-shadow: 0 0 0 1px var(--ps2-ink-3); }
.ps2-chip-a { top: 14%; left: -3%; }
.ps2-chip-b { top: 46%; right: -3%; }
.ps2-chip-c { bottom: 10%; left: 6%; }

/* Hero light/dark toggle (shown once JS is running) */
.ps2-hero-theme {
  --w: 112px;
  position: relative; display: none; width: max-content; margin: 0 auto 28px; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 32px -14px rgba(0,0,0,.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ps2-js .ps2-hero-theme { display: flex; }
.ps2-hero-theme::before {
  content: ''; position: absolute; top: 4px; left: 4px; width: var(--w); height: calc(100% - 8px); border-radius: 999px;
  background: #fff; box-shadow: 0 4px 14px -4px rgba(103,179,247,.6); transition: transform .45s var(--ps2-ease), background-color .45s;
}
.ps2-hero-theme.is-dark::before { transform: translateX(var(--w)); background: #1E3550; box-shadow: 0 0 0 1px rgba(103,179,247,.45), 0 4px 18px -4px rgba(103,179,247,.7); }
.ps2-hero-theme-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: var(--w); min-height: 40px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ps2-night-ink-2); transition: color .3s;
}
.ps2-hero-theme-btn:hover { color: #fff; }
.ps2-hero-theme-btn[aria-pressed="true"] { color: var(--ps2-chrome-dark); }
.ps2-hero-theme.is-dark .ps2-hero-theme-btn[aria-pressed="true"] { color: #fff; }
.ps2-hero-shot { background: #0C1827; }
.ps2-hero-shot > .ps2-hero-img-dark { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ps2-ease); }
.ps2-hero-shot.is-dark > .ps2-hero-img-dark { opacity: 1; }

/* ─── 5b. Markdown in workflows ─── */
.ps2-md-section {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(60% 55% at 50% 100%, rgba(103,179,247,.16), transparent 70%), linear-gradient(180deg, #fff 0%, #F3F8FD 100%);
  border-top: 1px solid rgba(21,39,59,.06);
}
.ps2-md { max-width: 1180px; margin: 0 auto; }
.ps2-hero-theme.ps2-theme-on-light {
  animation: none;
  background: #fff; border-color: rgba(21,39,59,.1);
  box-shadow: 0 1px 2px rgba(21,39,59,.06), 0 10px 28px -16px rgba(12,24,39,.35);
}
.ps2-hero-theme.ps2-theme-on-light::before { background: var(--ps2-accent); box-shadow: 0 4px 14px -4px rgba(12,109,191,.55); }
.ps2-hero-theme.ps2-theme-on-light.is-dark::before { background: #0C1827; box-shadow: 0 4px 18px -4px rgba(12,24,39,.6); }
.ps2-theme-on-light .ps2-hero-theme-btn { color: var(--ps2-ink-2); }
.ps2-theme-on-light .ps2-hero-theme-btn:hover { color: var(--ps2-ink); }
.ps2-theme-on-light .ps2-hero-theme-btn[aria-pressed="true"],
.ps2-theme-on-light.is-dark .ps2-hero-theme-btn[aria-pressed="true"] { color: #fff; }
.ps2-md-stage { position: relative; }
.ps2-md-glow {
  position: absolute; inset: 10% 8% -6%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(103,179,247,.38), rgba(12,109,191,.1) 60%, transparent); filter: blur(40px);
}
.ps2-md-shot { border-radius: 16px; transition: background-color .7s var(--ps2-ease); }
.ps2-md-stage.is-dark .ps2-md-shot { background: #101B29; }
.ps2-md-pic { display: block; width: 100%; height: 100%; }
.ps2-md-pic > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.ps2-md-pic-dark { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ps2-ease); }
.ps2-md-stage.is-dark .ps2-md-pic-dark { opacity: 1; }
.ps2-md-cap { margin-top: 24px; text-align: center; font-size: 15px; line-height: 1.5; color: var(--ps2-ink-2); }
.ps2-md-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-bottom: 28px; }
.ps2-md-controls .ps2-hero-theme { margin: 0; }
.ps2-md-tabs {
  display: none; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(21,39,59,.06); border: 1px solid rgba(21,39,59,.06);
}
.ps2-js .ps2-md-tabs { display: inline-flex; }
.ps2-md-tab {
  min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ps2-ink-2); transition: color .25s, background-color .25s, box-shadow .25s;
}
.ps2-md-tab:hover { color: var(--ps2-ink); }
.ps2-md-tab[aria-selected="true"] { color: var(--ps2-ink); background: #fff; box-shadow: 0 1px 2px rgba(21,39,59,.08), 0 6px 16px -8px rgba(12,24,39,.35); }
.ps2-md-panel[hidden] { display: none; }
.ps2-js .ps2-md-panel:not([hidden]) { animation: ps2-md-in .5s var(--ps2-ease); }
.ps2-md-panel + .ps2-md-panel { margin-top: 48px; }
.ps2-js .ps2-md-panel + .ps2-md-panel { margin-top: 0; }
@keyframes ps2-md-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Bento tiles: each visual is a native-scale crop that hangs off the tile's lower-right edge */
.ps2-wfe-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; max-width: 1180px; margin: clamp(80px, 9vw, 128px) auto 0; }
.ps2-wfe-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 36px 0 0 36px;
  border-radius: 24px; background: linear-gradient(180deg, #fff 0%, #F4F8FC 100%);
  box-shadow: 0 0 0 1px rgba(21,39,59,.07), 0 18px 40px -28px rgba(12,24,39,.35);
}
.ps2-wfe-tile > .ps2-h4, .ps2-wfe-copy { padding-right: 36px; }
.ps2-wfe-copy { margin-top: 10px; max-width: 400px; font-size: 16px; line-height: 1.55; color: var(--ps2-ink-2); text-wrap: pretty; }
.ps2-wfe-t1, .ps2-wfe-t6 { grid-column: span 5; }
.ps2-wfe-t2, .ps2-wfe-t4 { grid-column: span 7; }
.ps2-wfe-vis { display: flex; margin-top: auto; padding-top: 32px; }
.ps2-wfe-card {
  display: block; flex: none; margin-left: auto; max-width: none; height: auto; background: #fff;
  border-radius: 12px 0 0 0; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(21,39,59,.09), 0 16px 36px -14px rgba(12,24,39,.3);
}
.ps2-wfe-card > img { display: block; max-width: none; height: auto; }
/* Fill tiles: the card stretches to the tile foot; its image is pinned so it never sets the row height */
.ps2-wfe-vis-fill { flex: 1 0 auto; min-height: 170px; padding-top: 28px; }
.ps2-wfe-vis-fill > .ps2-wfe-card { position: relative; align-self: stretch; }
.ps2-wfe-vis-fill > .ps2-wfe-card > img { position: absolute; top: 0; right: auto; bottom: auto; left: 0; width: 100%; height: auto; }
.ps2-wfe-t1 .ps2-wfe-card { width: 442px; }
.ps2-wfe-t2 .ps2-wfe-card { width: 576px; }
.ps2-wfe-t2 .ps2-wfe-vis-fill { min-height: 323px; }
.ps2-wfe-t4 .ps2-wfe-vis { margin-left: -36px; }
.ps2-wfe-t4 .ps2-wfe-card { width: 514px; min-width: 100%; margin-left: 0; border-radius: 0; }
.ps2-wfe-t4 .ps2-wfe-card > img { top: 50%; left: 10px; width: max(504px, calc(100% - 36px)); transform: translateY(-50%); }
.ps2-wfe-vis-stack { flex-direction: column; gap: 16px; }
.ps2-wfe-vis-stack > .ps2-wfe-card { border-radius: 12px 0 0 0; }
.ps2-wfe-vis-stack > .ps2-wfe-record { max-width: 100%; height: auto; border-radius: 12px 0 0 12px; }

/* "Clear guidance at every step" strip */
.ps2-wfe-uses { max-width: 1000px; margin: clamp(72px, 8vw, 112px) auto 0; }
.ps2-wfe-uses-title { text-align: center; margin-bottom: 14px; }
.ps2-wfe-uses-sub { max-width: 640px; margin: 0 auto 44px; text-align: center; font-size: 17px; line-height: 1.55; color: var(--ps2-ink-2); text-wrap: pretty; }
.ps2-wfe-use-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px 40px; }
.ps2-wfe-use { flex: 0 1 calc((100% - 3 * 40px) / 4); }
.ps2-wfe-use p { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--ps2-ink-2); text-wrap: pretty; }
.ps2-wfe-use strong { color: var(--ps2-ink); font-weight: 700; }
.ps2-wfe-use-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  color: var(--ps2-accent); background: #fff; box-shadow: 0 0 0 1px rgba(21,39,59,.08), 0 10px 24px -14px rgba(12,24,39,.35);
}
.ps2-wfe-use-icon svg { display: block; width: 24px; height: 24px; }
.ps2-wfe-close {
  max-width: 820px; margin: clamp(80px, 9vw, 128px) auto 0; text-align: center; text-wrap: balance;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; color: var(--ps2-ink);
}
.ps2-wfe-close span { color: var(--ps2-accent); }

@media (max-width: 1179px) {
  .ps2-wfe-t4, .ps2-wfe-t6 { grid-column: span 6; }
  .ps2-wfe-t1 .ps2-wfe-vis, .ps2-wfe-t2 .ps2-wfe-vis, .ps2-wfe-t4 .ps2-wfe-vis { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
}
@media (max-width: 959px) {
  .ps2-wfe-grid { grid-template-columns: minmax(0, 1fr); }
  .ps2-wfe-tile { grid-column: auto; min-height: 0; }
  .ps2-wfe-vis-fill { min-height: 230px; }
  .ps2-wfe-t4 .ps2-wfe-vis-fill { min-height: 132px; }
  .ps2-wfe-t1 .ps2-wfe-vis-fill { min-height: 325px; }
  .ps2-wfe-t2 .ps2-wfe-vis-fill { min-height: 323px; }
  .ps2-wfe-use { flex-basis: calc((100% - 40px) / 2); }
}
@media (max-width: 720px) {
  .ps2-md-shot { aspect-ratio: auto; border-radius: 12px; }
  .ps2-md-pic, .ps2-md-pic > img { height: auto; }
  .ps2-md-cap { margin-top: 18px; font-size: 14px; }
  .ps2-md-tab { padding: 0 16px; }
  .ps2-wfe-tile { padding: 28px 0 0 24px; border-radius: 20px; }
  .ps2-wfe-tile > .ps2-h4, .ps2-wfe-copy { padding-right: 24px; }
  .ps2-wfe-copy { font-size: 15px; }
  .ps2-wfe-vis { padding-top: 24px; }
  .ps2-wfe-vis-fill { min-height: 190px; }
  .ps2-wfe-t1 .ps2-wfe-vis-fill { min-height: 321px; }
  .ps2-wfe-t2 .ps2-wfe-vis-fill { min-height: 319px; }
  .ps2-wfe-t4 .ps2-wfe-vis { margin-left: -24px; }
  .ps2-wfe-vis-stack > .ps2-wfe-record { width: calc(100% + 24px); max-width: none; margin-left: -24px; border-radius: 0; }
  .ps2-wfe-uses-sub { font-size: 16px; margin-bottom: 32px; }
  .ps2-wfe-use-list { flex-direction: column; gap: 24px; }
  .ps2-wfe-use { display: flex; gap: 16px; align-items: flex-start; }
  .ps2-wfe-use p { margin-top: 2px; }
  .ps2-wfe-use-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; }
}

/* ─── Surfaces ─── */
.ps2-section { padding: var(--ps2-section-py) 0; }
.ps2-canvas { background: var(--ps2-canvas); }
.ps2-white { background: #fff; }

/* ─── 2. Intro / bento ─── */
#whats-new { padding-top: clamp(24px, 4vw, 48px); scroll-margin-top: 80px; }
.ps2-stat {
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 40px);
  max-width: 820px; margin: -16px auto 72px; flex-wrap: wrap; text-align: left;
}
.ps2-stat-number {
  font-size: clamp(72px, 10vw, 136px); line-height: .9; font-weight: 700; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--ps2-ink) 30%, var(--ps2-accent) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ps2-stat-rule { width: 1px; align-self: stretch; background: var(--ps2-stroke); }
.ps2-stat-text { max-width: 300px; font-size: 17px; line-height: 1.5; color: var(--ps2-ink-2); }
.ps2-stat-text strong { display: block; font-size: 22px; color: var(--ps2-ink); letter-spacing: -.01em; margin-bottom: 4px; }

.ps2-statement {
  max-width: 820px; margin: 0 auto; padding-top: 56px; border-top: 1px solid var(--ps2-stroke); text-align: center;
  font-size: clamp(24px, 2.7vw, 36px); line-height: 1.28; font-weight: 600; letter-spacing: -.022em; color: var(--ps2-ink); text-wrap: balance;
}
.ps2-statement span { color: var(--ps2-ink-2); }

/* ─── 3. Sticky story ─── */
#experience { scroll-margin-top: 80px; }
.ps2-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
.ps2-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; opacity: .35; transition: opacity .5s var(--ps2-ease); }
.ps2-step.is-active { opacity: 1; }
.ps2-step-index { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ps2-accent); margin-bottom: 16px; }
.ps2-step .ps2-h3 { margin-bottom: 18px; }
.ps2-step p:not(.ps2-step-index) { font-size: 18px; line-height: 1.65; color: var(--ps2-ink-2); }
.ps2-step .ps2-step-more { margin-top: 14px; padding-left: 16px; border-left: 2px solid var(--ps2-accent-dark); font-size: 16px; color: var(--ps2-ink); }
.ps2-step p.ps2-step-lead { margin: -4px 0 16px; font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.01em; color: var(--ps2-accent); }
.ps2-step-shot { display: none; margin-top: 32px; }
.ps2-story-visual { position: relative; }
.ps2-story-sticky { position: sticky; top: calc(50vh - min(26vw, 290px)); padding-top: 12vh; }
.ps2-story-glow { position: absolute; inset: 10% -6% -6%; z-index: 0; background: radial-gradient(closest-side, rgba(103,179,247,.32), transparent); filter: blur(30px); }
.ps2-story-frame { z-index: 1; }
.ps2-story-frame > img { position: absolute; inset: 0; opacity: 0; transform: scale(1.015); transition: opacity .6s var(--ps2-ease), transform .9s var(--ps2-ease); }
.ps2-story-frame > img.is-active { opacity: 1; transform: none; }
.ps2-story-progress { display: flex; gap: 8px; justify-content: center; margin-top: 24px; position: relative; z-index: 1; }
.ps2-story-progress li {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ps2-ink-3);
  background: var(--ps2-subtle); border: 1px solid var(--ps2-stroke); transition: all .3s var(--ps2-ease);
}
.ps2-story-progress li.is-active { color: #fff; background: var(--ps2-chrome); border-color: var(--ps2-chrome); }

/* ─── 4. Everything within reach ─── */
#within-reach { scroll-margin-top: 80px; }
.ps2-reach { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.ps2-reach-tabs { display: flex; flex-direction: column; gap: 8px; }
.ps2-reach-tab {
  display: flex; gap: 16px; align-items: flex-start; width: 100%; padding: 18px 20px; border-radius: 14px;
  border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; font: inherit; color: inherit;
  transition: background-color .3s var(--ps2-ease), border-color .3s, box-shadow .3s;
}
.ps2-reach-tab:hover { background: rgba(255,255,255,.6); }
.ps2-reach-tab[aria-selected="true"] { background: #fff; border-color: var(--ps2-stroke); box-shadow: 0 12px 28px -16px rgba(12,24,39,.3); }
.ps2-reach-tab strong { display: block; font-size: 17px; line-height: 24px; font-weight: 700; color: var(--ps2-ink); margin-bottom: 4px; }
.ps2-reach-tab span span { display: block; font-size: 15px; line-height: 1.5; color: var(--ps2-ink-2); }
.ps2-reach-icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -8px; border-radius: 10px;
  color: var(--ps2-ink-2); background: var(--ps2-subtle); border: 1px solid var(--ps2-stroke); transition: all .3s var(--ps2-ease);
}
.ps2-reach-tab[aria-selected="true"] .ps2-reach-icon { color: #fff; background: var(--ps2-accent); border-color: var(--ps2-accent); }
.ps2-reach-visual { position: relative; padding-bottom: 12%; }
.ps2-spot {
  position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; pointer-events: none; z-index: 4;
}
.ps2-spot::before, .ps2-spot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; }
.ps2-spot::before { border: 2px solid var(--ps2-accent-dark); opacity: 0; transform: scale(.6); transition: all .4s var(--ps2-ease); }
.ps2-spot::after { inset: 11px; background: var(--ps2-accent-dark); opacity: 0; transition: opacity .3s; }
.ps2-spot.is-active::before { opacity: 1; transform: scale(1); animation: ps2-pulse 2.2s var(--ps2-ease) infinite; }
.ps2-spot.is-active::after { opacity: 1; }
@keyframes ps2-pulse { 0% { box-shadow: 0 0 0 0 rgba(103,179,247,.55); } 80%, 100% { box-shadow: 0 0 0 14px rgba(103,179,247,0); } }
.ps2-zoom { position: absolute; right: -3%; bottom: 0; width: 42%; z-index: 6; }
.ps2-zoom-panel .ps2-window { box-shadow: 0 0 0 1px rgba(21,39,59,.1), 0 24px 60px -18px rgba(12,24,39,.5); }
.ps2-zoom-panel:not([hidden]) { animation: ps2-pop .45s var(--ps2-ease) both; }
@keyframes ps2-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ─── 5. Module showcase ───
   Base (mobile, or no JS): a swipeable card track. Desktop with JS: tabs on the left, one large shot on the right. */
#modules { scroll-margin-top: 80px; }
.ps2-modules-head { text-align: center; color: var(--ps2-ink-3); margin-bottom: 48px; }
.ps2-module-num { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--ps2-ink-3); font-variant-numeric: tabular-nums; }
.ps2-showcase-tabs { display: none; }
.ps2-showcase-stage { position: relative; }
.ps2-showcase-glow { position: absolute; inset: 6% 4% -2%; z-index: 0; background: radial-gradient(closest-side, rgba(103,179,247,.28), transparent); filter: blur(34px); pointer-events: none; }
.ps2-showcase-track {
  position: relative; z-index: 1; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--container-px)); padding: 8px var(--container-px) 28px; scroll-padding-inline: var(--container-px);
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.ps2-showcase-track::-webkit-scrollbar { display: none; }
.ps2-showcase-panel {
  flex: 0 0 min(86%, 560px); scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(21,39,59,.08), 0 18px 40px -22px rgba(12,24,39,.35);
}
.ps2-showcase-panel .ps2-showcase-shot { border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--ps2-stroke); }
.ps2-showcase-copy { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; flex: 1; }
.ps2-showcase-title { font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; color: var(--ps2-ink); }
.ps2-showcase-desc { font-size: 15px; line-height: 1.5; color: var(--ps2-ink-2); }
.ps2-showcase-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; align-self: flex-start;
  font-size: 15px; font-weight: 600; color: var(--ps2-accent); text-decoration: none;
}
.ps2-showcase-link svg { transition: transform .25s var(--ps2-ease); }
.ps2-showcase-link:hover svg { transform: translateX(3px); }
.ps2-showcase-link:focus-visible { outline: 2px solid var(--ps2-accent); outline-offset: 3px; border-radius: 4px; }
.ps2-showcase-dots { display: flex; justify-content: center; gap: 8px; }
.ps2-showcase-dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--ps2-stroke); transition: width .3s var(--ps2-ease), background-color .3s; }
.ps2-showcase-dots span.is-active { width: 24px; background: var(--ps2-chrome); }

@media (min-width: 960px) {
  .ps2-js .ps2-showcase { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
  .ps2-js .ps2-showcase-tabs { display: flex; flex-direction: column; gap: 4px; }
  .ps2-showcase-tab {
    position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; width: 100%; padding: 16px 18px 16px 20px;
    border: 1px solid transparent; border-radius: 14px; background: transparent; text-align: left; cursor: pointer; font: inherit; color: inherit;
    transition: background-color .3s var(--ps2-ease), border-color .3s, box-shadow .3s;
  }
  .ps2-showcase-tab::before {
    content: ''; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px;
    background: var(--ps2-accent); transform: scaleY(0); transition: transform .35s var(--ps2-ease);
  }
  .ps2-showcase-tab .ps2-module-num { padding-top: 5px; }
  .ps2-showcase-tab-title { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.015em; color: var(--ps2-ink-2); transition: color .3s; }
  .ps2-showcase-tab-desc { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--ps2-ink-3); transition: color .3s; }
  .ps2-showcase-tab:hover { background: var(--ps2-subtle); }
  .ps2-showcase-tab:hover .ps2-showcase-tab-title { color: var(--ps2-ink); }
  .ps2-showcase-tab[aria-selected="true"] { background: #fff; border-color: var(--ps2-stroke); box-shadow: 0 14px 32px -18px rgba(12,24,39,.35); }
  .ps2-showcase-tab[aria-selected="true"]::before { transform: none; }
  .ps2-showcase-tab[aria-selected="true"] .ps2-module-num { color: var(--ps2-accent); }
  .ps2-showcase-tab[aria-selected="true"] .ps2-showcase-tab-title { color: var(--ps2-ink); }
  .ps2-showcase-tab[aria-selected="true"] .ps2-showcase-tab-desc { color: var(--ps2-ink-2); }
  .ps2-showcase-tab:focus-visible { outline: 2px solid var(--ps2-accent); outline-offset: 2px; }
  .ps2-js .ps2-showcase-track { display: block; overflow: visible; margin: 0; padding: 0; }
  .ps2-js .ps2-showcase-panel { overflow: visible; border-radius: 0; background: none; box-shadow: none; }
  .ps2-js .ps2-showcase-panel[hidden] { display: none; }
  .ps2-js .ps2-showcase-panel:not([hidden]) { animation: ps2-pop .45s var(--ps2-ease) both; }
  .ps2-js .ps2-showcase-panel .ps2-showcase-shot { border-radius: var(--ps2-radius); border: 0; box-shadow: 0 0 0 1px rgba(21,39,59,.08), var(--ps2-shadow); }
  .ps2-js .ps2-showcase-copy { flex-direction: row; justify-content: flex-end; padding: 20px 4px 0; }
  .ps2-js .ps2-showcase-copy > :not(.ps2-showcase-link) { display: none; }
  .ps2-js .ps2-showcase-link { margin: 0; padding: 0; }
  .ps2-js .ps2-showcase-dots { display: none; }
}

/* ─── 6. After dark ─── */
.ps2-night { position: relative; padding: var(--ps2-section-py) 0; color: var(--ps2-night-ink); isolation: isolate; scroll-margin-top: 0; }
.ps2-night-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(103,179,247,.16), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(12,109,191,.22), transparent 70%),
    #0C1827;
}
.ps2-night .ps2-eyebrow { color: var(--ps2-accent-dark); }
.ps2-night .ps2-sub { color: var(--ps2-night-ink-2); }
.ps2-display-night { font-size: clamp(44px, 6.6vw, 92px); }
.ps2-night .ps2-head { margin-bottom: 40px; }
.ps2-theme-tabs {
  display: flex; width: max-content; margin: 0 auto 32px; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.ps2-theme-btn {
  min-height: 40px; padding: 0 20px; border-radius: 999px; border: 0; background: transparent; color: var(--ps2-night-ink-2);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .3s var(--ps2-ease);
}
.ps2-theme-btn:hover { color: #fff; }
.ps2-theme-btn[aria-pressed="true"] { background: #fff; color: var(--ps2-chrome-dark); }
.ps2-compare {
  --pos: 50%;
  position: relative; max-width: 1180px; margin: 0 auto; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 120px -30px rgba(0,0,0,.7), 0 0 120px -20px rgba(103,179,247,.25);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.ps2-compare-layer { position: absolute; inset: 0; }
.ps2-compare-layer img { width: 100%; height: 100%; object-fit: cover; object-position: left top; pointer-events: none; }
.ps2-compare-dark { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ps2-compare.is-animating .ps2-compare-dark { transition: clip-path .7s var(--ps2-ease); }
.ps2-compare.is-animating .ps2-compare-handle { transition: left .7s var(--ps2-ease); }
.ps2-compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; z-index: 6;
  background: rgba(255,255,255,.9); box-shadow: 0 0 16px rgba(103,179,247,.8);
}
.ps2-compare-knob {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; color: var(--ps2-chrome-dark); background: #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.18), 0 10px 30px rgba(0,0,0,.4); transition: transform .25s var(--ps2-ease);
}
.ps2-compare:hover .ps2-compare-knob, .ps2-compare.is-dragging .ps2-compare-knob { transform: scale(1.08); }
.ps2-compare-label {
  position: absolute; bottom: 16px; z-index: 5; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ps2-compare-label-dark { left: 16px; color: #fff; background: rgba(12,24,39,.7); }
.ps2-compare-label-light { right: 16px; color: var(--ps2-ink); background: rgba(255,255,255,.85); }
.ps2-compare-hint { margin-top: 20px; text-align: center; font-size: 14px; color: #8396AB; }
.ps2-night-caption { margin-top: 56px; text-align: center; font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.01em; color: #fff; }

/* ─── 7. Familiar ─── */
.ps2-familiar { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.ps2-h2-left { text-align: left; margin-bottom: 28px; }
.ps2-benefits { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.ps2-benefit { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--ps2-stroke); }
.ps2-benefit:last-child { border-bottom: 0; }
/* The tile's centre sits on the centre of the heading's first line (24px line box). */
.ps2-benefit .ps2-benefit-icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -12px; border-radius: 12px;
  color: var(--ps2-accent); background: #EAF3FC;
}
.ps2-benefit-icon svg, .ps2-reach-icon svg { display: block; flex: none; }
.ps2-benefit strong { display: block; font-size: 18px; line-height: 24px; font-weight: 700; color: var(--ps2-ink); margin-bottom: 6px; }
.ps2-benefit div > span { display: block; font-size: 16px; line-height: 1.55; color: var(--ps2-ink-2); }
.ps2-path {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; margin-top: clamp(64px, 8vw, 112px);
  counter-reset: none;
}
.ps2-path-step {
  position: relative; padding: 32px; border-radius: 20px; background: var(--ps2-canvas); border: 1px solid var(--ps2-stroke);
  display: flex; flex-direction: column;
}
.ps2-path-step:first-child { background: linear-gradient(160deg, #fff, #EEF5FC); }
.ps2-path-num {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 20px; border-radius: 50%;
  font-size: 15px; font-weight: 700; color: #fff; background: var(--ps2-chrome);
}
.ps2-path-step p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--ps2-ink-2); }
.ps2-path-shot { margin-top: 24px; aspect-ratio: 2 / 1; }
.ps2-since {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; padding: 10px 18px 10px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--ps2-ink); background: #fff; border: 1px solid var(--ps2-stroke);
}
.ps2-since .ps2-dot { background: var(--ps2-accent); box-shadow: 0 0 0 4px rgba(12,109,191,.14); }


/* ─── 8. Closing ─── */
.ps2-closing { position: relative; padding: clamp(112px, 14vw, 200px) 0; text-align: center; color: #fff; isolation: isolate; }
.ps2-closing-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(50% 60% at 50% 110%, rgba(103,179,247,.35), transparent 70%),
    radial-gradient(30% 40% at 15% 10%, rgba(0,255,255,.06), transparent 70%),
    linear-gradient(180deg, #0C1827, #15273B);
}
.ps2-closing .ps2-eyebrow { color: var(--ps2-accent-dark); }
.ps2-closing .ps2-sub { max-width: 600px; margin: 28px auto 0; color: var(--ps2-night-ink-2); }
.ps2-display-close { font-size: clamp(42px, 6.4vw, 88px); }
.ps2-cta-wrap { position: relative; display: inline-block; margin-top: 44px; }
.ps2-cta-glow {
  position: absolute; inset: -30px -50px; z-index: -1; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(103,179,247,.5), transparent); filter: blur(18px);
}

/* ─── Motion (JS adds .ps2-js; reveals play once) ─── */
.ps2-js .ps2-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ps2-ease), transform .6s var(--ps2-ease); transition-delay: var(--ps2-delay, 0ms); }
.ps2-js .ps2-reveal.is-in { opacity: 1; transform: none; }

@keyframes ps2-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes ps2-rise-shot { from { opacity: 0; transform: translateY(40px) scale(.98); } }
@keyframes ps2-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.ps2-hero-inner > * { animation: ps2-rise .8s var(--ps2-ease) both; }
.ps2-hero-inner > :nth-child(2) { animation-delay: .08s; }
.ps2-hero-inner > :nth-child(3) { animation-delay: .16s; }
.ps2-hero-inner > :nth-child(4) { animation-delay: .24s; }
.ps2-hero-inner > :nth-child(5) { animation-delay: .28s; }
.ps2-stage { animation: ps2-rise-shot 1.1s .3s var(--ps2-ease) both; }
.ps2-hero-theme { animation: ps2-rise .8s .32s var(--ps2-ease) both; }
.ps2-chip { animation: ps2-rise .7s var(--ps2-ease) both, ps2-float 6s ease-in-out infinite; }
.ps2-chip-a { animation-delay: .9s, 1.6s; }
.ps2-chip-b { animation-delay: 1.05s, 2.4s; }
.ps2-chip-c { animation-delay: 1.2s, 3.2s; }

@supports (animation-timeline: scroll()) {
  @keyframes ps2-flatten { from { transform: rotateX(14deg) scale(.94); } to { transform: none; } }
  .ps2-hero-shot { animation: ps2-flatten linear both; animation-timeline: scroll(root); animation-range: 0 60vh; }
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .ps2-chip-a { left: 1%; } .ps2-chip-b { right: 1%; }
}
@media (max-width: 959px) {
  .ps2-head { margin-bottom: 48px; }
  .ps2-story { display: block; }
  .ps2-story-visual { display: none; }
  .ps2-step { min-height: 0; opacity: 1; padding: 0; }
  .ps2-step + .ps2-step { margin-top: 72px; }
  .ps2-step-shot { display: block; }
  .ps2-reach { grid-template-columns: 1fr; }
  .ps2-familiar { grid-template-columns: 1fr; }
  .ps2-path { grid-template-columns: 1fr; }
  .ps2-reach-tabs { order: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ps2-reach-tab { padding: 14px; gap: 12px; align-items: center; border-color: var(--ps2-stroke); background: rgba(255,255,255,.5); }
  .ps2-reach-tab span span { display: none; }
  .ps2-reach-tab strong { font-size: 15px; margin: 0; }
  .ps2-reach-icon { width: 34px; height: 34px; margin-top: 0; }
}
@media (max-width: 720px) {
  .ps2-chips { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; pointer-events: auto; }
  .ps2-chip { position: static; font-size: 13px; padding: 8px 14px; animation-name: ps2-rise; animation-iteration-count: 1; }
  .ps2-zoom { position: relative; right: auto; width: 88%; margin: -14% 0 0 auto; }
  .ps2-reach-visual { padding-bottom: 0; }
  .ps2-stat { flex-direction: column; text-align: center; margin-top: 0; }
  .ps2-stat-rule { width: 48px; height: 1px; align-self: center; }
  .ps2-compare { aspect-ratio: 4 / 3; border-radius: 12px; }
  .ps2-compare-knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .ps2-path-step { padding: 24px; }
  .ps2-hero-bg { background:
    radial-gradient(80% 40% at 50% 0%, rgba(103,179,247,.22), transparent 70%),
    linear-gradient(180deg, #0C1827 0%, #12233A 72%, var(--ps2-canvas) 72%, var(--ps2-canvas) 100%); }
}
@media (max-width: 520px) {
  .ps2-actions .ps2-btn { width: 100%; justify-content: center; }
  .ps2-reach-tab strong { font-size: 14px; }
  .ps2-hero-theme { --w: 104px; margin-bottom: 20px; }
  .ps2-statement { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .ps2 *, .ps2 *::before, .ps2 *::after { animation: none !important; transition: none !important; }
  .ps2-js .ps2-reveal { opacity: 1; transform: none; }
  .ps2-hero-shot { transform: none; }
}
