/* ==========================================================================
   pluggo.css / brand layer on top of Bootstrap 5.3
   Palette and voice follow the Pluggo brand board:
   lime #d1fe17 / black #000000 / white #ffffff, lowercase headline voice.
   ========================================================================== */

:root {
  --pg-lime: #d1fe17;
  --pg-lime-deep: #b6e000;
  --pg-ink: #000000;
  --pg-paper: #ffffff;
  --pg-mist: #f3f4ee;

  --pg-radius-lg: 28px;
  --pg-radius-md: 18px;
  --pg-radius-sm: 12px;

  --pg-display: "Fredoka", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --pg-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --pg-measure: 62ch;
}

/* --------------------------------------------------------------- base --- */

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--pg-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--pg-ink);
  background: var(--pg-ink);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4, .pg-display {
  font-family: var(--pg-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { max-width: var(--pg-measure); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--pg-lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.pg-panel--lime :focus-visible { outline-color: var(--pg-ink); }
.pg-slab--ink :focus-visible { outline-color: var(--pg-lime); }

/* ------------------------------------------------------------- panels --- */
/* Full-bleed colour blocks, alternating the way the brand board does.
   One rule owns vertical rhythm so section paddings never fight. */

.pg-panel {
  padding-block: clamp(4rem, 8.5vw, 7.5rem);
  position: relative;
}

.pg-panel--ink   { background: var(--pg-ink);   color: var(--pg-paper); }
.pg-panel--lime  { background: var(--pg-lime);  color: var(--pg-ink); }
.pg-panel--paper { background: var(--pg-paper); color: var(--pg-ink); }
.pg-panel--mist  { background: var(--pg-mist);  color: var(--pg-ink); }

.pg-panel--tight { padding-block: clamp(2.75rem, 5vw, 4rem); }

/* Colour is decided by the surface the text sits on, not by the panel around
   it. A lime slab inside an ink panel still needs dark text. The light-surface
   rules come second so they win at equal specificity. */
.pg-muted { color: rgba(0, 0, 0, .58); }

.pg-panel--ink .pg-muted,
.pg-slab--ink .pg-muted { color: rgba(255, 255, 255, .62); }

.pg-slab--lime .pg-muted,
.pg-slab--paper .pg-muted { color: rgba(0, 0, 0, .58); }

/* Buttons carry their own colour, so keep the panel link rules off them. */
.pg-panel--ink a:not(.pg-btn),
.pg-slab--ink a:not(.pg-btn) { color: var(--pg-lime); }

.pg-slab--lime a:not(.pg-btn),
.pg-slab--paper a:not(.pg-btn) { color: var(--pg-ink); }

.pg-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

.pg-kicker {
  font-family: var(--pg-display);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.1rem;
}

.pg-kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: .55;
}

/* ------------------------------------------------------------ topbar ---- */

.pg-nav {
  background: var(--pg-ink);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding-block: .65rem;
}

.pg-nav .navbar-brand img { height: 30px; width: auto; display: block; }

.pg-nav .nav-link {
  color: rgba(255, 255, 255, .74);
  font-weight: 500;
  font-size: .97rem;
  padding-inline: .9rem;
}

.pg-nav .nav-link:hover,
.pg-nav .nav-link:focus,
.pg-nav .nav-link[aria-current="page"] { color: var(--pg-lime); }

.pg-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, .25);
  padding: .35rem .55rem;
}

.pg-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d1fe17' stroke-linecap='round' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ------------------------------------------------------------ buttons --- */

.pg-btn {
  font-family: var(--pg-display);
  font-weight: 500;
  font-size: 1.02rem;
  border-radius: 999px;
  padding: .78rem 1.7rem;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

.pg-btn:active { transform: translateY(1px); }

.pg-btn--ink { background: var(--pg-ink); color: var(--pg-paper); }
.pg-btn--ink:hover { background: #1c1c1c; color: var(--pg-lime); }

.pg-btn--lime { background: var(--pg-lime); color: var(--pg-ink); }
.pg-btn--lime:hover { background: var(--pg-lime-deep); color: var(--pg-ink); }

.pg-btn--ghost-ink { border-color: var(--pg-ink); color: var(--pg-ink); }
.pg-btn--ghost-ink:hover { background: var(--pg-ink); color: var(--pg-lime); }

.pg-btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: var(--pg-paper); }
.pg-btn--ghost-light:hover { background: var(--pg-paper); color: var(--pg-ink); }

/* --------------------------------------------------------------- hero --- */

.pg-hero {
  background: var(--pg-lime);
  color: var(--pg-ink);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

.pg-hero__mark {
  width: min(100%, 620px);
  height: auto;
  display: block;
}

.pg-hero__descriptor {
  font-family: var(--pg-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.5vw, 2.4rem);
  line-height: 1.18;
  margin-top: 1.75rem;
  max-width: 28ch;
}

.pg-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.5rem;
  font-size: .95rem;
  line-height: 1.4;
}

.pg-hero__meta strong {
  display: block;
  font-family: var(--pg-display);
  font-weight: 500;
}

.pg-hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pg-ink);
}

/* single orchestrated page-load reveal, nothing else moves on its own */
.pg-reveal { animation: pg-rise .7s cubic-bezier(.2, .7, .3, 1) both; }
.pg-reveal--2 { animation-delay: .12s; }
.pg-reveal--3 { animation-delay: .22s; }

@keyframes pg-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------- steps --- */
/* Genuine sequence, so the numbers carry meaning. */

.pg-steps { counter-reset: pgstep; list-style: none; padding: 0; margin: 0; }

.pg-step {
  counter-increment: pgstep;
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  gap: 1.25rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.pg-panel--paper .pg-step,
.pg-panel--mist .pg-step { border-top-color: rgba(0, 0, 0, .12); }

.pg-step:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.pg-panel--paper .pg-step:last-child,
.pg-panel--mist .pg-step:last-child { border-bottom-color: rgba(0, 0, 0, .12); }

.pg-step::before {
  content: counter(pgstep);
  font-family: var(--pg-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--pg-lime);
  padding-top: .2rem;
}

.pg-panel--paper .pg-step::before,
.pg-panel--mist .pg-step::before { color: var(--pg-ink); }

.pg-step h3 { margin-bottom: .3rem; }
.pg-step p { margin-bottom: 0; }

/* -------------------------------------------------------------- slabs --- */
/* Content blocks that read as physical panels, not identical SaaS cards. */

.pg-slab {
  border-radius: var(--pg-radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  height: 100%;
}

.pg-slab--lime { background: var(--pg-lime); color: var(--pg-ink); }
.pg-slab--ink { background: var(--pg-ink); color: var(--pg-paper); }
.pg-slab--paper { background: var(--pg-paper); color: var(--pg-ink); }
.pg-slab--outline { border: 2px solid currentColor; }

.pg-slab h3 { margin-bottom: .65rem; }
.pg-slab p:last-child { margin-bottom: 0; }

.pg-list { list-style: none; padding: 0; margin: 0; }

.pg-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .55rem;
}

.pg-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
}

/* --------------------------------------------------------------- spec --- */

.pg-spec {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem 1.5rem;
  padding-block: .8rem;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  align-items: baseline;
}

.pg-panel--paper .pg-spec { border-bottom-color: rgba(0, 0, 0, .12); }

.pg-spec dt { font-weight: 400; opacity: .7; margin: 0; }
.pg-spec dd {
  margin: 0;
  text-align: right;
  font-family: var(--pg-display);
  font-weight: 500;
}

/* ------------------------------------------------------------ station --- */

.pg-station { width: 100%; height: auto; max-width: 360px; display: block; }

/* ---------------------------------------------------------------- faq --- */

.pg-faq .accordion-item {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, .12);
}

.pg-faq .accordion-item:last-child { border-bottom: 1px solid rgba(0, 0, 0, .12); }

.pg-faq .accordion-button {
  background: transparent;
  color: var(--pg-ink);
  font-family: var(--pg-display);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 1.15rem 0;
  box-shadow: none;
}

.pg-faq .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-width='2.4' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.pg-faq .accordion-body { padding: 0 0 1.4rem; }

/* --------------------------------------------------------- legal copy --- */

.pg-doc { max-width: 74ch; }
.pg-doc h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 2.6rem; }
.pg-doc h3 { margin-top: 1.8rem; font-size: 1.15rem; }
.pg-doc p, .pg-doc li { max-width: none; }
.pg-doc ul { padding-left: 1.15rem; margin-bottom: 1.2rem; }
.pg-doc li { margin-bottom: .45rem; }

/* ------------------------------------------------------------- footer --- */

.pg-footer {
  background: var(--pg-ink);
  color: rgba(255, 255, 255, .7);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  font-size: .94rem;
}

.pg-footer h4 {
  color: var(--pg-paper);
  font-size: 1rem;
  margin-bottom: .9rem;
}

.pg-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.pg-footer a:hover { color: var(--pg-lime); text-decoration: underline; }
.pg-footer img { height: 46px; width: auto; }

.pg-footer__base {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  color: rgba(255, 255, 255, .5);
  font-size: .87rem;
}


/* skip link */
.pg-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pg-lime);
  color: var(--pg-ink);
  padding: .7rem 1.2rem;
  z-index: 2000;
  border-radius: 0 0 var(--pg-radius-sm) 0;
  font-weight: 600;
}

.pg-skip:focus { left: 0; }

/* ==========================================================================
   MOTION
   Everything here is additive and opt-in: the hidden states only apply once
   pluggo.js adds .has-reveal to <html>, which it only does when the browser
   supports IntersectionObserver and the visitor has not asked for reduced
   motion. With JS off or blocked, the page renders fully visible.
   ========================================================================== */

.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}

.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity .75s cubic-bezier(.16, .84, .34, 1),
    transform .75s cubic-bezier(.16, .84, .34, 1);
  transition-delay: var(--pg-delay, 0ms);
}

/* headings wipe up from behind their own baseline */
.has-reveal [data-reveal="mask"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
}

.has-reveal [data-reveal="mask"].is-visible {
  clip-path: inset(0 0 -0.2em 0);
  transition: clip-path .8s cubic-bezier(.16, .84, .34, 1);
  transition-delay: var(--pg-delay, 0ms);
}

/* ------------------------------------------------------------ nav state --- */

.pg-nav {
  transition: padding .3s ease, background-color .3s ease, box-shadow .3s ease;
}

.pg-nav.is-scrolled {
  padding-block: .3rem;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.pg-nav .navbar-brand img { transition: height .3s ease; }
.pg-nav.is-scrolled .navbar-brand img { height: 24px; }

/* thin lime read-position bar across the very top */
.pg-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--pg-lime);
  z-index: 1080;
  pointer-events: none;
}

/* ------------------------------------------------------------- marquee --- */

.pg-marquee {
  background: var(--pg-lime);
  color: var(--pg-ink);
  overflow: hidden;
  padding-block: .85rem;
  border-block: 3px solid var(--pg-ink);
  user-select: none;
}

.pg-marquee__track {
  display: flex;
  width: max-content;
  animation: pg-scroll 34s linear infinite;
}

.pg-marquee:hover .pg-marquee__track { animation-play-state: paused; }

.pg-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pg-marquee span {
  font-family: var(--pg-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  padding-inline: 1.4rem;
  white-space: nowrap;
}

.pg-marquee img {
  height: clamp(16px, 2.2vw, 22px);
  width: auto;
  flex-shrink: 0;
}

@keyframes pg-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------- hover --- */

.pg-slab {
  transition: transform .35s cubic-bezier(.16, .84, .34, 1),
              box-shadow .35s ease,
              border-color .35s ease;
}

.pg-slab--lime:hover,
.pg-slab--ink:hover,
.pg-slab--paper:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.pg-slab--outline:hover {
  transform: translateY(-6px);
  border-color: var(--pg-lime);
}

.pg-panel--paper .pg-slab--outline:hover,
.pg-panel--mist .pg-slab--outline:hover {
  border-color: var(--pg-ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

/* step rows lift their number as you pass over them */
.pg-step { transition: background-color .3s ease; }
.pg-step::before { transition: transform .35s cubic-bezier(.16, .84, .34, 1); }
.pg-step:hover::before { transform: translateX(4px) scale(1.12); }

/* spec rows sweep a lime underline on hover */
.pg-spec { position: relative; }

.pg-spec::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--pg-lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s cubic-bezier(.16, .84, .34, 1);
}

.pg-spec:hover::after { transform: scaleX(1); }

.pg-nav .nav-link { transition: color .2s ease; }

/* --------------------------------------------------------- the station --- */
/* Slots fill in sequence once the illustration scrolls into view. */

.has-reveal .pg-station .pg-bank {
  opacity: 0;
  transform: translateY(-10px);
}

.pg-station.is-visible .pg-bank {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s cubic-bezier(.16, .84, .34, 1);
}

.pg-station.is-visible .pg-bank:nth-of-type(1) { transition-delay: .15s; }
.pg-station.is-visible .pg-bank:nth-of-type(2) { transition-delay: .30s; }
.pg-station.is-visible .pg-bank:nth-of-type(3) { transition-delay: .45s; }
.pg-station.is-visible .pg-bank:nth-of-type(4) { transition-delay: .60s; }

.pg-station.is-visible .pg-screen { animation: pg-glow 3.4s ease-in-out .8s infinite; }

@keyframes pg-glow {
  0%, 100% { opacity: 1; }
  50%      { opacity: .58; }
}

/* --------------------------------------------------- reduced motion --- */
/* The blanket rule at the top of this file already kills transitions, but
   these need their resting state restored explicitly or content stays hidden. */

@media (prefers-reduced-motion: reduce) {
  .has-reveal [data-reveal],
  .has-reveal [data-reveal="mask"] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .pg-marquee__track { animation: none; transform: none; }
  .pg-progress { display: none; }
  .has-reveal .pg-station .pg-bank { opacity: 1; transform: none; }
  .pg-station.is-visible .pg-screen { animation: none; }
}
