/* VULNKON product page + early access application */

/* Self-hosted display face for the VULNKON wordmark only (CC-BY licensed,
   see hacked-font/info.txt) — a glitchy "hacker" look fitting this one
   product's brand, not used anywhere else on the site. */
@font-face {
  font-family: 'Hacked';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Hacked-KerX.ttf') format('truetype');
}

.vk-hacked-title {
  font-family: 'Hacked', var(--font-display);
  letter-spacing: 0.03em;
}

/* --- Product hero showcase: headline stacked ABOVE a large real product
   screenshot (not beside it) — the structural pattern shared by Slack,
   Discord, and Jira's own marketing heroes: the real product is the
   dominant visual, not a decorative side illustration. Re-skinned in
   Konstent's own palette/tokens so it works in both themes. */

.product-hero-slack {
  align-items: flex-start;
  padding-top: clamp(4rem, 9vw, 7rem);
}

.product-hero-text {
  max-width: 58rem;
  margin-inline: auto;
  text-align: center;
}

.product-hero-text h1 {
  font-size: clamp(3.25rem, 2.3rem + 5vw, 6.5rem);
  line-height: 1.02;
  margin-block: var(--space-md);
}

.product-hero-text .vk-hero__message {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
}

.product-hero-text .text-muted {
  font-size: var(--fs-lg);
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.product-hero-text .eyebrow {
  justify-content: center;
}

.product-hero-text .cta-row {
  justify-content: center;
}

.product-hero-shot-wrap {
  position: relative;
  width: 100%;
  max-width: 78rem;
  margin: var(--space-2xl) auto 0;
  height: 26rem;
}

@media (min-width: 60rem) {
  .product-hero-shot-wrap {
    height: 40rem;
  }
}

.product-hero-glow {
  position: absolute;
  inset: -3rem;
  background:
    radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--color-accent-blue) 30%, transparent), transparent 55%),
    radial-gradient(circle at 82% 25%, color-mix(in srgb, var(--color-accent-blue) 20%, transparent), transparent 55%),
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--color-accent-blue) 26%, transparent), transparent 60%);
  filter: blur(24px);
  animation: product-shot-glow-drift 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.product-hero-shot-wrap .product-shot-tilt {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .product-hero-glow {
    animation: none;
  }
}

.vk-hero__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-bottom: var(--space-md);
}

.vk-hero__message {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  background: var(--color-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-md);
}

.vk-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 32rem;
  margin-inline: auto;
}

.vk-visual__canvas,
.vk-visual__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Real product screenshots, shown in an animated "browser window"
   frame — same frame/glow/tilt/float nesting as .service-hero__frame so the
   drag-tilt (monogram-tilt.js) and the float animation live on DIFFERENT
   elements (parent vs child) rather than fighting over the same transform. */

.product-shot-frame {
  position: relative;
  perspective: 1400px;
  width: 100%;
  height: 100%;
}

.product-shot-glow {
  position: absolute;
  /* Fixed overhang rather than a percentage — a % inset scales with the
     frame's own width, and on wide frames (e.g. the 2-column capability
     layout, ~1000px) a 14% overhang pushed the glow past the viewport edge
     and forced a horizontal scrollbar on the whole page. */
  inset: -1.5rem;
  background:
    radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--color-accent-blue) 24%, transparent), transparent 55%),
    radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--color-accent-blue) 16%, transparent), transparent 55%),
    radial-gradient(circle at 50% 85%, color-mix(in srgb, var(--color-accent-blue) 20%, transparent), transparent 60%);
  filter: blur(6px);
  animation: product-shot-glow-drift 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes product-shot-glow-drift {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.product-shot-tilt {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-shot-tilt:active {
  cursor: grabbing;
}

.product-shot {
  position: relative;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-surface);
  box-shadow: 0 2rem 4rem -1.5rem rgba(0, 0, 0, 0.45), 0 0.75rem 1.5rem -0.75rem rgba(0, 0, 0, 0.3);
  animation: product-shot-float 7s ease-in-out infinite;
}

@keyframes product-shot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.product-shot__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
}

.product-shot__chrome-label {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
}

.product-shot__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-border-strong);
}

.product-shot__dot:nth-child(1) { background: var(--color-text-faint); }
.product-shot__dot:nth-child(2) { background: var(--color-border-strong); }
.product-shot__dot:nth-child(3) { background: var(--color-accent-blue); }

/* Floating "callout" badges — original elements (not a copy of any
   reference site's illustrations): a short label connected to the shot by
   a thin animated line, calling out a specific real capability, the way a
   product page points at "look, this is real." Positioned per-instance via
   inline --x/--y/--angle/--len custom properties rather than a fixed set
   of modifier classes, so callouts can sit anywhere around any shot. */
.product-shot-callout {
  position: absolute;
  top: var(--y, 0);
  left: var(--x, 0);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--color-bg-elevated) 94%, transparent);
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 0.5rem 1.25rem -0.5rem rgba(0, 0, 0, 0.35);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  white-space: nowrap;
  animation: product-shot-callout-float 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.product-shot-callout::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-accent-cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent-cyan) 28%, transparent);
}

.product-shot-callout__line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--len, 3rem);
  height: 1px;
  background: linear-gradient(to right, color-mix(in srgb, var(--color-accent-cyan) 70%, transparent), transparent);
  transform-origin: left center;
  transform: rotate(var(--angle, 0deg));
}

@keyframes product-shot-callout-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 47.9375rem) {
  .product-shot-callout { display: none; }
}

.product-shot__img-wrap {
  position: relative;
  height: calc(100% - 2.15rem);
  overflow: hidden;
}

.product-shot__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
  display: block;
}

/* Real product screens are captured in BOTH the product's own light and
   dark mode — showing the light-mode screenshot against this site's dark
   theme (or vice versa) read as visibly wrong/mismatched, so the pair
   swaps with the site's own theme instead of only ever showing one. */
.product-shot__img--dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .product-shot__img--light {
    display: none;
  }

  .product-shot__img--dark {
    display: block;
  }
}

:root[data-theme='dark'] .product-shot__img--light {
  display: none;
}

:root[data-theme='dark'] .product-shot__img--dark {
  display: block;
}

:root[data-theme='light'] .product-shot__img--light {
  display: block;
}

:root[data-theme='light'] .product-shot__img--dark {
  display: none;
}

/* Compact variant for the screenshot gallery grid — the grid's own
   card-tilt-3d.js hover-tilt already provides the 3D interaction there, so
   this skips the drag-tilt wrapper and float animation entirely (having
   both the grid's hover-tilt AND this component's own animation/drag on the
   same card would fight over the same transform). */
.product-shot--static {
  animation: none;
  height: auto;
}

.product-shot--static .product-shot__img-wrap {
  height: auto;
  aspect-ratio: 16 / 10;
}

/* Bleed the static shot to the card's own edges — .card-tilt-grid .card has
   uniform padding on all sides, but a screenshot reads better flush against
   the top/left/right than inset like body text. */
.card-tilt-grid .card .product-shot--static {
  margin: calc(var(--space-2xl) * -1) calc(var(--space-2xl) * -1) 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-tilt-grid .card .product-shot--static .product-shot__img-wrap {
  border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
  .product-shot,
  .product-shot-glow,
  .product-shot-callout {
    animation: none;
  }
}

.vk-visual[data-enhanced='true'] .vk-visual__fallback {
  opacity: 0;
  visibility: hidden;
}

/* Standalone centered featured shot — for product pages without a
   capability-block to sit inside (ENTERKON/BUSSKON), a single large
   real-screenshot moment of its own between the intro and the process. */
.product-shot-frame--featured {
  max-width: 56rem;
  height: 20rem;
  margin-inline: auto;
}

@media (min-width: 60rem) {
  .product-shot-frame--featured {
    height: 30rem;
  }
}

/* --- Feature rows: alternating image/text pairs, each real screenshot
   framed with a colored accent border — the Jira "Customize how your
   team's work flows" pattern, re-skinned in Konstent's own accent colors. */

.feature-row {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: var(--space-2xl);
}

@media (min-width: 60rem) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .feature-row--reverse .feature-row__media {
    order: 2;
  }

  .feature-row--reverse .feature-row__text {
    order: 1;
  }
}

.feature-row__media {
  border-radius: var(--radius-lg);
  padding: 0.4rem;
  border: 3px solid var(--feature-row-accent, var(--color-accent-cyan));
}

.feature-row__media--a { --feature-row-accent: var(--color-accent-blue); }
.feature-row__media--b { --feature-row-accent: var(--color-text); }

.feature-row__media .product-shot {
  border-radius: calc(var(--radius-lg) - 0.25rem);
}

.feature-row__text .eyebrow {
  margin-bottom: var(--space-xs);
}

/* --- Capability sections (performance / efficiency / coverage / AI) --- */

.capability-list {
  display: grid;
  gap: var(--space-sm);
}

.capability-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  font-size: var(--fs-sm);
}

.capability-list .icon {
  color: var(--color-accent-cyan);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.claims-note {
  margin-top: var(--space-md);
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
  padding: var(--space-sm) var(--space-md);
  border-left: 2px solid var(--color-border-strong);
}

/* --- Early access: multi-step form --- */

[data-stepper] .stepper {
  display: none;
}

[data-stepper].is-enhanced .stepper {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.stepper__item {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
}

.stepper__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  font-weight: var(--fw-semibold);
}

.stepper__item[data-state='active'] {
  color: var(--color-text);
}

.stepper__item[data-state='active'] .stepper__num {
  background: var(--color-gradient-brand);
  border-color: transparent;
  color: #fff;
}

.stepper__item[data-state='done'] .stepper__num {
  background: var(--color-success);
  border-color: transparent;
  color: #06231a;
}

.stepper__connector {
  width: 1.5rem;
  height: 1px;
  background: var(--color-border-strong);
}

/* Without JS every step renders in one long, fully usable form.
   Once enhanced, only the active step is shown. */
[data-stepper].is-enhanced .form-step {
  display: none;
}

[data-stepper].is-enhanced .form-step.is-active {
  display: block;
  animation: step-in var(--duration-base) var(--ease-out);
}

[data-stepper]:not(.is-enhanced) .form-step {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

[data-stepper]:not(.is-enhanced) .form-step:first-child {
  border-top: none;
  padding-top: 0;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step__actions {
  display: none;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

[data-stepper].is-enhanced .form-step__actions {
  display: flex;
}


.review-summary {
  display: grid;
  gap: var(--space-2xs);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  margin-bottom: var(--space-md);
  font-size: var(--fs-sm);
}

.review-summary dt {
  color: var(--color-text-faint);
  font-size: var(--fs-xs);
}

.review-summary dd {
  margin-bottom: var(--space-2xs);
}

.early-access-tagline {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  text-align: center;
  margin-bottom: var(--space-sm);
}

/* --- Horizontal scroll-jacked workflow carousel (workflow-carousel.js) ---
   The section is given extra height inline (see the PHP view — height is
   computed from the step count) purely so there's scroll distance to
   drive the sticky track sideways; the sticky panel itself always stays a
   normal 100vh viewport-height slide. */

.workflow-carousel-section {
  position: relative;
}

.workflow-carousel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-lg);
  overflow: hidden;
}

.workflow-carousel-track {
  display: flex;
  gap: var(--space-lg);
  padding-inline: max(1.5rem, calc((100vw - 88rem) / 2 + 1.5rem));
  will-change: transform;
}

.workflow-carousel-card {
  flex: 0 0 auto;
  width: min(85vw, 24rem);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-surface);
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.35);
}

.workflow-carousel-card__media {
  padding: 0.65rem 0.65rem 0;
}

.workflow-carousel-card__media .product-shot--static {
  aspect-ratio: 16 / 10;
}

.workflow-carousel-card__body {
  padding: var(--space-lg);
}

.workflow-carousel-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-gradient-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-sm);
}

.workflow-carousel-card__body h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2xs);
}

.workflow-carousel-card__body p {
  color: var(--color-text-muted);
  font-size: var(--fs-base);
  line-height: 1.6;
}

@media (max-width: 47.9375rem), (prefers-reduced-motion: reduce) {
  .workflow-carousel-section {
    height: auto !important;
  }

  .workflow-carousel-sticky {
    position: static;
    height: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .workflow-carousel-track {
    transform: none !important;
  }

  .workflow-carousel-card {
    scroll-snap-align: start;
  }
}
