/* ==========================================================================
   CITADEL POS — PAGE STYLES
   css/pos.css  (loaded only by pos.html, after styles.css + components.css)
   Art direction: airy clay-render fintech hero. Pale blue canvas, navy ink,
   one electric accent. All tokens are page-scoped (--pos-*).
   ========================================================================== */

/* ---------- TOKENS ---------- */
.pos-page {
  --pos-bg: #EAF2FA;
  --pos-bg-2: #DEEAF6;
  --pos-surface: #FFFFFF;
  --pos-ink: #0B3042;
  --pos-ink-soft: #4B6475;
  --pos-accent: #2F5BEA;
  --pos-accent-soft: #E3EBFD;
  --pos-red: #F23A2E;
  --pos-yellow: #FFC93C;
  --pos-hairline: rgba(11, 48, 66, 0.09);
  --pos-hairline-strong: rgba(11, 48, 66, 0.16);
  --pos-shadow: 0 34px 70px -38px rgba(11, 48, 66, 0.35), 0 10px 24px -16px rgba(11, 48, 66, 0.18);
  --pos-shadow-hover: 0 44px 80px -40px rgba(11, 48, 66, 0.45), 0 14px 30px -16px rgba(11, 48, 66, 0.22);
  --pos-btn-bg: #0B3042;
  --pos-btn-fg: #FFFFFF;
  --pos-btn-bg-hover: #0E3D53;
  --pos-radius: 26px;
  --pos-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pos-font-display: 'Outfit', var(--font-heading, sans-serif);
  --pos-font-body: var(--font-body, 'Inter', system-ui, sans-serif);

  /* 3D scene + fallback palette (read by js/pos.js) */
  --pos-scene-body: #FFFFFF;
  --pos-scene-body-2: #D8E7F5;
  --pos-scene-edge: #B9D3E9;
  --pos-scene-ink: #12354A;
  --pos-scene-accent: #2F5BEA;
  --pos-scene-red: #F23A2E;
  --pos-scene-yellow: #FFC93C;
  --pos-scene-ground: rgba(47, 91, 234, 0.10);

  color: var(--pos-ink);
  font-family: var(--pos-font-body);
}

html[data-theme="dark"] .pos-page {
  --pos-bg: #07131D;
  --pos-bg-2: #0B1B29;
  --pos-surface: #0E2233;
  --pos-ink: #EAF3FA;
  --pos-ink-soft: #9FB6C6;
  --pos-accent: #7C9BFF;
  --pos-accent-soft: rgba(124, 155, 255, 0.16);
  --pos-red: #FF6A5E;
  --pos-yellow: #FFD45E;
  --pos-hairline: rgba(234, 243, 250, 0.10);
  --pos-hairline-strong: rgba(234, 243, 250, 0.20);
  --pos-shadow: 0 34px 70px -38px rgba(0, 0, 0, 0.75), 0 10px 24px -16px rgba(0, 0, 0, 0.55);
  --pos-shadow-hover: 0 44px 84px -40px rgba(0, 0, 0, 0.85), 0 14px 30px -16px rgba(0, 0, 0, 0.6);
  --pos-btn-bg: #7C9BFF;
  --pos-btn-fg: #06121C;
  --pos-btn-bg-hover: #9AB2FF;

  --pos-scene-body: #EEF6FE;
  --pos-scene-body-2: #CBDFF1;
  --pos-scene-edge: #A9C7E0;
  --pos-scene-ink: #0A2233;
  --pos-scene-accent: #8AA6FF;
  --pos-scene-red: #FF4A3D;
  --pos-scene-yellow: #FFD45E;
  --pos-scene-ground: rgba(0, 0, 0, 0.42);
}

/* Full-bleed pale canvas behind the frame (no global styles touched) */
.pos-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90% 55% at 78% 2%, #F9FCFF 0%, rgba(249, 252, 255, 0) 62%),
    radial-gradient(70% 55% at 6% 32%, #E9F2FA 0%, rgba(233, 242, 250, 0) 70%),
    var(--pos-bg);
}
html[data-theme="dark"] .pos-page::before {
  background:
    radial-gradient(90% 55% at 78% 2%, #0D2033 0%, rgba(13, 32, 51, 0) 62%),
    radial-gradient(70% 55% at 6% 32%, #0A1B28 0%, rgba(10, 27, 40, 0) 70%),
    var(--pos-bg);
}

/* The reference has no grain; the page is a clean studio render */
.grain-overlay { display: none !important; }

.pos-page h1,
.pos-page h2,
.pos-page h3,
.pos-page .pos-btn,
.pos-page .pos-link,
.pos-page .pos-eyebrow,
.pos-page .pos-kicker,
.pos-page .pos-works-label,
.pos-page .pos-step-num {
  font-family: var(--pos-font-display);
}

/* ---------- HERO ---------- */
.pos-hero {
  position: relative;
  padding-top: clamp(6.5rem, 9vw, 8.75rem);
}

.pos-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.pos-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}

.pos-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.42rem 0.9rem 0.42rem 0.7rem;
  border: 1px solid var(--pos-hairline);
  border-radius: 999px;
  background: var(--pos-surface);
  color: var(--pos-ink);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px -18px rgba(11, 48, 66, 0.4);
}
.pos-eyebrow-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--pos-accent);
  box-shadow: 0 0 0 4px var(--pos-accent-soft);
}

.pos-h1 {
  margin: 1.15rem 0 0;
  color: var(--pos-ink);
  font-size: clamp(2.75rem, 5.6vw, 5.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.pos-h1-line { display: block; }
.pos-accent { font-style: normal; color: var(--pos-accent); }

.pos-lead {
  max-width: 44ch;
  margin: 1.5rem 0 0;
  color: var(--pos-ink-soft);
  font-size: clamp(1.0625rem, 0.35vw + 0.98rem, 1.1875rem);
  line-height: 1.75;
  letter-spacing: -0.005em;
}

.pos-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.6rem;
  margin-top: 2rem;
}

.pos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 60px;
  padding: 0 1.55rem;
  border: 0;
  border-radius: 14px;
  background: var(--pos-btn-bg);
  color: var(--pos-btn-fg);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow: 0 18px 34px -20px rgba(11, 48, 66, 0.7);
  transition: transform 0.4s var(--pos-ease), background-color 0.4s var(--pos-ease), box-shadow 0.4s var(--pos-ease);
}
.pos-btn svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; transition: transform 0.4s var(--pos-ease); }
.pos-btn:hover { background: var(--pos-btn-bg-hover); transform: translateY(-2px); box-shadow: 0 24px 42px -22px rgba(11, 48, 66, 0.75); }
.pos-btn:hover svg { transform: translateX(4px); }
.pos-btn:focus-visible { outline: 2px solid var(--pos-accent); outline-offset: 4px; }

.pos-btn-ghost {
  background: var(--pos-accent-soft);
  color: var(--pos-accent);
  box-shadow: none;
}
.pos-btn-ghost:hover { background: var(--pos-accent-soft); box-shadow: 0 14px 28px -22px rgba(47, 91, 234, 0.7); }

.pos-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.35rem 0;
  color: var(--pos-ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.pos-link svg { width: 1rem; height: 1rem; transition: transform 0.4s var(--pos-ease); }
.pos-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 1.4rem;
  bottom: 0.35rem;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0.4);
  transition: transform 0.5s var(--pos-ease);
}
.pos-link:hover::after { transform: scaleX(1); }
.pos-link:hover svg { transform: translateY(3px); }
.pos-link:focus-visible { outline: 2px solid var(--pos-accent); outline-offset: 4px; border-radius: 6px; }

.pos-works { margin-top: clamp(2rem, 4vw, 3rem); }
.pos-works-label {
  display: block;
  color: var(--pos-ink-soft);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pos-works-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}
.pos-works-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--pos-ink-soft);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.pos-works-list svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; color: var(--pos-accent); }

/* ---------- 3D STAGE ---------- */
.pos-stage { position: relative; order: -1; min-width: 0; }

.pos-stage-inner {
  position: relative;
  transform-origin: 50% 40%;
  will-change: transform, opacity;
}

.pos-scene-glow {
  position: absolute;
  inset: -6% -4% 4%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(closest-side at 62% 46%, rgba(47, 91, 234, 0.13), rgba(47, 91, 234, 0) 72%);
}
html[data-theme="dark"] .pos-scene-glow {
  background: radial-gradient(closest-side at 62% 46%, rgba(124, 155, 255, 0.16), rgba(124, 155, 255, 0) 72%);
}

.pos-scene {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1.06 / 1;
  min-height: 330px;
  max-height: 460px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: default;
}
.pos-scene canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 100%);
}
.pos-scene.is-draggable { cursor: grab; }
.pos-scene.is-dragging { cursor: grabbing; }

.pos-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.8s var(--pos-ease);
}
.pos-fallback svg {
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 100%);
  animation: posFallbackFloat 7s ease-in-out infinite;
}
.pos-scene.is-live .pos-fallback { opacity: 0; }
.pos-scene.is-live .pos-fallback svg { animation: none; }

@keyframes posFallbackFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

.pos-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--pos-hairline);
  border-radius: 999px;
  background: var(--pos-surface);
  color: var(--pos-ink);
  font-family: var(--pos-font-display);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 14px 30px -16px rgba(11, 48, 66, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s linear, visibility 0.2s linear;
}
.pos-tooltip i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--pos-accent); }
.pos-tooltip.is-on { opacity: 1; visibility: visible; }

.pos-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.9rem 0 0;
  color: var(--pos-ink-soft);
  font-size: 0.8125rem;
  text-align: center;
}
.pos-stage.is-live .pos-hint { display: flex; }
.pos-hint-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--pos-accent);
  animation: posHintPulse 2.4s ease-in-out infinite;
}
@keyframes posHintPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.6); opacity: 0.35; }
}

.pos-demo-btn:focus,
.pos-demo-btn:focus-visible {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.7rem 1.15rem;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  min-height: 44px;
  border: 2px solid var(--pos-accent);
  border-radius: 999px;
  background: var(--pos-surface);
  color: var(--pos-ink);
  font-family: var(--pos-font-display);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--pos-shadow);
}

/* ---------- SHARED SECTION TYPE ---------- */
.pos-section { margin-top: clamp(4.25rem, 8vw, 7rem); }

.pos-section-head { max-width: 42rem; }
.pos-section-head-left { margin-right: auto; }

.pos-kicker {
  margin: 0 0 0.85rem;
  color: var(--pos-accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pos-h2 {
  margin: 0;
  color: var(--pos-ink);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.pos-section-lead {
  max-width: 52ch;
  margin: 1rem 0 0;
  color: var(--pos-ink-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ---------- OFFER CARDS ---------- */
.pos-offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  perspective: 1200px;
}
@media (min-width: 620px) {
  .pos-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .pos-offer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
}

.pos-offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 230px;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--pos-hairline);
  border-radius: var(--pos-radius);
  background: var(--pos-surface);
  box-shadow: var(--pos-shadow);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--pos-ease), box-shadow 0.6s var(--pos-ease);
}
.pos-offer-card:hover {
  transform: translate3d(0, -6px, 0) rotateX(2.5deg) rotateY(-3deg);
  box-shadow: var(--pos-shadow-hover);
}

.pos-offer-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.55rem;
  border-radius: 16px;
  background: var(--pos-accent-soft);
  color: var(--pos-accent);
}
.pos-offer-icon svg { width: 1.4rem; height: 1.4rem; }

.pos-offer-card h3 {
  margin: 0;
  color: var(--pos-ink);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pos-offer-card p {
  margin: 0;
  color: var(--pos-ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- PRODUCT SHOWCASE ---------- */
.pos-showcase-section { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 1024px) {
  .pos-showcase-section {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.pos-showcase {
  position: relative;
  padding: 1.5rem 0 2.25rem;
  perspective: 1400px;
  --pos-parallax-y: 0px;
}
@media (min-width: 640px) { .pos-showcase { padding: 2rem 0 2.75rem; } }

.pos-screen {
  position: relative;
  border: 1px solid var(--pos-hairline);
  border-radius: 22px;
  background: var(--pos-surface);
  box-shadow: var(--pos-shadow);
  overflow: hidden;
}
.pos-screen-main {
  transform: translate3d(0, var(--pos-parallax-y), 0) rotate(-1.6deg);
  transition: box-shadow 0.6s var(--pos-ease);
}

.pos-screen-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--pos-hairline);
  background: var(--pos-bg-2);
  color: var(--pos-ink-soft);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
html[data-theme="dark"] .pos-screen-bar { background: rgba(255, 255, 255, 0.03); }
.pos-screen-dots { display: inline-flex; gap: 0.28rem; }
.pos-screen-dots i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--pos-hairline-strong); }
.pos-screen-dots i:first-child { background: var(--pos-red); }
.pos-screen-dots i:nth-child(2) { background: var(--pos-yellow); }
.pos-screen-dots i:last-child { background: var(--pos-accent); }

.pos-screen-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.9rem;
}
@media (max-width: 420px) {
  .pos-screen-body { grid-template-columns: minmax(0, 1fr); }
}

.pos-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.pos-tile {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.65rem 0.7rem;
  border: 1px solid var(--pos-hairline);
  border-radius: 12px;
  background: var(--pos-bg);
}
html[data-theme="dark"] .pos-tile { background: rgba(255, 255, 255, 0.03); }
.pos-tile-mark {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.2rem;
  border-radius: 50%;
  background: var(--tile, var(--pos-accent));
  color: #FFFFFF;
  font-size: 0.625rem;
  font-weight: 700;
}
.pos-tile strong { color: var(--pos-ink); font-size: 0.6875rem; font-weight: 600; line-height: 1.25; }
.pos-tile span:last-child { color: var(--pos-ink-soft); font-size: 0.625rem; }

.pos-order {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.7rem;
  border-radius: 14px;
  background: var(--pos-bg);
}
html[data-theme="dark"] .pos-order { background: rgba(255, 255, 255, 0.04); }
.pos-order-title { margin: 0; color: var(--pos-ink); font-size: 0.6875rem; font-weight: 600; }
.pos-order-list { display: flex; flex-direction: column; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.pos-order-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--pos-ink-soft);
  font-size: 0.625rem;
  line-height: 1.4;
}
.pos-order-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--pos-hairline);
  color: var(--pos-ink-soft);
  font-size: 0.625rem;
}
.pos-order-total strong { color: var(--pos-ink); font-size: 0.8125rem; font-weight: 700; }
.pos-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-top: 0.15rem;
  border-radius: 8px;
  background: var(--pos-accent);
  color: #FFFFFF;
  font-size: 0.625rem;
  font-weight: 600;
}
html[data-theme="dark"] .pos-pay-btn { color: #06121C; }

.pos-float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(200px, 52%);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--pos-hairline);
  border-radius: 16px;
  background: var(--pos-surface);
  box-shadow: var(--pos-shadow);
  transition: box-shadow 0.6s var(--pos-ease);
}
.pos-float-card strong { display: block; color: var(--pos-ink); font-size: 0.75rem; font-weight: 600; line-height: 1.3; }
.pos-float-card span { display: block; color: var(--pos-ink-soft); font-size: 0.625rem; line-height: 1.4; }
.pos-float-icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(242, 58, 46, 0.12);
  color: var(--pos-red);
  font-size: 0.75rem;
  font-weight: 700;
}
.pos-float-check {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(34, 160, 112, 0.14);
  color: #12805A;
  font-size: 0.75rem;
  font-weight: 700;
}
html[data-theme="dark"] .pos-float-check { color: #6FE0B2; }
.pos-float-stock {
  right: -0.5rem;
  top: 0.5rem;
  transform: translate3d(0, calc(var(--pos-parallax-y) * -0.55), 0) rotate(2.4deg);
}
.pos-float-paid {
  left: 0.5rem;
  bottom: 0.25rem;
  transform: translate3d(0, calc(var(--pos-parallax-y) * 0.8), 0) rotate(-2deg);
}
@media (max-width: 639px) {
  .pos-float-card { display: none; }
}

/* ---------- STEPS ---------- */
.pos-steps {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .pos-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}

.pos-steps::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--pos-accent), var(--pos-hairline-strong));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s var(--pos-ease);
}
.pos-steps.is-drawn::before { transform: scaleY(1); }
@media (min-width: 768px) {
  .pos-steps::before {
    left: 0;
    right: 0;
    top: 0.75rem;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(to right, var(--pos-accent), var(--pos-hairline-strong));
    transform: scaleX(0);
    transform-origin: left;
  }
  .pos-steps.is-drawn::before { transform: scaleX(1); }
}

.pos-step { position: relative; padding-top: 2.5rem; }
.pos-step::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--pos-surface);
  box-shadow: 0 0 0 2px var(--pos-accent);
}
@media (min-width: 768px) {
  .pos-step::before { left: 0; top: 0.5rem; }
}

.pos-step-num {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--pos-accent);
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.pos-step-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--pos-ink-soft);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pos-step h3 {
  margin: 0 0 0.5rem;
  color: var(--pos-ink);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pos-step p { max-width: 32ch; margin: 0; color: var(--pos-ink-soft); font-size: 0.9375rem; line-height: 1.65; }

/* ---------- AUDIENCE MARQUEE ---------- */
.pos-audience { overflow: hidden; }

.pos-marquee {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.pos-marquee-track {
  display: flex;
  width: max-content;
  animation: posMarquee 38s linear infinite;
}
.pos-marquee:hover .pos-marquee-track,
.pos-marquee:focus-within .pos-marquee-track { animation-play-state: paused; }

.pos-marquee-list {
  display: flex;
  flex-shrink: 0;
  gap: 0.7rem;
  margin: 0;
  padding: 0 0.7rem 0 0;
  list-style: none;
}
.pos-marquee-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--pos-hairline);
  border-radius: 999px;
  background: var(--pos-surface);
  color: var(--pos-ink);
  font-family: var(--pos-font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 12px 26px -22px rgba(11, 48, 66, 0.5);
}
.pos-marquee-list li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--pos-accent);
}

@keyframes posMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- QUOTE ---------- */
.pos-quote { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 1024px) {
  .pos-quote {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4.5rem);
  }
}
.pos-quote-aside { max-width: 34rem; }
@media (min-width: 1024px) {
  .pos-quote-aside { position: sticky; top: 7.5rem; }
}
.pos-quote-aside .pos-btn { margin-top: 2rem; }

.pos-form-card {
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border: 1px solid var(--pos-hairline);
  border-radius: 28px;
  background: var(--pos-surface);
  box-shadow: var(--pos-shadow);
}
.pos-form-card .form-title { color: var(--pos-ink); font-family: var(--pos-font-display); font-weight: 600; letter-spacing: -0.02em; }
.pos-form-card .form-sub { color: var(--pos-ink-soft); }

#pos-quote .chip-group { display: flex; flex-wrap: wrap; gap: 0.45rem; }
#pos-quote .chip-budget {
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--pos-hairline);
  border-radius: 999px;
  background: var(--pos-bg-2);
  color: var(--pos-ink);
  font-family: var(--pos-font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s var(--pos-ease), border-color 0.3s var(--pos-ease), color 0.3s var(--pos-ease);
}
#pos-quote .chip-budget:hover { background: var(--pos-surface); border-color: var(--pos-hairline-strong); }
#pos-quote .chip-budget[aria-pressed="true"] { background: var(--pos-accent); border-color: transparent; color: #FFFFFF; }
html[data-theme="dark"] #pos-quote .chip-budget[aria-pressed="true"] { color: #06121C; }
#pos-quote .text-btn-green { background: #15803D; }
#pos-quote .text-btn-green:hover { background: #166534; }
#pos-quote .roll-btn-primary { min-height: 44px; background-color: var(--pos-accent); box-shadow: 0 14px 30px -18px rgba(47, 91, 234, 0.65); }
#pos-quote .roll-btn-primary:hover { background-color: #1D4ED8; }
html[data-theme="dark"] #pos-quote .roll-btn-primary { color: #06121C; }
.pos-sticky-cta.roll-btn-primary { background-color: var(--pos-accent); color: #FFFFFF; }
.pos-sticky-cta.roll-btn-primary:hover { background-color: #1D4ED8; }
html[data-theme="dark"] .pos-sticky-cta.roll-btn-primary { color: #06121C; }
#pos-quote .form-banner-error,
#pos-quote .form-error-msg { color: var(--pos-red); }

/* ---------- STICKY CTA (mobile) ---------- */
.pos-sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 40;
  min-height: 48px;
  transform: translate(-50%, 160%);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  transition: transform 0.6s var(--pos-ease);
}
.pos-sticky-cta.is-visible { transform: translate(-50%, 0); }
.pos-sticky-cta:not(.is-visible) { pointer-events: none; }
@media (min-width: 1024px) { .pos-sticky-cta { display: none; } }

/* ---------- SINHALA ---------- */
html[data-lang="si"] .pos-h1 {
  font-size: clamp(2rem, 4.1vw, 3.55rem);
  font-weight: 700;
  line-height: 1.45 !important;
}
html[data-lang="si"] .pos-h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.45 !important;
}
html[data-lang="si"] .pos-lead,
html[data-lang="si"] .pos-section-lead { line-height: 1.75 !important; }
html[data-lang="si"] .pos-eyebrow { font-size: 0.75rem; }
html[data-lang="si"] .pos-step-num { letter-spacing: 0; }
html[data-lang="si"] .pos-tooltip { font-size: 0.75rem; line-height: 1.4; }
html[data-lang="si"] .pos-offer-card h3,
html[data-lang="si"] .pos-step h3 { line-height: 1.45 !important; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 899px) {
  .pos-hint-drag,
  .pos-hint-sep { display: none; }
}

@media (min-width: 900px) {
  .pos-hero-grid {
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
    gap: clamp(1rem, 2.5vw, 2.5rem);
    align-items: center;
  }
  .pos-stage { order: 0; margin-left: -2vw; }
  .pos-scene {
    width: calc(100% + 2.5vw);
    aspect-ratio: 1.12 / 1;
    min-height: 430px;
    max-height: 620px;
  }
  .pos-hint { justify-content: flex-start; padding-left: 4vw; }
}

@media (min-width: 1280px) {
  .pos-stage { margin-left: -3vw; }
  .pos-scene { width: calc(100% + 3vw); }
}

/* ---------- MOTION PREFERENCES ---------- */
@media (prefers-reduced-motion: reduce) {
  .pos-page *,
  .pos-page *::before,
  .pos-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .pos-fallback svg { animation: none; }
  .pos-hint-dot { animation: none; }
  .pos-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .pos-marquee-track { animation: none; width: auto; flex-wrap: wrap; }
  .pos-marquee-list { flex-wrap: wrap; padding-right: 0; }
  .pos-marquee-list[aria-hidden="true"] { display: none; }
  .pos-offer-card:hover { transform: none; }
  .pos-screen-main,
  .pos-float-stock,
  .pos-float-paid { transform: none; }
  .pos-sticky-cta { transition: none; }
}

html.perf-lite .pos-marquee-track { animation: none; width: auto; flex-wrap: wrap; }
html.perf-lite .pos-marquee-list { flex-wrap: wrap; }
html.perf-lite .pos-marquee-list[aria-hidden="true"] { display: none; }
html.perf-lite .pos-fallback svg { animation: none; }
